btc

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretKeyWIFPrefix = 0x80
)

Variables

This section is empty.

Functions

func GetTaprootAddress

func GetTaprootAddress(sk *secp.SecretKey,
	scriptRoot []byte) (taprootAddress string, err error)

GetTaprootAddress takes a signr secret key and generates the taproot secret and public keys for a generic spend, as can be used to embed a signature in the witness.

This reimplements the functionality in github.com/btcsuite/btcd/txscript/taproot.go except without using btcd and co.

func GetWIF

func GetWIF(sk *secp.SecretKey) (secKey string)

GetWIF converts the signr secret key to WIF format for importing into a bitcoin wallet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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