Project-Arda / bgls

Aggregate and Multi Signatures based on BGLS over BN256 and BLS12-381
Apache License 2.0
60 stars 18 forks source link

Fix for interfacied-Fq* in bls12. #27

Closed dis2 closed 6 years ago

dis2 commented 6 years ago

Fq/Fq2 (and soon to be Fq12 for gt) is now abstracted to common interface https://github.com/dis2/bls12/blob/master/field.go

This presents some quirks in regards to things like FromInt/ToInt (which now operate on vectors of ints). SetOne/SetZero now fit an interface for marshalling, and thus can't return self for chaining. Use G1One() etc.

ValarDragon commented 6 years ago

Thanks for updating this with your latest changes!