pot-o-core
Core types and utilities for PoT-O (Proof of Tensor Optimizations).
Current Version: v0.2.0 | Parent: pot-o-validator v0.1.6-alpha
- Crate: crates.io/crates/pot-o-core
- Docs: docs.rs/pot-o-core
- Repository: github.com/TribeWarez/pot-o-core
Usage
[]
= "0.2"
Core Types & Traits
Block & Transaction Types
- Block: Represents a validated block in the PoT-O chain
- Transaction: Individual transaction in a block
- Proof: PoT-O mining proof structure
- Challenge: Mining challenge with MML and neural path constraints
Error Handling
use ;
// Custom error types
// Result wrapper
type TribeResult<T> = ;
Tensor Network Types (v0.2.0)
- EntropyValue: Fixed-point entropy (1e6 scale)
- CoherenceFactor: Device coherence multiplier (0-1e6)
- TensorState: Quantum state representation
Modules
| Module | Purpose | v0.1.x | v0.2.0 |
|---|---|---|---|
| types | Block/transaction types | ✓ | ✓ |
| error | Error definitions | ✓ | ✓ |
| constants | Network constants | ✓ | ✓ |
| tensor | Tensor network types (new!) | ✗ | ✓ |
| math | Fixed-point arithmetic | ✗ | ✓ |
Examples
Working with Proofs
use Proof;
let proof = Proof ;
// Serialize for storage
let bytes = serialize?;
Error Handling
use ;
// Usage
match validate_proof
Dependencies
- serde: Serialization/deserialization
- sha2: Hash functions
- hex: Hex encoding
- chrono: Timestamp utilities
Testing
Run tests with:
Documentation
Full API documentation available at docs.rs/pot-o-core
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 v0.1.1 && git push origin v0.1.1. - GitHub Actions will run tests, then publish to crates.io and create a GitHub Release.