Documentation ¶
Index ¶
- func Bip39SuggestWords(v string) []string
- func Eth2Wei(eth *big.Float) *big.Int
- func GWei2Eth(gwei *big.Float) *big.Float
- func GWei2Wei(gwei *big.Float) *big.Int
- func MustParseDerivationPath(path string) accounts.DerivationPath
- func NewEntropy(bits int) ([]byte, error)
- func NewMnemonic(bits int) (string, error)
- func NewMnemonicFromEntropy(entropy []byte) (string, error)
- func NewSeed() ([]byte, error)
- func NewSeedFromMnemonic(mnemonic string, passOpt ...string) ([]byte, error)
- func ParseDerivationPath(path string) (accounts.DerivationPath, error)
- func Wei2Eth(wei *big.Int) *big.Float
- func Wei2GWei(wei *big.Int) *big.Float
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bip39SuggestWords ¶
func MustParseDerivationPath ¶
func MustParseDerivationPath(path string) accounts.DerivationPath
MustParseDerivationPath parses the derivation path in string format into []uint32 but will panic if it can't parse it.
func NewEntropy ¶
NewEntropy returns a randomly generated entropy.
func NewMnemonic ¶
NewMnemonic returns a randomly generated BIP-39 mnemonic using 128-256 bits of entropy. bitSize has to be a multiple 32 and be within the inclusive range of {128, 256}
func NewMnemonicFromEntropy ¶
NewMnemonicFromEntropy returns a BIP-39 menomonic from entropy.
func NewSeedFromMnemonic ¶
NewSeedFromMnemonic returns a BIP-39 seed based on a BIP-39 mnemonic.
func ParseDerivationPath ¶
func ParseDerivationPath(path string) (accounts.DerivationPath, error)
ParseDerivationPath parses the derivation path in string format into []uint32.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.