Before
Three chains, a server and a signing network between a proof and a payment.
After
The escrow calls proofCount() itself. Nothing to relay, nothing to sign.
LIVE ON EVM · PROOF-GATED ESCROW
A smart contract holds the ETH. Every storage proof written on-chain releases one chunk to the provider, and whatever stays unproven at the deadline goes back to the client.
How it works
The escrow reads the proof count straight from the verifier on the same chain, so payment lands in the same step as the proof.
The storage provider registers a proof set on the PDP verifier and shares its ID with the client.
verifier.createProofSet()
The deal is rejected unless the SP owns that proof set. The ETH is split evenly across chunks.
escrow.createDeal(sp, proofSetId, chunks, duration, { value })Every proof made after the deal starts unlocks one chunk. Anyone can call claim; the ETH only ever goes to the SP.
verifier.submitProof(proofSetId) escrow.claim(dealId)
Once the deadline passes, claim stops working and refund sends every unpaid chunk back to the client.
escrow.refund(dealId)
The first version bridged Filecoin to Starknet through a relay and a Lit signature. Most bugs found in review lived in that bridge. Putting both on one chain deleted it.
Before
Three chains, a server and a signing network between a proof and a payment.
After
The escrow calls proofCount() itself. Nothing to relay, nothing to sign.
Permissionless
The money can only go to the deal's SP, so it does not matter who calls.
Deadline
Contract
Four functions, no owner, no pause switch, no upgrade proxy. State changes before ETH moves, and each proof can be claimed once.
1function createDeal(address sp, uint256 proofSetId,2 uint64 numChunks, uint64 slaDuration)3 external payable returns (uint256 dealId);45function claim(uint256 dealId) external; // anyone6function refund(uint256 dealId) external; // after deadline78function getDeal(uint256 dealId)9 external view returns (Deal memory);
Runs on a local Hardhat chain or any EVM network