Proof-gated withdrawals for a mock Ethereum bridge.
Sekisho lets a Solidity contract act on an AI model’s verdict for a specific withdrawal. An accepted CLEAN verdict releases funds immediately. An accepted SUSPICIOUS verdict locks the withdrawal so the security council can review it.
Sekisho (関所) takes its name from the checkpoints on Edo-period Japanese highways.
Architecture · Technical specification · Demo scenarios · Roadmap
- Queue the withdrawal. The mock bridge queues an operator-posted withdrawal.
SekishoGatesnapshots features from contract state, including the amount as a share of the bridge balance, recent outflows, withdrawal count and whether the recipient is new. - Build the request. The Solidity and Python codecs build the same token sequence from those features and a fixed template. The request binds the verdict to the chain, gate address and withdrawal ID.
- Prove the verdict. Llama 4 Maverick produces a verdict token. FlashProve proves that the token is the committed model’s top choice on the prompt under the exact-match policy.
- Check the claim on Ethereum. The gate builds the expected claim digest from the request, model commitment, configuration and policy. Its configured verifier adapter checks the submission against that digest before the gate can act on the verdict. Claim format and verifier interface
Posting a full FlashProve proof as calldata would exceed Ethereum’s transaction gas budget. The gate uses the same interface for each verifier route. Proof size and gas analysis
| Route | What the contract checks |
|---|---|
| R1 · zkVM | A Groth16 proof that the zkVM guest ran the pinned FlashProve verifier and accepted the claim. |
| R2 · attested | A registered verifier service’s signature on the claim digest. This route trusts the signer to run the FlashProve check honestly. |
| Anvil · mock | A configured result for exercising the gate locally. |
The proof-backed route establishes how the verdict was produced. Detector accuracy, feature coverage and resistance to adversarial inputs require separate evaluation. The bridge uses a mock operator and is intended as a demonstration with simulated funds. Trust boundaries · Classifier evaluation
| Scenario | Expected behavior |
|---|---|
| D1 · Ordinary withdrawal | An accepted CLEAN verdict releases funds in the verdict transaction. |
| D2 · Suspicious withdrawal | An accepted SUSPICIOUS verdict locks the withdrawal for seven days from submission and emits a Locked event. The council can cancel it or release it early. |
| D3 · Invalid or mismatched submission | The gate rejects it. The withdrawal stays pending. |
| D4 · Silent prover | After the verdict window, anyone can move the withdrawal to the slow path. Its unlock time is seven days from queueing. |
The demo design uses precomputed proofs to exercise the on-chain flow. Lock periods and transition rules come from the gate specification. Product requirements · State machine
| Path | Responsibility |
|---|---|
contracts/ |
Foundry project for the bridge, gate, codec, configuration and verifier adapters. |
pipeline/ |
Python pipeline that watches withdrawals, encodes requests, checks proofs and submits verdicts. |
wrapper/ |
Rust zkVM guest and host for the proof-backed route. |
app/ |
Web interface for withdrawals, monitoring, council actions and claim inspection. |
fixtures/ · scripts/ |
Scenario inputs, proof artifact manifest and deployment tooling. |
docs/ |
Requirements, specification, architecture, investigations and decision records. |
For the on-chain verifier tradeoffs, see the verifier route investigation. For the contract checks and their negative controls, see the binding checklist.
- FlashProve provides the inference proof system.
- Hallmark explores proofs of LLM answers and dedicated classifier verdicts.
- FlashProve WASM verifier and FlashProve Bend verifier are independent verifier builds.
- Verity is the Lean 4 smart contract framework considered for formal verification of the gate.