Skip to content

deeep-network/avax9000

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DeEEP Network - Decentralized Edge & Embedded Platform

AVAX Retro9000 License: MIT

🎯 Overview

DeEEP Network is a DePIN (Decentralized Physical Infrastructure Network) built on Avalanche L1 that enables secure device authentication using hardware-backed P-256 (secp256r1) cryptography. The network leverages the native P256VERIFY precompile (RIP-7212/ACP-204) for gas-efficient signature verification directly on-chain.

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    DeEEP Network L1 (Avalanche)                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  P256VERIFY Precompile (0x0100) - RIP-7212/ACP-204             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Smart Contracts                                                β”‚
β”‚  β”œβ”€β”€ DeEEPDeviceRegistry - Device registration & heartbeats    β”‚
β”‚  β”œβ”€β”€ DINNFT - Device Identity NFTs (ERC-721)                   β”‚
β”‚  β”œβ”€β”€ DeEEPPaymaster - ERC-4337 gas sponsorship                 β”‚
β”‚  β”œβ”€β”€ DeEEPToken - Governance token (ERC-20)                    β”‚
β”‚  β”œβ”€β”€ TieredRewards - Device reward distribution                β”‚
β”‚  └── SecurityManager - Access control & emergency functions    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“¦ Project Structure

avax9000/
β”œβ”€β”€ contracts/           # Solidity smart contracts (Foundry)
β”‚   β”œβ”€β”€ src/            # Contract source files
β”‚   β”œβ”€β”€ test/           # Contract tests
β”‚   └── script/         # Deployment scripts
β”œβ”€β”€ deeep-docs/         # Comprehensive documentation
β”‚   β”œβ”€β”€ architecture/   # System architecture docs
β”‚   β”œβ”€β”€ contracts/      # Contract documentation
β”‚   β”œβ”€β”€ device-auth/    # Device authentication guides
β”‚   β”œβ”€β”€ tokenomics/     # Token economics documentation
β”‚   └── gas-payment/    # Paymaster & gas docs
β”œβ”€β”€ lib/                # JavaScript utilities
β”‚   └── p256-utils.js   # P-256 cryptography helpers
β”œβ”€β”€ scripts/            # Deployment & setup scripts
└── presentation-demo.js # Live demo script

πŸ” Smart Contracts

Contract Description
DeEEPDeviceRegistry Device registration with P-256 keys, heartbeat submission
DINNFT ERC-721 Device Identity NFTs with device linking
DeEEPPaymaster ERC-4337 paymaster for gasless device operations
DeEEPToken Governance token with ERC-20Votes
TieredRewards Plugin and utilization rewards for devices
FoundersRewards 1776 Founder NFT rewards distribution
P256Utils Helper library for P-256 signature verification

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Foundry (forge, cast, anvil)
  • Avalanche CLI

Installation

# Clone repository
git clone https://github.com/deeep-network/avax9000.git
cd avax9000

# Install dependencies
npm install

# Install Foundry dependencies
cd contracts && forge install

Run Demo

# Start local Avalanche network with P-256 precompile
avalanche blockchain create deeep --evm-version granite

# Run the P-256 authentication demo
node presentation-demo.js

πŸ”‘ P-256 Authentication Flow

  1. Device Manufacturing: Generate P-256 key pair in hardware security module
  2. Device Registration: Register compressed public key on-chain via DeEEPDeviceRegistry
  3. NFT Minting: Mint Device Identity NFT via DINNFT
  4. Device Linking: Link P-256 key to NFT for ownership proof
  5. Heartbeat Submission: Device signs telemetry data, verified via P256VERIFY precompile

πŸ“Š Tokenomics

  • Token: DEEEP
  • Max Supply: 83,800,000,000 (83.8B)
  • Decimals: 18

Distribution (for 1M devices)

Category Allocation
Plugin Rewards 2.77%
Utilization Rewards 85.91%
Founders (1776 NFTs) 4.77%
Community Fund 5.55%

πŸ“– Documentation

Full documentation available in /deeep-docs:

Getting Started: Overview β€’ Key Concepts

Architecture: System Overview β€’ Network β€’ Auth Flow β€’ Gas Payment

Device Authentication: Overview β€’ TPM 2.0 P-256 β€’ Registration β€’ Heartbeats β€’ Challenges

Smart Contracts:

Tokenomics: Overview β€’ Distribution β€’ Plugin Rewards β€’ Utilization Rewards β€’ Founder Rewards β€’ Community Fund β€’ Genesis Migration

Gas Payment: Overview β€’ Paymaster Architecture

Infrastructure: AVAX 9000 L1 β€’ Subnet-EVM

Development: Setup β€’ Testing β€’ Deployment β€’ Contributing

Security: Overview β€’ Audit Strategy β€’ Best Practices

Reference: Glossary β€’ API Reference β€’ Contract Addresses

πŸ›‘οΈ Security

  • P-256 (NIST secp256r1) - FIPS 186-4 compliant
  • Hardware security module integration
  • Role-based access control
  • Emergency pause functionality
  • Rate limiting on device operations

πŸ”— Official Links

πŸ“„ License

This project is licensed under the DeEEP Network Source Available License - Non-commercial use only. See LICENSE file for details.

Commercial licensing available - contact license@deeep.network

πŸ™ Acknowledgments

  • Avalanche Foundation - Retro9000 Grant Program
  • RIP-7212 / ACP-204 P-256 Precompile standardization
  • OpenZeppelin - Secure contract libraries

About

DeEEP Network AVAX9000 L1 Contracts and Deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors