Crate claude_market

Crate claude_market 

Source
Expand description

§Claude Market

A decentralized, peer-to-peer marketplace for Claude AI capacity trading with full Anthropic ToS compliance.

§Overview

Claude Market enables secure, decentralized trading of Claude AI compute capacity using ruv tokens. Built on the Synaptic Neural Mesh network, it provides a compliant way for Claude Max subscribers to share their capacity through a peer compute federation model.

§Features

  • 🔒 Anthropic ToS Compliant - No API key sharing, peer-orchestrated execution
  • 🏦 Secure Escrow - Multi-signature escrow with automatic settlement
  • 🎯 First-Accept Auctions - Fast, competitive pricing mechanisms
  • 📊 Reputation System - SLA tracking and provider trust scores
  • 🛡️ Privacy-Preserving - Encrypted task payloads and secure execution
  • 💾 SQLite Persistence - Local data storage with full transaction history

§Quick Start

use claude_market::{ClaudeMarket, MarketConfig};
 
// Initialize market with local SQLite database
let config = MarketConfig::default();
let market = ClaudeMarket::new(config).await?;
 
// Check wallet balance
let balance = market.wallet().get_balance().await?;
println!("RUV Token Balance: {}", balance);

Re-exports§

pub use error::MarketError;
pub use error::Result;

Modules§

error
Error types for the Claude Market
wallet
Token wallet management for Claude API tokens

Structs§

ClaudeMarket
Claude Market main interface
ComputeTaskSpec
Compute task specification
MarketConfig
Market configuration
Order
Market order for compute contribution
SLASpec
SLA (Service Level Agreement) specification

Enums§

OrderStatus
Order status
OrderType
Order type in the compute contribution market

Type Aliases§

Bid
Bid order (requesting compute)
Offer
Offer order (providing compute)