bip32

package
v0.0.0-...-ec9b850 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	XPrv_Size       = 96
	SignatureLength = 64
)

Variables

This section is empty.

Functions

func MakePublicKey

func MakePublicKey(extendedSecret []byte) [crypto.PublicKeyLen]byte

Types

type PrivateKey

type PrivateKey []byte

type PublicKey

type PublicKey []byte

func (PublicKey) Hash

func (pub PublicKey) Hash() crypto.Ed25519KeyHash

type XPrv

type XPrv []byte

func NewXPrv

func NewXPrv(seed []byte) (XPrv, error)

func NormalizeBytesForce3rd

func NormalizeBytesForce3rd(bytes []byte) XPrv

func (XPrv) ChainCode

func (key XPrv) ChainCode() []byte

func (XPrv) Derive

func (key XPrv) Derive(index uint32) XPrv

func (XPrv) Public

func (key XPrv) Public() XPub

func (*XPrv) Sign

func (prv *XPrv) Sign(message []byte) [SignatureLength]byte

type XPub

type XPub []byte

func (XPub) ChainCode

func (pub XPub) ChainCode() PrivateKey

func (XPub) PublicKey

func (pub XPub) PublicKey() PublicKey

Jump to

Keyboard shortcuts

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