Skip to main content

HoprShareResolution

Type Alias HoprShareResolution 

Source
pub type HoprShareResolution = ShareResolution<SimplePseudonym, BjjKeypair>;

Aliased Type§

pub enum HoprShareResolution {
    RecoveredSsa(RecoveredSsa<SimplePseudonym, BjjKeypair>),
    AlmostRecoveredSsa(SsaId<SimplePseudonym>),
    Progress(SsaRecoveryProgress<SimplePseudonym>),
    InvalidShares {
        peer: Box<OffchainPublicKey>,
        ssa_id: SsaId<SimplePseudonym>,
        observed_total: u64,
    },
}

Variants§

§

RecoveredSsa(RecoveredSsa<SimplePseudonym, BjjKeypair>)

Full SSA was recovered.

§

AlmostRecoveredSsa(SsaId<SimplePseudonym>)

The early recovery threshold was reached (SSA almost complete).

§

Progress(SsaRecoveryProgress<SimplePseudonym>)

Absolute recovery progress for one SSA after this batch.

§

InvalidShares

Invalid (unverifiable) shares were encountered for an SSA.

observed_total is the cross-peer aggregate for the SSA, not a delta and not this peer’s share of it: the cycle is a single unit of accounting and any relayer can carry shares for it. peer identifies who relayed the share that triggered this emission, for attribution only.

Fields

§peer: Box<OffchainPublicKey>

Relayer whose acknowledgement carried the offending share.

§ssa_id: SsaId<SimplePseudonym>

SSA the offending share belongs to.

§observed_total: u64

Total invalid shares seen for this SSA across all peers.