Documentation ¶
Index ¶
Constants ¶
View Source
const DERIVATION_PATH = "m/44'/60'/0'/0/%d"
Variables ¶
This section is empty.
Functions ¶
func NewMnemonic ¶
NewMnemonic generates a new HD Wallet mnemonic phrase
Types ¶
type Wallet ¶
type Wallet struct {
*hdwallet.Wallet
}
Wallet is a wrapper around `hdwallet`
func New ¶
New generates a new HD Wallet using the given password for BIP-39 seed, and randomly generated mnemonic phrase
func NewFromMnemonic ¶
NewFromMnemonic generates a new HD Wallet using the given mnemonic phrase
func NewFromMnemonicAndPassword ¶
NewFromMnemonicAndPassword generates a new HD Wallet using the given password for BIP-39 seed, and mnemonic phrase
func NewFromPassword ¶
NewFromPassword generates a new HD Wallet using the given password for BIP-39 seed, and randomly generated mnemonic phrase
func (*Wallet) AccountForIndex ¶
AccountForIndex creates a public/private key pair at the given index of the derivation path, and returns the account
Click to show internal directories.
Click to hide internal directories.