All studies
02Blockchain & risk

R7 — turning open-ended exposure into bounded risk

A cross-chain bridge works under normal conditions. The real question is what it loses when its assumptions stop holding.

Study framework

Protocol, organization, incidents and parameters are entirely synthetic. Deterministic and reproducible simulation.

100,000 synthetic years per design

Reading plan

From problem to decision

  1. 01

    Follow one transfer

    Lock on the source chain, relay proof, mint on the destination chain.

  2. 02

    Identify loss paths

    Compromised keys, replayed message, rushed governance or insufficient finality.

  3. 03

    Bound exposure

    Caps, delays, replay registry and route-specific rules.

  4. 04

    Form the decision

    Compare the available evidence with the conditions required before any pilot.

01

Before we begin

The problem

A reconstructed organization designs R7, a bridge that locks an asset on one blockchain before creating its representation on another.

This study concerns a bridge between two blockchains. Its role is to create on one chain a representation of an asset immobilised on another chain.

The contract on the destination chain cannot directly read the state of the source chain. It must therefore trust evidence carried between the two networks: here, a message signed by authorised keys. Signatures prove that particular keys approved the message; by themselves, they do not prove that its statement is true.

The danger appears if the destination chain creates an asset while the original asset is not truly locked. This can happen when a false message obtains enough compromised signatures, when a deposit observed too early disappears in a source-chain reorganisation, or when the same authentic proof is consumed more than once. In each case the destination contract may follow its rule exactly while acting on false or stale information.

For example, if 100 units are immobilised on chain A but two copies of the same message each mint 100 tokens on chain B, there are 200 redemption claims backed by only 100 reserve units. The bridge has then created an unbacked liability.

02

Phase 1

What the organization built

We begin by understanding the system as presented, without caricaturing it and before proposing any correction.

The transfer, step by step

Imagine 100 units deposited on chain A. A contract places them in a digital vault. Validators observe the deposit and sign a message. A relay program carries that message to chain B, which then creates 100 representative tokens.

Those tokens on B are valid only while the 100 units remain immobilised on A. On the return journey, representative tokens are destroyed on B before the original units are released on A.

This equality is the essential accounting rule: at every point in time, outstanding representative tokens must not exceed the reserve actually locked. The protocol must therefore verify not merely a signature, but also the existence, amount, finality and uniqueness of the reported deposit.

How the initial architecture can mint unbacked tokens

Chain B cannot see the vault on chain A. It sees only a message saying, for example, ‘deposit number 42 locked 100 units on A’. If three stolen keys, or three keys controlled by the same attacker, sign that invented statement, the contract on B sees three cryptographically valid signatures and may mint 100 tokens even though no reserve exists on A. Cryptography authenticates the signers; it does not make a dishonest statement true.

Even with honest signers, a deposit can be observed before it is final. The keys sign, B mints the tokens, and chain A is then reorganised: recent blocks are replaced and the deposit disappears from the accepted history. Without a suitable waiting rule and quarantine procedure, the tokens minted on B do not automatically disappear.

Finally, an authentic message can be submitted twice, or submitted on another route, if its identifier is not recorded as consumed and the signature does not precisely name both chains and contracts. One deposit of 100 may then authorise several mints of 100. A malicious relay can attempt those submissions; it should succeed only when the destination contract's checks are incomplete.

One relay program carries messages, every route waits twelve blocks and no cap limits total value, individual transfers or hourly throughput. The same fault can therefore be repeated several times before the team detects it and stops the system.

What ‘three signatures out of five’ means exactly

The number five does not come from chains A or B. It is a choice in the reconstructed architecture: the contract on B stores a list of five authorised public keys, ideally held by five separate operators and technical environments. Each observes the same deposit on A and may sign its identifier, amount and destination.

The contract accepts any group of three distinct keys out of those five; these are not three signers selected in advance. The threshold keeps the service operating when one or two keys are unavailable, because at least three remain. It also prevents one or two compromised keys from fabricating an authorisation by themselves.

The trade-off is exact: as soon as an attacker controls three keys, that attacker reaches the threshold and can sign a fictitious deposit. The key count therefore helps only when operators, software, secrets and infrastructure are genuinely independent. Five keys held in one environment may fall to one correlated compromise. Three out of five is a design assumption to assess here, not a universal guarantee.

Initial approach summary

  • The prototype appoints five bridge-specific signing keys; the destination contract accepts any group of three distinct keys. It therefore continues with two unavailable keys, but three compromised keys can sign a fictitious deposit.
  • One program alone carries messages between chains.
  • Every chain pair waits exactly twelve confirmations despite different reorganisation risks.
  • No global registry explicitly prevents the same proof from being consumed across multiple routes.
  • No limit caps total value, an individual transfer or hourly throughput.

