Skip to content

cryptuon/dfpn

Repository files navigation

DFPN Banner

DFPN

The Decentralized Immune System Against Synthetic Media

Solana Anchor Rust MIT License

Vue 3 TypeScript PyTorch Live


DFPN is a decentralized coordination layer for deepfake detection on Solana. It connects clients who need media verified with independent node operators running their own detection models and GPU infrastructure. Economic incentives -- staking, rewards, and slashing -- ensure honest, accurate results without any central authority.


Trustless Verification

Multiple independent workers analyze every request. Commit-reveal protocol prevents collusion. Results are aggregated into consensus verdicts on-chain.

Economic Security

Workers stake DFPN tokens as commitment. Accurate work earns rewards. Fraud gets slashed. The protocol aligns incentives without trusting anyone.

Open & Composable

Bring your own models. Bring your own GPUs. The protocol is the coordination layer -- detection capabilities are permissionlessly provided by operators.


The Problem

AI-generated synthetic media is growing exponentially. Face swaps, voice clones, generated images, and manipulated videos erode trust in digital content. Centralized detection services create single points of failure, lack transparency, and concentrate power over what is deemed "real."

DFPN decentralizes the solution. Independent operators run diverse detection models. Economic incentives replace trust. On-chain transparency replaces black boxes.


How It Works

sequenceDiagram
    participant C as Client
    participant S as Solana
    participant W1 as Worker 1
    participant W2 as Worker 2
    participant W3 as Worker 3

    C->>S: Submit request + fee
    S-->>W1: Task available
    S-->>W2: Task available
    S-->>W3: Task available
    W1->>W1: Run detection model
    W2->>W2: Run detection model
    W3->>W3: Run detection model
    W1->>S: Commit (hash of result)
    W2->>S: Commit (hash of result)
    W3->>S: Commit (hash of result)
    Note over S: Commit window closes
    W1->>S: Reveal result
    W2->>S: Reveal result
    W3->>S: Reveal result
    S->>S: Aggregate consensus
    S-->>C: Verdict + confidence
    S-->>W1: Reward
    S-->>W2: Reward
    S-->>W3: Reward
Loading

9 steps. Fully on-chain. Trustless end-to-end.

  1. Submit -- Client posts media hash + fee + required modalities
  2. Route -- Workers poll for matching requests
  3. Analyze -- Each worker runs their models locally (DFPN never sees inference)
  4. Commit -- Workers lock in result hashes (prevents copying)
  5. Reveal -- Results are disclosed and verified against commitments
  6. Consensus -- Reputation-weighted aggregation produces a verdict
  7. Reward -- Workers and model developers earn based on accuracy

Participate

Run a Node

For GPU operators and infrastructure providers

Stake DFPN tokens, run detection models on your hardware, and earn rewards for every request you process accurately.

  • Min stake: 5,000 DFPN
  • Hardware: RTX 3080+ GPU
  • Earn: 65% of request fees

Get started as a Worker →

Verify Media

For platforms, newsrooms, and applications

Submit images, videos, or audio for deepfake analysis. Get consensus verdicts from multiple independent workers with full audit trails.

  • SDK: TypeScript & Python
  • Cost: ~0.002-0.008 SOL per request
  • Speed: 1-30 seconds

Get started as a Client →

Build Models

For ML researchers and algorithm developers

Register your detection models on the network. Every time a worker uses your model to process a request, you earn a share of the fee.

  • Stake: 20,000 DFPN per model
  • Earn: 20% of request fees
  • Supported: Image, Video, Audio, Face, Voice

Get started as a Model Developer →


Detection Models

Four pre-configured models ship with the worker client, covering the major deepfake modalities:

Model Modality Architecture Accuracy GPU Speed
face-forensics Face Manipulation SBI / EfficientNet-B4 97.2% 50ms
universal-fake-detect AI-Generated Images CLIP-ViT-L/14 99.8% 100ms
video-ftcn Video Authenticity Xception + Temporal CNN 96.4% 2s
ssl-antispoofing Voice Cloning wav2vec 2.0 / XLSR-53 99.2% 200ms

Workers can run any combination of models. Model developers can register new models permissionlessly.


Token Economics

Total Supply: 1,000,000,000 DFPN

Allocation Share
Network Rewards 38%
Treasury 20%
Team & Advisors 18%
Ecosystem Growth 12%
Strategic Partners 7%
Liquidity 5%

Fee Distribution per Request

Workers           ██████████████████████████  65%
Model Developers  ████████                    20%
Treasury          ████                        10%
Insurance Pool    ██                           5%

Scoring: Accuracy (50%) + Availability (25%) + Latency (15%) + Consistency (10%)


Architecture

graph TB
    subgraph Clients
        A[Web App / SDK]
    end

    subgraph Solana Programs
        B[Content Registry]
        C[Analysis Marketplace]
        D[Worker Registry]
        E[Model Registry]
        F[Rewards & Treasury]
    end

    subgraph Off-Chain
        G[Worker Daemon]
        H[Indexer API]
        I[Storage - IPFS / Arweave / S3]
    end

    subgraph Dashboard
        J[Vue.js SPA]
    end

    A -->|Submit Request| C
    A -->|Register Content| B
    G -->|Poll & Process| C
    G -->|Commit/Reveal| C
    G -->|Fetch Media| I
    D -->|Stake & Register| D
    E -->|Register Models| E
    F -->|Distribute Rewards| F
    H -->|Index On-Chain Data| C
    H -->|Index| D
    H -->|Index| E
    J -->|Query| H
    J -->|Wallet Connect| C
Loading

Repository Structure

programs/               Solana smart contracts (Anchor)
  content-registry/     Media hash and provenance storage
  analysis-marketplace/ Request creation and result tracking
  model-registry/       Model metadata and versioning
  worker-registry/      Worker staking and reputation
  rewards/              Reward distribution and treasury
worker/                 Node operator client (Rust)
indexer/                REST API indexer (Axum + Tantivy)
sdk/                    TypeScript SDK
models/                 Pre-configured detection models
dashboard/              Vue.js web dashboard
documentation/          MkDocs user documentation

Quick Start

# Run the dashboard locally
cd dashboard && npm install && npm run dev

# Run a worker node
./scripts/setup-models.sh
cargo run --release -p dfpn-worker -- --config config.yaml

# Build documentation
cd documentation && mkdocs serve

Documentation

Full documentation is available at dfpn.cryptuon.com and in the documentation/ directory:

  • Getting Started -- Setup guides for workers, clients, and model developers
  • How It Works -- Request lifecycle, commit-reveal, consensus
  • Tokenomics -- Supply, emissions, staking, rewards, slashing
  • API Reference -- REST API endpoints and response formats
  • FAQ -- Common questions answered

Technology

Layer Stack
Blockchain Solana, Anchor 0.30.1, SPL Token
Worker Rust, Tokio, Clap
Indexer Rust, Axum, Tantivy
Dashboard Vue 3, TypeScript, Tailwind CSS 4, Chart.js
SDK TypeScript, @solana/web3.js
Detection Python, PyTorch, CLIP, wav2vec 2.0

DFPN -- Trust, but verify. At scale.
MIT License

About

The Decentralized Immune System Against Synthetic Media

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors