v0.3.0
·
11 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
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
Uint8Arrayinstead of base64url strings - Added
generateKeypairFromSeed(seed)to reproduce keypairs from existing seeds Signerconstructor takesUint8Arrayseed- Removed
base64dependency - Macro is now self-contained (no shared
GenerateKeypairResultfrom 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