Trust Events¶
Trust events are statements about others. Each is published on relays and anchored in the author's key event log.
| Kind | Event | Body |
|---|---|---|
| 3 | Contacts | contacts: list of aid and weight from 0 to 1 |
| 32 | Labels | subject, labels |
| 56 | Report | subject, category (ban or fault), severity from 0 to 1, action (report or withdraw). Optional evidence, reason |
| 58 | Badge | subject, badge, action (award or revoke). Optional role, expires |
| 32000 | Rating | subject, service, score from 0 to 1. Optional context |
| 9000 | Genesis policy | agent_key, and digests of the constitution and the ciphertext |
| 9001 | Commitment | policy_hash: digest of a constitution, so that its integrity can be checked publicly |
Validity¶
An event counts only if
- its digest is correct and the relay event was signed by the key named in it,
- its digest is anchored in the author's key event log,
- the author's key is not bound to another identity.
Per author, kind and slot, the event anchored latest applies. A slot is, for example, the subject and service of a rating. If an author recovers from key theft, events anchored by the thief lose their anchor and are removed everywhere.
Publish¶
curl -X POST http://agent/v1/trust -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \
-d '{"kind": 32000, "body": {"subject": "<aid>", "service": "storage", "score": 0.9}}'