bip32

package
v0.0.0-...-516970c Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidChild = errors.New("invalid child")
	ErrInvalidKey   = errors.New("invalid key")
)

Functions

This section is empty.

Types

type ExtendedKey

type ExtendedKey struct {
	// contains filtered or unexported fields
}

func Key

func Key(masterKey *ecdsa.PrivateKey, idx uint32) (*ExtendedKey, *types.Salt, error)

func PrivKeyToExtKey

func PrivKeyToExtKey(key *ecdsa.PrivateKey, chainCode []byte) (*ExtendedKey, error)

func PubKeyToExtKey

func PubKeyToExtKey(pub *ecdsa.PublicKey, chainCode []byte) (*ExtendedKey, error)

func (*ExtendedKey) Child

func (k *ExtendedKey) Child(idx uint32) (*ExtendedKey, error)

func (*ExtendedKey) PrivkeyBytes

func (k *ExtendedKey) PrivkeyBytes() ([]byte, error)

func (*ExtendedKey) PubkeyBytes

func (k *ExtendedKey) PubkeyBytes() []byte

func (*ExtendedKey) ToPrivkey

func (k *ExtendedKey) ToPrivkey() (*ecdsa.PrivateKey, error)

func (*ExtendedKey) ToPubkey

func (k *ExtendedKey) ToPubkey() (*ecdsa.PublicKey, error)

Jump to

Keyboard shortcuts

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