simsam:
I am reading data of a sensor. And i want to attach a digital signature to it before sending it off to my server. For this i used PBC.I got alot of errors when i compiled the code as pasted above.
A digital signature is not the right primitive I think - a simple MAC is how to authenticate messages to a server.