Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScryptN = 1 << 18 ScryptP = 1 )
Scrypt common parameter
View Source
const (
// Version keystore version
Version = 1
)
Variables ¶
This section is empty.
Functions ¶
func EncryptKey ¶
EncryptKey encrypts a key using the specified scrypt parameters into a json passphrase -> script function -> decryption key decryption key + private key -> aes-128-ctr algorithm -> encrypted private key
Types ¶
type Key ¶
type Key struct { Address common.Address // we only store privkey as pubkey/address can be derived from it // privkey in this struct is always in plaintext PrivateKey *ecdsa.PrivateKey }
Key private key info for wallet
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.