Expand description
Library to encrypt and decrypt keystores as per the Web3 Secret Storage Definition.
This is a fork of eth-keystore-rs which does not write to disc automatically so is easier to integrate with WASM and storage destinations other than the file system.
Structs§
- KeyStore
- Opaque type that represents an encrypted keystore based on the Web3 Secret Storage Definition.
Enums§
- KeyStore
Error - An error thrown when encrypting or decrypting keystores.
Functions§
- decrypt
- Decrypts an encrypted keystore using the provided
password
. - encrypt
- Encrypts the given private key using the Scrypt password-based key derivation function.
- new_
random - Creates a new keystore using a random 32 byte secret and the Scrypt key derivation function.