Releases: paulmillr/noble-curves
Releases · paulmillr/noble-curves
1.8.1
1.8.0
- The package is now available on JSR.
- Use isolatedDeclarations typescript option, which massively simplifies documentation auto-gen, and more
- Check out JSR page for one example
- Add tons of comments everywhere to improve autocompletion, LLM code gen, and basic code understanding.
- modular: fix isLE logic bug, reverse mapHashToField
- Upgrade hashes to v1.7.0
Full Changelog: 1.7.0...1.8.0
1.7.0
- curve: add wnafCachedUnsafe() and precomputeMSMUnsafe().
- new methods speed-up MSM for cases when inputs are public
- edwards, weierstrass: switch
multiplyUnsafe
to new wnaf methods
- modular: crash on non-prime P in sqrt instead of looping
- do not precompute sqrtP on initializaton, delay until first call
- weierstrass: add support for strict
format
option inverify
, choose betweencompact
andder
- bls: Export some types to simplify building custom curves
- utils: Improve isBytes speed
- improve compatibility with parsers and minifiers
- Upgrade hashes to v1.6.0
New Contributors
- @andreibancioiu made their first contribution in #156
- @ChALkeR made their first contribution in #166
Full Changelog: 1.6.0...1.7.0
1.6.0
What's Changed
- weierstrass, edwards: add multi-scalar-multiplication using Pippenger algorithm
- DER encoding: improve edge cases. Fixes p521 signatures
- hash-to-curve: add more type checks
- Export
abstract/tower
for pairing-friendly curves - Add support for node.js v14
- Upgrade hashes to v1.5.0
Full Changelog: 1.5.0...1.6.0
1.5.0
- Implement bn254 (aka alt_bn128) pairings, compatible with EVM and ZEC
- Point serialization is not implemented (but can be added in user-space), because there is no standard way of doing it. Check out README
- Refactor range checks for private keys and signatures, simplify them
- Add memoization for
toAffine
andassertValidity
, to speed-up BLS - Make all points immutable and frozen to improve security
Full Changelog: 1.4.2...1.5.0
1.4.2
- Typescript build: revert target from ES2022 to ES2020 due to compat issues
Full Changelog: 1.4.1...1.4.2
1.4.1
- bls12-381: Add mapToCurve; fix typescript types
- ed25519, utils: Improve tree-shaking
- Typescript build: emit separate type declarations for ESM, to improve compatibility
- Typescript build: change target from ES2020 to ES2022
New Contributors
Full Changelog: 1.4.0...1.4.1
1.4.0
- Fix verification of BLS short signatures when using hex
- Fix types in hash-to-field and weierstrass Entropy
- Update noble-hashes to v1.4, adding support for Big-Endian platforms
- Small utilities refactor to reduce code duplication
- tsconfig improvements
New Contributors
- @ardislu made their first contribution in #110
- @dhrubabasu made their first contribution in #117
- @xrchz made their first contribution in #129
Full Changelog: 1.3.0...1.4.0
1.3.0
- BLS:
- Add support for short signatures. Short sigs allow using G1 as sig and G2 as pubkeys, instead of wise-versa.
- Contributed by @randombit in #74
- Refactor mask-bit settings, improve encoding resiliency
- ed25519, ed448: implement
Group
interface forDecafPoint
andRistrettoPoint
by @sublimator in #85 - ed448: Fix x448 private keys, to be 56 bytes, not 57
- weierstrass: fix
weierstrassPoints
missing CURVE object by @secure12 in #92 - utils:
- Bump noble-hashes to 1.3.3
- Bump typescript version used to build the package to 5.3.2
New Contributors
- @randombit made their first contribution in #74
- @arobsn made their first contribution in #83
- @secure12 made their first contribution in #92
- @yhc125 made their first contribution in #93
Full Changelog: 1.2.0...1.3.0
1.2.0
- ed448: add decaf448 support
- weierstrass: improve security of random private keys
by decreasing bias from2^-64
to2^-curve_security_level
- weierstrass: allow extraEntropy to take any amount of bytes
- poseidon: improve security, make sboxPower mandatory and prohibit values other than 3, 5, 7; prohibit odd roundsFull
- hash-to-curve: allow string and Uint8Array DSTs
- tree-shaking improvements: add
sideEffects: false
to package.json,
add pure annotations to ed25519 - update noble-hashes to 1.3.2
New Contributors
- @stknob made their first contribution in #59
- @mahnunchik made their first contribution in #56
- @steveluscher made their first contribution in #62
Full Changelog: 1.1.0...1.2.0