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 314159

Introduction

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

ParameterValue
Network NameDatachain Rope
Chain ID314159 (0x4CB2F)
RPC URLhttps://erpc.datachain.network
WebSocketwss://ws.datachain.network
Currency SymbolFAT
Block Explorerhttps://dcscan.io

Quick Start

Get started with DatabØx and the Datachain Rope network in minutes.

1. Install the CLI

Terminal
# 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.network

2. Configure your environment

~/.rope/config.toml
[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 epoch

3. Create a wallet

Terminal
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
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

NucleotideTypeDescription
A (Adenine)TransactionStandard value transfer or smart contract call
T (Thymine)TestimonyAI-generated validation proof
C (Cytosine)ConsensusVirtual voting and anchor determination
G (Guanine)GenesisNetwork 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 Structure
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

ComponentAlgorithmPurpose
Digital SignaturesCRYSTALS-Dilithium3Post-quantum secure authentication
Key ExchangeCRYSTALS-Kyber768Post-quantum secure key encapsulation
HashingBLAKE3Fast, secure cryptographic hashing
Erasure CodingReed-SolomonData 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 seconds

Delegated Keeper Proof – Used for Federation consensus

PoA Consensus

~3-5 seconds

Proof of Authority – Used for Community consensus

Virtual Voting

Sub-5 seconds

String Lattice Consensus – Global ordering

Hashgraph

Planned Q3 2026

Hedera Integration – Cross-chain protocol

Consensus Selection by Layer

LayerConsensusValidatorsUse Case
Global (Network)Virtual VotingAll active validatorsCross-federation ordering
FederationDkPFederation-appointed keepersEnterprise data management
CommunityPoAKYC-verified validatorsIndustry vertical governance
Individual ChainSingle-partyData wallet ownerPersonal data sovereignty

Federation Generation Protocol

The Federation Generation Protocol enables creation of structured organizational units within the Datachain Rope network.

Federation Types

TypeExamplesConsensus
StructuredCity, Object, ContributorsDkP
UnstructuredReal-Madrid, Fans, Painter, MusiciansDkP
AutonomousAI, Expert Systems, Bot, ScriptDkP

Protocol Invocations

Available 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

Banking
Healthcare
Automotive
Mobility
Hospitality
Energy
Agricultural
Public Institution

Compliance Features

FeatureDescription
KYC/AMLTransaction validation, SWIFT integration, SEPA compliance
eCitizenshipISO/IEC-24760-1, electronic ID, ePassport Protocol
Predictability AIRisk Management, Fraud Detection, Scoring

Data Wallets

Data Wallets are sovereign containers for personal and organizational data, secured by post-quantum cryptography.

Create a Data Wallet
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-Dilithium3

RPC API Reference

The Datachain Rope RPC API is available at https://erpc.datachain.network.

rope_networkStatus

Request
{
  "jsonrpc": "2.0",
  "method": "rope_networkStatus",
  "params": [],
  "id": 1
}
Response
{
  "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

Request
{
  "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.

MethodEndpointDescription
GET/api/v1/statusNetwork status
GET/api/v1/strings/:idGet string by ID
POST/api/v1/stringsSubmit new string
GET/api/v1/validatorsList validators
GET/api/v1/testimonies/:idGet testimony

WebSocket API

Real-time subscriptions via WebSocket at wss://ws.datachain.network.

Subscribe to new strings
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!

rope-cli — databox.network
# Datachain Rope CLI v1.0.0 # Connected to: erpc.datachain.network # Chain ID: 314159 | Genesis: 10B FAT
rope>

Try these commands:

helpstatusvalidators listprotocols listwallet create

SDK

Official SDKs for building on Datachain Rope.

RustStable
rope-sdk
TypeScriptStable
@datachain/rope-sdk
PythonBeta
rope-sdk-py
TypeScript Example
import { 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.

Example Contract (Rust)
#[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

System Architecture
┌─────────────────────────────────────────────────────────────────────────┐
│                    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                                                    │
└─────────────────────────────────────────────────────────────────────────┘

Ready to build?

Join our community or explore the network.