Skip to content

2.2.0

Latest

Choose a tag to compare

@paulmillr paulmillr released this 22 Apr 09:12
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
2.2.0
948db4d
  • April 2026 self-audit (all files): no major issues found
    • Audited for spec compliance and security
    • Minor hardening all over the place
    • Ensure sign does not mutate secret key input array
    • fromKeypair now decodes secret key in line with paritytech/schnorrkel library. It forces scalar to be torsion-free (% cofactor === 0). Check out diff for more details
  • Fix all Byte Array types, to ensure proper work in both TypeScript 5.6 & TypeScript 5.9+
    • TS 5.6 has Uint8Array, while TS 5.9+ made it generic Uint8Array<ArrayBuffer>
    • This creates incompatibility of code between versions
    • Previously, it was hard to use and constantly emitted errors similar to TS2345
    • See typescript#62240 for more context
  • Fix compilation issues on TypeScript v6
  • Improve tree-shaking, reduce bundle sizes
  • Upgrade noble-curves and noble-hashes to self-audited v2.2

(Version is bumped from v1.0 to v2.2, to align with other noble / scure packages)

Full Changelog: 1.0.0...2.2.0