slip77

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slip77

type Slip77 struct {
	MasterKey []byte
}

func FromMasterKey

func FromMasterKey(masterKey []byte) (*Slip77, error)

FromMasterKey sets the provided master key to the returned instance of Slip77

func FromSeed

func FromSeed(seed []byte) (*Slip77, error)

FromSeed derives the master key from the given seed and uses it to create and return a new Slip77 instance

func (*Slip77) DeriveKey

func (s *Slip77) DeriveKey(script []byte) (*btcec.PrivateKey, *btcec.PublicKey, error)

DeriveKey derives a private key from the master key of the Slip77 type and a provided script

Jump to

Keyboard shortcuts

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