paulmillr / noble-curves

Audited & minimal JS implementation of elliptic curve cryptography.
https://paulmillr.com/noble
MIT License
664 stars 62 forks source link

Add verification of BLS short signatures #74

Closed randombit closed 1 year ago

randombit commented 1 year ago

Hi!

I work on a system that uses BLS with short signatures (ie signatures in G1 and public keys in G2). We'd like to be able to use this library to verify such signatures.

Does my current change seem like the general direction of something you would accept? If so I will add also aggregation support, and of course tests. (And also if you want, keygen and signature generation - I don't think we need those but if you want them for parity that certainly is understandable.)

If the approach I'm taking here is not what you would want, just let me know what you're looking for and I'll do that instead!

Related - #64

paulmillr commented 1 year ago

Yes, that should work. Keygen and sig gen would also be great!

randombit commented 1 year ago

This is ready for review

paulmillr commented 1 year ago

thanks

paulmillr commented 1 year ago

@randombit could you also update README docs, please?

randombit commented 1 year ago

@paulmillr Sure, I will open another PR on Monday. Thanks for the fast merge!