UNPKG

@airgap/coinlib-core

Version:

The @airgap/coinlib-core is a protocol agnostic library to prepare, sign and broadcast cryptocurrency transactions.

11 lines (10 loc) 526 B
export declare class AES { readonly AES_KEY_SIZE: number; readonly KEY_DERIVATION_ITERATION_COUNT: number; readonly ALGORITHM: 'aes-256-gcm'; readonly encoding: 'base64' | 'hex'; constructor(AES_KEY_SIZE?: number, KEY_DERIVATION_ITERATION_COUNT?: number, ALGORITHM?: 'aes-256-gcm', encoding?: 'base64' | 'hex'); encryptString(plainText: string, privateKey: string): Promise<string>; decryptString(encryptedValue: string, privateKey: string): Promise<string>; private deriveKeyFromPrivateKey; }