hd

package
v0.0.0-...-df8d4fd Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvaDerivationPath = accounts.DerivationPath{0x80000000 + 44, 0x80000000 + 9000, 0x80000000 + 0, 0, 0}
View Source
var EthDerivationPath = accounts.DerivationPath{0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0, 0}

Functions

This section is empty.

Types

type HDKey

type HDKey struct {
	PK   *ecdsa.PrivateKey
	Path string
}

func DeriveHDKeys

func DeriveHDKeys(mnemonic string, path accounts.DerivationPath, numKeys int) ([]HDKey, error)

func (HDKey) AvaAddr

func (h HDKey) AvaAddr(chain string, hrp string) string

func (HDKey) AvaPrivKey

func (h HDKey) AvaPrivKey() string

func (HDKey) EthAddr

func (h HDKey) EthAddr() string

func (HDKey) EthPrivKey

func (h HDKey) EthPrivKey() string

Jump to

Keyboard shortcuts

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