Skip to content

v0.3.0

Choose a tag to compare

@UneBaguette UneBaguette released this 13 Jun 01:58
· 11 commits to master since this release
Immutable release. Only release title and notes can be modified.
v0.3.0
eb6307f

Breaking changes: raw Uint8Array API for wasm

The entire public API now uses Uint8Array instead of base64url strings. This eliminates unnecessary encoding overhead when all consumers already work with raw bytes.

const { seed, verifyingKey } = generateKeypair();     // both Uint8Array
const kp = generateKeypairFromSeed(seed);              // reproduce from seed
const sig = sign(seed, message);                       // Uint8Array
const ok = verify(verifyingKey, message, sig);         // boolean

// Or use the Signer (seed stays in WASM memory, zeroized on drop)
const signer = new Signer(seed);
const sig = signer.sign(message);

What changed

  • All inputs and outputs are Uint8Array instead of base64url strings
  • Added generateKeypairFromSeed(seed) to reproduce keypairs from existing seeds
  • Signer constructor takes Uint8Array seed
  • Removed base64 dependency
  • Macro is now self-contained (no shared GenerateKeypairResult from core)

Other

  • chore(deps): bump ml-dsa from 0.1.0 to 0.1.1 by @dependabot[bot] in #4

Full Changelog: v0.2.2...v0.3.0