Skip to main content

Overview

NEXUS-Dogecoin brings smart contract programmability to Dogecoin, leveraging its fast block times and low fees for quick deposits and withdrawals.

Security Model

NEXUS-Dogecoin provides trustless verification through:

Cryptographic Soundness (ZK-STARK)

  • State transitions proven via ZK-STARK proofs
  • No trusted setup required
  • Post-quantum secure
  • Anyone can verify proofs

Fraud Proofs

  • Provers post bonds on Dogecoin L1
  • State commitments via OP_RETURN outputs
  • Invalid state transitions can be challenged
  • Fast finality (~6 min) enables quicker dispute resolution
  • Fraudulent provers lose bonds to challengers

Combined Model

ZK-STARK Proofs (Cryptographic) + Economic Bonds (Dogecoin L1)
                    =
         Trustless Verification with Fast Finality

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                      NEXUS-Dogecoin                              │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                    Dogecoin L1                            │   │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐       │   │
│  │  │    P2PKH    │  │    Fast     │  │    State    │       │   │
│  │  │   Vaults    │  │   Blocks    │  │   Commits   │       │   │
│  │  └─────────────┘  └─────────────┘  └─────────────┘       │   │
│  └──────────────────────────────────────────────────────────┘   │
│                              │                                   │
│                              ▼                                   │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                    NEXUS Layer                            │   │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐       │   │
│  │  │   WASM VM   │  │ DOGE/BTC    │  │    Meme     │       │   │
│  │  │  Contracts  │  │   Swaps     │  │   Tokens    │       │   │
│  │  └─────────────┘  └─────────────┘  └─────────────┘       │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                  │
└─────────────────────────────────────────────────────────────────┘

Key Advantages

Fast Block Times

  • Dogecoin: ~1 minute blocks
  • Bitcoin: ~10 minute blocks
  • Faster deposit confirmations

Low Fees

  • Minimal transaction fees
  • Cost-effective for small deposits
  • Accessible to all users

High Throughput

  • More transactions per hour
  • Better for frequent operations
  • Ideal for micro-transactions

Supported Features

FeatureStatusDescription
P2PKH VaultsStandard Dogecoin addresses
Fast Deposits~6 min confirmation (6 blocks)
State CommitsOn-chain commitments
Smart ContractsFull WASM support
Cross-Contract Callsxcc and delegate calls
DOGE/BTC Swaps🔄 V2Via intent exchange
DOGE/ZEC Swaps🔄 V2Via intent exchange
Unified Liquidity🔄 V2Cross-chain pools

Deposit Flow

// 1. Get vault address
const vault = await client.getVaultAddress('dogecoin');
console.log('Deposit DOGE to:', vault.vaultAddress);

// 2. Send Dogecoin
// dogecoin-cli sendtoaddress <VAULT_ADDRESS> 1000

// 3. Wait for confirmations (~6 minutes for 6 blocks)

// 4. Balance credited on L2
const balance = await client.getBalance();

Withdrawal Flow

// Request withdrawal
await client.requestWithdrawal(dogeAddress, amount, 'dogecoin');

// Withdrawals processed in batches
// Receive DOGE on L1

Vault Structure

Dogecoin vaults use P2PKH (Pay-to-Public-Key-Hash) addresses:
Vault Address (P2PKH)

├── L1 balance = L2 balance (1:1 backing)

└── User can spend after timelock (escape hatch)
    └── Using CLTV (CheckLockTimeVerify)

Configuration

[dogecoin]
rpc_url = "http://localhost:22555"
rpc_user = "user"
rpc_password = "password"
network = "regtest"  # mainnet, testnet, regtest

[dogecoin.vault]
escape_timelock = 1440  # ~1 day in blocks (1 min blocks)

[dogecoin.state_commit]
interval_blocks = 60  # Every hour

Cross-Chain Swaps (V2)

Cross-chain swaps between DOGE/BTC/ZEC will be available in V2 via intent exchange.

DOGE → BTC (V2)

// V2: Intent-based cross-chain swap
const intent = await client.createSwapIntent({
  fromChain: 'dogecoin',
  toChain: 'bitcoin',
  fromAmount: dogeAmount,
  minToAmount: minBtcOut,
  recipient: btcAddress
});

// Intent matched and executed by solvers
await client.waitForIntentFulfillment(intent.id);

BTC → DOGE (V2)

// V2: Intent-based cross-chain swap
const intent = await client.createSwapIntent({
  fromChain: 'bitcoin',
  toChain: 'dogecoin',
  fromAmount: btcAmount,
  minToAmount: minDogeOut,
  recipient: dogeAddress
});
V1 supports DOGE deposits, withdrawals, and smart contracts. Unified liquidity with BTC/ZEC via intent exchange is coming in V2.

State Commitments

NEXUS posts state commitments to Dogecoin:
Dogecoin Block 1000: State Root 0xabc... (OP_RETURN)
Dogecoin Block 1060: State Root 0xdef... (OP_RETURN)
Benefits of Dogecoin for state commits:
  • Lower fees than Bitcoin
  • Faster finality
  • More frequent commits possible

Confirmation Times

ChainBlock TimeConfirmationsTotal Time
Bitcoin10 min6~60 min
Zcash2.5 min10~25 min
Dogecoin1 min6~6 min
Dogecoin offers the fastest deposit experience in the NEXUS ecosystem.

Use Cases

Micro-Transactions

Low fees make DOGE ideal for small amounts:
  • Tipping
  • Gaming
  • Micro-payments

Quick Swaps

Fast confirmations enable:
  • Rapid BTC acquisition via DOGE
  • Quick arbitrage opportunities
  • Time-sensitive trades

Meme Token Ecosystem

Deploy meme tokens on NEXUS with DOGE:
// Deploy meme token
const token = await client.deployContract(memeTokenWasm, [
  'ShibaNexus', 'SHIBNEX', 18, '1000000000000'
]);

Comparison

FeatureNEXUS-DogeNative DogeWrapped DOGE
Smart Contracts✅ FullDepends
Block Time1 min1 minVaries
Cross-Chain🔄 V2
TrustlessUsually ❌
DeFiLimited
FeesLowLowVaries

Roadmap

V1 (Current)

  • ✅ Full WASM smart contracts
  • ✅ Cross-contract calls & delegate calls
  • ✅ P2PKH vaults with escape hatch
  • ✅ ZK-STARK verification
  • ✅ Fast deposits (~6 min)

V2 (Planned)

  • 🔄 Unified liquidity with BTC/ZEC via intent exchange
  • 🔄 Cross-chain swaps (DOGE/BTC/ZEC)
  • 🔄 Meme token liquidity pools