hdwallet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BIP32PathString = "44'/4218'/%d'/%d'/%d'"

Registered coin types, https://github.com/satoshilabs/slips/blob/master/slip-0044.md BIP44 path scheme: m/purpose'/coin_type'/account'/change/address_index.

View Source
const MnemonicSeedSize = 64

24 words.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDWallet

type HDWallet struct {
	// contains filtered or unexported fields
}

func NewHDWallet

func NewHDWallet(protoParas *iotago.ProtocolParameters, mnemonic []string, passpharse string, accountIndex uint64, isChange bool) (*HDWallet, error)

func (*HDWallet) AddressSigner

func (hd *HDWallet) AddressSigner(index uint64) (iotago.AddressSigner, error)

func (*HDWallet) Ed25519AddressAndSigner

func (hd *HDWallet) Ed25519AddressAndSigner(index uint64) (*iotago.Ed25519Address, iotago.AddressSigner, error)

func (*HDWallet) Ed25519AddressFromIndex

func (hd *HDWallet) Ed25519AddressFromIndex(index uint64) (*iotago.Ed25519Address, error)

Jump to

Keyboard shortcuts

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