6 releases
| new 1.0.0-rc.10 | Feb 14, 2026 |
|---|---|
| 1.0.0-rc.9 | Feb 11, 2026 |
| 1.0.0-rc.8 | Jan 30, 2026 |
| 1.0.0-rc.6 | Jan 26, 2026 |
| 1.0.0-rc.5 | Jan 10, 2026 |
#33 in Magic Beans
62 downloads per month
Used in 3 crates
71KB
1.5K
SLoC
JSON-RPC protocol implementation for PoCX mining
This crate provides:
- JSON-RPC 2.0 protocol implementation (client and server)
- Protocol types (MiningInfo, SubmitNonceParams, etc.)
- Shared RPC configuration types
- Error handling
pocx_protocol
JSON-RPC 2.0 protocol implementation for PoCX mining operations with client and server support.
Features
- JSON-RPC 2.0 Compliant: Full specification compliance with error mapping
- Client & Server: Mining client and trait-based server implementations
- Async/Await: Built on tokio for modern async networking
- Type Safety: Strongly typed request/response structures
- Authentication: Optional bearer token authentication
- Error Handling: Comprehensive error types with JSON-RPC error codes
Build
# Standard build
cargo build --release -p pocx_protocol
# Run tests
cargo test -p pocx_protocol
Documentation
For detailed protocol specifications, see the Wiki.
License
MIT License - See LICENSE for details.
Dependencies
~13–29MB
~307K SLoC