Skip to content

ox@1.3.0

Choose a tag to compare

@github-actions github-actions released this 31 Jul 01:55
· 181 commits to main since this release
1f3a236

Minor Changes

  • #341 c672615 Thanks @jxom! - Added WebAuthn PRF output and secp256k1, Ed25519, and AES-GCM key derivation, and deprecated WebAuthnP256 in favor of WebAuthn.

    import { AesGcm, Ed25519, Secp256k1, WebAuthn } from "ox";
    
    const credential = await WebAuthn.createCredential({
      name: "Example",
      prf: true,
    });
    const secp256k1PrivateKey = Secp256k1.fromPrf(credential.prf);
    const ed25519PrivateKey = Ed25519.fromPrf(credential.prf);
    const encryptionKey = await AesGcm.fromPrf(credential.prf);
  • #336 e17518b Thanks @jxom! - Added incremental hash state factories with chunk updates, cloning, caller-owned output buffers, and destruction, plus Rlp.encodeTo for streaming encoded bytes.

    import { Hash, Rlp } from "ox";
    
    const hash = Hash.createKeccak256();
    Rlp.encodeTo(["0x01", "0x0203"], (chunk) => {
      hash.update(chunk);
    });
    const digest = hash.digest();

Patch Changes