Skip to main content

Crate clawrtc

Crate clawrtc 

Source
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§

AttestResponse
Attestation response.
BalanceResponse
Balance response.
Challenge
Attestation challenge.
EnrollResponse
Epoch enrollment response.
MinerInfo
Active miner info.
NodeClient
RustChain node client for mining operations.
NodeHealth
Node health status.
Wallet
An Ed25519 wallet for RustChain RTC.

Enums§

ClawError
Errors returned by the ClawRTC client.
CpuArch
CPU architecture for PoA multipliers.

Type Aliases§

Result