@enclaved/encli
Version:
CLI utilities for working with enclaved application server for TEEs
10 lines (9 loc) • 407 B
TypeScript
export declare const utf8Decoder: TextDecoder;
export declare const utf8Encoder: TextEncoder;
export declare class Nip04 {
private cache;
createKey(privkey: Uint8Array, pubkey: string): Uint8Array<ArrayBufferLike>;
private getKey;
encrypt(privkey: Uint8Array, pubkey: string, text: string): Promise<string>;
decrypt(privkey: Uint8Array, pubkey: string, data: string): Promise<string>;
}