triplextest

command
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Triple-Endpoint Cross Test (examples/triplextest)

This integration test proves the Go implementation of the triple-endpoint fee-pool flow is internally consistent before porting to TypeScript.

Steps generated:

  1. Step 1 – Client funds a 2-of-3 multisig (client, server, escrow).
  2. Step 2 – Client builds a spend tx paying itself & server, attaches its signature.
  3. Step 3 – Server adds its signature → final tx ready for broadcast.

Files

File Role
fixture.json Input: hex privkeys, UTXO, fee, etc.
go_runner/main.go Orchestrates the 3 steps and prints their hex.

Usage

# deps installed (go 1.20+)
cd examples/triplextest

go run go_runner/main.go

Replace placeholder values in fixture.json with real ones before running. After execution you will get:

  • Step1 - Hex
  • Step2 (unsigned) - Hex
  • Step3 - Final Hex – broadcast-ready
  • NEW_UTXO json (client p2pkh output for next tests)

Validate Step3 on-chain; once confirmed correct we can replicate the same flow in TypeScript and add a Go↔TS comparator like txtest.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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