pub enum ProofRequirement {
ZeroKnowledge {
circuit_id: Option<String>,
model_id: Option<String>,
},
TeeAttestation {
provider_class: Option<String>,
},
Cryptographic,
Oracle,
Merkle {
expected_root: String,
},
}Expand description
The class of proof a task completion must carry to be accepted.
These variants map 1:1 onto tenzro_settlement::SettlementEngine’s proof
dispatch (ZeroKnowledge / TeeAttestation / Cryptographic / Oracle / Merkle).
We keep a self-contained copy here so tenzro-types does not depend on the
settlement crate (settlement depends on types, not the reverse).
Variants§
ZeroKnowledge
A zero-knowledge proof, optionally pinned to a circuit and/or the model the inference was claimed to run on.
TeeAttestation
A TEE attestation report, optionally restricted to a provider/enclave class.
Cryptographic
A plain cryptographic signature over the result by the provider.
Oracle
An oracle-signed attestation of the result.
Merkle
A Merkle inclusion proof against a poster-pinned root. The completion
proof’s proof_data must be leaf(32) ‖ leaf_index(u32-le, 4) ‖ siblings(32·k); the task layer recomputes the positional SHA-256 root
and requires it to equal expected_root.
Trait Implementations§
Source§impl Clone for ProofRequirement
impl Clone for ProofRequirement
Source§fn clone(&self) -> ProofRequirement
fn clone(&self) -> ProofRequirement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProofRequirement
impl Debug for ProofRequirement
Source§impl<'de> Deserialize<'de> for ProofRequirement
impl<'de> Deserialize<'de> for ProofRequirement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProofRequirement
Source§impl PartialEq for ProofRequirement
impl PartialEq for ProofRequirement
Source§fn eq(&self, other: &ProofRequirement) -> bool
fn eq(&self, other: &ProofRequirement) -> bool
self and other values to be equal, and is used by ==.