UNPKG

@enclaved/encli

Version:

CLI utilities for working with enclaved application server for TEEs

10 lines (9 loc) 501 B
export declare function encryptNip44(plaintext: string, conversationKey: Uint8Array, nonce?: Uint8Array): string; export declare function decryptNip44(payload: string, conversationKey: Uint8Array): string; export declare class Nip44 { private cache; createKey(privkey: Uint8Array, pubkey: string): Uint8Array<ArrayBufferLike>; private getKey; encrypt(privkey: Uint8Array, pubkey: string, text: string): string; decrypt(privkey: Uint8Array, pubkey: string, data: string): string; }