Versions in this module Expand all Collapse all v1 v1.1.0 Sep 30, 2020 v1.0.0 Aug 7, 2020 Changes in this version + const BIP44Prefix + const Ed25519Type + const FullPath + const PartialPath + const Secp256k1Type + const Sm2Type + const Sr25519Type + var Secp256k1 = secp256k1Algo + var Sm2 = sm2Algo + func ComputeMastersFromSeed(seed []byte) (secret [32]byte, chainCode [32]byte) + func DerivePrivateKeyForPath(privKeyBytes [32]byte, chainCode [32]byte, path string) ([32]byte, error) + type BIP44Params struct + Account uint32 + AddressIndex uint32 + Change bool + CoinType uint32 + Purpose uint32 + type DeriveFn func(mnemonic string, bip39Passphrase, hdPath string) ([]byte, error) + type GenerateFn func(bz []byte) crypto.PrivKey + type PubKeyType string + type SignatureAlgo interface + Derive func() DeriveFn + Generate func() GenerateFn + Name func() PubKeyType + func NewSigningAlgoFromString(str string) (SignatureAlgo, error) + type WalletGenerator interface + Derive func(mnemonic string, bip39Passphrase, hdPath string) ([]byte, error) + Generate func(bz []byte) crypto.PrivKey