Verify a Log¶
Anyone can verify an oracle or contract without trusting its operator.
for x in client.verified_log(policy_digest):
print(x["seq"], x["entry"]["state"])
Pin the digest of the policy that you agreed to. verified_log checks
- the sequence and the digests of the entries,
- that each entry is anchored in the subject's key event log, which witnesses receipted,
- the votes and VRF proofs of the committee, where required.
It raises Refused at the first entry that does not verify.
By hand¶
| Data | Endpoint |
|---|---|
| Policy and state | GET /{kind}/{aid} |
| Key event log with signatures and receipts | GET /{kind}/{aid}/kel |
| Entries with votes and notary certificates | GET /{kind}/{aid}/tel?after=&limit= |
Fetch the key event log from witnesses or watchers instead of the service. Notary certificates are verified with notaryctl verify.