@iexec/dataprotector
Version:
This product enables users to confidentially store data–such as mail address, documents, personal information ...
28 lines (27 loc) • 819 B
TypeScript
/// <reference types="node" resolution-mode="require"/>
export declare function getFormattedKeyPair({ pemPublicKey, pemPrivateKey, }: {
pemPublicKey?: string;
pemPrivateKey?: string;
}): Promise<{
publicKey: string;
privateKey: string;
}>;
export declare function getOrGenerateKeyPair(): Promise<{
publicKey: string;
privateKey: string;
}>;
export declare function generateKeyPair(): Promise<{
publicKey: string;
privateKey: CryptoKey;
}>;
export declare function getCrypto(): Promise<{
crypto: Crypto;
CryptoKey: {
new (): CryptoKey;
prototype: CryptoKey;
};
} | {
crypto: import("crypto").webcrypto.Crypto;
CryptoKey: import("crypto").webcrypto.CryptoKeyConstructor;
}>;
export declare function privateAsPem(privateKey: CryptoKey): Promise<string>;