Skip to main content

Fallback

How Fallback works

Fallback keeps a separately retrievable copy of the static website release you approved, and lets anyone check that copy against your record without trusting your website, our dashboard, or us.

The path of a release

  1. Select and validate. You give Fallback a static build (a .zip or a folder). It rejects unsafe paths (such as ../), symbolic links, encrypted or oversized entries, server-side scripts, key files and anything that looks like a secret, and it builds a list of every file with its SHA-256 hash. That list, the manifest, is canonical: the same build always produces the same digest.
  2. Publish. Your own wallet writes the files, and then the manifest, to your container on the X Layer blockchain through TapeOut. Every transaction is shown to you and confirmed in your wallet. Fallback never holds a private key. A submitted transaction is not treated as published: the release only moves on once the chain has confirmed it.
  3. Verify independently. A separate process, which never sees your upload, reads everything back from the blockchain through at least two independent node operators at one pinned block, recomputes every hash, and compares the result with the manifest. Any difference, missing file or extra file is a failure.
  4. Approve. Only after a successful verification can you approve. You sign a message in your wallet that binds your approval to the exact manifest, chain, contract and container. Approving a new release marks the previous one as superseded; history is kept.
  5. Share. Fallback gives you a recovery link. Publish it somewhere that does not depend on your website: your documentation, a status page, a pinned announcement. Distribute it before an incident.

What a visitor sees

The visitor opens the link. No account, no wallet, nothing to install. Their own browser reads your approved release from the blockchain and compares it with the record in the link, then shows one plain result:

  • Files match the recorded manifest. A button opens the static copy in a sandbox.
  • File mismatch. At least one file differs from, or is not part of, the approved release. The copy is not opened.
  • Cannot independently confirm. The check could not finish: the nodes disagreed, were unreachable, or files were missing. Nothing is shown as verified.

Every result shows when it was checked, and every successful result lists what a match does and does not mean. A notice explains that anything needing your original servers will not work in the copy.

What you are trusting

  • The X Layer blockchain and that at least two independent node operators are honest. Only two operators are configured by default; if either is unreachable, visitors see “cannot confirm” rather than a guess.
  • The TapeOut contracts. They are upgradeable. Fallback pins the implementations it reviewed and refuses to read if they change.
  • Your own wallet and team. A matching result cannot tell whether you approved something you should not have.
  • The recovery link. It is the trust anchor. Anyone can create a link that names a different approver, so users must get yours from a channel they already trust. The page shows the approver’s address so it can be compared.
  • Publishing is not forever. The container’s owner can change or remove files later. Fallback reports that as a mismatch.

What a match means

It shows that the files read from the blockchain have exactly the hashes and sizes in the manifest you approved, and that your configured wallet signed that approval for that location.

It does not show that the code is free of bugs, vulnerabilities or malicious logic; that your team or wallet was not compromised when you approved; that this is your newest release; or that any backend, API or account system works. Fallback is not an audit and is not a malware scanner.

What it can’t restore

A recovery copy is a static set of files: HTML, CSS, JavaScript, images and fonts. It is not a restored application. Databases, private APIs, authentication, payments, wallet state and other backend services are out of scope, and visitors are told so every time. The viewer runs your site in a sandbox that blocks network access and adds no wallet. Browser extensions that visitors installed themselves may still add their own code to frames; Fallback cannot control that.

Costs and requirements

You need a wallet that can sign on X Layer, a TapeOut circuit that wallet owns (opened and activated), and a small amount of OKB for fees. The dashboard reads the fees from the chain at the moment you are about to sign, because they can be changed by the contract’s owner. We do not quote prices here for that reason. Gas figures shown before publishing are labelled estimates.

Get started

Fallback is self-hosted today: you run two small web apps, the dashboard and the recovery page, on two different addresses, so that an incident on one cannot take the other with it.

  1. Install Node.js 22.13 or newer and get the project files.
  2. Run npm install.
  3. Set FALLBACK_OPERATOR_ADDRESS to your wallet’s address, and set the dashboard and recovery origins to your two addresses (they must differ). Details are in RUNBOOK.md.
  4. Run npm run build and npm run start.
  5. Open the dashboard, sign in with your wallet, and follow the steps: new release, publish, verify, approve, share.

Where this stands today

Fallback is pre-release software. The deployed recovery portal reads X Layer mainnet live. Publishing has been tested end to end on a local copy of X Layer with the real TapeOut contracts, including the failure cases above; the first release published to mainnet is still pending. It has not been independently audited, and has no customers or case studies. See limits and disclosures.