package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Functions

DecryptKey decrypts a key from a JSON blob, returning the private key itself.
EncryptKey encrypts a key using the specified scrypt parameters into a JSON blob that can be decrypted later on.
Keccak256 calculates and returns the Keccak256 hash of the input data.
NewKey generates a new random key.
NewKeyFromBLS creates a new keystore Key type using a BLS private key.

# Constants

LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB memory and taking approximately 100ms CPU time on a modern processor.
LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB memory and taking approximately 100ms CPU time on a modern processor.

# Variables

ErrDecrypt is the standard error message when decryption is a failure.

# Structs

Key is the object that stores all the user data related to their public/secret keys.
Keystore defines a keystore with a directory path and scrypt values.