Sigil documentation
ReferenceRust referencesigil-crucible

sigil-crucible · types

Source declarations, signatures and documentation for types.

Source: sigil/node/sigil-crucible/src/types.rs. SHA-256: e8f0f1577641d7c9c8827561650d846a67684a0b61be0ad0c561d4b366f3a559.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

types::VerifierMode

Verification path required for a rollout batch.

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum VerifierMode {
    /// Launch-live mode: the run coordinator's signed reward attestation is
    /// the verifier signal. This requires no external verifier registry.
    CoordinatorSigned,
    /// Only an artifact commitment is anchored. Disabled by default because it
    /// does not independently verify the rollout.
    CommitmentOnly,
    /// Multiple independent verifier attestations over the same batch.
    Redundant,
    /// Trusted execution environment attestation. Fails closed until a concrete
    /// verifier is wired.
    Tee,
    /// Zero-knowledge proof verification. Fails closed until a concrete
    /// verifier is wired.
    Zk,
}

Source line: 7.

types::TrainingSlashReason

Slashable behavior in the Crucible training protocol.

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum TrainingSlashReason {
    InvalidCommitment,
    StaleRollout,
    PolicyViolation,
    Equivocation,
    InvalidWeights,
    FalseAttestation,
}

Source line: 27.

types::TrainingSlashRecord

Evidence anchor for a slashing event. Evidence bytes live off-chain.

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct TrainingSlashRecord {
pub slash_id: String,
pub run_id: String,
pub offender_did: String,
pub reporter_did: String,
pub reason: TrainingSlashReason,
pub evidence: ArtifactCommitment,
pub amount: u64,
pub slashed_at_epoch: u64
}

Source line: 38.

On this page