HDWallet

package
v0.0.0-...-fe388b3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMnemonic

func GenerateMnemonic() string

func GenerateSeed

func GenerateSeed(mnemonic string, passphrase string) string

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

func NewHDWalletFromSeed

func NewHDWalletFromSeed(seed string) *HDWallet

func (*HDWallet) Derive

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

func (*HDWallet) DerivePath

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

Jump to

Keyboard shortcuts

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