Skip to main content

contest_assertion

Function contest_assertion 

Source
pub fn contest_assertion(
    disputed_hash: u64,
    agent_did: u64,
    reason_hash: u64,
    ts: u64,
) -> [NQuin; 4]
Expand description

Record a contestability dispute against disputed_hash.

Returns 3 quins in CONTEST_CONTEXT:

  • prov:contestedBy = agent_did
  • prov:contestReason = reason_hash (q_hash of the reason string)
  • prov:contestedAt = ts

Also marks the disputed quin as invalidated in PROVENANCE_CONTEXT. Callers that have access to a DagStore should additionally call dag_store.fork_node(disputed_dag_hash, ...) to register the contestability branch.