arise-sigil · reputation
Source declarations, signatures and documentation for reputation.
Source: sigil/node/../arise-bridge/arise-sigil/src/reputation.rs. SHA-256: 535cb70f9c09c56d496ed2c6bd999c6f77a097da31121d7a68c8c8a4925f91fe.
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.
reputation::ReputationSignals
Reputation signals for a compute provider.
Each field is a value in [0.0, 1.0] representing the provider's
performance on that dimension.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ReputationSignals {
/// Fraction of accepted jobs that completed successfully.
pub completion_rate: f64,
/// Fraction of challenges the provider survived (was not penalized).
pub challenge_survival: f64,
/// Accuracy of the provider's advertised latency vs actual.
pub latency_accuracy: f64,
/// Fraction of time the provider was available.
pub uptime: f64,
/// Freshness of hardware attestation (1.0 = just attested, decays).
pub attestation_freshness: f64
}Source line: 25.
reputation::ReputationSignals::composite_score
Computes the weighted composite reputation score.
Returns a value in [0.0, 1.0] if all input signals are in range.
pub fn composite_score(&self) -> f64;Source line: 42.
reputation::ReputationSignals::is_valid
Returns true if all signal values are in the valid [0.0, 1.0] range.
pub fn is_valid(&self) -> bool;Source line: 51.