03

Phase 2

What the assessment checks and proposes

The second phase reproduces the mechanism, locates what breaks and turns criticism into a testable change.

Reduce common-compromise risk

The synthetic redesign replaces five keys with a threshold of three by seven keys with a threshold of four. More importantly, it requires the four necessary signatures to come from separate failure environments: operators, secrets and infrastructure must not share one compromise point.

Under this threshold, three unavailable keys can be tolerated and three stolen keys cannot fabricate an authorisation; four compromised keys still can. Moving from five to seven is therefore not, by itself, proof of safety. Genuine independence among key holders must be documented, tested and audited.

Separate speed from final creation

The proposal no longer asks final minting to be fast. A liquidity provider may temporarily advance funds to the user at its own risk, while canonical minting waits for source-chain finality.

Each route receives a confirmation count suited to its speed and reorganisation profile. The message includes the chains, contract and operation identity; a global registry prevents it from being consumed twice.

Turn open loss into a cap

Three limits accumulate: USD 500,000 per transfer, USD 750,000 per hour and USD 5 million per route. A 48-hour delay prevents a governance change from becoming executable immediately.

The simulation then measures the frequency of loss years, mean loss and the 99th percentile. This percentile is not an absolute maximum: roughly one simulated year in one hundred is worse.

Assessment

  • Under the disclosed assumptions, the initial approach produces a USD 931,583 mean annual loss; 99% of simulated losses remain below USD 26.06 million, but 1% exceed it.
  • The destination chain cannot see the original deposit directly: it acts on a message. A false message signed by three compromised keys, a deposit removed by a reorganisation or an authentic proof replayed more than once can therefore mint more tokens than the assets locked.
  • The uniform waiting rule and immediately executable governance worsen this exposure, which is capped by no value or throughput limit.
  • These numbers describe a synthetic model, not a deployed protocol.

Proposed correction

  • The redesign proposes seven keys, requires four signatures and separates them across four independent failure domains; four compromised keys can still reach the threshold, which must be audited.
  • Each message precisely names its chains, contract and operation; a global registry prevents it from being consumed twice.
  • Confirmation count is tailored to each chain pair.
  • Every governance change waits 48 hours; emergency power may only pause the system.
  • Caps are set at USD 5 million per route, USD 500,000 per transfer and USD 750,000 per hour.
  • A liquidity provider may advance funds while final creation waits for finality.

04

Concepts and equations

No symbol without a definition

The same notes open from the “?” links placed throughout the article.

05

Numerical results

What the numbers actually measure

The amounts below come from a simulated world. They compare two architectures under the same reading rules; they do not predict a real loss.

19.34% → 4.55%

simulated years with loss

Frequency of years in which at least one loss occurs.

931 583 → 2 079 USD

mean annual loss

Average over 100,000 synthetic years per design.

26,06 M → 20 122 USD

99th loss percentile

99% of simulated losses are lower; 1% are worse.

1,06 M USD

operational incident bound

Cap implied by transfer, throughput and response limits.

06 · See the evidence

Read the charts step by step

Each figure first explains how to read its axes and colours, then what it does—or does not—support.

07 · Assessment protocol

How the assessment was conducted

Assessment protocol

  • Two 100,000-year simulations, initialised with random seeds 7173 and 7174.
  • Six incident families; their frequencies, severities and exposed amounts are entirely parameterised.
  • 2,352 combinations of caps, throughput and response time.
  • 192 waiting policies and 12 fee scenarios.
  • A transfer is represented through fifteen successive states.

Limitations that matter

  • All probabilities and severities are demonstration assumptions.
  • Redesign gains partly rely on improved assumptions by construction.
  • The two simulations do not use exactly the same random draws year by year.
  • No executable contract, test network, audit or exhaustive mathematical proof of the code.

09 · Decision

NO-GO

Initial NO-GO — capped pilot only after redesign and independent code audit.

  1. 1

    The initial architecture allows an error or three compromised keys to create uncapped exposure: it is rejected.

  2. 2

    The redesign sharply reduces simulated losses through explicit caps and delays. Part of the improvement nevertheless comes from assumptions chosen for the redesign.

  3. 3

    Before a pilot, executable code, trials on a test network, checks that essential accounting rules always hold and an independent audit are still required.

Next step: The original design is rejected. Under the model assumptions only, the redesign reduces mean annual loss to USD 2,079 and its 99th percentile to USD 20,122. A pilot remains conditional on an independent code audit.