slip0010

package
v0.0.0-...-57e7ab3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CURVE_ED25519   string = "ed25519 seed"
	CURVE_SECP256K1        = "Bitcoin seed"
	CURVE_NIST256P1        = "Nist256p1 seed"
)

Variables

This section is empty.

Functions

func GetCurveKeyPair_Ed25519

func GetCurveKeyPair_Ed25519(key []byte) ([]byte, []byte, error)

func MnemonicToSeed

func MnemonicToSeed(mnemonic string) ([]byte, error)

Types

type ExtendedKey

type ExtendedKey struct {
	PrivateKey      []byte
	ChainCode       []byte
	CurvePrivateKey []byte
	CurvePublicKey  []byte
	PublicKey       []byte
	Fingerprint     []byte
	ParentKey       *ExtendedKey
}

func CKD

func CKD(curve string, xpar *ExtendedKey, i uint32) (xchd *ExtendedKey, err error)

func DeriveAccount

func DeriveAccount(curve string, path *bip32path.Bip32Path, xmaster *ExtendedKey) (xchd *ExtendedKey, err error)

func ExtendKey

func ExtendKey(xpar *ExtendedKey, key []byte, chainCode []byte) (*ExtendedKey, error)

func GenerateMasterKey

func GenerateMasterKey(curve string, seed []byte) (xmaster *ExtendedKey, err error)

Jump to

Keyboard shortcuts

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