pot-o-validator
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
- Crate: crates.io/crates/pot-o-validator
- Docs: docs.rs/pot-o-validator
- Repository: github.com/TribeWarez/pot-o-validator
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
- CHANGELOG.md - Version history and feature timeline
- MIGRATION_GUIDE.md - v0.1.x → v0.2.0 upgrade path
- SECURITY.md - Security guidelines and vulnerability reporting
Error Handling
All crates use custom error types and Result pattern:
use ;
// Example
Service Architecture (v0.2.0 Pattern)
// TraitService abstractions (planned for v0.2.0)
// Multiple implementations
// ServiceRegistry for composition
let registry = new;
let validator = registry.create_validator?;
Build & run
Versioning
Releases follow semantic versioning. To publish a new release:
- Bump
versioninCargo.toml. - Update
CHANGELOG.mdif present. - Commit and push, then create a tag:
git tag pot-o-validator-v0.1.1 && git push origin pot-o-validator-v0.1.1. - GitHub Actions will run tests, then publish to crates.io and create a GitHub Release.
License
MIT — TribeWarez.