Expanded specification (planned, not in this repository). An expanded companion (03-expanded-sections-v18_3.md, §EI) was planned to cover: Quantum Seam as a first-class concept, xHTLC for Bitcoin, xWrap Bridge for ERC-20, taxonomy of external chains, mandatory QS disclosure, oracle multisig for wrapped assets, and xMEV analysis. That companion is not part of this repository and carries no normative authority; this chapter is the authoritative in-repo specification.
The preceding sections of this whitepaper specify a sovereign, closed-loop financial ecosystem: two purpose-built chains (Bond RSC and Aevum ESC), a zero-custody inter-ledger bridge (§7), and a hardware-secured reserve vault (§12). External Interoperability addresses the inevitable question that follows: how does this ecosystem interact with the broader cryptoasset landscape — Bitcoin, Ethereum, and the classical chains that preceded it?
The answer is governed by two inviolable constraints. First, interoperability with external chains must never compromise the post-quantum security model that defines the ecosystem's core value proposition. Second, it must never recreate the custodial honeypot patterns that the architecture was explicitly designed to eliminate. These constraints are not soft guidelines — they are architectural non-negotiables that determine which interoperability mechanisms are permissible and which are structurally prohibited.
Axiom coverage. This section operates under a specific Axiom 2 tension: all three axioms (§1.3) are satisfied within the ecosystem; external chains violate Axiom 2 by definition. The mechanisms specified here manage the boundary between the sovereign PQC domain and the classical-cryptography exterior. All mechanisms are transparent about this boundary and never misrepresent classical-chain assets as carrying the ecosystem's PQC guarantees.
§EI.1. The Quantum Seam: Architectural Constraint and Disclosure
Every external blockchain of significance — Bitcoin, Ethereum, BNB Chain, Solana, and all classical-cryptography derivatives — anchors its security in elliptic curve schemes (secp256k1 ECDSA, Ed25519). Per §1.3 Axiom 2 and §6.1, these schemes are computationally broken by Shor's algorithm on a sufficiently capable quantum computer. This is not a speculative risk; it is mathematical certainty with an uncertain timeline.
When the Bond/Aevum ecosystem interacts with external chains, a Quantum Seam (QS) materializes at the protocol boundary: assets inside the ecosystem are secured by ML-DSA-65/44 (NIST Level 3/2 post-quantum); assets outside remain subject to ECDSA vulnerability. This seam cannot be eliminated — it is a consequence of the external chains' design decisions, not of this protocol. It can only be managed, disclosed, and bounded.
The Quantum Seam is a first-class protocol concept, not a caveat. Every mechanism in this section is designed with explicit QS awareness:
| Domain | Cryptographic Security | Quantum Threat | Protocol Treatment |
|---|---|---|---|
| BND on Bond RSC | ML-DSA-65 (PQC Level 3) | None (quantum-native) | Fully sovereign — no QS |
| AEV on Aevum ESC | ML-DSA-44 (PQC Level 2) | None (quantum-native) | Fully sovereign — no QS |
| BTC in xHTLC (Bond side) | ML-DSA-65 custody | QS at Bitcoin side | Disclosed; minimized exposure window |
| wBTC on Aevum | ML-DSA-44 for AEV operations | QS at collateral layer | Disclosed; TVL-bounded; oracle multisig |
| USDC/USDT bridged | ML-DSA-44 for AEV operations | QS at Ethereum collateral | Same as wBTC treatment |
Mandatory QS Disclosure. Any wallet, SDK, or interface interacting with external assets must surface the following warning at the point of external asset origination:
QS_WARNING: This asset originates from a classical-cryptography chain.
Its collateral security is ECDSA-dependent until confirmed on Bond RSC
or Aevum ESC. Shor's algorithm can compromise ECDSA-secured assets.
Minimize external chain exposure time.
The protocol enforces this at the smart contract level: the xWrap Bridge Contract (§EI.4) emits a QuantumSeamEvent for every wrapped external asset, and wallets that suppress this event are considered non-compliant with the ecosystem's transparency standard.
§EI.2. External Chain Taxonomy and Compatibility Matrix
External chains are classified by their interoperability profile — the set of mechanisms through which they can safely interact with the Bond/Aevum ecosystem.
§EI.2.1. Compatibility Classification
| Class | Characteristics | Example Chains | Supported Mechanisms |
|---|---|---|---|
| Class A — UTXO-SHA256 | UTXO model; SHA256 Merkle trees; OP_CHECKLOCKTIMEVERIFY (CLTV) or similar timelock; ECDSA/Schnorr signatures | Bitcoin (BTC), Bitcoin Cash (BCH), Litecoin (LTC) | xHTLC atomic swaps; xWrap wrapping |
| Class B — EVM-SHA256 | Account model; Ethereum Virtual Machine; SHA256 precompile at 0x02; Solidity HTLC contracts; ECDSA (secp256k1) | Ethereum (ETH), Base, Arbitrum, Optimism, Polygon, BNB Chain | xHTLC atomic swaps; xWrap wrapping; direct stablecoin bridging |
| Class C — PQC-Compatible (Future) | Any chain that has migrated to SHA3-256-compatible Merkle trees and PQC-compatible signature schemes | No current example at genesis | Native SHA3-256 xHTLC (no SHA256 opcode required); reduced QS surface |
| Class D — Incompatible | Chains without scriptable timelocks, without SHA256 precompile, or with non-standard consensus preventing SPV verification | Chains with opaque consensus or proprietary VM without timelock support | No protocol-supported interoperability path |
Class A and Class B chains are supported from §EI.10 Phase 2 (xHTLC) and Phase 3 (xWrap); none is active at genesis (see §EI.10). Class C support will be added as post-quantum migrations occur in the external ecosystem. Class D chains have no supported path and are architecturally excluded.
§EI.2.2. Hash Function Bridge
The Bond RSC uses SHA3-256 exclusively (§6.3) for all internal operations, including HTLC hash locks (§7.3.1). External chains use SHA256 (Class A, Class B) or Keccak-256 (Class B EVM — distinct from SHA3-256 via NIST domain separation padding 0x06). This creates a hash function incompatibility that must be resolved at the protocol boundary: a Bond script cannot natively check a preimage against the SHA256 commitment an external HTLC locks on.
Resolution: Cross-Chain SHA256 Hashlock (xSHL). The xHTLC protocol resolves the incompatibility with a single shared SHA256 preimage rather than a two-commitment "dual-hash" construction. A 32-byte random preimage s produces exactly one commitment (see Appendix 02 for the canonical typeset form of the expressions in this section):
h_ext = SHA256(s)
This same h_ext is published on the external chain and on the Bond RSC side. Atomicity is the standard cross-chain HTLC property: revealing s to claim on one chain exposes s, letting the counterparty claim on the other chain against the same h_ext. No SHA3-256 commitment of s is created, published, or checked anywhere in the xHTLC path. SHA3-256 remains mandatory only for internal Bond ↔ Aevum HTLCs (§7.3.1, OP_HTLC_LOCK).
To let a Bond script check the shared SHA256 commitment without weakening the internal SHA3-256 mandate, Bond gains a single narrowly-scoped opcode, OP_SHA256_PREIMAGE_CHECK (§EI.3.1), usable only inside OP_HTLC_XLOCK. This is a deliberate, bounded addition of SHA256 to Bond consensus, justified solely by external interoperability and disclosed as such — not concealed behind a dual-hash abstraction that would reason about commitments the protocol never publishes.
Security of the xSHL. The construction inherits exactly the security of a standard SHA256 hashlock — no more, no less. The preimage s is a 32-byte random value; publishing h_ext = SHA256(s) reveals nothing about s under SHA256 preimage resistance (~2^256 classical, ~2^128 under Grover — see §EI.3.6). An adversary who observes h_ext on either chain cannot claim either leg without learning s, and s is only exposed at the moment of the first legitimate claim, at which point the timelock ordering (§EI.3.4) guarantees the counterparty a window to claim the second leg. Because a single hash function secures both legs, there is no cross-hash collision surface to analyze; the earlier "dual-hash" framing (two independent commitments h_pqc = SHA3-256(s) and h_ext = SHA256(s)) described a value — h_pqc — that was never committed on-chain and is retired.
§EI.3. xHTLC Protocol — Cross-Chain Atomic Swaps
The xHTLC (External Hash Time-Locked Contract) protocol enables trustless, bilateral atomic exchange of BND or AEV against assets on external chains. It extends the internal HTLC mechanism (§7.3) to accommodate external hash functions (the cross-chain SHA256 hashlock, xSHL, §EI.2.2), external chain block times, and external signature schemes at the counterparty's end.
Fundamental asymmetry. In xHTLC swaps, the Bond/Aevum user's keys are always ML-DSA-65/44 (PQC-safe). The external chain counterparty's keys are ECDSA (not PQC-safe). The atomicity guarantee and the internal chain's security are unconditional. The external chain's security depends on ECDSA — which is a user-understood, disclosed limitation of the external chain, not of this protocol.
§EI.3.1. New Bond RSC Opcode: OP_HTLC_XLOCK
The internal HTLC opcode OP_HTLC_LOCK (§7.3.1) uses SHA3-256 as its hash function. Cross-chain swaps require SHA256 on the Bond side for cross-chain SHA256 hashlock (xSHL) compatibility (§EI.2.2). A new opcode OP_HTLC_XLOCK (0xB9) is introduced:
OP_HTLC_XLOCK <h_ext: 32 bytes> <timeout: block height> <chain_id: 4 bytes>
IF
OP_SHA256_PREIMAGE_CHECK (`0xBA`) <h_ext>
<recipient_pubkey> OP_CHECKSIG_PQC
ELSE (after timeout)
<refund_pubkey> OP_CHECKSIG_PQC
END
| Parameter | Description |
|---|---|
h_ext |
SHA256 hash of the preimage s. Provides xSHL compatibility with external chains (§EI.2.2) |
timeout |
Bond RSC block height after which the refund branch is available |
chain_id |
4-byte identifier of the external chain, per the canonical class-prefix registry below (e.g., 0x00000001 for Bitcoin mainnet, 0x02000001 for Ethereum mainnet). This class-prefix scheme — not the raw EIP-155 / BIP-44 identifiers — is the single encoding used everywhere external_chain_id appears (§EI.5.1) |
OP_SHA256_PREIMAGE_CHECK |
New Bond RSC opcode that verifies SHA256(presented_preimage) == h_ext. Does not use SHA3-256. Introduced exclusively for external chain compatibility |
OP_CHECKSIG_PQC |
Standard ML-DSA-65 signature verification — unchanged from the internal HTLC implementation |
Canonical chain_id Registry. To eliminate any ambiguity between chain-identifier schemes, the protocol defines a single 4-byte class-prefix encoding used everywhere chain_id / external_chain_id appears (consensus opcodes, attestations, relay, order books). The high byte is a chain-class prefix; the low bytes enumerate instances within the class. This scheme is unambiguous across UTXO and EVM chains (unlike raw EIP-155 IDs, where Ethereum's 1 would collide with a UTXO index of 1), and raw EIP-155 chain IDs / BIP-44 coin types are not used as external_chain_id values — they are only inputs an operator maps into this registry.
| Chain | Class prefix | Canonical external_chain_id |
|---|---|---|
Bitcoin mainnet (UTXO class 0x00) |
0x00 |
0x00000001 |
| Litecoin / BCH (UTXO class) | 0x00 |
0x00000002 / 0x00000003 |
Ethereum mainnet (EVM class 0x02) |
0x02 |
0x02000001 |
| Base / Arbitrum / Optimism / Polygon / BNB (EVM class) | 0x02 |
0x020000xx (registry-assigned) |
Tier Classification. OP_HTLC_XLOCK is classified as Tier 0 (genesis-immutable) in the pUTXO script interpreter. Its SHA256 preimage checking function is consensus-critical and cannot be modified without a hard fork. The chain_id parameter is informational (for watchtower indexing) and does not affect the consensus logic.
Why introduce a new opcode rather than parameterizing OP_HTLC_LOCK? Parameterizing the hash function of OP_HTLC_LOCK would introduce a hash function selection vector into the consensus layer, creating a governance surface for weakening internal HTLC security. By introducing a distinct opcode, the SHA3-256 mandate for all internal operations (§6.3) is preserved unconditionally. OP_HTLC_XLOCK is explicitly scoped to external chain interoperability and is not available for Bond ↔ Aevum internal swaps (those remain exclusively SHA3-256 via OP_HTLC_LOCK).
§EI.3.2. xHTLC-BTC: Bitcoin Atomic Swap
A trustless, bilateral exchange of BND (Bond RSC) for BTC (Bitcoin) via xSHL-secured HTLC contracts on both chains (single shared SHA256 hashlock, §EI.2.2).
Roles. Alice holds BND and wants BTC. Bob holds BTC and wants BND. Neither party has a trust relationship — they interact via the atomic swap protocol only.
Protocol Execution:
Phase 0 — Submarine Commitment (both chains):
Following the same anti-griefing and anti-free-option design as §7.3.1, both parties commit capital before the HTLC activates.
| Parameter | Bond RSC (Alice) | Bitcoin (Bob) |
|---|---|---|
| Commitment amount | Full BND swap amount | Full BTC swap amount |
| Commitment collateral | δ=0.05× BND value (non-refundable on abort, §7.3.1) | No on-chain collateral mechanism in Bitcoin — Bob's anti-abort defense is reputation via the P2P Relay (§EI.3.5) |
| Confirmation threshold | 6 Bond blocks (~2 hours) | 6 Bitcoin blocks (~60 minutes) |
| Commitment timeout (pre-HTLC abandonment) | 24 Bond blocks (~8 hours) | 36 Bitcoin blocks (~6 hours) |
These are the Phase-0 commitment timeouts, not the HTLC-lock timelocks. The commitment timeout bounds how long a party's committed capital sits before the HTLC activates or the commitment is abandoned; it is deliberately short. The HTLC-lock timelocks (timeout_btc = 144 BTC blocks ≈ 24h, timeout_bond = 108 Bond blocks ≈ 36h) are set separately in §EI.3.4 and govern the swap once both HTLCs are live. A single parameter set is used throughout: Phase-0 values here for commitment, §EI.3.4 values for the locks — they are not two competing calibrations of the same quantity.
Note on asymmetric collateral. Bitcoin does not natively support the commitment collateral mechanism (no programmable covenant equivalent). Alice's collateral on Bond protects Bob against Alice griefing; Alice's protection against Bob griefing is the P2P Relay reputation system combined with the fact that Bob's capital is locked on Bitcoin during the commitment phase — griefing costs Bob a Bitcoin transaction fee and the locked BTC opportunity cost.
Phase 1 — Preimage Generation (Alice):
Alice generates a 32-byte cryptographically random preimage s using her Arca TRNG (§9.5) or Desktop Node's entropy source. She computes the single shared commitment:
h_ext = SHA256(s)(the one xSHL commitment, §EI.2.2)
Alice reveals only h_ext (never s) to Bob. Bob constructs his Bitcoin HTLC with h_ext, and Alice's subsequent Bond OP_HTLC_XLOCK (Phase 3) locks on this same h_ext. No SHA3-256 commitment of s is produced.
Phase 2 — HTLC Lock (Bob on Bitcoin):
Bob creates a Bitcoin P2SH/P2WSH output locked with the following redeem script:
OP_IF
OP_SHA256 <h_ext> OP_EQUALVERIFY
OP_DUP OP_HASH160 <Alice_BTC_pubkey_hash> OP_EQUALVERIFY OP_CHECKSIG
OP_ELSE
<timeout_btc> OP_CHECKLOCKTIMEVERIFY OP_DROP
OP_DUP OP_HASH160 <Bob_BTC_pubkey_hash> OP_EQUALVERIFY OP_CHECKSIG
OP_ENDIF
Bob broadcasts this transaction and waits for 6 Bitcoin confirmations (~60 min).
Phase 3 — HTLC Lock (Alice on Bond RSC):
After observing Bob's Bitcoin HTLC (via her Bond Desktop Node running an SPV Bitcoin light client — see §EI.6), Alice creates a pUTXO on the Bond RSC:
OP_HTLC_XLOCK (`0xB9`) <h_ext> <timeout_bond> <0x00000001>
IF
OP_SHA256_PREIMAGE_CHECK (`0xBA`) <h_ext>
<Bob_ML-DSA-65_pubkey> OP_CHECKSIG_PQC
ELSE
<Alice_ML-DSA-65_pubkey> OP_CHECKSIG_PQC
END
timeout_bond > timeout_btc (expressed in absolute block heights, calibrated per §EI.3.4).
Phase 4 — Claim (Alice on Bitcoin):
Alice broadcasts a Bitcoin transaction spending Bob's P2SH output, revealing s in the witness. She receives the BTC.
Phase 5 — Claim (Bob on Bond RSC):
Bob observes Alice's Bitcoin claim transaction, extracts s from the Bitcoin witness data, and broadcasts a Bond RSC transaction spending Alice's OP_HTLC_XLOCK pUTXO by presenting s (which satisfies OP_SHA256_PREIMAGE_CHECK). Bob's Bond transaction is signed with his ML-DSA-65 key. He receives the BND.
Atomicity guarantee: Either (a) Alice reveals s on Bitcoin, Bob claims BND on Bond — both transfers complete; or (b) both timelocks expire, both parties reclaim — no transfer occurs. No intermediate state is reachable.
Flow Diagram:
Timeline: T0 T1 (~30min) T2 (~2.5h) T3 (~2.5h+) T_btc (~24h) T_bond (~36h)
│ │ │ │ │ │
Alice: ├─Commit(Bond)─┤──xHTLC ├─Claim BTC │ │ ├─Refund(Bond)
│ │ Lock(Bond) │ reveal s │ │ │ (only if
│ │ h_ext, │ │ │ │ neither leg
│ │ t_bond=108b│ │ │ │ was claimed)
│ │ │ │ │ │
Bob: ├─Commit(BTC)──┤──HTLC │ ├─Claim BND ├─Refund(BTC) │
│ │ Lock(BTC) │ │ present s │ (only if │
│ │ h_ext, │ │ ML-DSA sig │ T3 skipped)│
│ │ t_btc=144b │ │ │ │
│ │ │ │ │ │
Expressway:│ │ │ ├─Priority │ │
│ │ │ │ routing │ │
The external (Bitcoin) refund at T_btc ≈ 24h (144 BTC blocks) always precedes the Bond refund at T_bond ≈ 36h (108 Bond blocks), preserving the timeout_bond ≥ timeout_ext + Δ_margin invariant (§EI.3.4) with a ~12h designed margin so Bob can always finalize his Bond claim after extracting s from Alice's Bitcoin claim.
Bob's claim transaction on Bond RSC is routed via the Systemic Expressway (§2.2) as a Tier 2 Systemic transaction, guaranteeing inclusion in the next Bond block regardless of mempool congestion. An attacker cannot grief Bob's claim by flooding the Bond mempool.
§EI.3.3. xHTLC-EVM: Ethereum and EVM Chain Atomic Swap
The xHTLC-EVM variant operates identically to xHTLC-BTC with two differences: (1) the external HTLC is a Solidity smart contract on Ethereum (or other EVM chain); (2) the SHA256 preimage check uses Ethereum's SHA256 precompile at address 0x02.
xHTLC Solidity Contract (Ethereum side):
// SPDX-License-Identifier: MIT
// xHTLC-EVM — External HTLC for Bond/Aevum ecosystem cross-chain swaps
// Uses SHA256 precompile (0x02) for cross-chain SHA256 hashlock (xSHL) compatibility with Bond RSC OP_HTLC_XLOCK
pragma solidity ^0.8.0;
contract xHTLC {
struct Swap {
bytes32 h_ext; // SHA256(preimage) — the shared xSHL commitment
address payable recipient;
address payable refund;
uint256 amount;
uint256 timelock; // Unix timestamp
bool active;
bool claimed;
}
mapping(bytes32 => Swap) public swaps;
event SwapLocked(bytes32 indexed swapId, bytes32 h_ext, address recipient, uint256 amount, uint256 timelock);
event SwapClaimed(bytes32 indexed swapId, bytes32 preimage);
event SwapRefunded(bytes32 indexed swapId);
function lock(bytes32 h_ext, address payable recipient, uint256 timelock)
external payable returns (bytes32 swapId)
{
require(msg.value > 0, "xHTLC: zero value");
require(timelock > block.timestamp, "xHTLC: timelock in past");
swapId = keccak256(abi.encodePacked(h_ext, recipient, msg.sender, msg.value, timelock));
require(!swaps[swapId].active, "xHTLC: swap exists");
swaps[swapId] = Swap(h_ext, recipient, payable(msg.sender), msg.value, timelock, true, false);
emit SwapLocked(swapId, h_ext, recipient, msg.value, timelock);
}
function claim(bytes32 swapId, bytes32 preimage) external {
Swap storage s = swaps[swapId];
require(s.active && !s.claimed, "xHTLC: invalid state");
require(block.timestamp <= s.timelock, "xHTLC: expired");
// SHA256 precompile check — xSHL compatible with Bond RSC OP_HTLC_XLOCK
require(sha256(abi.encodePacked(preimage)) == s.h_ext, "xHTLC: invalid preimage");
s.claimed = true;
emit SwapClaimed(swapId, preimage);
s.recipient.transfer(s.amount);
}
function refund(bytes32 swapId) external {
Swap storage s = swaps[swapId];
require(s.active && !s.claimed, "xHTLC: invalid state");
require(block.timestamp > s.timelock, "xHTLC: not expired");
s.active = false;
emit SwapRefunded(swapId);
s.refund.transfer(s.amount);
}
}
The sha256(abi.encodePacked(preimage)) call invokes Ethereum's SHA256 precompile, producing the same output as OP_SHA256_PREIMAGE_CHECK on Bond RSC. The same preimage s satisfies both.
Note on Keccak-256 vs SHA3-256. Ethereum's keccak256() built-in is not the same as SHA3-256 (they use different padding: Keccak uses 0x01, SHA3-256 uses 0x06). The xHTLC-EVM uses sha256() (SHA256 precompile at 0x02), not keccak256(), specifically to maintain xSHL compatibility (§EI.2.2) with Bond RSC's OP_SHA256_PREIMAGE_CHECK. Auditors must verify that the deployed xHTLC contract calls the SHA256 precompile, not the Keccak built-in — these produce different hashes and an incorrect implementation would break atomicity.
ERC-20 Token Swaps. The xHTLC-EVM contract supports ERC-20 token swaps (USDT, USDC, WBTC) in addition to native ETH, via a parallel lockToken(h_ext, recipient, timelock, token, amount) function that calls token.transferFrom(). This enables direct BND ↔ USDC atomic swaps without wrapping.
§EI.3.4. Adaptive Timelock Calibration for External Chains
Timelock calibration for external chains follows the same EMA-based approach as the internal Bridge (§7.3.2), extended to account for external chain block time variance and finality characteristics.
Calibration Parameters:
The calibration obeys the ecosystem HTLC timelock invariant (CONSTANTS htlc.timelock_invariant): the leg the counterparty claims second must expire strictly later, timeout_bond ≥ timeout_ext + Δ_margin. Alice locks the Bond leg (which Bob claims after learning s), so the Bond timelock must exceed the external timelock, not merely equal it. All Bond figures below use the canonical bond.block_time = 20 min (CONSTANTS §1); 1 Bond block ≈ 20 min.
| External Chain | Target Block Time | Confirmation Target | Finality Model | Bond Timelock (timeout_bond) | External Timelock (timeout_ext) |
|---|---|---|---|---|---|
| Bitcoin | 600 seconds | 6 blocks (~60 min) | Probabilistic (Nakamoto) | 108 Bond blocks (~36h) — safety_factor = 1.5 × external |
144 BTC blocks (~24h) |
| Ethereum (PoS) | 12 seconds | 64 slots (~13 min, finality checkpoint) | Economic finality (Casper FFG) | 108 Bond blocks (~36h) — safety_factor = 1.5 × external |
7200 ETH slots (~24h) |
| EVM L2s (Arbitrum, Optimism) | varies | L1 finality + rollup challenge period (~7 days Optimism) | L1-dependent | Swap availability is deferred until L2 challenge period expires + Bond safety margin | Not recommended for atomic swaps due to 7-day challenge window; xWrap wrapping preferred |
The safety_factor = 1.5 is now reflected in the numbers: 108 Bond blocks ≈ 36h = 1.5 × the 24h external timelock. This yields a designed margin of ~12h (Δ_margin = timeout_bond − timeout_ext ≈ 36h − 24h = 12h ≈ 36 Bond blocks) between the moment the external leg could be refunded and the moment Alice's Bond leg refunds — the window in which Bob, having extracted s from Alice's external claim, finalizes his Bond claim. An absolute minimum margin of ≥ 6 Bond blocks (~2h) is enforced regardless of calibration output, guaranteeing Bob's Systemic-Expressway claim (§EI.3.2) confirms with room to spare; the calibration engine may never emit a timeout_bond closer than this floor to timeout_ext.
Bitcoin Timelock Note. The Bitcoin confirmation target is 6 blocks (~60 min) for standard finality, but the Bond timelock is set to 108 Bond blocks (~36h) — substantially longer than the 144-block (~24h) Bitcoin timelock. This conservative calibration provides the ~12h designed margin above, and additionally absorbs Bitcoin block time variance (blocks can take 2+ hours during difficulty transitions) and leverages the Systemic Expressway routing guarantee on Bond (claim transactions are always included in the next Bond block regardless of mempool state).
EMA Monitoring. Both Bond block time and external chain block time are continuously monitored by the xOracle Network (§EI.5.1) with a 7-day EMA window. If actual block times deviate >20% from the target for more than 1 epoch, the xHTLC timelock parameters are flagged for governance review. During flagged periods, the Web Swap Service UI displays a warning: "Current block time variance may affect swap safety. Consider using xWrap instead."
§EI.3.5. P2P Relay for External Chain Counterparty Discovery
The existing P2P Relay (§7.3.3) is extended to support xHTLC counterparty discovery. Intention messages include an external_chain_id field specifying the external chain leg of the swap. The relay maintains separate order books per (internal_asset, external_asset, external_chain_id) tuple.
A market maker operating an xHTLC liquidity desk can run a persistent relay node that accepts swap requests on both sides, automatically matching BND ↔ BTC and BND ↔ ETH/USDC/USDT pairs within configured parameters. Market makers are paid via the implicit bid-ask spread they set in their swap rate, not via a protocol fee — consistent with Axiom 3.
§EI.3.6. xHTLC Threat Model
| Threat Vector | Attack Description | Mitigation | Residual Risk |
|---|---|---|---|
| Preimage race (front-running on external chain) | Attacker observes Alice's preimage reveal on Bitcoin/Ethereum and races to claim BND on Bond before Bob | Bob monitors external chain for preimage. Claim on Bond is Systemic Expressway (Tier 2) — included in next Bond block. Alice cannot simultaneously monitor Bond AND race the Expressway without being the Bond miner | Attacker must be the Bond miner for the next block AND observe preimage within that block's production window |
| Quantum attack on external chain keys (Bob's BTC address) | Quantum computer breaks Bob's ECDSA secp256k1 private key on Bitcoin, allowing attacker to claim Bob's BTC before Bob reveals preimage | This is the quantum seam disclosure scenario (§EI.1). The Bond side (Alice's ML-DSA keys) remains secure. This is not a Bond protocol vulnerability — it is the disclosed limitation of ECDSA-secured external chains | Inherent to external chain design. Mitigated by minimizing xHTLC exposure time (§EI.1; exposure bounded by the 144-block BTC timelock, §EI.3) |
| Timelock expiry race (Bond hashrate collapse) | Bond hashrate drops catastrophically during swap, extending actual block times beyond the external chain's timelock, allowing external claim without Bond claim | Emergency Difficulty Adjustment (EDA, §3.1.3.1) activates after 80 minutes of no Bond blocks (4× the 20-min target, CONSTANTS bond.eda_trigger), reducing difficulty 25%/interval. Bond blocks resume before external timelock expires in all scenarios where hashrate >25% of pre-event level |
Catastrophic >75% hashrate loss during an active xHTLC. Mitigated by conservative timelock calibration (108 Bond blocks ≈ 36h for BTC swaps, with a ~12h margin over the 24h Bitcoin timelock) |
| HTLC griefing on external chain | Attacker commits to Bond side, locks Alice's capital, then abandons the BTC side | Submarine Commitment phase requires both parties to confirm before HTLC activates. Commitment collateral (5% of swap value) on Bond is forfeited by Alice if she aborts. Bob has no direct collateral on Bitcoin but his opportunity cost (locked BTC) deters rational griefing | Irrational attacker willing to lock BTC indefinitely to grief — relay reputation system de-lists habitual non-completers |
| xHTLC Solidity contract vulnerability | Bug in the deployed Ethereum xHTLC-EVM contract allows reentrancy, replay, or unauthorized claim | Contract is minimal (<80 lines), uses only: state mapping, SHA256 precompile call, basic checks-effects-interactions pattern. No external calls except final ETH/ERC-20 transfer. Internal Security Review Board (IRB) clearance required before mainnet deployment (ADR-0019) | Implementation bugs in the ERC-20 transferFrom interaction; verified by IRB contract review + public bug-bounty coverage (ADR-0019 §4) |
| xSHL second-preimage forgery (single SHA256 hashlock) | Attacker seeks a second preimage s' ≠ s with SHA256(s') = h_ext, letting them satisfy either leg without knowing Alice's s | Both legs lock on the same single SHA256 commitment h_ext (§EI.2.2), so the only relevant hardness is SHA256 second-preimage resistance: ~2^256 operations classically, reduced by Grover to ~2^128 (≈128-bit quantum security). (The former "dual-hash" collision threat — finding s' colliding across SHA256 and SHA3-256 — is moot: the Bond leg never checks SHA3-256, so no cross-hash surface exists.) The ~2^128 collision/birthday bound is not the operative figure here; second-preimage against a fixed target is the ~2^256 / ~2^128 pair above | None under classical computing. Negligible under quantum: ~128-bit residual security, well above any practical Grover budget |
§EI.4. xWrap Protocol — External Asset Wrapping on Aevum
The xHTLC protocol enables bilateral swaps: BND ↔ external chain asset. The xWrap protocol enables unilateral wrapping: an external chain asset is locked on its native chain and a 1:1 representative token (wrapped asset) is minted on the Aevum ESC. Wrapped assets can be used in all Aevum DeFi primitives, converted to AEV via AMM pools, and eventually unwrapped by burning the representative token and releasing the collateral on the external chain.
The design philosophy follows the wBND bridge (§7.4) with critical extensions for external chain realities and explicit quantum seam management.
Supported Wrapped Assets at Phase 3 Activation (§EI.10):
| Wrapped Asset | Collateral Chain | Collateral Asset | xOracle Hash Function | TVL Limit (genesis) |
|---|---|---|---|---|
| wBTC | Bitcoin | BTC | SHA256 SPV | 500 BTC |
| wETH | Ethereum | ETH | SHA256 precompile | 5,000 ETH |
| wUSDC | Ethereum | USDC (ERC-20) | SHA256 precompile | $10,000,000 USDC |
| wUSDT | Ethereum | USDT (ERC-20) | SHA256 precompile | $10,000,000 USDT |
TVL limits are Tier 1 parameters (governance-adjustable within hardcoded ranges). Genesis values are conservative; governance may increase them post-audit and post-empirical observation. The combined external TVL limit across all wrapped assets is 50% of FCRC total balance, enforced algorithmically — if the FCRC decreases, the aggregate external TVL limit decreases proportionally, maintaining a bounded coverage ratio.
§EI.4.1. xOracle Network Extension
The PQC Oracle Network (§7.5) is extended to support external chain observation. The extended network is designated the xOracle Network. xOracles are a superset of internal oracles: any xOracle also performs internal oracle duties (Bond ↔ Aevum attestations), but not all internal oracles are required to support external chain observation.
xOracle Registration Requirements (additional to the base oracle requirements of §7.5.1):
| Requirement | Specification |
|---|---|
| Additional stake | +50,000 AEV per supported external chain (e.g., +50K for Bitcoin, +50K for Ethereum = +100K for full xOracle) |
| External chain node | xOracle operators must run a full node for each supported external chain (Bitcoin Core, Ethereum geth/reth, etc.) |
| External chain key custody | xOracle operators must custody an external chain key (ECDSA) for participation in the external collateral multisig. Key must be generated on an air-gapped device and stored offline |
| Geographic diversity | Each xOracle self-attests its operating legal jurisdiction at registration (ISO 3166-1 country code) as a signed, on-chain, stake-slashable declaration. The active set enforces a jurisdictional cap: no more than ⌊N/3⌋ of the chain's active xOracles may share the same declared jurisdiction (for genesis Bitcoin N=5, at most 1). If admitting/rotating an oracle would breach the cap, VRF selection (R2) skips to the next eligible candidate. A materially false jurisdiction attestation is slashable under §7.5.2. This is the enforceable definition of the "geographic diversity requirement" referenced by the compliance layer (§EI.9) |
| Slashing scope | xOracle slashing (§7.5.2) applies to both internal oracle duties AND xOracle duties independently |
xOracle duties (external chain):
- Deposit Observation. Observe deposit transactions on the external chain (BTC lock in multisig, ETH/ERC-20 deposit in the xWrap Ethereum contract). Verify Merkle inclusion via external chain SPV.
- Withdrawal Attestation. Upon receiving a verified burn event from the Aevum xWrap Contract, produce a signed withdrawal authorization for the external chain multisig.
- External Block Header Relay. Submit external chain block headers to the xWrap Bridge Contract on Aevum (analogous to Bond block header relay in §7.5.5). Enables SPV fraud proofs for external chain deposits.
- Price Feed. Optionally participate in external asset price reporting for AMM pool calibration (§EI.7). Separation of Internal and External xOracle Duties. xOracle external duties are tracked, slashed, and rewarded separately from internal oracle duties. An xOracle that performs well on Bond ↔ Aevum attestations but fails external chain duties is penalized proportionally to external duties only — their internal oracle stake is not at risk from external chain failures.
§EI.4.2. wBTC: Bitcoin Collateral Custody Model
wBTC wrapping requires locking BTC on Bitcoin. The lock must be:
- Non-custodial (individual sovereignty, Axiom 1)
- Multi-party (prevent single point of failure)
- Time-bounded (limit quantum seam exposure window for collateral keys) Custody Mechanism: xOracle Threshold Multisig (TMS).
BTC collateral for wBTC is held in a Bitcoin Taproot (P2TR) multisig address controlled by the active xOracle set via an t-of-N threshold signature. At genesis:
- N: Total active xOracles supporting Bitcoin = 5 (genesis active set; this is the genesis phase of the fixed-active-set schedule 5 → 21 → 30 of
bridge.oracle_set_size, recommended and pending ADR-0005 ratification) - t (threshold): ⌊2N/3⌋ + 1 = 4 (BFT quorum per
bridge.oracle_genesis_quorum= 4-of-5; recommended, pending ADR-0005 ratification) Taproot Multisig Script:
tr(internal_key, {
pk(xOracle_1) AND pk(xOracle_2) AND pk(xOracle_3) AND pk(xOracle_4): CHECKSIGADD 4 NUMEQUAL,
... (all C(5,4) = 5 combinations)
})
Using Taproot (P2TR) rather than P2SH provides: (1) a 4-of-5 spend goes through the script path and reveals only the one executed 4-key leaf, not the other C(5,4) combinations; (2) MuSig2 (BIP-327) is an n-of-n scheme, so it can aggregate the four keys of a leaf into a single key and signature, but it cannot produce a t-of-N key-path spend — such a spend is a script-path spend and is distinguishable on-chain from a single-key spend; a key-path t-of-N spend would require a threshold Schnorr scheme (e.g. FROST), which is not specified; (3) the internal key remains available for a cooperative key-path spend only where all N keys are aggregated.
Critical Quantum Seam Disclosure for wBTC TMS. The xOracle Bitcoin keys are ECDSA/Schnorr (secp256k1). If a cryptographically relevant quantum computer becomes available, these keys — and therefore the BTC collateral — are vulnerable. The TVL limit (genesis: 500 BTC) bounds the maximum exposure. As the quantum threat timeline becomes clearer, governance can reduce the TVL limit or suspend wBTC wrapping entirely via Tier 1 governance action.
Key Rotation. The xOracle external chain keys are rotated every 90 days via a ceremony:
- Existing quorum signs a Bitcoin transaction moving all collateral to a new Taproot address controlled by the new key set.
- The rotation is observable on-chain and SPV-verifiable.
- The xWrap Bridge Contract on Aevum is updated with the new TMS public keys via oracle attestation. Rotation reduces the quantum seam window: even if an attacker captures old xOracle keys, the collateral has moved before any practical quantum attack timeline.
§EI.4.3. wEVM: Ethereum Asset Custody Model
For Ethereum and EVM chains, BTC collateral is replaced by a Solidity smart contract (the xWrap Vault Contract) deployed on Ethereum that holds ETH, USDC, and USDT collateral:
// xWrap Vault — External collateral custody for Aevum wETH/wUSDC/wUSDT
// Controlled by xOracle Threshold: t-of-N ECDSA (secp256k1) keys via Ethereum multisig,
// verified with ecrecover. Ethereum has NO ML-DSA precompile — these custody keys are
// ECDSA and QS-exposed (quantum seam). ML-DSA-44 secures only the Aevum-side wrapped-asset
// operations, NOT these Ethereum custody keys (see §EI.1 seam table, §EI.4.3).
pragma solidity ^0.8.0;
interface IERC20 { function transfer(address, uint256) external returns (bool); function transferFrom(address, address, uint256) external returns (bool); }
contract xWrapVault {
// xOracle public keys on Ethereum (ECDSA — quantum seam applies)
address[] public xOracleSet;
uint256 public threshold; // t of N
// Nonce-based replay protection
mapping(bytes32 => bool) public processedAttestations;
event Deposited(address indexed depositor, address indexed token, uint256 amount, bytes32 aevumAddress);
event Withdrawn(address indexed recipient, address indexed token, uint256 amount, bytes32 aevumBurnTxId);
modifier onlyQuorum(bytes32 withdrawalHash, bytes[] calldata signatures) {
uint256 validSigs = 0;
address lastSigner = address(0);
for (uint i = 0; i < signatures.length; i++) {
address signer = recoverSigner(withdrawalHash, signatures[i]);
// Strictly-ascending signer order (Gnosis Safe checkNSignatures pattern):
// guarantees each recovered signer is DISTINCT — a single oracle key
// signing t times can no longer satisfy the threshold — and that every
// signer is a registered, active member of the canonical xOracleSet
// (fixed/known N, §EI.4.2). Duplicate or unregistered signers revert.
require(signer > lastSigner, "xWrap: unsorted or duplicate signer");
require(isActiveOracle(signer), "xWrap: signer not in active oracle set");
lastSigner = signer;
validSigs++;
}
require(validSigs >= threshold, "xWrap: quorum not met (t distinct oracles required)");
_;
}
function deposit(address token, uint256 amount, bytes32 aevumAddress) external payable {
if (token == address(0)) {
require(msg.value == amount, "xWrap: ETH mismatch");
} else {
IERC20(token).transferFrom(msg.sender, address(this), amount);
}
emit Deposited(msg.sender, token, amount, aevumAddress);
}
function withdraw(
address payable recipient, address token, uint256 amount,
bytes32 aevumBurnTxId, bytes[] calldata oracleSignatures
) external onlyQuorum(keccak256(abi.encodePacked(recipient, token, amount, aevumBurnTxId)), oracleSignatures) {
require(!processedAttestations[aevumBurnTxId], "xWrap: already processed");
processedAttestations[aevumBurnTxId] = true;
if (token == address(0)) { recipient.transfer(amount); }
else { IERC20(token).transfer(recipient, amount); }
emit Withdrawn(recipient, token, amount, aevumBurnTxId);
}
}
Critical difference from wBND bridge. The wBND bridge (§7.4) uses individually sovereign covenant pUTXOs — each user's BND is in their own on-chain UTXO, not in a shared contract. The xWrap Vault Contract aggregates all ETH/USDC/USDT collateral into a single Ethereum contract — this is a concentrated custody contract and a structural compromise relative to the wBND design.
This compromise is an architectural necessity: Ethereum's account model does not support individually sovereign covenant pUTXOs. The protocol acknowledges this explicitly:
EI.4.3 — Structural Exception to Zero-Aggregated-Custody. The xWrap Vault Contract on Ethereum aggregates external collateral into a single contract. This is a known deviation from the zero-aggregated-custody principle (§7.10, Cross-cutting invariant 1) that applies within the Bond/Aevum ecosystem. The deviation is bounded by: (a) the genesis TVL limit on the EVM vault itself — 5,000 ETH + $20M stablecoins (wUSDC $10M + wUSDT $10M), consistent with §EI.4, §EI.5.3, and §EI.11 (the wBTC 500 BTC collateral is custodied separately in the Bitcoin TMS of §EI.4.2, not this contract), (b) the xOracle threshold multisig (t-of-N quorum of t distinct registered/active oracle keys required for any withdrawal — duplicate or non-registered signers are rejected), (c) the 72-hour delay barrier (§EI.4.4), and (d) FCRC coverage (§EI.4.6). Users deploying external assets into xWrap accept this structural exception as a condition of using the bridge.
§EI.4.4. xWrap Lock/Mint and Burn/Release
External Asset → Aevum (Lock and Mint):
- User deposits BTC to the TMS Taproot address (wBTC) or ETH/USDC/USDT to the xWrap Vault Contract (wEVM). The deposit includes the user's Aevum address in an OP_RETURN memo (Bitcoin) or the
aevumAddressparameter (Ethereum). - The xOracle Network observes the deposit. Once the deposit reaches the required confirmation depth (6 Bitcoin blocks or 64 Ethereum slots), the active xOracle quorum signs an
xLockAttestationcontaining:{external_chain_id, deposit_txid, external_block_height, amount, aevum_recipient_address, xoracle_signatures[t]}. - The user (or a relayer) submits the
xLockAttestationto the xWrap Bridge Contract on Aevum ESC. The contract: - Verifies all t xOracle ML-DSA-65 signatures on the value-anchoringxLockAttestation(persig.bridge_oracle; recommended, pending ADR-0005 ratification — non-value feed attestations remain ML-DSA-44, §EI.5.1). - Confirms thedeposit_txidhas not been previously processed (anti-replay registry). - Checks that the external TVL limit is not exceeded post-mint. - Mints the corresponding wrapped token (wBTC, wETH, wUSDC, wUSDT) toaevum_recipient_address. - The minted wrapped tokens are fully ML-DSA-44-secured on Aevum. The user interacts with them using standard Aevum UserOperations (UserOps, §8).
72-Hour Challenge Window. Identical to the internal bridge SPV Challenge mechanism (§7.5.5), any entity running an external chain full node can challenge a fraudulent
xLockAttestationwithin 72 hours by submitting an external SPV non-inclusion proof. The xWrap Bridge Contract verifies the proof against the external block header relay maintained by the xOracle Network.
Aevum → External Asset (Burn and Release):
- User calls
burn(wrapped_token, amount, external_chain_address)on the xWrap Bridge Contract. This destroys the specified wrapped tokens and emits axBurnEvent. - The xOracle Network observes the
xBurnEvent. The quorum signs anxBurnAttestationauthorizing release. - For wBTC: The xOracle quorum uses their Taproot keys to construct and broadcast a Bitcoin transaction releasing the BTC to the user's Bitcoin address. Threshold signing through a 4-of-5 script leaf (§EI.4.2), whose four keys may be MuSig2-aggregated.
- For wEVM: Any relayer submits the
xBurnAttestationto the xWrap Vault Contract on Ethereum, which verifies the t-of-N xOracle ECDSA signatures and releases the ETH/ERC-20 to the user's Ethereum address. - Mandatory 72-hour delay barrier applies to all releases (identical parameters to §7.4.2, including volumetric extensions for anomalous amounts).
§EI.4.5. AMM Pools for Wrapped External Assets
The Aevum ESC deploys AMM pools (constant-product, identical to the wBND/AEV pool — §7.6) for wrapped external assets:
| Pool | Assets | LP Fee | Bootstrap Incentive |
|---|---|---|---|
| wBTC / wBND | wBTC ↔ wBND | 0.30% | DAO Treasury allocation (Phase 3 bootstrap) |
| wETH / AEV | wETH ↔ AEV | 0.30% | DAO Treasury allocation |
| wUSDC / AEV | wUSDC ↔ AEV | 0.10% (stablecoin premium) | DAO Treasury allocation |
| wUSDT / AEV | wUSDT ↔ AEV | 0.10% | DAO Treasury allocation |
The reduced fee for stablecoin pools (0.10% vs 0.30%) reflects their lower impermanent loss characteristics and the importance of low-cost stablecoin liquidity for the Aevum payment ecosystem (§8).
§EI.4.6. External TVL Circuit Breakers and FCRC Integration
The xWrap protocol introduces external-asset-specific circuit breakers:
| Condition | Response | Reset |
|---|---|---|
| Single asset TVL > 90% of per-asset limit | New deposits for that asset paused | Governance vote |
| Aggregate external TVL > 50% of FCRC balance | All new deposits paused | FCRC balance increase OR governance-approved TVL increase |
| xOracle active set falls below minimum quorum (N < quorum) | All external releases paused (existing claims at or past 72h window complete) | xOracle set restored to quorum |
| External chain 10+ block reorganization detected | Affected wrapped assets frozen; xOracle set required to re-attest affected deposits | Re-attestation quorum of ⌊2N/3⌋+1 of the affected chain's active xOracle set (e.g. 4-of-5 for Bitcoin at genesis, N=5) — the same BFT quorum used for that chain's lock/burn attestations. This is distinct from the 4-of-5 TMS spending quorum (§EI.4.2) and the 7-of-10 Arca FCRC ceremony (§12.4.1); no fixed "6-of-10" is used, as the Bitcoin xOracle set has only N=5 members at genesis |
| wBTC/BND or wETH/AEV de-peg >10% for >1 epoch | DePegAlert emitted; new mints paused |
Same as internal bridge de-peg (§7.7) |
FCRC External Reserve (FCRC-X). FCRC-X is one of the two FCRC sub-reserves defined once in §12.3 — FCRC-X (External-asset reserve) and FCRC-B (wBND Bridge reserve). FCRC-X is the first-loss tranche dedicated to external interoperability failures; it is not the sole backstop:
- FCRC-X allocation (first-loss tranche): 15% of FCRC total balance (governance-adjustable within [0.10, 0.25]; proposed here, pending definition in §12.3). This is a first-loss buffer, not full coverage of the worst case.
- Coverage escalation and the honest coverage ratio. Aggregate external TVL is capped at 50% of FCRC, while the dedicated FCRC-X tranche is only 15% of FCRC — so FCRC-X alone covers at most 15/50 = 30% of a total external loss. A catastrophic external failure exceeding FCRC-X therefore escalates to the general (undesignated) FCRC principal, up to the 50%-of-FCRC external-TVL ceiling. Because worst-case external exposure (≤ 50% of FCRC) is by construction less than the full FCRC, the FCRC as a whole can absorb the worst case even though FCRC-X alone cannot. Crucially, escalation draws only on undesignated FCRC principal, never on FCRC-B (the bridge tranche is ring-fenced), preserving the external/internal isolation invariant (cross-cutting invariant 4). Any escalation beyond FCRC-X requires the same §12.4 ceremony as a main-FCRC draw.
- Activation trigger (FCRC Trigger 1-X — not among the four triggers of §12.2; pending maintainer decision): Exploitation of the xWrap Vault Contract on Ethereum resulting in unauthorized withdrawal of collateral exceeding 5% of aggregate external TVL, confirmed by on-chain evidence.
- FCRC-X response: Emergency compensation to affected users (denominated in BND from FCRC-X, at the most recent xOracle price feed rate). Funding for external chain multisig key rotation and xWrap Vault Contract redeployment. The FCRC-X activation follows the same physical ceremony protocol as the main FCRC (§12.4): 7-of-10 Arca quorum, 14-day OP_VETO window, miner veto court.
§EI.5. xOracle Network: Consolidated Specification
This section consolidates the xOracle Network specification, serving the same function as §7.10 (Bridge Implementation Reference Table) for the external interoperability layer.
§EI.5.1. xOracle Attestation Format
All xOracle attestations are CBOR-serialized and PQC-signed. The signature level is pinned to value-at-risk, per CONSTANTS sig.bridge_oracle (recommended; pending ADR-0005 ratification): value-anchoring attestations that authorize capital movement — xLock (mint) and xBurn (release) — are signed with ML-DSA-65 (Level 3, 3,309-byte signature), the same level as a Bond RSC settlement spend; non-value feed attestations — xBlockHeader and xPriceAttestation (§EI.7) — remain ML-DSA-44 (Level 2, 2,420-byte signature) for throughput. This mirrors the internal-bridge treatment (§7.5.1) under the same recommendation.
xLockAttestation {
version: uint8 // Protocol version
attestation_type: uint8 // 0x03 = xLock, 0x04 = xBurn, 0x05 = xBlockHeader
external_chain_id: uint32 // Canonical class-prefix id (§EI.3.1 registry) — e.g. 0x00000001 (BTC),
// 0x02000001 (ETH). NOT raw EIP-155 / BIP-44; those are only mapped INTO this id.
external_txid: bytes32 // SHA256(tx) for BTC, keccak256(rlp(tx)) for ETH
external_block_height:uint64
external_block_hash: bytes32 // SHA256d for BTC, keccak256(rlp(header)) for ETH
merkle_proof: bytes // SPV Merkle path (SHA256-based for BTC, keccak-based for ETH)
amount: uint256 // Amount in smallest unit (satoshi, wei, μUSDC)
aevum_recipient: bytes20 // Aevum address (20-byte ML-DSA-44 public key hash)
oracle_pubkey_hash: bytes20
oracle_signature: bytes // ML-DSA-65 (3,309 B) for xLock/xBurn value attestations;
// ML-DSA-44 (2,420 B) for xBlockHeader/xPrice non-value feeds
}
§EI.5.2. External Block Header Relay
The xOracle Network maintains a rolling window of external chain block headers on the Aevum ESC, enabling SPV verification of external deposits:
| External Chain | Header Size | Relay Window | Hash Algorithm (external) |
|---|---|---|---|
| Bitcoin | 80 bytes | 480 headers (~80h) | SHA256d |
| Ethereum | ~540 bytes (RLP) | 22,800 headers (~76h) | Keccak-256 |
Retention invariant (RELAY-RETENTION). The relay window is sized so that a non-inclusion / fraud proof (§EI.4.4) can always be validated for the full challenge window: relay_retention ≥ challenge_window (72h) + external_confirmation_depth. For Bitcoin that is 72h + 6 blocks ≈ 73h, rounded up to 480 headers (~80h); for Ethereum, 72h + 64 slots ≈ 72.2h, rounded up to 22,800 slot-headers (~76h). This invariant is normative: the retention window and the challenge window may never be configured to drift apart, so a challenge filed at any point in the 72h window still references a header the relay retains. (The previous 144/7200-header ~24h windows silently disabled ~2/3 of the challenge period and are corrected here and in §EI.11.)
External chain block headers are stored in the xChainHeaderRelay contract on Aevum ESC. Headers submitted by xOracles are verified against the chain's own consensus rules:
- Bitcoin (PoW). Fake Bitcoin headers require valid SHA256d PoW — computationally equivalent to mining a Bitcoin block. Header validation checks the SHA256d target and the difficulty-retarget rules; this is genuine independent SPV.
- Ethereum (PoS light client). Ethereum headers are validated with the Altair sync-committee light-client protocol (not a hand-waved "simplified finality proof"). Concretely, the
xChainHeaderRelaytracks the current 512-member sync committee and verifies, on-Aevum, the BLS12-381 aggregate signature of the committee over each finalizedLightClientUpdate(finalizedBeaconBlockHeader+finality_branchMerkle proof to the finalized checkpoint). Committee rotation is handled by verifying thenext_sync_committeetogether with its Merkle branch once per sync-committee period (256 epochs, ~27h); fork-version transitions (Altair → Bellatrix → Capella → Deneb → …) are handled by a governance-updatablefork_scheduleconfig that selects the correctForkVersion/domain for signature verification. Forging a finalized Ethereum header therefore requires forging a BLS aggregate from >2/3 of the active sync committee (and, for finality, >2/3 of Ethereum validators via Casper FFG). This requires a BLS12-381 pairing verification host-function on Aevum; its gas/cycle cost is bounded and specified as axChainHeaderRelayprecompile budget. Where BLS verification is unavailable or a fork is un-scheduled, the Ethereum path degrades tooracle-attested with challenge(Trust Level 2, §EI.6), not independent SPV, and must be disclosed as such.
Formal-review pending (ADR-0005 counter-sign).
Note: The external chain header relay uses the external chain's native hash function (SHA256d for Bitcoin, Keccak-256 for Ethereum) — these are stored as opaque bytes32 values in the Aevum contract and are never mixed with the Bond/Aevum SHA3-256 hash domain. Hash function namespacing is enforced at the ABI level: all xChainHeaderRelay functions take a chain_id parameter that determines the verification logic applied.
§EI.5.3. xOracle Consolidated Reference Table
| Component | Specification | Key Parameter | Notes |
|---|---|---|---|
| xOracle registration | §EI.4.1 | +50K AEV/chain; external chain node required; jurisdiction self-attested | Superset of internal oracle requirements (§7.5.1) |
| Geographic diversity | §EI.4.1 | Jurisdictional cap ⌊N/3⌋ per declared jurisdiction; stake-slashable | Enforceable basis for the §EI.9 compliance posture |
| External chain key | External ECDSA (secp256k1) | Required for TMS multisig participation | QS applies — rotate every 90 days |
| xLock attestation | ML-DSA-65 signed (value-anchoring); CBOR format | Quorum: same as internal oracle quorum by epoch | ML-DSA-65 per sig.bridge_oracle (recommended; pending ADR-0005). 72h challenge window; external SPV fraud proof |
| xBurn attestation | ML-DSA-65 signed (value-anchoring) | Same quorum | Authorizes external chain withdrawal (recommended; pending ADR-0005) |
| xBlockHeader / xPrice feeds | ML-DSA-44 signed (non-value) | Same quorum | Level-2 retained for high-frequency non-value feeds |
| External header relay | xChainHeaderRelay contract | Bitcoin: 480 headers (~80h), SHA256d; Ethereum: 22,800 headers (~76h), Keccak-256 | Retention ≥ 72h challenge + confirmation depth (RELAY-RETENTION, §EI.5.2); never mixed with Bond/Aevum SHA3-256 domain |
| Slashing (external) | Separate stake pool | 100% for fraudulent xLock/xBurn; 2%/miss for liveness | xOracle external stake independent of internal stake |
| Key rotation | On-chain ceremony | Every 90 days for external ECDSA keys | Limits quantum seam window for collateral keys |
| TVL limits | Per-asset + aggregate | Genesis: 500 BTC, 5K ETH, $20M stablecoins, 50% FCRC aggregate | Tier 1; governance-adjustable |
| xOracle fee (external) | Lock: 0.05% of wrapped value; Release: 0.05% | Paid in AEV at current price feed rate | Same structure as internal oracle fees (§7.5.4) |
§EI.6. SPV Light Client for External Chains
The Bond Desktop Node (full node) integrates a Simplified Payment Verification (SPV) Light Client for external chains, enabling users to independently verify external chain deposits without trusting the xOracle Network. This reduces the trust surface for xHTLC counterparty verification from "trust the xOracle quorum" to "verify yourself."
Bitcoin SPV Implementation:
- Uses Bitcoin's standard SHA256d Merkle proof format.
- Validates block headers via PoW (SHA256d difficulty check).
- Provides transaction inclusion proofs sufficient for xHTLC claim verification.
-
Integrated into the Nexus Mobile Wallet (§10) for in-wallet xHTLC monitoring. Ethereum light-client Implementation (RLP-based):
-
Stores Ethereum block headers (RLP-encoded) whose finality is established by the Altair sync-committee light client (BLS12-381 aggregate verification, §EI.5.2), obtained from the
xChainHeaderRelaycontract on Aevum or verified locally. - Verifies transaction receipts via the Ethereum receipt Merkle trie (Keccak-256-based Patricia Merkle Trie) against those finalized headers.
- Trust caveat: unlike Bitcoin's PoW SPV (where header validity is thermodynamically self-evident), the Ethereum path's header validity rests on a 2/3-honest sync-committee/validator assumption verified via BLS. It is therefore light-client trust, not PoW-equivalent independent SPV, and is surfaced as such. Where the required BLS host-function or an unrecognized fork-version blocks local verification, the path degrades to Level 2 (oracle-attested with challenge). Trust Hierarchy for External Deposits:
Level 0 (highest trust): Run a full external chain node (Bitcoin Core, Ethereum geth/reth)
↓
Level 1: Desktop Node SPV light client (independent verification of headers + Merkle proofs)
↓
Level 2: xOracle attestation + SPV challenge mechanism (72h window, anyone can challenge)
↓
Level 3: xOracle attestation alone (trust the quorum — never recommended for high-value deposits)
§EI.7. External Price Oracle Integration
External asset prices (BTC/BND, ETH/AEV, USDC/AEV) are required for:
- AMM pool initialization and rebalancing monitoring
- xWrap TVL calculations (USD-denominated limits require asset prices)
- User interface price display
- FCRC-X coverage ratio calculations
Price Oracle Architecture. External asset prices are provided by the xOracle Price Feed — an extension of the internal oracle's
BlockTimeAttestationduties:
- xOracles independently observe external price data from multiple sources (major CEX APIs, on-chain AMM spot prices from Uniswap/Curve on Ethereum).
- Each xOracle submits a signed
xPriceAttestationper epoch with their observed price for each tracked pair. - The
xPriceFeedcontract on Aevum aggregates attestations and computes the volume-weighted trimmed-mean price (VWTP) — a single, unambiguous estimator: the volume-weighted mean of the per-oracle submitted prices after discarding the top and bottom 10% (a symmetric 10/10 trim), where the weights are each source's reported observation volume. The VWTP is resistant to outlier manipulation by individual xOracles. Price Feed Security. The VWTP construction fully discards any coalition holding ≤10% of submitted volume (the symmetric 10/10 trim removes it before averaging), so no such minority coalition can move the feed at all; biasing the retained volume-weighted mean toward a chosen target requires a colluding majority (>50%) of submitted volume. This >50% bound follows directly from the trim fraction (10% each side leaves the central 80% of volume, whose weighted mean can only be pulled off the honest price by controlling more than half of it), not from the previously stated unsupported 40% figure. Combined with the xOracle slashing penalty for provably false attestations (price submissions more than 5σ from the VWTP are flagged as potential manipulation), the feed is robust against individual xOracle misbehavior.
Price Feed Limitations. The xPrice feed is not suitable for high-frequency financial applications (derivatives pricing, liquidation triggers for lending protocols). It is specifically scoped to: (1) TVL accounting, (2) FCRC-X coverage ratio, (3) UI display. Any future lending or derivatives protocol built on Aevum must implement its own price oracle, potentially using the xPrice feed as one of several inputs with appropriate TWAP smoothing.
§EI.8. Cross-Chain Game Theory and External MEV
The introduction of external chain interoperability creates new MEV vectors beyond those identified in §7.9 (the fuller §7.11 analysis is planned, not in this repository). These are classified as xMEV (External MEV) and are distinct from internal cross-chain MEV.
§EI.8.1. xMEV Taxonomy
| Vector | Description | Quantified Extractable Value | Mitigation |
|---|---|---|---|
| xM-1: xHTLC Observation Front-Running | Attacker observes Alice's Bond-side xHTLC lock (publicly visible), identifies the h_ext (SHA256 hash), and races to post a competing HTLC on the external chain at a better rate | Bounded by Alice's swap size × (1 - their quoted rate). Only profitable if attacker can offer better terms AND Bob hasn't already locked | P2P Relay encrypted counterparty matching (Kyber key encapsulation) before HTLC construction; swap terms not publicly visible until both sides are locked |
| xM-2: xWrap Deposit Arbitrage | Attacker observes a large wBTC deposit (64 BTC), predicts that wBTC/wBND price on AMM will move, and front-runs the mint with a large wBTC/wBND AMM position | Proportional to AMM pool depth and deposit size. At genesis (500 BTC TVL cap, ~$25M), a 64 BTC deposit (~$3.2M) against a $5M pool creates ~15% price impact | Commit-Reveal Fair Ordering (§3.2.7) prevents proposer-level front-running on Aevum. Slippage tolerance in wallets mitigates user-level exposure |
| xM-3: xOracle Attestation Timing | Attacker is an xOracle operator who delays submitting their attestation to time the wBTC mint at a favorable AMM price | Marginal — single xOracle delay without quorum support only delays minting, doesn't extract value directly | Liveness slashing (2%/missed attestation) penalizes delays. 72h challenge window doesn't advantage the delaying oracle |
| xM-4: External Chain Reorganization Exploit | Attacker with significant Bitcoin hashrate reorgs the Bitcoin chain after an xHTLC-BTC claim, removing the preimage revelation from the blockchain | Requires >50% Bitcoin hashrate for a 6+ block reorg. Economically infeasible | Fixed Bitcoin confirmation target of 6 blocks (§EI.3.4), with the EMA governance-review flag; the hashrate-adaptive depth with a 6-block floor is the Bond-side rule of §7.4.1. Bond timelock set conservatively to 108 Bond blocks (~36h) |
| xM-5: Wrapped Asset De-Peg Manipulation | Attacker with large wBTC position sells into AMM to depress price below BTC parity, triggering the de-peg alert, pausing new mints, and profiting from the ensuing panic | Profitable only if attacker can sustain the de-peg for >1 epoch (7 days) AND has a short position that benefits | De-peg only triggers FCRC evaluation after 2 epochs (14 days). Arbitrageurs have 14 days to restore parity by burning wBTC (which continues even during mint pause). Attacker must absorb AMM losses against arbitrageurs for the full 14 days |
| xM-6: Cross-Chain Sandwich (xHTLC + AMM) | Attacker observes Alice announcing an xHTLC BND↔USDC swap, predicts she will subsequently swap USDC→AEV in the AMM, and sandwiches the AMM step | Standard AMM sandwich against the second-hop AMM swap | Commit-Reveal Fair Ordering (§3.2.7) on Aevum; private relay for xHTLC matching |
§EI.8.2. Game Theory of External Asset TVL Competition
The TVL limits for external assets (§EI.4) create a quota competition game among users who wish to hold wrapped external assets on Aevum. When TVL approaches the limit, new deposits are paused. This creates:
- First-mover advantage. Users who deposit earlier secure quota at the current TVL limit. This incentivizes rapid early adoption but may concentrate wrapped asset holdings among early movers.
- Queue formation. When deposits are paused due to TVL limits, a natural queue forms: users with pending deposits are incentivized to submit governance proposals to increase TVL limits.
- Governance-accelerated TVL increase. The TVL limit increase mechanism (Tier 1 governance) creates a recurring governance event. Validators who hold wBTC or wish to attract wBTC holders will systematically vote to increase TVL limits — a governable parameter with a clear constituency. This is structurally healthy governance: those most affected by the limit have the greatest incentive to participate in its adjustment.
- Equilibrium TVL. The equilibrium TVL for each wrapped asset is determined by the intersection of user demand and the governance-accepted coverage ratio (TVL / FCRC-X balance). As the FCRC-X balance grows (from 5% of BND block rewards flowing through the FCRC), the governance-accepted TVL naturally increases without active intervention — the FCRC itself acts as an automatic TVL expander.
§EI.9. Regulatory and Compliance Layer for External Assets
External asset flows introduce additional regulatory complexity beyond the baseline compliance posture (§13.4). The xWrap protocol involves: custodial-like key holdings by xOracles (for TMS multisig), cross-border asset movements, and potential money transmission implications.
xOracle Operator Compliance.
xOracle operators holding external chain keys for TMS multisig participation may be considered custodians under applicable law (e.g., US Bank Secrecy Act MSB registration, EU MiCA custodian requirements). The protocol takes the following posture:
| Jurisdiction | Analysis | Protocol Posture |
|---|---|---|
| United States | xOracles are decentralized, rotate every 90 days, hold collateral temporarily. May qualify as MSBs under FinCEN guidance for virtual currency exchanges | xOracle operators are responsible for their own compliance. The DAO LLC (Wyoming, §13.4.1) provides legal structure for development entity but does not function as the xOracle custodian |
| European Union | MiCA Article 70+ covers "crypto-asset service providers" including custody. xOracles may qualify as CASP | Same posture — operator responsibility. xOracle registration on-chain is pseudonymous, but the geographic diversity requirement (§EI.4.1 — jurisdictional cap of ⌊N/3⌋ per declared jurisdiction, stake-slashable) creates enforceable jurisdictional distribution |
| Protocol-level mitigation | Threshold multisig design means no single xOracle is a unilateral custodian. Combined with 72h delay barrier, the xOracle's effective custody window is bounded and non-unilateral | The protocol's t-of-N design minimizes unilateral custody characterization |
AML/KYC for External Asset Flows.
The xWrap Bridge Contract on Aevum does not implement on-chain KYC — this would be inconsistent with Axiom 1 (Individual Sovereignty). However:
- Sanctioned address screening. The xWrap Bridge Contract maintains an on-chain blocklist of OFAC SDN-sanctioned Ethereum addresses (updated via governance). Deposits from blocklisted Ethereum addresses are rejected. Pending maintainer decision: this on-chain blocklist conflicts with §13.4.4 and §15.8, which cite this section for UI-layer-only compliance and forbid on-chain blocklists; one of the two must be amended before ratification.
- Bitcoin UTXO taint analysis. For wBTC deposits, the xOracle Network performs basic UTXO origin analysis. Deposits originating from known mixer outputs (e.g., Tornado Cash-associated addresses) or directly from flagged wallets trigger a manual review hold (72h extended delay) before attestation is signed. This is a best-effort analysis — the protocol is not a chain analysis firm.
- Large deposit reporting. xWrap deposits exceeding $50,000 USD equivalent (at current xPrice feed rate) emit a
LargeDepositEventon-chain, providing a transparent audit trail. This is not a regulatory report but creates a publicly verifiable record. - Jurisdictional exclusion. The xWrap Bridge UI (accessed via the Web Swap Service) performs geofence checks consistent with §13.4.4 and §15.8 (OFAC screening at the UI layer; §13.4.2 governs fundraising participants only). Users in jurisdictions prohibited by applicable law receive a UI-level block. On-chain access is permissionless; UI-level controls are the regulatory compliance layer.
§EI.10. Activation Roadmap
External interoperability is not activated at genesis. It is introduced in phases aligned with network maturity and security audit completion.
The Block Target column below counts Bond RSC blocks at the canonical bond.block_time = 20 min (CONSTANTS §1), i.e. bond.blocks_per_year = 26,298. (The earlier ~262,800/393,120/524,880 heights implicitly assumed a ~2-min block and are corrected here; every timelock in §EI.3 already uses the 20-min figure.)
| Phase | Bond Block Target | Milestones Required | External Interop Features Activated |
|---|---|---|---|
| Phase 0 (Genesis) | Block 0 | — | None. Ecosystem operates as a closed loop (BND ↔ AEV only) |
| Phase 1 (Internal Maturity) | ~Block 26,298 (~12 months) | wBND Bridge stable for 6+ months; xOracle registered pool at M≥15; no FCRC triggers activated | xHTLC atomic swap infrastructure deployed (contract + opcodes active). P2P Relay extended with external_chain_id support. No TVL limit increases yet |
| Phase 2 (Atomic Swaps Live) | ~Block 39,447 (~18 months) | Phase 1 complete; xHTLC-BTC and xHTLC-EVM cleared by IRB contract review + public bug bounty (ADR-0019); xOracle active set N≥21 | xHTLC-BTC and xHTLC-EVM live. BND ↔ BTC, BND ↔ ETH, BND ↔ USDC/USDT atomic swaps. xWrap contracts deployed but minting disabled (TVL = 0) |
| Phase 3 (xWrap Live) | ~Block 52,596 (~24 months) | Phase 2 complete; xWrap Vault Contract audited; xOracle external duties live and stable; DAO governance approval via Bicameral vote | xWrap fully active. wBTC, wETH, wUSDC, wUSDT minting enabled at genesis TVL limits. AMM pools deployed. FCRC-X sub-allocation activated |
| Phase 4 (TVL Expansion) | Ongoing post-Phase 3 | Empirical TVL observation; xOracle performance metrics; FCRC-X coverage ratio tracking | TVL limits expanded via Tier 1 governance proposals as network matures |
The xOracle N figures follow the fixed-active-set-from-registered-pool model of CONSTANTS bridge.oracle_set_size (recommended; pending ADR-0005 ratification): the "N≥15" Phase-1 figure is a registered-pool floor, while Phase-2's "N≥21" is the active-set size (VRF-selected from the larger registered pool, quorum ⌊2N/3⌋+1) — distinct from the genesis Bitcoin TMS active set of N=5.
Phase 3 Governance Activation. The activation of xWrap minting (Phase 3) requires a Bicameral governance vote (§11.1): both Chamber 1 (validators, Conviction Voting) and Chamber 2 (holders, Quadratic Voting) must approve. The proposal must include: a completed security audit for the xWrap Vault Contract, an actuarial analysis of FCRC-X coverage adequacy at the proposed TVL limits, and an explicit Quantum Seam Disclosure Statement confirming that all relevant parties understand the ECDSA collateral risk.
§EI.11. Implementation Reference Table
| Component | Specification Location | Key Parameter | Implementer Notes |
|---|---|---|---|
OP_HTLC_XLOCK opcode |
§EI.3.1 | Hash: SHA256; chain_id: 4 bytes; Tier 0 consensus-immutable | New Bond RSC opcode; never use for internal swaps (use OP_HTLC_LOCK + SHA3-256 instead) |
| xSHL construction | §EI.2.2 | Single shared commitment h_ext = SHA256(s) on both legs (no SHA3-256 of s) | One 32-byte preimage s unlocks both legs; security = SHA256 second-preimage resistance (~2^256 / ~2^128 Grover). "Dual-hash" framing retired |
| xHTLC-BTC protocol | §EI.3.2 | BTC timelock: 144 BTC blocks (~24h); Bond timelock: 108 Bond blocks (~36h); safety_factor 1.5×; Δ_margin ~12h (min ≥6 Bond blocks) | Systemic Expressway routing for claim transactions |
| xHTLC-EVM contract | §EI.3.3 | SHA256 precompile at 0x02; keccak256 ≠ sha256 — use sha256(), NOT keccak256() |
Audited deployment required; separate from xWrap Vault |
| xOracle Network | §EI.5 | +50K AEV/chain; external ECDSA key custody; 90-day rotation | ML-DSA-65 for value-anchoring xLock/xBurn, ML-DSA-44 for non-value feeds (recommended, pending ADR-0005); ECDSA for external TMS — quantum seam applies |
| wBTC TMS | §EI.4.2 | Bitcoin P2TR; t-of-N via script leaves (MuSig2 per leaf); quorum (genesis 4-of-5; recommended, pending ADR-0005) | 90-day key rotation mandatory |
| xWrap Vault Contract (EVM) | §EI.4.3 | Solidity; ECDSA (ecrecover) custody keys; SHA256 precompile; processedAttestations anti-replay | 72h delay barrier applies to all releases |
| xChainHeaderRelay | §EI.5.2 | Bitcoin: 480 headers (~80h); Ethereum: 22,800 headers (~76h); retention ≥ 72h challenge + confirmation (RELAY-RETENTION); Ethereum finality via Altair sync-committee BLS light client | Enables SPV fraud proof challenges across the full 72h window |
| External TVL limits | §EI.4 | 500 BTC / 5K ETH / $20M stablecoins / 50% FCRC aggregate | Tier 1; genesis values; governance-adjustable |
| FCRC-X | §EI.4.6 | First-loss 15% of FCRC (covers 30% of worst case); overflow escalates to general FCRC principal (never FCRC-B) up to 50%-FCRC cap | Same 7-of-10 Arca ceremony as main FCRC (§12.4) |
| xPrice feed | §EI.7 | VWTP (volume-weighted 10/10 trimmed mean); 5σ outlier flagging | Not suitable for high-frequency derivatives pricing |
| Activation phases | §EI.10 | Phase 2: xHTLC live ~18mo; Phase 3: xWrap live ~24mo | Phase 3 requires Bicameral governance vote with Quantum Seam Disclosure Statement |
Cross-cutting invariants for external interoperability:
- Quantum Seam is never hidden. Every mechanism that involves external chain assets surfaces
QS_WARNINGat the user interaction layer and emitsQuantumSeamEventon-chain. - SHA3-256 domain integrity. The Bond RSC's SHA3-256 hash domain for internal operations is never mixed with external chain hash functions.
OP_HTLC_XLOCKandxChainHeaderRelayoperate in explicitly namespaced external domains. - External TVL is bounded, and the full FCRC — not FCRC-X alone — backstops the worst case. Combined external TVL is hard-limited to 50% of FCRC balance. The dedicated FCRC-X tranche (15% of FCRC) is a first-loss buffer covering only ~30% of a total external loss (15/50); losses beyond it escalate to the general (undesignated) FCRC principal up to the 50%-of-FCRC ceiling, so the FCRC as a whole can absorb the worst case even though FCRC-X alone cannot. Escalation never draws on FCRC-B (§12.3, §EI.4.6), and any draw beyond FCRC-X uses the §12.4 ceremony. The earlier unqualified "FCRC-X absorbs the worst case" claim is corrected to this coverage ratio (§EI.4.6).
- xOracle external duties are isolated. External chain failures (oracle key compromise, external chain reorg) cannot propagate to Bond ↔ Aevum internal bridge operations. External xOracle stake is a separate pool from internal oracle stake.
- Phase 3 gate is governance-locked. No wrapping of external assets occurs without Bicameral approval including explicit quantum seam disclosure — preventing premature activation that could expose users to undisclosed risks. External Interoperability specified — technology stack and compliance next. §EI completed the ecosystem's external interface layer: cross-chain atomic swaps (xHTLC), external asset wrapping (xWrap), and the explicit management of the Quantum Seam boundary. §13 specifies the implementation stack, funding structure, and regulatory posture that make deployment feasible within current legal realities.