this is the "why" under every precompile I've been shipping —
LLM calls, secrets in a TEE, sovereign agents.
they don't re-run on every validator. they run once, in a TEE,
and deliver back. 🔮 #BuildOnRitual
just sat through Ritual Academy's first session and one idea reframed
how I think about blockchains entirely
why can't a normal blockchain just... run AI?
(slide credit: Ugur Sen, from the session)
@ritualnet's fix: stop forcing identical results.
run heavy/non-deterministic work inside a TEE (Intel SGX / AMD SEV) —
tamper-proof hardware — and check *consistency* instead of re-running.
deterministic = light path. AI = heavy path. both on one chain.
but an LLM? forward_pass(x) on different GPUs gives
0.8841 vs 0.8842 vs 0.8840
floating-point math isn't associative + GPUs schedule threads
differently → results diverge → block REJECTED ❌
every validator re-runs each tx and the results MUST match.
that's what separates honest nodes from malicious ones.
transfer(10) → 0xABC on every machine ✅ block accepted
built on @ritualnet this week
⏰ contract that wakes itself up — no cron, no backend
🔐 authenticated API call with key hidden in TEE
next: sovereign agent 🔮 #BuildOnRitual
this is the part that hooked me. been shipping precompiles one by one
on testnet — last one let a contract call an authenticated API with the
key sealed in the TEE. a sovereign agent is the same idea, taken all
the way: it holds its own keys and answers to no one
AI agents today can act, but they can't own.
Every "autonomous" agent still routes its money through a human, a keeper, or a multisig. In each case something other than the agent has to act for the money to move.
On Ritual, your agent answers to no one ❖
We're building the next generation of Ritual developers.
With 8 sessions, 3 bootcamps & Live whitepaper reads, we are building real builders.
Ritual Academy is here🧵
a smart contract just called a private, API-key-gated endpoint —
and the key NEVER touched the chain. 🔮
on-chain you only see an encrypted blob + a placeholder.
the real key is decrypted & used inside the TEE. one tx.
HTTP 200 ✅ @ritualnet
@ritualnet that's it — a contract that reads the real internet, trustlessly.
the HTTP precompile is just the start (there's LLM, ONNX, image,
scheduler too). go build 🔮 @ritualnet
you can deploy a smart contract that calls the LIVE internet
from on-chain — on @ritualnet — in about 5 minutes.
here's the whole thing, start to finish 🧵👇
@ritualnet 4/ run it (1 min)
call the function → the contract hits CoinGecko from inside the
TEE and writes the price on-chain. one tx. verify on the explorer:
https://t.co/DIgLym45W2
@ritualnet 2/ the contract (2 min)
a contract that fetches a live ETH price via the HTTP precompile
(0x0801) — no oracle, no backend. the chain calls the API itself: