//#region src/crypto/provider.d.ts /** * Cross-runtime crypto provider interface. * * The vaults package needs to run on Node (server, via WASM) and React Native * Hermes (mobile, via @noble + react-native-argon2). Both runtimes implement * this interface; the active one is picked at bundle time by package.json * conditional exports. * * All byte-formats here are spec-§ compliant — see * encrypted_vaults_arweave/rust/wasm/vault-crypto/src/{aead,kdf,utils}.rs for * the reference implementation. */ interface AeadResult { /** ciphertext WITH appended 16-byte GCM tag (or 16-byte Poly1305 tag) */ ciphertext: Uint8Array; } interface KeyInput { kid: string; key: Uint8Array; } interface KemKeypair { publicKey: Uint8Array; secretKey: Uint8Array; } interface KemEncapResult { ciphertext: Uint8Array; sharedSecret: Uint8Array; } type SecretShareLike = any; //#endregion export { AeadResult, KemEncapResult, KemKeypair, KeyInput, SecretShareLike }; //# sourceMappingURL=provider.d.mts.map