14 lines
605 B
TypeScript
14 lines
605 B
TypeScript
|
|
/// <reference types="node" />
|
||
|
|
import { aesDecrypt, aesEncrypt, decodeHex, getValidSecret, remove0x } from "./utils";
|
||
|
|
export declare function encrypt(receiverRawPK: string | Uint8Array, msg: Uint8Array): Buffer;
|
||
|
|
export declare function decrypt(receiverRawSK: string | Uint8Array, msg: Uint8Array): Buffer;
|
||
|
|
export { ECIES_CONFIG } from "./config";
|
||
|
|
export { PrivateKey, PublicKey } from "./keys";
|
||
|
|
export declare const utils: {
|
||
|
|
aesDecrypt: typeof aesDecrypt;
|
||
|
|
aesEncrypt: typeof aesEncrypt;
|
||
|
|
decodeHex: typeof decodeHex;
|
||
|
|
getValidSecret: typeof getValidSecret;
|
||
|
|
remove0x: typeof remove0x;
|
||
|
|
};
|