DatabØx Documentation
Technical documentation for building on Datachain Rope - a revolutionary protocol inspired by DNA's double helix structure with sub-5 second finality and quantum-resistant cryptography.
Mainnet Live - Chain ID 314159Introduction
Datachain Rope is a revolutionary distributed ledger protocol that replaces traditional blockchain architecture with a String Lattice structure inspired by DNA's double helix. Designed in 2018 and now production-ready, it provides:
- Sub-5 second finality with Byzantine fault tolerance
- Quantum-resistant cryptography using CRYSTALS-Dilithium3 and Kyber768
- AI Testimony validation for semantic and business logic verification
- Self-healing data with Reed-Solomon erasure coding
- GDPR compliance with controlled erasure protocol
Network Configuration
| Parameter | Value |
|---|---|
| Network Name | Datachain Rope |
| Chain ID | 314159 (0x4CB2F) |
| RPC URL | https://erpc.datachain.network |
| WebSocket | wss://ws.datachain.network |
| Currency Symbol | FAT |
| Block Explorer | https://dcscan.io |
Quick Start
Get started with DatabØx and the Datachain Rope network in minutes.
1. Install the CLI
# Install via Cargo
cargo install rope-cli
# Or build from source
git clone https://github.com/AltterOS/databox.git
cd databox/crates/rope-cli
cargo build --release
# Run the CLI
./target/release/rope-cli --rpc https://erpc.datachain.network2. Configure your environment
[network]
rpc_url = "https://erpc.datachain.network"
ws_url = "wss://ws.datachain.network"
chain_id = 314159
[wallet]
keystore_path = "~/.rope/keystore"
default_account = "0x..."
[crypto]
enable_pq_crypto = true # CRYSTALS-Dilithium3 + Kyber768
oes_generation = 1 # OES evolution epoch3. Create a wallet
rope-cli wallet create --name "my-wallet"
# Output:
# ✓ Wallet Created Successfully
# Address: 0x1a2b3c4d5e6f7890...
# Public Key: dilithium3_pk_...String Lattice Architecture
The String Lattice is the foundational data structure of Datachain Rope, replacing traditional blockchain's linear chain with a multi-dimensional lattice inspired by DNA's double helix structure.
Key Properties
- Parallel Processing – Multiple strings can be processed simultaneously
- Intrinsic Ordering – Causally ordered events without global timestamps
- Efficient Consensus – Virtual voting based on visibility
- Self-Healing – Reed-Solomon erasure coding enables data recovery
String Structure
RopeString {
id: StringId, // Unique identifier (256-bit hash)
creator: ValidatorId, // Creating validator's public key
timestamp: Timestamp, // Logical timestamp (not wall clock)
payload: Payload, // Transaction data or testimony
self_parent: Option<StringId>, // Previous string from same creator
other_parent: Option<StringId>, // Latest string from other validator
signature: Signature, // Post-quantum signature (Dilithium3)
nucleotide: Nucleotide, // A, T, C, G – encodes string type
}Nucleotide Types
| Nucleotide | Type | Description |
|---|---|---|
| A (Adenine) | Transaction | Standard value transfer or smart contract call |
| T (Thymine) | Testimony | AI-generated validation proof |
| C (Cytosine) | Consensus | Virtual voting and anchor determination |
| G (Guanine) | Genesis | Network initialization or federation creation |
AI Testimony System
AI Testimony is a unique validation layer where artificial intelligence agents provide semantic and business logic verification of transactions before they are finalized in the String Lattice.
Testimony Types
- Semantic Validation – Verifies that transaction data makes logical sense
- Business Logic – Ensures compliance with application-specific rules
- Anomaly Detection – Identifies unusual patterns that may indicate fraud
- Cross-Reference – Validates consistency with historical data
Testimony {
string_id: StringId, // String being validated
validator: ValidatorId, // AI validator identity
verdict: Verdict, // VALID, INVALID, or NEEDS_REVIEW
confidence: f64, // Confidence score (0.0 - 1.0)
evidence: Vec<Evidence>, // Supporting evidence
timestamp: Timestamp, // When testimony was created
signature: Signature, // Validator's signature
}OES Cryptography
OES (Observability, Erasability, Sovereignty) is Datachain Rope's cryptographic framework that ensures data can be observed by authorized parties, erased when required (GDPR compliance), and sovereignty remains with data owners.
Key Components
| Component | Algorithm | Purpose |
|---|---|---|
| Digital Signatures | CRYSTALS-Dilithium3 | Post-quantum secure authentication |
| Key Exchange | CRYSTALS-Kyber768 | Post-quantum secure key encapsulation |
| Hashing | BLAKE3 | Fast, secure cryptographic hashing |
| Erasure Coding | Reed-Solomon | Data redundancy and self-healing |
Consensus Mechanisms
Datachain Rope employs a multi-layer consensus architecture tailored to different organizational structures within the network.
DkP Consensus
~2-3 secondsDelegated Keeper Proof – Used for Federation consensus
PoA Consensus
~3-5 secondsProof of Authority – Used for Community consensus
Virtual Voting
Sub-5 secondsString Lattice Consensus – Global ordering
Hashgraph
Planned Q3 2026Hedera Integration – Cross-chain protocol
Consensus Selection by Layer
| Layer | Consensus | Validators | Use Case |
|---|---|---|---|
| Global (Network) | Virtual Voting | All active validators | Cross-federation ordering |
| Federation | DkP | Federation-appointed keepers | Enterprise data management |
| Community | PoA | KYC-verified validators | Industry vertical governance |
| Individual Chain | Single-party | Data wallet owner | Personal data sovereignty |
Federation Generation Protocol
The Federation Generation Protocol enables creation of structured organizational units within the Datachain Rope network.
Federation Types
| Type | Examples | Consensus |
|---|---|---|
| Structured | City, Object, Contributors | DkP |
| Unstructured | Real-Madrid, Fans, Painter, Musicians | DkP |
| Autonomous | AI, Expert Systems, Bot, Script | DkP |
Protocol Invocations
// Available Protocol Invocations
Datachain Rope // Native protocol (required)
Hyperledger // Enterprise blockchain
XDC Network // XinFin hybrid chain
Solana // High-performance chain
Polkadot // Cross-chain protocol
Bitcoin // Store of value layer
Ethereum // Smart contracts
Tangle // IOTA DAG (coming soon)
Hashgraph // Hedera consensus (coming soon)Community Generation Protocol
Communities represent industry-specific or purpose-driven groups within the Datachain network with configurable KYC/AML requirements.
Industry Categories
Compliance Features
| Feature | Description |
|---|---|
| KYC/AML | Transaction validation, SWIFT integration, SEPA compliance |
| eCitizenship | ISO/IEC-24760-1, electronic ID, ePassport Protocol |
| Predictability AI | Risk Management, Fraud Detection, Scoring |
Data Wallets
Data Wallets are sovereign containers for personal and organizational data, secured by post-quantum cryptography.
rope-cli wallet create --name "personal-vault" --type sovereign
# Options:
# --name Wallet name
# --type sovereign | managed | custodial
# --backup Generate backup phrase
# --hardware Use hardware key (YubiKey, Ledger)
# Output:
# ✓ Data Wallet Created
# Address: 0x7a8b9c...
# Type: Sovereign
# Encryption: CRYSTALS-Kyber768
# Signature: CRYSTALS-Dilithium3RPC API Reference
The Datachain Rope RPC API is available at https://erpc.datachain.network.
rope_networkStatus
{
"jsonrpc": "2.0",
"method": "rope_networkStatus",
"params": [],
"id": 1
}{
"jsonrpc": "2.0",
"result": {
"status": "healthy",
"finality_time_ms": 4200,
"active_validators": 127,
"ai_agents": 5,
"latest_round": 847291,
"total_strings": 1847293,
"chain_id": 314159
},
"id": 1
}rope_submitString
{
"jsonrpc": "2.0",
"method": "rope_submitString",
"params": [{
"content": "0x...",
"parents": ["0x...", "0x..."],
"mutability_class": "immutable",
"requires_testimony": true,
"signature": "0x..."
}],
"id": 1
}REST API
RESTful endpoints for common operations.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/status | Network status |
| GET | /api/v1/strings/:id | Get string by ID |
| POST | /api/v1/strings | Submit new string |
| GET | /api/v1/validators | List validators |
| GET | /api/v1/testimonies/:id | Get testimony |
WebSocket API
Real-time subscriptions via WebSocket at wss://ws.datachain.network.
const ws = new WebSocket('wss://ws.datachain.network');
ws.onopen = () => {
ws.send(JSON.stringify({
method: 'subscribe',
params: ['newStrings'],
id: 1
}));
};
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log('New string:', data);
};CLI Interface
The Datachain Rope CLI allows you to interact directly with the network from your terminal. Try the commands below!
Try these commands:
helpstatusvalidators listprotocols listwallet createSDK
Official SDKs for building on Datachain Rope.
rope-sdk@datachain/rope-sdkrope-sdk-pyimport { RopeClient } from '@datachain/rope-sdk';
const client = new RopeClient({
rpcUrl: 'https://erpc.datachain.network',
chainId: 314159
});
// Get network status
const status = await client.getStatus();
console.log('Network health:', status.health);
// Submit a string
const result = await client.submitString({
payload: { type: 'transfer', to: '0x...', amount: 100 },
requiresTestimony: true
});Smart Contracts
Deploy and interact with smart contracts on the Datachain Rope network.
#[rope_contract]
pub mod token {
use rope_sdk::prelude::*;
#[state]
pub struct Token {
balances: Map<Address, u128>,
total_supply: u128,
}
#[init]
pub fn new(initial_supply: u128) -> Self {
let mut balances = Map::new();
balances.insert(msg::sender(), initial_supply);
Token { balances, total_supply: initial_supply }
}
#[action]
pub fn transfer(&mut self, to: Address, amount: u128) -> Result<()> {
let sender = msg::sender();
let sender_balance = self.balances.get(&sender).unwrap_or(0);
require!(sender_balance >= amount, "Insufficient balance");
self.balances.insert(sender, sender_balance - amount);
let to_balance = self.balances.get(&to).unwrap_or(0);
self.balances.insert(to, to_balance + amount);
Ok(())
}
}Architecture Overview
┌─────────────────────────────────────────────────────────────────────────┐
│ datachain.network (ROPE NETWORK) │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ CORE PROTOCOL (rope-node) │
│ ───────────────────────── │
│ • Post-Quantum Crypto (Dilithium3/Kyber768) ✅ 100% │
│ • Virtual Voting (Appendix B.1) ✅ 100% │
│ • Reed-Solomon Erasure Coding ✅ 100% │
│ • libp2p Transport (QUIC+TCP) ✅ 100% │
│ • AI Testimony Validation ✅ 100% │
│ • OES Cryptography ✅ 100% │
│ • Federation/Community Management ✅ 100% │
│ │
│ NETWORK SERVICES │
│ ──────────────── │
│ erpc.datachain.network → JSON-RPC │
│ ws.datachain.network → WebSocket │
│ faucet.datachain.network │
│ bridge.datachain.network │
│ │
└─────────────────────────────────────────────────────────────────────────┘
│
│ Indexes & Fetches Data
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ dcscan.io (BLOCK EXPLORER) │
│ • View Strings & Transactions │
│ • Browse AI Agents & Testimonies │
│ • Network Statistics & Charts │
│ • Community Voting │
└─────────────────────────────────────────────────────────────────────────┘