Skip to content

v3: 3.98kb with schnorr. u8a-only, change names and exports#133

Closed
paulmillr wants to merge 11 commits intomainfrom
v3
Closed

v3: 3.98kb with schnorr. u8a-only, change names and exports#133
paulmillr wants to merge 11 commits intomainfrom
v3

Conversation

@paulmillr
Copy link
Owner

@paulmillr paulmillr commented May 23, 2025

  • v2: 3.99 kb gzipped, schnorr is not included because it increases bundle size
    • separate pull req implements schnorr in 4.98 kb
  • v3: 3.98 kb with schnorr! 3.35 kb without schnorr

Notable changes:

  • Uint8Array-only getPublicKey, sign, verify (mirrors noble-curves v2)
  • Point and Signature interfaces now differ from noble-curves (negate => neg, multiply => mul)
    • curves v2 have Point.Fp and Point.Fn so it won't be 100% compatible even without these changes
  • Additional utils (bytesToHex etc.) moved from etc to etc2 - TODO: better name

TODO: consider renaming coords (px, py => X, Y) for noble-curves

@paulmillr paulmillr force-pushed the v3 branch 2 times, most recently from b998b34 to 265e3bd Compare May 23, 2025 18:45
@paulmillr paulmillr closed this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants