UNPKG

@coinbase/wallet-sdk

Version:
19 lines 740 B
export declare class WalletLinkCipher { private readonly secret; constructor(secret: string); /** * * @param plainText string to be encrypted * returns hex string representation of bytes in the order: initialization vector (iv), * auth tag, encrypted plaintext. IV is 12 bytes. Auth tag is 16 bytes. Remaining bytes are the * encrypted plainText. */ encrypt(plainText: string): Promise<string>; /** * * @param cipherText hex string representation of bytes in the order: initialization vector (iv), * auth tag, encrypted plaintext. IV is 12 bytes. Auth tag is 16 bytes. */ decrypt(cipherText: string): Promise<string>; } //# sourceMappingURL=WalletLinkCipher.d.ts.map