Documentation
¶
Index ¶
- Constants
- func Create(name, pass string) (crypto.Account, error)
- func DevFunding(address string, amount uint64) error
- func Info(name, pass string) (models.Account, error)
- func Load(name, pass string) (crypto.Account, error)
- func LoadAccountFromFile(pass, path string) (crypto.Account, error)
- func SaveAccountToFile(acc crypto.Account, pass, path string) error
- type KeyData
- type KeyInfo
- type KeyStore
- type KeyType
Constants ¶
View Source
const DataId = "aes-256-cbc"
DataId is the encryption method used.
View Source
const KeyId = "scrypt"
KeyId is the key derivation method.
Variables ¶
This section is empty.
Functions ¶
func DevFunding ¶
Types ¶
type KeyInfo ¶
type KeyInfo struct { T string `json:"t"` S string `json:"s"` N uint64 `json:"n"` P uint64 `json:"p"` R uint64 `json:"r"` L uint64 `json:"l"` }
KeyInfo holds the key derivation values. S 32 (salt) N 2048 (cpu cost) R 8 (blocksize) P 1 (parallelize) l 32 (dklen)
Click to show internal directories.
Click to hide internal directories.