bip32

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TssKey

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

support secp256k1 derived, not support ed25519

func NewTssKey

func NewTssKey(shareI *big.Int, publicKey *curves.ECPoint, chaincode string) (*TssKey, error)

NewTssKey shareI is optional

func (*TssKey) NewChildKey

func (tssKey *TssKey) NewChildKey(childIdx uint32) (*TssKey, error)

NewChildKey like bip32 non-hardened derivation

func (*TssKey) PrivateKeyOffset

func (tssKey *TssKey) PrivateKeyOffset() *big.Int

PrivateKeyOffset child share key offset, accumulative

func (*TssKey) PublicKey

func (tssKey *TssKey) PublicKey() *curves.ECPoint

PublicKey child publicKey

func (*TssKey) ShareI

func (tssKey *TssKey) ShareI() *big.Int

ShareI child share key

Jump to

Keyboard shortcuts

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