Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBIP32MasterKey ¶
func GenerateBIP32MasterKey(mnemonic, passphrase string) (masterPrivateKey, masterPublicKey string, err error)
GenerateBIP32MasterKey generates BIP32 root/master key with mnemonic and passphrase. mnemonic: mnemonic word list passphrase: salt
func GenerateChildKeyWithPath ¶
GenerateChildKeyWithPath generates child key with mnemonic, passphrase and derivation path. The derivationPath specification is defined by BIP32,BIP39,BIP44,BIP49,BIP84.... m / purpose' / coin_type' / account' / change / address_index MEW Ethereum derivation path: m/44'/60'/1'/0/0
func NewRandMnemonic ¶
NewRandMnemonic generates a string consisting of the mnemonic words for the given entropy. The Mnemonic specification is defined by BIP39. entropy:
128 bits -> 12 words 160 bits -> 15 words 192 bits -> 18 words 224 bits -> 21 words 256 bits -> 24 words
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.