pub fn equivocation<S: MessageStore>(
key: &KeyId,
thread: &ThreadId,
store: &S,
dialect: &Dialect,
) -> Option<EquivocationEvidence>Expand description
REQ-705: the monotone, thread-scoped equivocation predicate.
Returns Some evidence iff the store contains two distinct messages in
thread whose (innermost) sender is canonically key and which satisfy
clause (a) choice or (b) obligation of REQ-705 against the dialect’s
protocol. Message identity is store identity (content hash), so “same
performative, different content hash” is exactly “two distinct store
entries with the same performative”.
Properties, by construction:
- Monotone / upward-closed: a pure function of the store’s message
set; appending messages can only add candidate pairs, never remove
one, so
Somecan never revert toNone(which pair is reported may change, but existence cannot). Once true, forever true. - Read-only / verdict-neutral (ADR-703): takes
&S, calls only the store’s read API, and touches no verdict — both members keep the individual verdicts they earned. What a deployment does with a convicted key is action policy above the verdict lattice. - Canonical identity (REQ-708): senders are compared as parsed
KeyIds, so@aliceand@ed25519:alicecannot evade detection by spelling. A message whose sender is absent or unparsable is not attributed to anyone and never enters a pair.