Skip to Content
SilluDocs
Developers

Architecture

The pieces of Sillu, what each one may do, and what depends on what.

The pieces

TapeOut on X LayerSillu contracts on X Layerpaid lesson: tapeOut + OKBfree lesson: signed designtapeOutSponsoredbuy parts, pay BEMtapeout, pay 0.0013 OKBsubmitread lesson and testseval / stepissuecreated the processorpart incomefree reads: verify any chipLearner's browserRelay serverFabGraderLessonBookCredentialSilluTreasuryProcessor factorySillu processor, partsSillu processor, circuitsBEM token
ContractJobHolds moneyWho can change it
SilluTreasuryCreated the Sillu processor and is its creator for good. Forwards the processor's part income to one fixed payout address.Passes BEM throughNobody. No owner, no admin.
LessonBookThe list of lessons: pin counts, limits, and the tests a chip must pass, stored on chain.NoThe operator can add a lesson and retire one. A lesson can never be edited.
FabThe only door to a Sillu chip. Buys the parts, tapes out, records who made the chip, hands it over, and sends it to the Grader.A BEM float, an OKB float, OKB incomeThe operator sets prices, which lessons are free, the daily free cap, the relay address and a ceiling on one chip's BEM cost, can pause it, and can withdraw income and float. It cannot change who made a chip.
GraderRuns a chip against its lesson's tests on chain and records the result. Marks the first chip of each design. Keeps the smallest passing chip per lesson.NoNobody. A result, once written, stays.
CredentialOne token per learner per lesson passed, which cannot be moved.NoNobody. Only the Grader can issue, and nothing can revoke.

None of the five can be upgraded. Their addresses are fixed into each other when they are deployed: the Grader's constructor checks that the Credential names it, and the Fab's checks that the Grader names it. A change of rules means new contracts beside the old ones, whose records stay valid.

What depends on what

CredentialGraderLessonBookFabTapeOut circuitsTapeOut partsBEM tokenSilluTreasuryTapeOut factory

Read an arrow as "needs". The Credential trusts only the Grader. The Grader trusts only the Fab for who made a chip, and TapeOut for what the chip computes. The Fab and the Grader are deployed as a pair that name each other, so neither can be swapped out from under the other.

The path of one lesson through these pieces, step by step, is drawn in How it works.

The relay

The relay exists only for the free lessons. It checks who is asking, then submits the learner's signed design and pays the gas. It holds no power over results: it cannot name a chip's maker, pass a chip or move the float. The paid path does not touch it.

It is a Cloudflare Worker. For each request it checks the sign-in tokens against the sign-in provider's published keys, recovers the signer of the design, requires that signer to be a wallet of the signed-in learner, counts the request per learner, per wallet and per network address, checks every condition the Fab will check, simulates the call, and only then sends it from its own wallet, one transaction at a time. Any failure answers a fixed code and sends nothing.

EndpointWhat it does
POST /v1/free-tape-outHeaders Authorization: Bearer <access token> and privy-id-token. Body { design, signature, netlist }. Answers { txHash, circuitId } once mined, or { error: CODE }.
GET /v1/health200 when the chain endpoint and both counters answer.

The website

The site is a static export: plain files with no server behind them, so it can be published on TapeOut's DeWEB. Every number it shows is read from X Layer by the reader's browser.

PageWhat it readsWhat it writes
A lessonThe lesson and its tests from the LessonBook; the price and free tries from the Fab; the signed-in wallet's passed chips, which become the blocks it may placeA signed design to the relay (free), or Fab.tapeOut with the price (paid); Grader.grade for a sampled lesson
The courseEvery lesson, its price and whether it is free; for a signed-in wallet, the chips it madeNothing
VerifyA wallet's passes, the chips and their wiring, the lesson's tests, then eval or step to run the chipNothing

Money

FlowCoinFromTo
Lesson price, paid lessonsOKBLearnerThe Fab: 0.0013 goes on to TapeOut as the tape-out fee, the rest is Sillu's income
Fee per parts purchase, 0.01 BEMBEMThe Fab's BEM floatTapeOut, which burns half
Part price, one base unit per partBEMThe Fab's BEM floatSilluTreasury, then the payout address
Tape-out fee on free lessons, 0.0013 OKBOKBThe Fab's OKB floatTapeOut
Gas on free lessonsOKBThe relay's own walletX Layer

The Fab keeps three ledgers that never mix: OKB income, OKB float and BEM float. A learner on the paid path holds only OKB. A learner on the free path holds nothing. Income and float can leave only to one payout address fixed when the Fab was deployed.

On this page