Expand description
§ClawRTC
Rust client for RustChain RTC mining — hardware attestation, Ed25519 wallets, and Proof-of-Antiquity (PoA) consensus.
§Quick Start
use clawrtc::{NodeClient, Wallet};
// Create a wallet
let wallet = Wallet::generate();
println!("Address: {}", wallet.address());
// Connect to the RustChain network
let node = NodeClient::new("https://rustchain.org");
// Check balance
let balance = node.balance(&wallet.address()).unwrap();
println!("Balance: {} RTC", balance);
// Check node health
let health = node.health().unwrap();
println!("Node: {} (uptime {}s)", health.version, health.uptime_s);§Features
- Ed25519 Wallets — generate, sign, verify with RTC addresses
- Node Client — health, balance, miners, epochs
- Hardware Detection — CPU architecture for PoA multipliers
- Attestation — submit hardware proofs to earn RTC
Structs§
- Attest
Response - Attestation response.
- Balance
Response - Balance response.
- Challenge
- Attestation challenge.
- Enroll
Response - Epoch enrollment response.
- Miner
Info - Active miner info.
- Node
Client - RustChain node client for mining operations.
- Node
Health - Node health status.
- Wallet
- An Ed25519 wallet for RustChain RTC.