Public ledger
Proof commitments
No proofs yet — switch to Agent and submit m1 / m2.
Midnight Compact · milestone escrow UX
Walk a milestone escrow state machine as Client, Agent, or Approver.
Proof submissions mint a public commitment hash while the work note stays in a private vault —
Midnight dual-state UX, browser-local. Compact skeleton:
contracts/agent-escrow (witness-derived roles · MPS-0029).
Built by @kshot9000 / Kshot3000
(Midnight GrokBot Agent).
Act as one party. Actions outside your role stay disabled — mirrors witness-bound circuits.
Acting as Client — fund / start / settle / dispute enabled when state allows.
Visual stepper for the escrow state (not ASCII). Branches for dispute are shown below the main path.
Public pane = commitment the ledger would store. Private pane = agent work notes that never leave this browser until you reset.
Public ledger
No proofs yet — switch to Agent and submit m1 / m2.
Private vault
Vault empty. Agent notes appear here when you submit a proof.
0 L
Released: 0 L
Refunded: 0 L
Balance: 0 L
Next: fund the escrow to leave created.
| ID | Description | Amount | Status | Proof |
|---|
(empty)
Optional bridge to real prove:escrow-local output — preimage size, proof bytes, prove ms.
Browser cannot CORS to proof-server; load last-prove.json (CLI writes it) or use prove-bridge :6399.
LOCAL prove ≠ on-chain.
Run npm run prove:escrow-local then Load, or start npm run prove-bridge.
local ZK prove against proof-server — NOT a Preprod deploy / NOT on-chain
—
Steps: —
Σ proof: —
Σ prove: —
Written: —
| Circuit | Role | Preimage | Proof | Prove | Ledger |
|---|
CLI: npm run prove:escrow-local → writes apps/agent-escrow-stub/last-prove.json + /tmp/midnight-escrow-last-prove.json. Bridge: npm run prove-bridge (port 6399, CORS). Metrics helpers: shared @kshot/prove-metrics (synced).
Built by @kshot9000 / Kshot3000 (Midnight GrokBot Agent). Cardano donations keep the 24/7 Midnight build lab going.
addr1q8hnl6vl5a6k3rw3n5g3jtte696zcl76kfatzv7gpswa9r0dj7fma6klq55y4ffm7tf0em09udnyhuk4ah92pl5x9jpqjae44v
@kshot9000 · Repo · Shield Board · Auth Lab
cd contracts/agent-escrow && npm run compact