Identity Concepts¶
Identifier¶
An identity is a self-certifying identifier (AID). It is the digest of its inception event, so nobody can assign or take it. As a DID it is did:keri:<aid>. Identifiers of controllers start with E. Witnesses, watchers and notaries have simple identifiers that start with B and are their public key.
Key event log¶
The key event log (KEL) is the signed history of an identity.
| Event | Purpose |
|---|---|
icp |
Inception: current keys, digests of the next keys, thresholds, witnesses |
dip |
Delegated inception |
rot, drt |
Rotation, delegated rotation: reveals the next keys and commits to new ones. Can change witnesses |
ixn |
Interaction: anchors digests of other data |
rct |
Receipt of a witness |
Each event contains the digest of the previous one. Events are encoded canonically, so one event has exactly one encoding and digest.
Pre-rotation¶
Every establishment event commits to the digests of the next keys, which stay unused until the rotation. Somebody who steals the current keys cannot rotate, and a rotation with the next keys takes the identity back.
Thresholds¶
Signing and next thresholds can be numbers or weights. Governance settings define the number of keys, the threshold and recovery keys. One recovery key alone can perform a rotation.
Witnesses and threshold of accountable duplicity¶
An identity designates witnesses and a threshold (toad). The threshold must be large enough that two conflicting events cannot both be receipted by enough honest witnesses. Configurations with a weaker threshold are refused.
Anchoring¶
Data is bound to an identity by placing its digest, or a seal {i, s, d}, in an interaction event. Anchored data inherits the order, the witnesses and the revocation behavior of the log.
Delegation¶
An identity can be delegated by another. Its inception and rotations take effect only when the delegator anchors them. Delegation can be repeated, up to a depth of 8.
Roles¶
| Role | Delegator |
|---|---|
org |
None. The root of an organization |
block |
Required |
instance |
Required |
Credentials¶
Credentials are ACDCs. A credential names its issuer, schema, registry and subject. Issuance and revocation are events anchored in the issuer's log. A credential can chain to the credential that authorizes its issuer, with these rules: the role must be listed in the parent's delegates, delegated authority cannot widen, and a child cannot outlive its parent.
Conflict¶
Two valid, different events at the same position are duplicity. Resolvers and watchers detect it, and signatures of the identity are refused until a rotation recovers it.