Architecture
DogeVM is a smart contract execution layer for Dogecoin. It adds programmability on top of Dogecoin L1. DogeVM is a metaprotocol — it has no separate chain. It reads Dogecoin transactions, processes them according to DogeVM rules, runs WASM smart contracts, and writes a state summary back to Dogecoin. The underlying L1 never changes; DogeVM just gives it superpowers.New to blockchain terms? See the Glossary for plain-English definitions of L1, WASM, vaults, Doginals, and more.
Core Components
Execution Layer
WASM Virtual Machine (Smart Contract Engine)
DogeVM runs smart contracts written in Rust, compiled to WebAssembly (WASM). The VM:- Runs the same contract code identically on every node
- Charges gas for each operation (prevents runaway code)
- Provides contracts access to storage, events, L1 chain data, and cross-contract calls
State Processor
The state processor maintains the global record of all contract state and balances. It:- Processes transactions in order
- Computes a state root — a single hash summarizing all state
- Posts that root to Dogecoin L1 so anyone can verify DogeVM is behaving correctly
Fee Market (EIP-1559 Style)
DogeVM uses a dynamic fee system:- A base fee adjusts automatically — rises when blocks are full, falls when empty
- Maximum change per block: ±12.5%
- Target utilization: 40% of block gas
- Add a priority tip for faster inclusion
Bridge Layer
No “bridge” to trust
We use the word bridge for the component that connects DogeVM to Dogecoin L1, but it is not a traditional crypto bridge:| Traditional bridge | DogeVM |
|---|---|
| You lock assets on Chain A; receive wrapped tokens on Chain B | Your DOGE stays in your vault on Dogecoin the whole time |
| A bridge contract holds funds; can be hacked or frozen | No bridge contract. Vault is 2-of-2 (you + protocol); only you have an escape path |
| Wrapped asset is a separate token | vDOGE is a 1:1 balance; your vault balance on L1 equals your vDOGE |
Dogecoin Bridge (mainnet not yet live)
- Vault type: P2PKH with CLTV escape hatch
- Verification: Economic bonds + fraud proofs — anyone can challenge incorrect state
- State commits: OP_RETURN outputs (32-byte state root)
- Deposit confirmations: 3 blocks (~3 min — Dogecoin’s ~1-minute blocks)
- Escape timelock: 20,160 blocks (~2 weeks)
Security Layer
How DogeVM Ensures Correctness
Economic bonds + fraud proofs Operators post a bond in DOGE before committing state. If the commitment is wrong, anyone can challenge:Vault Architecture
Every user’s deposited funds are held in a vault — an on-chain Dogecoin address with two spending paths:Escape Hatch
| Chain | Blocks | Time |
|---|---|---|
| Dogecoin | 20,160 | ~2 weeks |
Transaction Flow (on Dogecoin)
Deposit
Withdrawal
Smart Contract Call
Node Architecture
| Node Mode | What it does | Who runs it |
|---|---|---|
| Primary | Produces DogeVM blocks, commits state to Dogecoin L1 | Main operator |
| Replica | Syncs from primary, serves read requests | Scaling / redundancy |
| Archive | Full history, never prunes | Block explorers, auditors |
