Versions in this module Expand all Collapse all v0 v0.1.0 Apr 29, 2024 Changes in this version + func DerivePrivateKey(seed []byte, chainParams *chaincfg.Params, path string) (*hdkeychain.ExtendedKey, error) + func GetPrivateKeyFromHex(privateKeyHex string) (*secp256k1.PrivateKey, error) + func GetPrivateKeyFromMnemonic(mnemonic string, password string, chainParams *chaincfg.Params, path string, ...) (*secp256k1.PrivateKey, error) + func GetPrivateKeyFromSeed(seed []byte, chainParams *chaincfg.Params, path string, index int64) (*secp256k1.PrivateKey, error) + func GetSeedFromMnemonic(mnemonic string, password string) ([]byte, error) + func PrivateKeyToHex(privateKey *secp256k1.PrivateKey) (string, error) + type Account struct + func NewAccountFromMnemonic(mnemonic string, password string, index int64) (*Account, error) + func NewAccountFromSeed(seed []byte, index int64) (*Account, error) + func (Self *Account) Index() int64 + func (Self *Account) Seed() []byte + type IAccount interface + Chain func() common.Chain + GetAddress func() (string, error) + GetPrivateKey func() (*secp256k1.PrivateKey, error)