amadeus-node
Core library for the Amadeus blockchain node with networking, consensus, and storage.
Installation
[]
= "1.3"
Features
- Networking - UDP P2P protocol with encryption and compression
- Consensus - BFT consensus with dual chains (rooted and temporal)
- Storage - RocksDB-backed persistent chain storage
- Transaction Pool - Mempool and nonce tracking
- Peer Management - ANR (Amadeus Network Records) and handshakes
Quick Example
use ;
// Load configuration
let config = from_fs.await?;
// Create network context
let ctx = with_config_and_socket.await?;
// Handle incoming message
let protocol_msg = ctx.parse_udp.await;
let instructions = ctx.handle.await?;
for instruction in instructions
use tx;
// Build transaction
let tx_packed = build;
Module Structure
config- Node configuration and identitycontext- Runtime state containerconsensus::fabric- Chain storage (RocksDB)consensus::doms- Domain types (Entry, Tx, Attestation)node::protocol- Network message handlingnode::peers- Peer connection managementnode::txpool- Transaction poolmetrics- Performance telemetry
Feature Flags
system-metrics- Enable CPU/memory monitoring (default)
Documentation
For detailed API documentation, see docs.rs/amadeus-node.
License
Apache-2.0