xhavic.io
GitHub (Coming Soon) Whitepaper
Docs / Dual Wallet System

Dual Wallet System

Xhavic's core innovation — protocol-level separation of fast DeFi and institutional safety.

The Dual Wallet System is Xhavic’s core protocol-level innovation. It separates transactions into two execution paths at the sequencer level, giving developers and users the ability to choose between speed and safety for every transaction.

The Problem

Every existing Layer 2 forces a single finality model on all transactions. A $5 token swap and a $5 million treasury transfer receive identical security guarantees. This is a false choice:

  • Speed-optimized chains sacrifice safety — transactions are irreversible immediately.
  • Safety-optimized chains sacrifice speed — all transactions wait for extended confirmations.

Two Execution Paths

Instant Wallet

PropertyValue
Soft finality< 200 milliseconds
ComposabilityFull — atomic execution with other contracts
ReversibilityNone — irreversible by design
Settlement~13 minutes (Ethereum confirmation)
Best forDeFi, trading, AI agents, automation

The Instant Wallet is the default execution path. Transactions execute immediately, are composable with other on-chain state, and cannot be reversed. This is equivalent to the finality model on Arbitrum, Optimism, and other L2s.

Secured Wallet

PropertyValue
Escrow period24 hours
ComposabilityNone — isolated until finalized
ReversibilityYes — multi-sig reversal within escrow window
SettlementAfter 24-hour escrow closes
Best forTreasury, institutional, RWA, high-value

The Secured Wallet routes transactions through a 24-hour cryptographic escrow. During this window, authorized signers can reverse the transaction. Once the escrow expires, the transaction finalizes.

Why Composability and Reversibility Are Mutually Exclusive

This is an architectural constraint, not a design choice:

  • Composable transactions execute atomically with other contracts in the same block. Reversing one would require reversing all dependent transactions.
  • Reversible transactions must be isolated. No downstream contract can depend on a transaction that might be reversed.

Xhavic is the first L2 to support both by implementing two parallel execution paths at the sequencer level.

For Developers

The Dual Wallet System is transparent to smart contracts. Your contract code does not change. The routing happens at the sequencer level based on the wallet address.

// Detect wallet type from frontend/backend
const walletType = await provider.send("xhv_getWalletType", [userAddress]);
// Returns: "instant" or "secured"

Full Integration Guide →