Documentation ¶
Index ¶
- func Bip39GenMnemonic(size int) (string, error)
- func Bip39MnemonicToSeed(mnemonic string, password string) ([]byte, error)
- func DcrMnemonicToSeed(words []string) ([]byte, error)
- func DcrMultiPubkeyToAddress(netId [2]byte, nRequired int, keys [][]byte) (string, error)
- func DcrPubkeyToAddress(key []byte, netId [2]byte) string
- func DcrSeedToMnemonic(seed []byte) string
- func ExtendKeyB58ToPubkey(extendKeyB58Str string, children ...uint32) ([]byte, error)
- func MnemonicFromSeed(seedStr string) (string, error)
- func MultiPubkeyToAddress(netId byte, nRequired int, keys ...[]byte) (string, error)
- func PathFromMnemonic(mnemonic string, pathStr string) (string, error)
- func PathFromSeed(seedStr string, pathStr string) (string, error)
- func PubkeyToAddress(key []byte, netId byte) string
- func SeedToPubKey(seed []byte, purpose uint32, coinType uint32, account uint32, change uint32, ...) ([]byte, error)
- type DcrNetWorkParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bip39GenMnemonic ¶
func Bip39MnemonicToSeed ¶
func DcrMnemonicToSeed ¶
DecodeMnemonics returns the decoded value that is encoded by words. Any words that are whitespace are empty are skipped.
func DcrMultiPubkeyToAddress ¶
func DcrPubkeyToAddress ¶
func DcrSeedToMnemonic ¶
dcr 的助记词跟种子的转换可以互逆,没有遵守 bip39 规范
func ExtendKeyB58ToPubkey ¶
return compressed ecc pubkey or children ecc pubkey compressed from an extended key(support public or private) base58-encoded
func MnemonicFromSeed ¶
func MultiPubkeyToAddress ¶
func PubkeyToAddress ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.