w3f / bls

Aggregatable BLS sigantures
65 stars 15 forks source link

How is `context` meant to be used when creating a new `Message`? #54

Open jonarmani opened 2 years ago

jonarmani commented 2 years ago

Most code from this library uses the text "ctx" although the README uses "Some context" and the From impl for Message uses a blank string.

It seems like the string plus length of message gets prepended to the message itself, implying any signatures derived from this Message will be affected by the choice of context.

What is it for, and what is best practice for its usage?