@julesl23/s5js
Version:
Enhanced TypeScript SDK for S5 decentralized storage with path-based API, media processing, and directory utilities
18 lines • 970 B
TypeScript
export interface 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>;
}
export declare class KeyPairEd25519 {
readonly privKey: Uint8Array;
readonly pubKey: Uint8Array;
constructor(privKey: Uint8Array, pubKey: Uint8Array);
get publicKey(): Uint8Array;
}
//# sourceMappingURL=crypto.d.ts.map