hd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: CC0-1.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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