testutils

package
v0.1.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEngineExecution

func AssertEngineExecution(t *testing.T, testNum int, valid bool,
	newEngine func() (*txscript.Engine, error))

AssertEngineExecution executes the VM returned by the newEngine closure, asserting the result matches the validity expectation. In the case where it doesn't match the expectation, it executes the script step-by-step and prints debug information to stdout.

func CreateKey

func CreateKey(index int32) (*btcec.PublicKey, input.Signer)

CreateKey returns a deterministically generated key pair. It returns the public key and mock signer for the key.

func TestSchnorrSignature

func TestSchnorrSignature(t *testing.T, seed string) *schnorr.Signature

TestSchnorrSignature creates a deterministic schnorr signature for tests. The seed string is hashed to create a private key, which signs a fixed test message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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