- dump(name, password, privateKey, nonce?, salt?, options?): Promise<Keystore>
Parameters
- name: string
- password: string | Uint8Array
- privateKey: string | Uint8Array
- nonce: Uint8Array = ...
- salt: Uint8Array = ...
Optional
options: Partial<{
cipher_params: {
nonce: string;
};
ciphertext: string;
kdf: "argon2id";
kdf_params: {
memlimit_kib: number;
opslimit: number;
parallelism: number;
salt: string;
};
secret_type: "ed25519";
symmetric_alg: "xsalsa20-poly1305";
}>
Returns Promise<Keystore>
Export private key to keystore secret-storage format.