Skip to content
Lucid-ComputingPublic

About

Proof-gated bridge withdrawals: an AI model screens each one, and a Solidity contract acts only on a verified proof of its verdict.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Sekisho

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

How it works

  1. Queue the withdrawal. The mock bridge queues an operator-posted withdrawal. SekishoGate snapshots features from contract state, including the amount as a share of the bridge balance, recent outflows, withdrawal count and whether the recipient is new.
  2. 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.
  3. 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.
  4. 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

Verifier routes

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

Demo scenarios

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

Repository guide

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.

Related work

About

Proof-gated bridge withdrawals: an AI model screens each one, and a Solidity contract acts only on a verified proof of its verdict.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors