pot-o-validator 0.2.0

PoT-O (Proof of Tensor Optimizations) Validator Service
Documentation

pot-o-validator

crates.io crates.io downloads docs.rs CI License: MIT

PoT-O (Proof of Tensor Optimizations) Validator Service — HTTP API and consensus node for the TribeWarez testnet.

Current Version: v0.1.6-alpha | Planned: v0.2.0 with Dependency Injection + Tensor Network integration

Crates

  • pot-o-validator (this crate): binary and library; HTTP API, config, consensus, device registry, extensions bootstrap.
  • pot-o-core: block/transaction types, errors, constants.
  • ai3-lib: tensor engine, ESP compat, mining operations.
  • pot-o-mining: challenge generation, MML/neural path validation, PoT-O consensus.
  • pot-o-extensions: DeFi, pool strategy, device protocol, chain bridge, peer network, security.

See docs.tribewarez.com/crates-and-api and Implementation Mapping for details.

Architecture

v0.1.6-alpha (Current)

  • Monolithic service design with modular crate organization
  • HTTP API for proof submission and validation
  • Device registry for miner management
  • Challenge generation with MML and neural path validation
  • Consensus engine with difficulty adjustment

v0.2.0 (Planned - see MIGRATION_GUIDE.md)

  • Dependency Injection service architecture
  • Service traits for ProofValidator, ChallengeGenerator, ConsensusEngine
  • ServiceRegistry for flexible component composition
  • Tensor Network Model (REALMS Part IV) for entropy-based calculations
  • Event system for state tracking and off-chain monitoring

Documentation

Error Handling

All crates use custom error types and Result pattern:

use pot_o_validator::{TribeError, TribeResult};

// Example
fn validate_proof() -> TribeResult<bool> {
    // Returns Err(TribeError::...) on failure
    Ok(true)
}

Service Architecture (v0.2.0 Pattern)

// TraitService abstractions (planned for v0.2.0)
pub trait ProofValidator { ... }
pub trait ChallengeGenerator { ... }
pub trait ConsensusEngine { ... }

// Multiple implementations
impl ProofValidator for StandardValidator { ... }
impl ProofValidator for TensorAwareValidator { ... }

// ServiceRegistry for composition
let registry = ServiceRegistry::new(config);
let validator = registry.create_validator()?;

Build & run

cargo build --release
cargo run --release --bin pot-o-validator

Versioning

Releases follow semantic versioning. To publish a new release:

  1. Bump version in Cargo.toml.
  2. Update CHANGELOG.md if present.
  3. Commit and push, then create a tag: git tag pot-o-validator-v0.1.1 && git push origin pot-o-validator-v0.1.1.
  4. GitHub Actions will run tests, then publish to crates.io and create a GitHub Release.

License

MIT — TribeWarez.