UNPKG

@stellot/crypto

Version:

Crypto libraries for front and backend

4 lines (3 loc) 341 B
import { Keypair } from 'stellar-sdk'; export declare function encrypt(keys: Keypair, to: string, input: Uint8Array, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>; export declare function decrypt(keys: Keypair, from: string, input: Uint8Array, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>;