pub enum TrainingTier {
Open,
Verified,
Confidential,
}Expand description
Trust tier selected by the sponsor at task posting. Defines what the trainer hardware must provide and how rewards/penalties scale.
Per AI.md §7.3.3: training compute is TEE-optional (Open tier),
key custody and verification are TEE-mandatory in every tier.
Variants§
Open
Any GPU or CPU, no TEE attestation required for training compute. Trust comes from stake bonding, Byzantine-robust aggregation, and redundant fragment assignment. Default and cheapest.
Verified
Trainer posts a TEE attestation per round binding {program hash, data shard hash, model hash, DID}. Higher reward weight.
Confidential
TEE-resident training. Data is sealed to the enclave; the host OS never sees cleartext. Used for private datasets.
Implementations§
Source§impl TrainingTier
impl TrainingTier
Sourcepub fn from_str_lossy(s: &str) -> Self
pub fn from_str_lossy(s: &str) -> Self
Parse a tier from a string label (case-insensitive). Falls back to
Open for unknown labels.
Trait Implementations§
Source§impl Clone for TrainingTier
impl Clone for TrainingTier
Source§fn clone(&self) -> TrainingTier
fn clone(&self) -> TrainingTier
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TrainingTier
Source§impl Debug for TrainingTier
impl Debug for TrainingTier
Source§impl Default for TrainingTier
impl Default for TrainingTier
Source§fn default() -> TrainingTier
fn default() -> TrainingTier
Source§impl<'de> Deserialize<'de> for TrainingTier
impl<'de> Deserialize<'de> for TrainingTier
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>,
Source§impl Display for TrainingTier
impl Display for TrainingTier
impl Eq for TrainingTier
Source§impl Hash for TrainingTier
impl Hash for TrainingTier
Source§impl PartialEq for TrainingTier
impl PartialEq for TrainingTier
Source§fn eq(&self, other: &TrainingTier) -> bool
fn eq(&self, other: &TrainingTier) -> bool
self and other values to be equal, and is used by ==.