UNPKG

eccrypto-js

Version:

Elliptic curve cryptography library (NodeJS, Browser and Pure JS)

9 lines 653 B
/// <reference types="node" /> import { PreEncryptOpts, Encrypted } from './helpers'; export declare function encrypt(publicKeyTo: Buffer, msg: Buffer, opts?: Partial<PreEncryptOpts>): Promise<Encrypted>; export declare function decrypt(privateKey: Buffer, opts: Encrypted): Promise<Buffer>; export declare function encryptSync(publicKeyTo: Buffer, msg: Buffer, opts?: Partial<PreEncryptOpts>): Encrypted; export declare function decryptSync(privateKey: Buffer, opts: Encrypted): Promise<Buffer>; export declare function serialize(opts: Encrypted): Buffer; export declare function deserialize(buf: Buffer): Encrypted; //# sourceMappingURL=ecies.d.ts.map