You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migrating to @noble/curves from @noble/bls12-381, some of our old network's signatures are not being verified. I've tried a few other BLS libs in go and they're verifying fine.
When verifying, the following error occurs:
Error: bad point: not in prime-order subgroup
at Point.assertValidity (node_modules/@noble/curves/src/abstract/weierstrass.ts:355:40)
at Object.fromHex (node_modules/@noble/curves/src/bls12-381.ts:1390:15)
at normP2 (node_modules/@noble/curves/src/abstract/bls.ts:290:68)
at Object.verify (node_modules/@noble/curves/src/abstract/bls.ts:351:15)
On some other signatures, I've periodically seen:
Error: No root
at Object.sqrt (node_modules/@noble/curves/src/bls12-381.ts:171:25)
at Object.fromHex (node_modules/@noble/curves/src/bls12-381.ts:1379:21)
at normP2 (node_modules/@noble/curves/src/abstract/bls.ts:290:68)
at Object.verify (node_modules/@noble/curves/src/abstract/bls.ts:351:15)
A minimal reproduction I've made is the following:
32bda79 could fix this. Can you try using the github version? Clone it to your machine, do npm install && npm run build && npm pack, then copy archive somewhere and install the packed archive: npm install curves.tgz
When migrating to
@noble/curves
from@noble/bls12-381
, some of our old network's signatures are not being verified. I've tried a few other BLS libs in go and they're verifying fine.When verifying, the following error occurs:
On some other signatures, I've periodically seen:
A minimal reproduction I've made is the following:
The first verification (on the old library) succeeds, but the second fails with the prime order subgroup error
The text was updated successfully, but these errors were encountered: