-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add bls12381 support #387
base: master
Are you sure you want to change the base?
Add bls12381 support #387
Conversation
c0925f2
to
b12608c
Compare
fcc8fe1
to
cd86239
Compare
Hello @freddiecoleman - you need to make specifications changes here - https://github.com/coinbase/rosetta-specifications |
Currently waiting on coinbase/kryptology#48
Motivation
This allows Rosetta users to sign and verify payloads using a
bls12381
curve type.It supports both basic and aug with prefix by passing in the relevant signature type.
In order to prepend sign using aug you will need to manually prepend the relevant public key to the payload that is to be signed as the exported interface does not allow an additional argument for the public key.
Solution
Provide an implementation of the Signer interface for
bls12381
Open questions
bls12381
curve type will not currently be in there. I believe adding the necessary support will require a further PR somewhere else - this should be quite simple?