hdkey

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPath     = errors.New("invalid HD path")
	ErrInvalidMnemonic = errors.New("invalid BIP-39 mnemonic")
)

Functions

func BIP39ToAgeIdentity

func BIP39ToAgeIdentity(mnemonic, passphrase string) (*age.X25519Identity, error)

DeriveAgeIdentity creates age identity from BIP-32 path, BIP-39 mnemonic and passphrase

func Derive

func Derive(path, mnemonic, passphrase string) (*ecdsa.PrivateKey, error)

Derive creates ecdsa private key from BIP-32 path, BIP-39 mnemonic and passphrase

func DeriveAgeIdentity

func DeriveAgeIdentity(path, mnemonic, passphrase string) (*age.X25519Identity, error)

DeriveAgeIdentity creates age identity from BIP-32 path, BIP-39 mnemonic and passphrase

Types

This section is empty.

Jump to

Keyboard shortcuts

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