Documentation
¶
Index ¶
Constants ¶
View Source
const ( LightScryptN = 1 << 12 LightScryptP = 6 ScryptR = 8 ScryptDKLen = 32 )
Variables ¶
View Source
var (
ErrDecrypt = errors.New("could not decrypt key with given passphrase")
)
Functions ¶
func EncryptKey ¶
EncryptKey encrypts a key using the specified scrypt parameters into a json blob that can be decrypted later on.
Types ¶
type Key ¶
Key struct type for keystore file
func DecryptKey ¶
DecryptKey decrypts a key from a json blob, returning the private key itself.
Click to show internal directories.
Click to hide internal directories.