path

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingDerivationPath          = fmt.Errorf("missing derivation path")
	ErrInvalidRootPathLen             = fmt.Errorf(`invalid root path length, must be in the form m/purpose'/coin_type'`)
	ErrInvalidRootPath                = fmt.Errorf("root path must contain only hardended values")
	ErrRequiredAbsoluteDerivationPath = fmt.Errorf("path must be an absolute derivation starting with 'm/'")
	ErrMalformedDerivationPath        = fmt.Errorf("path must not start or end with a '/'")
)

Functions

This section is empty.

Types

type DerivationPath

type DerivationPath []uint32

DerivationPath is the data structure representing an HD path.

func ParseDerivationPath

func ParseDerivationPath(strPath string) (DerivationPath, error)

ParseDerivationPath converts a derivation path in string format to a DerivationPath type.

func ParseRootDerivationPath

func ParseRootDerivationPath(strPath string) (DerivationPath, error)

func (DerivationPath) String

func (path DerivationPath) String() string

Jump to

Keyboard shortcuts

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