Documentation ¶
Index ¶
- func DeserializeWitnessSignature(serialized []byte) (wire.TxWitness, error)
- func GetSha256(data []byte) (hash []byte)
- func GetTagSha256(data []byte) (hash []byte)
- func PayToTaprootScript(taprootKey *btcec.PublicKey) ([]byte, error)
- func PayToWitnessScript(pubkey *btcec.PublicKey) ([]byte, error)
- func PrepareTx(pkScript []byte, message string) (toSign *wire.MsgTx, err error)
- func SerializeWitnessSignature(witness wire.TxWitness) ([]byte, error)
- func SignMessage(privateKey *btcec.PrivateKey, address *btcutils.Address, message string) ([]byte, error)
- func SignSignatureP2WPKH(privKey *btcec.PrivateKey, message string) (witness wire.TxWitness, pkScript []byte, err error)
- func SignSignatureTaproot(privKey *btcec.PrivateKey, message string) (witness wire.TxWitness, pkScript []byte, err error)
- func VerifyMessage(address *btcutils.Address, signature []byte, message string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTagSha256 ¶
func PayToTaprootScript ¶
PayToTaprootScript creates a pk script for a pay-to-taproot output key.
func PayToWitnessScript ¶
PayToWitnessScript creates a pk script for a pay-to-wpkh output key.
func SignMessage ¶
func SignSignatureP2WPKH ¶
func SignSignatureTaproot ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.