Repository navigation
ox@1.3.0
Minor Changes
-
#341
c672615Thanks @jxom! - Added WebAuthn PRF output and secp256k1, Ed25519, and AES-GCM key derivation, and deprecatedWebAuthnP256in favor ofWebAuthn.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
e17518bThanks @jxom! - Added incremental hash state factories with chunk updates, cloning, caller-owned output buffers, and destruction, plusRlp.encodeTofor streaming encoded bytes.import { Hash, Rlp } from "ox"; const hash = Hash.createKeccak256(); Rlp.encodeTo(["0x01", "0x0203"], (chunk) => { hash.update(chunk); }); const digest = hash.digest();