- Local (fast, 1 epoch = 1 s): double-click
poc/Start demo.command. Steps below. - On Filecoin Calibration (real public test network, 1 epoch = 30 s, each step 30–60 s): in Terminal,
cd poc && node start.mjs --calibnet, open http://localhost:8080, click Use the demo wallet (or Connect MetaMask). Same steps; the client's files are already stored (data set #37109). Every transaction id opens on Filfox — show one to prove it is real.
- In Finder, open
foc-compute/pocand double-clickStart demo.command. A Terminal window opens; leave it open. It starts Docker if needed, starts a fresh local chain, installs the contracts, and opens the page at http://localhost:8080. - Wait until the page shows "local chain · block …" at the top right.
- Share your screen (the browser window).
To stop afterwards: close the Terminal window. Every start is a fresh chain: balances back to 5 luca_usdfc, no jobs.
0 · The setup (15 s). "Everything here runs on a local blockchain on my laptop, with the real FOC contracts, the same versions as on calibnet and mainnet: Filecoin Pay, PDP, Warm Storage. Plus our ComputeService contract. The money is a test token, luca_usdfc. The storage provider on the right already holds my data set: four files, real PDP pieces. It's a real program that runs jobs in containers next to my files. Proofs of possession are not run yet: the demo provider does not run a prover; real proofs can be added later."
1 · Put money in (20 s). Click Deposit 2 luca_usdfc. "Four transactions: allow, deposit, let ComputeService open payments for me within limits I set, and let providers add job results to my data set, but only while I have a job open with them. Look at the log at the bottom: every line is a transaction."
2 · Pay for time (1 min). Tab Pay for time → Start the search assistant.
"The provider starts a service next to my data; billing starts only when it's ready. The safety margin is on hold, not spent."
Type revenue in the box → Ask. "This ran inside the provider's container, over my files."
Wait ~10 s, then Stop. "Payment stopped at that second. I paid exactly the seconds I used; the margin came back."
3 · Pay per job (1 min). Tab Pay per job → Build a search index of my files → Order. "The price is on hold. The provider runs the program, adds the result to my data set as a new piece, and only then gets paid." When it says delivered and paid, click search-index.txt (it's green on the right). "That's the output, stored as a PDP piece."
4 · What if the provider is late? (40 s). Choose Build a search index: see what happens if the provider misses the deadline → Order. Wait ~15 s until Get my money back appears, click it. "Deadline passed on-chain, no result, so the price comes back to me. Nobody has to trust anybody for that."
5 · What's real (20 s). Point at the footer. "Real: the FOC contracts, ComputeService, my signatures, the piece IDs, the containers, every transaction. Not run yet: PDP proofs (real proofs can be added later). Stand-ins: the token, and time runs fast: 1 second here is 30 seconds on Filecoin."
| Question | Answer |
|---|---|
| Is this on Filecoin? | Not yet: a local chain with the same contracts as on Filecoin. Next step is calibnet (the public test network), where ComputeService is the only new contract. |
| Who checks the result is correct? | Nobody, by design, like GPU clouds. Verification (e.g. Zen's zk proofs) can be added later as a job type. |
| How does the provider put results in my data set? | I attach ComputeService as my data set's authorizer in FWSS; it lets the provider add pieces only while I have a job open with it. Tested against the real FWSS v1.4.0. |
| What if my money runs out during a session? | Deposit only 0.03 and start a session: when money runs out, the provider stops and collects the safety margin, never more. |
| Relation to Rod's Compute over FOC? | Same architecture (compute where the data is, paid via Filecoin Pay); PieceWork drops redundant execution, so any workload runs, and adds pay-for-time sessions. |
- Page says The demo is not running: the Terminal window was closed; double-click
Start demo.commandagain. - Terminal says Docker is not running: open the Docker app, wait until it says running, start again.
- Terminal says port 8545 is already in use: an old demo is still running; close its Terminal window, or restart the Mac.