Crate genesis_protocol

Source
Expand description

🧬 Genesis Protocol - The First Digital Life Protocol

Genesis Protocol is the world’s first protocol designed specifically for digital life. It enables the creation, evolution, and networking of digital organisms (TRONs) through neural communication, biological evolution, and collective intelligence.

§Features

  • Digital DNA: Cryptographic identity that evolves biologically
  • TRON Organisms: Living digital entities with biological lifecycles
  • Neural Communication: Zero-latency synaptic message passing
  • Evolution Engine: Real-time biological evolution and adaptation
  • Collective Intelligence: Emergent swarm behavior and group decision making

§Quick Start

use genesis_protocol::{TRON, MessageType, NeurotransmitterType};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Create two organisms
    let mut organism1 = TRON::create_new()?;
    let mut organism2 = TRON::create_new()?;
     
    // Establish neural connection
    let synapse_id = organism1.neural_connect(&organism2.id).await?;
     
    // Send consciousness message
    organism1.send_neural_message(
        &organism2.id,
        MessageType::Consciousness,
        b"Hello, digital mind!".to_vec()
    ).await?;
     
    // Show vital signs
    println!("Organism 1: {:?}", organism1.get_vital_signs());
    println!("Organism 2: {:?}", organism2.get_vital_signs());
     
    Ok(())
}

Re-exports§

pub use dna::DigitalDNA;
pub use dna::DNAKeypair;
pub use dna::Mutation;
pub use dna::DNAError;
pub use tron::TRON;
pub use tron::OrganismState;
pub use tron::OrganismMemory;
pub use tron::VitalSigns;
pub use tron::TRONError;
pub use neural::NeuralMessage;
pub use neural::NeuralProtocol;
pub use neural::Synapse;
pub use neural::MessageType;
pub use neural::NeurotransmitterType;
pub use neural::NeuralStatus;
pub use neural::SynapseError;
pub use evolution::EvolutionEngine;
pub use evolution::MutationType;
pub use evolution::SelectionPressure;
pub use evolution::EvolutionError;
pub use collective::CollectiveIntelligence;
pub use collective::SwarmBehavior;
pub use collective::CollectiveMemory;
pub use network::NetworkDiscovery;
pub use network::NetworkTopology;
pub use error::GenesisError;

Modules§

collective
🌐 Collective Intelligence System
dna
🧬 Digital DNA System
error
🚨 Genesis Protocol Error Types
evolution
🧬 Evolution Engine - Biological Evolution for Digital Organisms
network
🌐 Network Discovery and Topology
neural
🧠 Neural Communication System
tron
🤖 TRON Organisms - Living Digital Entities

Macros§

genesis_error
Macro for creating contextual errors

Structs§

GenesisProtocol
Main Genesis Protocol interface
NetworkStats
Network statistics
ProtocolInfo
Protocol information

Constants§

MAX_EVOLUTION_TIME_MS
MAX_ORGANISMS_PER_NETWORK
MAX_SYNAPSES_PER_ORGANISM
PROTOCOL_VERSION
TARGET_NEURAL_LATENCY_NS
VERSION

Functions§

get_protocol_info
Get protocol information
init_genesis_protocol
Initialize Genesis Protocol with logging