Skip to content

v0.4.0

Latest

Choose a tag to compare

@blake-pro blake-pro released this 20 Nov 05:52
68cc00b

v0.4.0 adds BABE-based Groth16 disputes with deferred public-input binding, upgrades to Ziren 2.0, and makes peg-in, graph setup, and peg-out settlement restartable. It also adds health and swap queries, Fleet GPU proving, and local end-to-end tests.

Protocol upgrades

  • BABE-based Groth16 disputes with deferred binding. The Verifier garbles circuits with static public inputs, and the Operator checks the cut-and-choose openings and soldering proof, then commits the dynamic input in its peg-out Assert. Disputes use Verifier-Assert, Wrongly-Challenged, and Disprove. Setup binds endorsements to keys and peers, validates graph parameters, and requires Committee presignatures for finalized graphs. (#443, #478, #501, #521, #522, #529, #549) GOAT's BABE extension
  • Bitcoin transaction and dispute rules. Tighten timelock, Commit, and Assert checks. Require Committee authorization for Force-Skip, handle Kickoff and Watchtower challenges, post Verifier-Assert transaction IDs, and settle confirmed disproves on GOAT with the correct Disprove-X reward address. (#454, #492, #493, #496, #500, #526, #527)
  • Proof identity and withdrawal evidence. Recursive verification binds versioned Program IDs, verification keys, and upgrade checkpoints. Watchtower proofs bind to the genesis sequencer commitment. State Chain accumulates withdrawals from successful receipts in a Merkle Mountain Range (MMR), and Operator proofs verify inclusion for the specific Gateway address and graph ID. (#443, #459, #477, #497, #498, #541)
  • Transaction code in the workspace. Move Bitcoin connectors, builders, and signing into crates/goat and pin the upstream bitvm revision shared with GC. (#528)

New and updated features

  • RPC and monitoring. Add /v1/health for liveness and readiness, plus Swap escrow queries. Expose cancellation and abandonment heights, sender filtering, and withdrawal and challenge progress. Challenge and engine-debug endpoints require rpc-debug-endpoints. (#455, #476, #538, #546)
  • Peg-out and sequencer publishing tools. pegout supports single and batch runs, dry runs, skipping locked graphs, and per-graph errors. sequencer-set-publish reports failures. Remove bridge-out and update-db. (#443, #476, #547)
  • Proof Builder authorization and Fleet workers. Authorize signed requests by Operator graph ownership or Watchtower membership across multiple Gateways on one GOAT network. Fleet uses a dedicated GPU server, checks programs and keys at startup, and publishes artifacts before recording progress. (#443, #477, #541)
  • Localnet and operator tooling. Run two Committee nodes, an Operator, a Verifier, and a Watchtower on Bitcoin Regtest with Anvil or GOAT testnet3. Mocked proofs cover peg-in, Take-1, Take-2, disputes, restarts, outages, and peer isolation. Add logq, trace, and triage. (#476, #502, #519, #551)

Bug fixes

  • Peg-in validation and timeouts. Reject invalid or underfunded requests. Recheck missing data and wait for conflicting spends to confirm before discarding a peg-in on that basis. Apply cancellation and abandonment heights to unfinished work, and keep successful instances' Committee keys through the cancellation height. (#494, #512, #516, #530, #532, #542)
  • Settlement and rewards. Resume confirmed disprove settlement after backend delays and restarts. Verify indexed outcomes against Gateway state, check Operator keys for graph messages and rewards, and store the reward total once. (#500, #523, #524, #526, #543, #545)
  • Query results. Bind instance cursors as UUIDs. Fix graph filters and sort order, distinguish recorded graphs from started withdrawals, and reject malformed graph references. Read all Subgraph event pages before advancing the cursor. (#499, #505, #546, #551)
  • Deployment and release packaging. Fix Regtest and Testnet4 role startup, verify archive checksums when tools are available, check packaged binaries, and pin the Ziren toolchain for release and Docker builds. (#518, #537, #548)

Stability and performance

  • Durable execution. Persist events and commit state changes with their jobs and outgoing messages. Resume on restart, bound retries and waits, and match ACKs so senders stop retrying messages already retained by receivers. (#473, #476, #514, #544, #550)
  • Shorter SQLite transactions. Use WAL for file-backed databases and keep GOAT RPC and P2P calls out of write transactions. Release pooled connections before external calls, limit concurrent graph rebuilds, and serialize GOAT sends per signer. (#533, #534, #540)
  • Bounded network and RPC work. Enforce peer identity, replay protection, connection and queue limits, graph fetch budgets, and RPC request and pagination limits. Update libp2p to 0.57.1 and patch Subgraph tooling dependencies. (#476, #510, #515, #538, #553)
  • Proof queue recovery. Defer jobs missing inputs, retry recoverable failures, and report terminal failures. Keep one append-only Bitcoin header archive, recover from bad proof batches, and fetch State Chain witnesses in parallel. (#503, #525, #535, #536)
  • Indexer resilience. Wait for lagging indexers, stagger polling, and back off on HTTP 429 and 503. (#499, #552)
  • TLA+ protocol checks. CI explores transaction and event orderings within model bounds to check timelocks, disputes, settlement, graph admission, and event handling. Violations fail the CI job and produce counterexample traces for reproducing timing races. (#454, #492, #493, #499, #500, #501)
  • Regression coverage. Rust tests check transaction-graph structure and invariants. Localnet tests cover protocol and recovery paths with mocked proof verdicts. (#454, #476, #502, #551)