wallet

package
v1.5.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrivKeyWithMnemonic

func GetPrivKeyWithMnemonic(mnemonic, path string) (*ecdsa.PrivateKey, error)

func GetPrvKeyFromHDWallet

func GetPrvKeyFromHDWallet(seed []byte, hp *HDPathLevel) (*ecdsa.PrivateKey, error)

Types

type HDPathLevel

type HDPathLevel struct {
	Purpose  uint32
	CoinType uint32
	Account  uint32
	Change   uint32
	Index    uint32
}

func ParseHDPathLevel

func ParseHDPathLevel(path string) (*HDPathLevel, error)

func (*HDPathLevel) String

func (hp *HDPathLevel) String() string

func (*HDPathLevel) Validate

func (hp *HDPathLevel) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL