selfdriven.legal › Practice › Identity Layer

Identity that holds up in court

The selfdriven.legal identity layer uses KERI self-certifying identifiers and ACDC verifiable credentials to create a cryptographic trust infrastructure for every practitioner, client, agent, and legal instrument.

Why KERI for legal practice

Legal practice has always been about trust — establishing who said what, when, with what authority, and whether the record has been tampered with. Paper, wet signatures, notarisation, and court seals are all trust infrastructure. They are just slow, fragile, and expensive.

KERI (Key Event Receipt Infrastructure) provides the same guarantees cryptographically — with no central authority, no PKI hierarchy, and no possibility of silent alteration. Every identifier is self-certifying, every event is witnessed, every rotation is pre-committed, and the key event log is mathematically tamper-evident.

KERI produces an append-only record of identity events that any party — courts, regulators, counterparties — can independently verify, without reference to any central registry or certificate authority. It is chain of custody by architecture.

Identity layers

The architecture operates across six layers — from cryptographic key pairs at the foundation to organisational trust at the surface. Each depends on the one below it.

L1 · Keys

Ed25519 or ECDSA key pairs. Current keys sign events; next keys are pre-committed via hash, enabling instant rotation without key exposure. pre-rotation is KERI's core security innovation.

L2 · AID

A self-certifying Autonomous Identifier derived from the initial key pair, stable across rotations. Not registered anywhere — it is mathematically derived from the keys themselves. An icp event creates it.

L3 · KEL

An append-only Key Event Log of all key events — inception, rotation, interaction, delegation. Each event references the prior one by digest. Witnessed by 3 distributed nodes with a 2-of-3 threshold.

L4 · ACDC

Verifiable credentials anchored to KERI — practitioner qualifications, engagement authorities, agent scopes. Each has a SAID (Self-Addressing Identifier) and is chained to the issuer's KEL; an ixn event seals issuance.

L5 · Auth

FIDO2 passkeys (biometric or device-bound) linked to the practitioner's AID via interaction event. Every consequential action requires a WebAuthn assertion binding the action data to the AID.

L6 · vLEI

A GLEIF-issued Verifiable Legal Entity Identifier anchoring the practice entity to the global trust hierarchy. QVI-issued, and recognised by regulators, financial institutions, and counterparties internationally.

Parties & AIDs

Every participant in a matter holds a KERI AID. Identity is not assigned by the practice — it is self-certified by each party. The practice issues ACDC credentials attesting to a party's role; it does not control their identifier.

Client

Authenticates with a passkey; creates or recovers their AID. Receives an ACDC engagement credential scoping the matter. Keeps full control of their own identifier.

Human conductor

Senior practitioner AID holding an ACDC role credential. Signs all consequential outputs via WebAuthn and issues delegation credentials to agents in their area.

AI agent

Delegated AID created via a KERI dip event. Authority scoped by the conductor — matter-specific, action-specific, time-limited. Cannot exceed the granted scope.

Practice entity

The selfdriven.legal entity AID, holding a GLEIF vLEI. Issues practitioner role credentials; the root of trust for all internal delegations. KEL witnessed by 3 nodes.

Legal instrument

Each document receives a SAID derived from its content, sealed into the conductor's KEL at signing. Content integrity is mathematically verifiable.

Counterparty

External parties present or receive KERI-anchored credentials. Their signatures verify without any shared infrastructure or central registry.

Key event log

The KEL is the canonical record of identity events for every AID — append-only, witnessed, and content-addressed, making it a tamper-evident audit trail that survives any dispute without a trusted third party.

// 1. Practitioner AID inception — creates identity, commits next keys
type: icp  aid: EKE4g_0hDGBOqDLKzNBT3kFOPxoP7wXkqt
keys: [DqI2cOZ06RwGmwCgaSd…]  next-keys: [Ef9Kq4NUbuwRpJf…]
witnesses: [node-1, node-2, node-3]  threshold: 2

// 2. Engagement credential issuance — seals ACDC into KEL
type: ixn  sn: 1  said: Ef9KqNat5…

// 3. Agent delegation — creates scoped AI agent AID
type: dip  delegator: EKE4g_0hDGBOqDLKzNBT3kFOPxoP7wXkqt
scope: ["matter:draft", "matter:research"]

// 4. Document signing — seals instrument content hash into KEL
type: ixn  sn: 4  said: Ek9Rp2Xq…  // SHA-256 of signed document

// 5. Key rotation — replaces current keys, commits next
type: rot  sn: 5  keys: [Ef9Kq4NUbuwRpJf…]  // pre-committed keys now active

Authentication flow

Practitioners and clients authenticate with FIDO2 passkeys — phishing-resistant by design, and linked to the user's KERI AID via an interaction event that binds biometric authentication to legal identity.

1 · Passkey registration

The user creates a FIDO2 passkey on their device. The public key is sealed into the user's KEL via an ixn event — binding device identity to KERI identity.

2 · Authentication challenge

On each session the server issues a challenge; the device returns a WebAuthn assertion signed with the passkey private key, which never leaves the device.

3 · AID verification

The server verifies the assertion against the registered public key, resolves the associated AID, and confirms the KEL is current by checking witness receipts and sequence numbers.

4 · Consequential action signing

Filing a document, delegating an agent, or signing an instrument requires a fresh assertion binding the specific action data — not just a session cookie — to the AID, creating a matter-specific KERI interaction event.

vLEI & organisational identity

The practice entity holds a Verifiable Legal Entity Identifier — a GLEIF-issued ACDC credential anchoring the organisation to the global legal entity trust hierarchy, linking the practice's AID to its legal registration, jurisdiction, and regulatory status.

Practitioners receive vLEI role credentials chained to the entity vLEI, attesting their role (Conductor, Legal Engineer, AI Compliance Officer). These are independently verifiable by courts, regulators, and counterparties with no query to the practice itself.

A document signed by a conductor whose role credential chains verifiably to the entity's GLEIF vLEI carries a complete, cryptographically auditable chain of authority — from the biometric action that created the signature, through the practitioner's role and the entity, to the global legal trust infrastructure.