truthlinked-oracle
Deterministic HTTP oracle logic for TruthLinked.
This crate implements the commit-reveal oracle flow and related data structures. It is extracted from the node so oracle behavior is shared across validators, execution code, and protocol tooling.
What's inside
- Oracle request, commit, reveal, and result types
- Commit-reveal tallying and finalization logic
- URL governance checks and visibility handling
- Response canonicalization for raw, canonical JSON, and USD price feeds
- Validator fetch helper (
validator_fetch_and_commit)
What's not inside
- Consensus networking
- RPC server handlers
- Storage backends
- Live execution of Axiom cells
Usage
[]
= "0.1.0"
Example
use UrlResponseFormat;
use ;
async
Design goals
- Keep external data out of deterministic execution paths
- Require validators to commit before revealing oracle responses
- Canonicalize accepted results before they become cell-readable state
- Keep oracle request identity stable across validators
License
Licensed under the MIT License.