Open Source Apache 2.0 Licensed

DNA Library

The post-quantum C engine powering every DNA Protocol product. Modular, cross-platform, and built for security-critical applications.

One library, every platform

DNA Library (libdna) is a native C library that handles all cryptography, messaging, DHT operations, and local storage. Flutter, Android, and CLI tools connect through FFI bindings.

Post-Quantum Crypto

ML-KEM-1024 (key encapsulation), ML-DSA-87 (signatures), SHA3-512 (hashing), AES-256-GCM (symmetric). NIST Category 5 — all crypto runs in C, never in managed code.

Modular Engine

Async task queue with domain modules: messaging & social (chats, groups, channels, wall), identity & security (keys, signing, wallet), network (DHT, presence, backup).

Cross-Platform

Compiles for Linux, Windows, Android. Flutter connects via dart:ffi, Android via JNI, CLI for automation. Same C code on every platform — zero per-platform forks.

Domain-driven module design

Every operation goes through an async task queue. Modules register handlers for their domain. The thread pool executes concurrently, results arrive via callbacks — keeping the UI responsive.

Communication

E2E encrypted messaging with offline delivery and retry. Group chats with rotating GEK keys. Public channels and personal wall posts. Contact management with request/block flows.

Identity & Wallet

BIP-39 seed-based identity creation. Dilithium5 signing for all DHT operations. Multi-chain wallet (Cellframe, Ethereum, Solana, TRON) with DEX integration and in-chat transfers.

Network & Infrastructure

Nodus client SDK for DHT operations with connection pooling. Server-side presence system. DHT backup and sync. Background thread pool and lifecycle management (pause/resume on mobile).

Crypto stack & platform bindings

Post-Quantum Crypto Stack

All cryptographic operations use NIST-standardized algorithms. Classical algorithms are used only for blockchain compatibility.

  • Key encapsulation: ML-KEM-1024 / Kyber1024 (FIPS 203)
  • Signatures: ML-DSA-87 / Dilithium5 (FIPS 204)
  • Hashing: SHA3-512 (FIPS 202)
  • Encryption: AES-256-GCM + BIP-39 seed management
  • Blockchain: secp256k1 (ETH/TRON), Ed25519 (Solana)

Platform Bindings

DNA Library compiles to a shared library (libdna.so / dna.dll). All business logic lives in C — platform layers are thin wrappers.

  • Flutter: dart:ffi — async callbacks bridged to Futures and Streams
  • Android: JNI bindings — engine in native thread, UI via callbacks
  • CLI: Standalone binary for testing and automation
  • Nodus SDK: Embedded DHT client with connection pooling and reconnection

Open source under Apache 2.0

DNA Library, Nodus, and all shared crypto primitives are fully open source. Use, modify, and distribute freely — including commercial use. The DNA Connect app is source-available for auditing.

Apache 2.0

C library, Nodus server & client SDK, shared crypto, CLI tools, website. Free for any use.

Source-Available

DNA Connect desktop & mobile app. Viewable for security auditing. Redistribution not permitted.

Build on DNA Library

Explore the source code, read the architecture docs, or start building with the C API. Contributions welcome.