Shadow Nox

Privacy-preserving parallel DeFi on Arcology with 10k+ TPS, powered by EVVM Fisher bots.

Visit Repo
Shadow Nox banner

About

**Shadow Nox** is a privacy-preserving, high-performance decentralised finance (DeFi) protocol built on **Arcology's parallel execution blockchain**, designed to create a "dark-pool-like" trading environment while maintaining verifiable aggregate metrics. The project demonstrates the potential of parallel blockchain execution combined with privacy-focused architecture to enable institutional-grade DeFi operations.

### Core Problem Solved

Traditional DeFi platforms face three critical challenges: 1. **Performance Bottlenecks**: Sequential transaction processing limits throughput (15-30 TPS on Ethereum L1) 2. **Privacy Concerns**: All transaction details are publicly visible, exposing trading strategies and positions 3. **High Costs**: Gas fees make micro-transactions and high-frequency operations economically unviable

Shadow Nox addresses all three by combining Arcology's parallel execution (10,000-15,000 TPS), privacy-preserving intent architecture, and 100x lower gas costs.

### Architecture Layers

#### 1. **Execution Layer: Arcology Parallel Blockchain** Arcology serves as the smart contract execution environment, processing thousands of transactions simultaneously across multiple EVM instances. Key features: - **10,000-15,000 TPS**: Massive throughput through optimistic concurrency control - **100% EVM Equivalence**: Full Solidity compatibility with zero code changes - **Optimistic Concurrency**: Storage-slot level conflict detection and resolution - **Per-User Isolation**: Different users can interact with contracts simultaneously without conflicts - **100x Lower Gas Fees**: Significantly reduced transaction costs compared to Ethereum L1

#### 2. **Privacy Layer: Intent-Based Architecture** Shadow Nox implements a privacy-preserving model where individual transaction details are stored as bytes on-chain while maintaining public aggregate metrics:

**Private (Intent Data as Bytes):**

- Individual swap parameters (token pairs, amounts, slippage) - Lending positions (borrow amounts, collateral values) - User portfolio compositions - Specific trade execution details

**Public (Aggregate Metrics):**

- Total protocol TVL (Total Value Locked) - Market-wide swap volumes - Average lending rates - Protocol-level statistics

This creates a "dark pool" experience where traders can execute large orders without revealing their strategies, while regulators and users can still verify protocol health through aggregate data.

#### 3. **Oracle Layer: Custom Price Oracle + Pyth Hermes API** A critical innovation in the Shadow Nox is solving the oracle challenge on Arcology:

**Problem**: Pyth Network's on-chain contracts are NOT deployed on the Arcology blockchain.

**Solution**: Custom Oracle architecture that: - Fetches real-time price data from Pyth's Hermes API (off-chain) - Stores prices on-chain via CustomPriceOracle contract - Validates price freshness (default: 60-second staleness threshold) - Implements price deviation protection (default: 10% max change) - Supports multi-signature updates from authorised Fisher bots - Provides aggregate market metrics without exposing individual positions

This approach maintains data integrity and real-world price accuracy while being fully compatible with Arcology's execution model.

#### 4. **Relay Layer: EVVM Fisher Bots** Shadow Nox uses EVVM as a **Fisher/Relayer bot infrastructure** (not as the execution layer). Fisher bots provide:

  • **EIP-191 Signatures**: Secure transaction signing for relay to Arcology
  • **Gasless UX**: Users sign intents; Fisher bots execute and pay gas
  • **Multi-Platform Interface**: WhatsApp and Telegram bot integration
  • **Async/Sync Nonce Management**: Flexible transaction ordering options
  • **Oracle Updates**: Fisher bots fetch Pyth prices and update on-chain oracle
  • **Reward Mechanism**: Incentive system for bot operators

Users interact through messaging platforms, sign intents with EIP-191, and Fisher bots handle blockchain execution—creating a seamless, non-technical user experience.

### Core Smart Contracts

#### **EncryptedSwap.sol**

Privacy-preserving token swap contract with: - Intent submission with ABI-encoded parameters stored as bytes - Price validation via CustomPriceOracle - Slippage protection and deadline enforcement - AtomicCounter integration for parallel-execution-friendly aggregate metrics - Per-user storage isolation for maximum Arcology parallelism

#### **SimpleLending.sol**

Decentralised lending/borrowing protocol featuring: - Collateral-based borrowing with health factor monitoring - Real-time price feeds from CustomPriceOracle - Interest rate calculations - Liquidation mechanisms with price deviation protection - Privacy-preserving position management

#### **CustomPriceOracle.sol**

Custom Oracle solution providing: - Multi-signature price updates from authorised Fisher bots - Price staleness validation - Confidence interval tracking - Batch update support for gas efficiency - Integration with Pyth Hermes API data structure

#### **AtomicCounter.sol**

Arcology-optimised counter for aggregate metrics: - Minimises storage-slot conflicts in parallel execution - Separate instances per metric type - Conflict-resistant increment operations - Demonstrates Arcology's parallel execution capabilities

### Technical Innovations

  • **Parallel DeFi Primitives**: First implementation of high-throughput DeFi operations leveraging Arcology's 10k+ TPS capacity
  • **Privacy Without Full Encryption**: Intent-data-as-bytes approach provides privacy while maintaining smart contract logic transparency (MVP approach, with full encryption planned)
  • **Off-Chain Oracle Bridge**: Custom solution to integrate Pyth's real-time price feeds on blockchains where Pyth isn't deployed
  • **Fisher Bot Economy**: Decentralised relayer network with incentive mechanisms for gasless user experiences
  • **Storage-Optimised Counters**: The AtomicCounter pattern minimises conflicts in parallel execution environments

### Use Cases

**Private Trading**: Execute large token swaps without revealing strategy or moving markets. Ideal for whales and institutional traders.

**Dark Pool Liquidity**: Match large orders off the visible order book while maintaining price discovery through aggregate metrics.

**Private Lending**: Borrow and lend assets with confidential position management. Only you see your collateral and debt levels.

**High-Frequency Operations**: 10,000-15,000 TPS enables DeFi strategies previously impossible due to throughput constraints.

**Gasless UX**: Messaging app integration with Fisher bot relay makes DeFi accessible to non-technical users.

### Technical Stack

  • **Blockchain**: Arcology (EVM-equivalent parallel execution)
  • **Smart Contracts**: Solidity 0.8.20
  • **Development**: Hardhat, Node.js 18+
  • **Oracle**: Pyth Hermes API + CustomPriceOracle
  • **Relayer Network**: EVVM Fisher bots
  • **User Interface**: React, Vite, TailwindCSS
  • **Messaging**: WhatsApp, Telegram bot APIs
  • **Testing**: Jest, Hardhat test suite

### Project Philosophy

Shadow Nox represents a vision for **next-generation DeFi** where: - Performance matches centralised exchange speeds (10k+ TPS) - Privacy protects individual users while maintaining system transparency - User experience rivals Web2 applications (messaging app interfaces) - Infrastructure costs enable micro-transactions and new DeFi primitives - Institutional-grade tools become accessible to retail users

The project demonstrates that blockchain scalability, privacy, and usability can coexist through innovative architecture combining parallel execution, privacy-preserving intent systems, and user-friendly relay networks.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Ozone Finance

Ozone Protocol: A decentralized aggregation layer for cross-chain liquidity using FROST. Features AI-enhanced DeFi experiences and a complete darkpool based on FHE, TEE, and SGX. Trustless, private, and limitless blockchain interoperability for the future of DeFi