Documentation ¶
Index ¶
- func ComputeTaprootScript(t testing.TB, taprootKey *btcec.PublicKey) []byte
- func ParseRPCKeyDescriptor(t testing.TB, rpcDesc *signrpc.KeyDescriptor) keychain.KeyDescriptor
- func PubToKeyDesc(p *btcec.PublicKey) keychain.KeyDescriptor
- func RandBool() bool
- func RandBytes(num int) []byte
- func RandHash() chainhash.Hash
- func RandInt[T constraints.Integer]() T
- func RandOp(t testing.TB) wire.OutPoint
- func RandPrivKey(t testing.TB) *btcec.PrivateKey
- func RandPubKey(t testing.TB) *btcec.PublicKey
- func RandTxWitnesses(t testing.TB) wire.TxWitness
- func SchnorrKey(t testing.TB, pubKey *btcec.PublicKey) *btcec.PublicKey
- func SchnorrPubKey(t testing.TB, privKey *btcec.PrivateKey) *btcec.PublicKey
- func ScriptHashLock(t *testing.T, preimage []byte) txscript.TapLeaf
- func ScriptSchnorrSig(t *testing.T, pubKey *btcec.PublicKey) txscript.TapLeaf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeTaprootScript ¶
func ParseRPCKeyDescriptor ¶
func ParseRPCKeyDescriptor(t testing.TB, rpcDesc *signrpc.KeyDescriptor) keychain.KeyDescriptor
func PubToKeyDesc ¶
func PubToKeyDesc(p *btcec.PublicKey) keychain.KeyDescriptor
func RandInt ¶
func RandInt[T constraints.Integer]() T
RandInt makes a random integer of the specified type.
func RandPrivKey ¶
func RandPubKey ¶
func SchnorrKey ¶
func SchnorrPubKey ¶
func ScriptHashLock ¶
ScriptHashLock returns a simple bitcoin script that locks the funds to a hash lock of the given preimage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.