Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement prepend signatures in c++/python, update python implementation, fix bug #57

Merged
merged 6 commits into from
Apr 30, 2019

Conversation

mariano54
Copy link
Contributor

@mariano54 mariano54 commented Apr 29, 2019

This change adds a new type of signature, the PrependSignature. This is generated by prepending the public key to the message hash (and hashing again). The purpose of this is to protect against the rogue public key attack, without requiring additional metadata of how signatures where aggregated.

The construction is:
prepend_m = hash256(pk + hash256(m))).

These signatures are not compatible, which is why a new class is added, and a new bit is used in the serialization.

Also the prepend signature is added to the pure python implementation, and some refactoring is done there to bring it up to speed.

@mariano54 mariano54 requested review from bramcohen and AWice April 29, 2019 11:54
@mariano54 mariano54 changed the title Implement prepend signatures in c++/python bindings, update python bi… Implement prepend signatures in c++/python, update python implementation, fix bug Apr 30, 2019
@mariano54 mariano54 merged commit 802bc2b into master Apr 30, 2019
@mariano54 mariano54 deleted the prependSignatures branch April 30, 2019 23:54
UdjinM6 added a commit to UdjinM6/bls-signatures that referenced this pull request Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant