Multi-party trade settlement
This tutorial drives a delivery-vs-payment (DvP) settlement across two domains through the canonical Pipeline.Submit(GoalSettlement) path with a multi-party approval gate.
Run the demo
bash
cd examples/multi-party-trade
go run .What it demonstrates
GoalSettlementwith twoLegentries (one local, one cross-chain bridge)- Production
SettlementDispatcherwiring with realReservationManager,BridgeMessageDispatcher, and per-state settlement hooks - Separation-of-duties approval policy requiring 2-of-N signatures from the
board_memberrole - Trust-drift gate that invalidates the plan if any referenced TrustProfile degrades mid-flight
Source
The example main is at examples/multi-party-trade/main.go. The plan compilation, approval flow, and settlement dispatch are routed through the same code paths a production deployment would use.
Related
- Cross-domain bridge tutorial
- Approval policies cookbook
kermit-dvp-multichain— same shape against the Kermit testnet with Sepolia + Cosmos legs