pot-o-mining
Mining coordination and neural-path logic for PoT-O.
Current Version: v0.1.6-alpha | Planned: v0.2.0 with ServiceRegistry
- Crate: crates.io/crates/pot-o-mining
- Docs: docs.rs/pot-o-mining
- Repository: github.com/TribeWarez/pot-o-mining
Usage
[]
= "0.2"
Depends on pot-o-core and ai3-lib.
Core Components
Challenge Generator
- Generates mining challenges with MML (Minimal Memory Loss) thresholds
- Manages neural path distance constraints
- Tracks challenge expiration and validity windows
Proof Validator
- Validates MML score meets threshold
- Verifies neural path distances within limits
- Checks proof computation hash
Consensus Engine
- Manages proof-of-work difficulty adjustment
- Tracks miner performance and reputation
- Coordinates consensus state transitions
Service Architecture (v0.2.0)
Example: Challenge Generation
use ChallengeGenerator;
let generator = new?;
let challenge = generator.generate;
println!;
println!;
Testing
Run tests:
Error Handling
Common errors:
ChallengeExpired: Challenge no longer validMmlThresholdNotMet: Proof score too lowPathDistanceTooLarge: Neural path exceeds max
All errors implement std::error::Error trait.
Versioning
Releases follow semantic versioning. To publish:
- Bump
versioninCargo.toml. - Create a tag:
git tag v0.1.1 && git push origin v0.1.1. - CI will publish to crates.io and create a GitHub Release.