Skip to content

Evidence

Every decision is recorded before its effects: the message, the sender, the route, the decision, the reasons, the matching rules, the facts, the policy digest and the time.

Properties

  • Records form a chain: each contains the digest of the previous one.
  • Each record's reference is signed with the keys in force.
  • Database triggers prevent changes and deletions.
  • References are published to the transport and submitted to the watchers, so removing records is noticed.

Use

record = node.evidence.get(said)     # body and signed envelope
count = node.evidence.verify()       # raises EvidenceError if the chain is damaged

The reply to a message contains the digest of its record as evidence. Over HTTP, GET /v1/evidence/{said} returns the record to administrators.

References and status of an identity can be read from any watcher at GET /v1/evidence/{aid}.