schnorr 0.0.3
schnorr: ^0.0.3 copied to clipboard
A pure dart package for generic schnorr signature algorithm, supporting all curves in elliptic package.
0.0.3 #
- SECURITY: remove
print()calls indeterministicSignthat leaked the secret nonce and intermediate values to stdout. - SECURITY: fix
highestFactorsOf2, which returned 0 for exact powers of two and corrupted thejacobisymbol used byverify()(residuosity) andgetK()(signing nonce parity). - Fix
batchVerify: return the real result (was alwaysfalse), select the Jacobi-1 root forR, validateRis on-curve, and encode(a*e) mod ncorrectly. - Fix
deterministicGetRandA: uniform coefficient in[1, n-1](nextInt(1)always returned 0); reuse a singleRandom.secure(). - Fix
hashToIntto apply the excess right-shift (was a no-op). - Require
elliptic0.4.x for constant-time (Montgomery-ladder) scalar multiplication. - Add a comprehensive test suite (33 tests).
0.0.2 #
- Update doc
0.0.1 #
- Initial version.
- Pass test cases based on S256