Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(value, passphrase string) (*hdkeychain.ExtendedKey, string, error)
Decrypt decrypts a key encrypted with Encrypt
func Encrypt ¶
func Encrypt(key *hdkeychain.ExtendedKey, keyPath, passphrase string) (string, error)
Encrypt encrypts an HD priv key using a user-provided secret into a string We use SCrypt256 for key derivation and AES-CBC-PKCS7 for encryption. The returned string has information about version, derivation path, scrypt and AES parameters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.