DEPRECATED. Use noble-curves instead. Fastest JS implementation of BLS12-381.
hashToCurve
now works with both G1/G2fromBytes
and toBytes
have been added to Fp2, Fp6, Fp12Full Changelog: https://github.com/paulmillr/noble-bls12-381/compare/1.3.0...1.4.0
powMod
bugshex
serialization more strictFull Changelog: https://github.com/paulmillr/noble-bls12-381/compare/1.2.0...1.3.0
string
(hex) return type from public methods. Uint8Array
is now always returnedFixes default DST label
@noble/bls12-381
(from noble-bls12-381
). Namespaces cannot be used by other people, so by using @noble
you can be sure it's authenticAdded utils.hashToField
. Thanks @iancoleman
Fp#sqrt
can now return undefined values when the Fp item itself is not squarePointG1.isOnCurve()
got its implementation fixed by employing sigma
endomorphism instead of hEff
multiplicationThanks to @guidovranken for reporting both bugs
G1.clearCofactor()
aggregateSignatures()
return typeutils.randomPrivateKey()
to be uniformPoint.multiply()
values higher than CURVE.r