dApp basics · Explainer
ROFL Mainnet Explained: Offchain Compute, Onchain Trust
ROFL is Oasis Protocol's framework for running heavy application logic offchain inside secure enclaves while keeping the results verifiable onchain. This guide explains how the pieces fit, what the 2025 mainnet launch changed, and what trust you still need to place in the hardware and code.
By the DappsAtlas editorial team · Updated

What is ROFL and why does it exist?
ROFL, short for Runtime OFfchain Logic, is a framework from the Oasis Protocol Foundation for running parts of an application outside the blockchain while keeping the results verifiable onchain.
The problem it targets is a familiar one. Blockchains are good at recording state and enforcing simple rules, but they are slow and costly when asked to do heavy computation. Running a complex model, a large data query or a long simulation directly inside smart contract code is often impractical.
Developers have usually handled this in one of two ways. They either rely on an oracle that delivers a single piece of external data, or they run logic on a server that users are asked to trust. Each option gives up something: oracles narrow the data to one feed, and servers ask users to take the operator's word for what ran.
ROFL takes a different route. The heavy work runs inside a secure environment, and the blockchain only needs to confirm that the agreed code produced the output. The core idea is simple to state: move the computation offchain, and keep the verification onchain.
For a reader new to the topic, the key takeaway is that ROFL is about computation, not only data. That distinction is what makes it worth understanding separately from oracle networks.
Why does offchain computation need onchain trust?
A blockchain is useful because every participant can check the same record. That property is what makes it hard to replace with a private database. The trade-off is that every node has to repeat work, so cost and speed limit what a contract can do.
Offchain computation promises to relax those limits. If a complex calculation runs elsewhere, the chain only has to process a small result. The catch is that the chain then has to trust that the result came from the correct calculation.
This is the central tension. Trusting a single server defeats the purpose of using a blockchain. Trusting a committee of reporters adds assumptions about who they are and how they are paid. ROFL aims for a middle path: the offchain code runs in an environment whose integrity can be checked, so the chain can verify a claim rather than accept a promise.
It helps to separate three questions. Did the right code run? Did it run on the input it claims? Did the output get delivered unchanged? A design that answers all three with evidence is more useful than one that answers them with reputation.
When you evaluate any offchain system, ask which of these questions the system answers cryptographically and which it leaves to operators. That question matters more than the marketing language around the system.
How do trusted execution environments work?
A trusted execution environment, often shortened to TEE, is a protected area of a processor. Code running inside it is isolated from the operating system and from the machine's administrator, at least in the threat model the hardware vendor describes. Several hardware families provide versions of this idea, and their security depends on the vendor's implementation and updates.
ROFL uses this isolation to run application logic offchain. The environment is meant to keep the program's memory and secrets away from the host that runs it. That is useful when the application handles keys, private inputs or data that should not be exposed to node operators.
TEEs are not magic. Researchers have published side-channel attacks against several enclave designs over the years, and hardware vendors have issued patches in response. A realistic view treats a TEE as a strong layer of defense that reduces risk, not as a guarantee that nothing can go wrong.
For a reader, the practical implication is that a ROFL-based application's security depends on three things at once: the enclave hardware, the software running inside it, and the update process for both. Each of these can be reviewed.
If you want to go deeper, look for the hardware platforms an application supports, the firmware versions it requires, and whether the project publishes a process for responding to newly discovered vulnerabilities.
How does onchain verification of an offchain result work?
The verification flow is what turns a TEE into something a blockchain can rely on. The exact details belong in the Oasis documentation, but the general sequence is stable enough to explain.
- The application's code is built and produces a measurement, a fingerprint that identifies exactly which code is running.
- The enclave produces an attestation, a signed statement from the hardware that describes the measurement and the environment it runs in.
- The attestation is checked against expected values, so the chain or the relevant contract can tell that the code is the approved version.
- The offchain component computes its result and submits it along with evidence that it came from the attested environment.
- The onchain contract verifies that evidence before acting on the result.
Each step narrows the trust placed in an operator. The contract does not need to know who runs the machine. It needs to know that a specific measurement, signed by an accepted hardware root, produced the output.
The flow also shows where things can break. If the expected measurement is updated carelessly, an unreviewed version could be accepted. If the hardware root is compromised, attestations lose their meaning. If the contract checks the wrong fields, a valid attestation might be used for the wrong purpose.
When reviewing a ROFL-based application, look for how it handles measurement updates, who can approve them and whether those approvals are visible onchain.
What did the 2025 ROFL mainnet launch change?
ROFL moved from development into mainnet during 2025. Press coverage from around July 2025 described the Oasis Protocol Foundation launching ROFL Mainnet, presenting the framework as a way to combine blockchain integrity with the processing power of offchain computation. That is the milestone most reports describe.
A mainnet launch is the start of live use, not a verdict on every application built on top. Readers should separate three things: the framework itself, the applications that use it, and the networks where those applications run. Each can change independently.
To check current status, start with the Oasis Protocol documentation and its official announcements. Look for the list of supported networks, the current version of the ROFL software, and any notices about upgrades or deprecations. Those sources change more often than general explainers like this one.
Because specifics such as supported chains, fees and enclave requirements can change, this guide avoids quoting figures that may be outdated. If a number matters to a decision, confirm it against the project's own documentation on the day you read it.
The lasting point is that ROFL is an infrastructure layer. Its value depends on the applications built with it, and those should be evaluated on their own terms.
What kinds of applications are built with ROFL?
The reason to build on a framework like ROFL is to make logic possible that would be too heavy or too exposed to run fully onchain. Developers tend to think about three broad categories of work.
- Computation-heavy logic, such as complex pricing, risk scoring or simulations that would cost too much to execute in a contract.
- Logic that handles private inputs, where the data should not be visible to the node operator or to the public chain.
- Logic that needs external information with stronger guarantees than a single data feed can give.
A useful test is whether the application would still make sense if its heavy step were replaced by a trusted server. If the answer is that users would have to accept the server's word, then a verifiable enclave may add real value. If the answer is that the feature works just as well onchain, the framework may not be needed.
The design also has to account for timing and cost. Offchain work is not free, and an application must still pay for the onchain verification and any data it writes back. Designers usually keep the onchain footprint small and move as much processing as they can offchain.
For users, the question to ask is what the application actually does with the verified result. A verified output is only as useful as the contract logic that acts on it.
How does ROFL compare with oracles and other offchain designs?
No design is free of trade-offs, and it helps to compare ROFL with the common alternatives. The table below is a simplified view, and real systems vary.
| Approach | Where computation runs | What you trust | Main limitation |
|---|---|---|---|
| Fully onchain contract | Blockchain | The chain's consensus | Cost and speed limit complexity |
| Oracle network | Offchain reporters | Reporter set and incentives | Narrow data feeds, collusion risk |
| Centralized server | One operator | The operator | Single point of trust and failure |
| ROFL-style enclave | Trusted execution environment | Hardware root, code measurement, update process | Depends on hardware security and correct verification |
The enclave approach moves trust from people to a combination of hardware and code. That is a meaningful improvement over a single server, but it is a different kind of trust, and it has its own failure modes.
The risks worth weighing include side-channel research against enclaves, mistakes in how contracts verify attestations, and the human processes around upgrades. A project with a strong technical design can still be weakened by a careless release.
For a decision about any specific application, compare it against the simpler option that would solve the same problem. If the simpler design is adequate, it may be the better choice.
How can a user evaluate a ROFL-based application before using it?
Users rarely see the enclave or the attestation directly. They see an application that claims to use verifiable offchain logic. Before relying on it, a few defensive checks help.
- Confirm the official source. Find the application through the project's own channels and the Oasis documentation rather than through a message or a search ad.
- Look for published audits and a clear description of what runs offchain and what runs onchain.
- Check how upgrades are handled. Look for an explanation of who can approve new code, whether changes are announced in advance and whether they are visible onchain.
- Review what the contracts accept. A verified result should only be used for the specific purpose the documentation describes.
- Keep your own keys secure, and never approve token permissions you do not understand.
It is also sensible to start with small amounts and to read the risk disclosures carefully. Many applications in this space involve financial exposure, and losses are possible even when the underlying technology works as designed.
Check local laws before using any financial application, since rules differ by jurisdiction and some products may not be available where you live. Only use services that are lawful where you are, and do not look for ways around access restrictions.
Finally, be cautious of anyone who describes an offchain system as risk-free. Verifiable does not mean infallible, and a responsible project will say so.
Where does this pattern fit in the wider DeFi landscape?
The clearest way to understand the offchain-plus-onchain pattern is to look at systems that already split work this way. CoW Swap is a useful example. It collects user orders, lets solvers compete offchain to find batch settlements, and then settles the chosen batch onchain. Users benefit from the offchain search and from the onchain settlement, but the trust assumptions differ from a ROFL-style enclave.
Comparing these designs side by side is more useful than picking a winner. Ask what is computed offchain, who or what performs that computation, what evidence reaches the chain, and what happens if the offchain party misbehaves.
ROFL's distinctive contribution is the attempt to make the offchain party's identity and code checkable through hardware attestation, rather than only through economic incentives or reputation. That focus suits applications that need private inputs or heavy processing with a clear verification path.
Readers who want to follow the topic should track three things over time: the security record of the hardware platforms, the transparency of the framework's upgrade process, and the quality of the audits published by applications built on it. Those signals matter more than any single announcement.
The pattern is likely to keep appearing across the industry. Understanding the trade-offs now makes it easier to judge new designs as they arrive.
Frequently asked questions
Is ROFL the same thing as an oracle?
Oracles usually bring a single piece of external data, such as a price, onchain, and the contract trusts the data source or a set of reporters. ROFL runs an entire piece of application logic offchain inside a trusted execution environment, and the blockchain verifies cryptographic evidence that the agreed code ran. The difference is that ROFL moves computation, not just data, while keeping a verifiable link to the chain.
What does the ROFL mainnet launch mean in practice?
Mainnet means the framework runs on live networks where real value is at stake, not just on test networks. Press coverage in mid-2025 reported the ROFL Mainnet launch from the Oasis Protocol Foundation. Anyone evaluating a specific ROFL-based application should check the Oasis documentation for the current network status and supported features, since these change over time.
Does a ROFL result mean I can trust the app without checking?
Not automatically. Verification proves that a specific code measurement ran inside an enclave that passed attestation, but you still need to review what that code does, who controls its upgrades and keys, and which hardware vendors you trust. Read the application's own documentation and audit reports before depending on its outputs.
What should a non-developer do before using a ROFL-based app?
Check local laws before using any application that touches financial products, and only use services that are lawful where you live. Keep your own keys secure, verify contract addresses through official channels, and never send funds to a link someone sends you in a message. If an app asks for permissions you do not understand, stop and investigate first.
Are there other dApps that use a similar split between offchain work and onchain settlement?
Yes, in the sense that the same idea of separating heavy work from final settlement appears in several designs. CoW Swap, for example, collects orders and settles batches with offchain solver competition, while the final settlement is onchain. The mechanisms differ, so the trust assumptions must be compared case by case.
Mentioned in this guide
dApps in this guide
CoW Swap is a DEX aggregator that settles trades in batch auctions, matches opposing orders directly and aims to protect traders from MEV.
Foundation was an Ethereum NFT art marketplace for creators; the team took it offline indefinitely on April 27, 2026 after a failed sale.
Keep reading
Related guides
dApp basics · Explainer
Secretum and Data Protection for Solana Messaging and Trading
Secretum is positioned as a way to protect data in Solana messaging and trading. This guide explains the privacy problem on public blockchains, how privacy tools on Solana work at a high level, and how to judge any such tool before you rely on it.
DeFi · Explainer
JustSwap on Tron: Tron's First Uniswap-Style AMM Explained
JustSwap was Tron's first Uniswap-style automated market maker, letting people swap TRC-20 tokens against shared liquidity pools without an order book. This guide explains how it worked, how liquidity providers earned, and what to check before using any similar Tron exchange today.
DeFi · Explainer
KyberSwap on Arbitrum: What the Launch Hype Really Meant
KyberSwap's move onto Arbitrum in 2022 drew strong community excitement and a rewards campaign. This guide explains what the launch was, why hype and real adoption often differ, and how to assess launch-linked tokens and platform risk.
dApp basics · How-to
Algorand Grants and Funding for dApp Builders in 2026
Algorand builders can fund a dApp through foundation grants, ecosystem programs, hackathon prizes and venture investment, but each route has different terms and different rules for staying eligible. This guide explains the main options, how to confirm a program is open in 2026, and how to write an application that reviewers can assess.
dApp basics · Explainer
How RSK (Rootstock) Competitions for Wallets and dApps Work
RSK, now usually called Rootstock, is a smart contract network tied to Bitcoin. This guide explains how competitions for wallets and dApps on the network are generally structured, how entries are judged, and how to confirm current rules and deadlines.
dApp basics · Best list
Reputable Crypto Exchanges: How to Choose in 2026
A reputable exchange should fit your location and needs, disclose its costs, protect customer accounts and let you understand how your assets are held. Compare five options and use a practical checklist before depositing or trading.
dApp basics · Best list
Safest Crypto Exchanges in 2026: How to Choose
There is no exchange that removes custody, company or regulatory risk. Compare platforms by fit, then check their current protections and keep only the crypto you need on an exchange.
dApp basics · Explainer
How to Read dApp Chain Pages, TVL and Project Announcements in 2026
Chain pages, dApp listings, NFT sections, TVL figures and project announcements are the main ways to research on-chain activity. This guide explains what each one shows, what it leaves out, and how to check them before you act.