Skip to content

Architecture Overview

System Layers

┌─────────────────────────────────────────────────────────────────────┐
│                     EXTERNAL NETWORKS                               │
│              Ethereum · Base · Solana · Other EVMs                  │
└──────────────────────────┬──────────────────────────────────────────┘
                           │ EIP-712 / Ed25519 cross-chain proofs
┌──────────────────────────▼──────────────────────────────────────────┐
│                   RELAY DEPOSITORY LAYER                            │
│         DongChainDepository contract (non-upgradable)               │
│         MPC Allocator · Solver Network · EIP-712 settlement         │
└──────────────────────────┬──────────────────────────────────────────┘
                           │ XCM messages
┌──────────────────────────▼──────────────────────────────────────────┐
│                 DONG CHAIN — LAYER 1 (PARACHAIN)                    │
│                                                                     │
│  ┌─────────────────────────────────────────────────────────────┐   │
│  │              SMART CONTRACT EXECUTION                        │   │
│  │    pallet-revive · PolkaVM (RISC-V) · REVM (EVM compat)    │   │
│  │    resolc compiler · Solidity/Rust/C/C++ → RISC-V           │   │
│  └─────────────────────────────────────────────────────────────┘   │
│                                                                     │
│  ┌─────────────────────────────────────────────────────────────┐   │
│  │             ACCOUNT ABSTRACTION (ERC-4337)                   │   │
│  │    EntryPoint · Bundler · Paymaster · Smart Accounts        │   │
│  │    Session Keys · P-256 biometric · Multi-sig               │   │
│  └─────────────────────────────────────────────────────────────┘   │
│                                                                     │
│  ┌─────────────────────────────────────────────────────────────┐   │
│  │               SUBSTRATE RUNTIME (FRAME)                      │   │
│  │    Balances · Governance · Timestamp · XCM · Cumulus        │   │
│  └─────────────────────────────────────────────────────────────┘   │
└──────────────────────────┬──────────────────────────────────────────┘

               ┌───────────┴───────────┐
               │ BitVM2 Bridge         │ XCM to Polkadot
               │ (1-of-n honesty)      │ Parachains
               │ SNARK fraud proofs    │
               └───────────┬───────────┘

┌──────────────────────────▼──────────────────────────────────────────┐
│                   LAYER 0 — MOTHERBOARD                             │
│                                                                     │
│  ┌─────────────────────────┐  ┌────────────────────────────────┐   │
│  │  Bitcoin Core (PoW)     │  │  OmniCore                      │   │
│  │  txindex=1              │  │  OP_RETURN metadata             │   │
│  │  UTXO state             │  │  RWA token registry             │   │
│  │  6-block finality       │  │  Layer B/C encoding             │   │
│  └─────────────────────────┘  └────────────────────────────────┘   │
│                                                                     │
│  ┌───────────────────────────────────────────────────────────────┐  │
│  │  ZK Finality Anchoring                                        │  │
│  │  RISC Zero zkVM → zk-STARK proof → BitVM payload → Bitcoin   │  │
│  └───────────────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────────────┘

Component Responsibilities

ComponentResponsibilityTechnology
Bitcoin CorePoW security, UTXO settlementBitcoin Core v25+
OmniCoreRWA asset tokenization registryOmniCore (txindex=1)
BitVM2 BridgeTrust-minimized BTC↔Dong Chain bridgeBitVM2, Taproot, SNARK
Relay ChainShared security, block validationPolkadot SDK (Substrate)
Collator NodesBlock production, PoV generationCumulus
pallet-reviveRISC-V smart contract executionPolkaVM + REVM
pallet-revive-eth-rpcEthereum-compatible JSON-RPCSubstrate JSON-RPC
resolcSolidity → RISC-V compilerresolc (Parity)
ERC-4337 EntryPointSmart Account transaction hubSolidity (non-upgradable)
BundlerUserOperation aggregationNode.js / Rust
PaymasterGas sponsorshipSolidity
DongChainDepositoryCross-chain liquidity vaultSolidity (non-upgradable)
MPC AllocatorCross-chain proof signingMulti-Party Computation
Solver NetworkInstant cross-chain order fillingOff-chain agents
RISC Zero zkVMZK batch proof generationRISC Zero

Data Flow: RWA Asset Full Lifecycle

[Institution] → omni_sendissuancefixed → [Bitcoin L0: OP_RETURN]

                                    [BitVM2 peg-in lock]

                                    [Oracle confirms: 6 BTC blocks]

                                    [Dong Chain: mint wrapped asset]

                                    [RISC-V smart contract interaction]
                                    (AMM, lending, compliance logic)

                                    [Cross-chain: Relay Depository]

                    ┌───────────────────────────┼────────────────────────────┐
                    │                           │                            │
             [Ethereum DeFi]            [Solana ecosystem]          [Other Parachain]
                    │                           │                            │
                    └───────────────────────────┴────────────────────────────┘

                                    [ZK-STARK batch proof]

                                    [Bitcoin L0 finality anchor]

Network Topology

                    ┌─────────────────┐
                    │   Relay Chain   │ (Polkadot or custom)
                    │   Validators    │
                    └────────┬────────┘
                             │ Cumulus / XCMP
           ┌─────────────────┼─────────────────┐
           │                 │                 │
    ┌──────▼──────┐  ┌───────▼───────┐  ┌─────▼────────┐
    │ Dong Chain  │  │  DeFi Para    │  │  Gaming Para  │
    │ (Main Para) │  │  (AMM, LP)    │  │  (NFT, Items) │
    └──────┬──────┘  └───────────────┘  └──────────────┘

           │ BitVM2 Bridge

    ┌──────▼──────┐
    │  Bitcoin L0  │
    │  + OmniCore  │
    └─────────────┘

Security Model Summary

ThreatProtection
51% attack on Dong ChainInherited from Relay Chain validator set
Bitcoin reorg (< 6 blocks)Peg-in waits for 6-block confirmation
BitVM2 operator collusion1-of-n liveness: only 1 honest operator needed
Depository contract upgradeNon-upgradable; no proxy patterns
Replay attack on cross-chain proofEIP-712 domain separator + nonce
Invalid EIP-712 signatureecrecover verification vs. MPC_ALLOCATOR

Further Reading

Released under the Apache 2.0 License.