Skip to content

nocdem/dna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,353 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNA — Decentralized Network Applications

Post-quantum encrypted communication and decentralized infrastructure

Apache 2.0 RC NIST Cat 5 Platforms


What is DNA?

DNA is a suite of decentralized applications built on NIST-approved post-quantum cryptography. No central servers, no metadata collection, no IP leakage — and protected against both current and future quantum computers.

Project Description Status
DNA Connect End-to-end encrypted communication with multi-chain crypto wallet RC
Nodus Post-quantum Kademlia DHT server with cluster management RC
CPUNK Platform Quantum-safe community platform Live

Architecture

DNA Connect

┌──────────────────────────────────────────────────────┐
│  Flutter App (Android, Linux, Windows)               │
└──────────┬───────────────────────────────────────────┘
           │ dart:ffi
┌──────────▼───────────────────────────────────────────┐
│  DNA Engine (C) — 17 modular handlers                │
│  messaging · contacts · groups · wallet · presence   │
│  identity · backup · lifecycle · version · signing   │
├──────────────────────────────────────────────────────┤
│  Post-Quantum Crypto    │  Multi-Chain Wallet        │
│  Kyber1024 · Dilithium5 │  ETH · SOL · TRON · Cell   │
│  AES-256 · SHA3-512     │  ERC20 · SPL · TRC20       │
└──────────┬───────────────────────────────────────────┘
           │ Nodus Client SDK
┌──────────▼───────────────────────────────────────────┐
│  Nodus DHT Network                                   │
│  Distributed storage · Real-time subscriptions       │
└──────────────────────────────────────────────────────┘

Nodus DHT Network

    Client A          Client B          Client C
       │                 │                 │
       ▼                 ▼                 ▼
┌──────────┐  UDP  ┌──────────┐  UDP  ┌──────────┐
│  US-1    │◄─────►│  EU-1    │◄─────►│  EU-2    │
└────┬─────┘       └────┬─────┘       └────┬─────┘
     │    Kademlia      │                  │
     │    Replication   │                  │
┌────▼─────┐       ┌────▼─────┐       ┌────▼─────┐
│  EU-3    │◄─────►│  EU-4    │◄─────►│  EU-5    │
└──────────┘       └──────────┘       └──────────┘

    All values signed with Dilithium5 · 7-day TTL
    Tier 1 (UDP 4000): Kademlia — ping, find_node, store, find_value
    Tier 2 (TCP 4001): Client — auth, put, get, listen, presence

---

## Security

**NIST Category 5** — Maximum quantum resistance (256-bit security level).

| Algorithm | Standard | Purpose |
|-----------|----------|---------|
| **Kyber1024** | ML-KEM-1024 (FIPS 203) | Key encapsulation |
| **Dilithium5** | ML-DSA-87 (FIPS 204) | Digital signatures |
| **AES-256-GCM** | NIST | Symmetric encryption |
| **SHA3-512** | NIST | Hashing |

---

## Quick Start

### Prerequisites (Debian/Ubuntu)

```bash
sudo apt install git cmake gcc g++ libssl-dev libsqlite3-dev \
                 libcurl4-openssl-dev libjson-c-dev libargon2-dev \
                 libreadline-dev

Clone & Build

git clone https://github.com/nocdem/dna.git
cd dna

# Messenger C library (build first)
cd messenger/build && cmake .. && make -j$(nproc)

# Nodus DHT server
cd ../../nodus/build && cmake .. && make -j$(nproc)

# Flutter app (requires C library)
cd ../../messenger/dna_messenger_flutter
flutter pub get && flutter build linux

Repository Structure

dna/
├── messenger/                 # DNA Connect
│   ├── src/api/               #   DNA Engine (17 modular handlers)
│   ├── messenger/             #   Messaging core (identity, keys, contacts)
│   ├── dht/                   #   DHT operations
│   ├── transport/             #   P2P transport layer
│   ├── database/              #   SQLite persistence
│   ├── blockchain/            #   Multi-chain wallet (ETH, SOL, TRON, Cellframe)
│   ├── cli/                   #   Command-line tool
│   ├── include/               #   Public C headers
│   ├── tests/                 #   Unit tests
│   ├── dna_messenger_flutter/ #   Flutter cross-platform app
│   └── docs/                  #   Documentation
├── nodus/                     # Nodus DHT Server
│   ├── src/                   #   Server, client SDK, protocol, consensus
│   ├── include/               #   Public headers
│   └── tests/                 #   Unit + integration tests
├── shared/
│   └── crypto/                # Post-quantum crypto primitives
│       ├── sign/              #   Dilithium5, secp256k1, Ed25519
│       ├── enc/               #   Kyber1024, AES-256-GCM
│       ├── hash/              #   SHA3-512, Keccak-256
│       ├── key/               #   BIP32, BIP39, PBKDF2
│       └── utils/             #   Logging, platform abstraction, CSPRNG
├── cpunk/                     # cpunk.io web platform
└── docs/                      # Top-level project documentation

Versions

Component Version
Messenger C Library v0.9.63
Flutter App v1.0.0-rc29
Nodus DHT v0.6.12

Documentation

Document Description
Messenger README Messenger overview, features, build
Nodus README DHT server architecture and deployment
Architecture Detailed system design
Protocol Specs Wire formats (Seal, Spillway, Anchor, Atlas, Nexus)
DNA Engine API Core C API reference
CLI Reference Command-line tool usage
Flutter UI Flutter app documentation

Network

DNA uses the Nodus DHT network. Anyone can run a Nodus node — the network is open and community-managed. Nodes store and replicate data but never see message content or metadata.

Current Nodes

Node Location IP UDP TCP
US-1 USA 154.38.182.161 4000 4001
EU-1 Europe 164.68.105.227 4000 4001
EU-2 Europe 164.68.116.180 4000 4001
EU-3 Europe 161.97.85.25 4000 4001
EU-4 Europe 156.67.24.125 4000 4001
EU-5 Europe 156.67.25.251 4000 4001

Links


License

Component License
Messenger C Library Apache License 2.0
Nodus DHT Server Apache License 2.0
Shared Crypto Apache License 2.0
CPUNK Platform Apache License 2.0
Flutter App Source-Available (Proprietary)

Release Candidate. Use with appropriate caution for sensitive communications.

About

DNA - Post-quantum encrypted communications platform (monorepo)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors