bip322

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSha256

func GetSha256(data []byte) (hash []byte)

func GetTagSha256

func GetTagSha256(data []byte) (hash []byte)

func PrepareTx

func PrepareTx(pkScript []byte, message string) (toSign *wire.MsgTx, err error)

func SignSignatureP2WPKH

func SignSignatureP2WPKH(pkey, message string) (witness wire.TxWitness, pkScript []byte, err error)

func SignSignatureTaproot

func SignSignatureTaproot(pkey, message string) (witness wire.TxWitness, pkScript []byte, err error)

func VerifySignature

func VerifySignature(witness wire.TxWitness, pkScript []byte, message string) bool

VerifySignature signature: 64B, pkScript: 33B, message: any

Types

This section is empty.

Jump to

Keyboard shortcuts

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