UNPKG

@julesl23/s5js

Version:

Enhanced TypeScript SDK for S5 decentralized storage with path-based API, media processing, and directory utilities

13 lines 875 B
import { CryptoImplementation, KeyPairEd25519 } from "../crypto.js"; export declare class JSCryptoImplementation implements CryptoImplementation { generateSecureRandomBytes(length: number): Uint8Array; hashBlake3(input: Uint8Array): Promise<Uint8Array>; hashBlake3Sync(input: Uint8Array): Uint8Array; hashBlake3Blob(blob: Blob): Promise<Uint8Array>; verifyEd25519(publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array): Promise<boolean>; signEd25519(keyPair: KeyPairEd25519, message: Uint8Array): Promise<Uint8Array>; newKeyPairEd25519(seed: Uint8Array): Promise<KeyPairEd25519>; encryptXChaCha20Poly1305(key: Uint8Array, nonce: Uint8Array, plaintext: Uint8Array): Promise<Uint8Array>; decryptXChaCha20Poly1305(key: Uint8Array, nonce: Uint8Array, ciphertext: Uint8Array): Promise<Uint8Array>; } //# sourceMappingURL=js.d.ts.map