HDWallet

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMnemonic

func GenerateMnemonic() (string, error)

func GenerateSeed

func GenerateSeed(mnemonic string, passphrase string) (string, error)

func IsMnemonic

func IsMnemonic(mnemonic string) bool

Types

type HDWallet

type HDWallet struct {
	RootXprivKey bip32.XPrv
	XPrivKey     bip32.XPrv
	Path         string
	Seed         []byte
	Mnemonic     string
	Passphrase   string
	Entropy      string
}

func NewHDWalletFromMnemonic

func NewHDWalletFromMnemonic(mnemonic string, passphrase string) (*HDWallet, error)

func NewHDWalletFromSeed

func NewHDWalletFromSeed(seed string) (*HDWallet, error)

func (*HDWallet) Derive

func (hd *HDWallet) Derive(index uint32, hardened bool) *HDWallet

func (*HDWallet) DerivePath

func (hd *HDWallet) DerivePath(path string) (*HDWallet, error)

Jump to

Keyboard shortcuts

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