Versions in this module Expand all Collapse all v0 v0.60.1 Sep 27, 2024 Changes in this version + const Ed25519Type + const MultiType + const Secp256k1Type + const Sr25519Type + var ErrIntOverflowHd = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthHd = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupHd = fmt.Errorf("proto: unexpected end of group") + var Secp256k1 = secp256k1Algo + func ComputeMastersFromSeed(seed []byte) (secret [32]byte, chainCode [32]byte) + func DerivePrivateKeyForPath(privKeyBytes, chainCode [32]byte, path string) ([]byte, error) + type BIP44Params struct + Account uint32 + AddressIndex uint32 + Change bool + CoinType uint32 + Purpose uint32 + func CreateHDPath(coinType, account, index uint32) *BIP44Params + func NewFundraiserParams(account, coinType, addressIdx uint32) *BIP44Params + func NewParams(purpose, coinType, account uint32, change bool, addressIdx uint32) *BIP44Params + func NewParamsFromPath(path string) (*BIP44Params, error) + func (*BIP44Params) Descriptor() ([]byte, []int) + func (*BIP44Params) ProtoMessage() + func (m *BIP44Params) Marshal() (dAtA []byte, err error) + func (m *BIP44Params) MarshalTo(dAtA []byte) (int, error) + func (m *BIP44Params) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BIP44Params) Reset() + func (m *BIP44Params) Size() (n int) + func (m *BIP44Params) Unmarshal(dAtA []byte) error + func (m *BIP44Params) XXX_DiscardUnknown() + func (m *BIP44Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BIP44Params) XXX_Merge(src proto.Message) + func (m *BIP44Params) XXX_Size() int + func (m *BIP44Params) XXX_Unmarshal(b []byte) error + func (p BIP44Params) DerivationPath() []uint32 + func (p BIP44Params) String() string + type DeriveFn func(mnemonic string, bip39Passphrase, hdPath string) ([]byte, error) + type GenerateFn func(bz []byte) types.PrivKey + type PubKeyType string + type WalletGenerator interface + Derive func(mnemonic string, bip39Passphrase, hdPath string) ([]byte, error) + Generate func(bz []byte) types.PrivKey