wallet

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrvKeyFromHDWallet

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

func GetPrvKeyFromMnemonicAndHDWPath

func GetPrvKeyFromMnemonicAndHDWPath(mnemonic, path string) (*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