TAIP-22: Verifiable History DIDs (did:webvh) for TAP

TAIP-22: Verifiable History DIDs (did:webvh) for TAP

Simple Summary

TAIP-22 adopts did:webvh v1.0 (did:webvh:<SCID>:<domain>[:<path>]) as a first-class Decentralized Identifier (DID) method for TAP agents (TAIP-5) and parties (TAIP-6). It preserves the web-based simplicity of did:web while adding an append-only, cryptographically verifiable history log (did.jsonl), self-certifying identifiers (SCID), key pre-rotation, optional third-party witnesses, domain portability, and historical time-travel resolution—without requiring a blockchain.

Abstract

TAIP-5 recommends did:web for centralized institutional agents such as VASPs, custodians, and payment service providers. While did:web is straightforward to deploy, it serves only a single static JSON document (did.json) with no cryptographic history: a compromised web server or DNS record can silently replace signing and encryption keys, key rotations erase the ability to verify historical TAP messages and Travel Rule records, and moving to a new domain breaks the identifier.

This TAIP specifies how TAP agents, parties, and resolvers use did:webvh v1.0 (method: "did:webvh:1.0"). It defines:

  1. Identifier syntax, DID-to-HTTPS transformation, and hosting requirements (did.jsonl, did-witness.json, and /whois).
  2. The TAP DID Document profile inside did:webvh log entries, including DIDCommMessaging endpoints, operational messaging keys, and separation from updateKeys.
  3. Normative did:webvh:1.0 log verification, pre-rotation (nextKeyHashes), threshold witnesses, watchers, portability, and deactivation handling for TAP resolvers.
  4. Historical resolution (versionId and versionTime) for auditing past TAP authorizations and TAIP-8/TAIP-10 compliance presentations.
  5. Backward-compatible migration via parallel did:web publishing (did.json with mutual alsoKnownAs).
  6. Resolver transport hardening (TLS 1.3, SSRF defenses, response limits) and cache-and-compare truncation detection.

Motivation

TAP coordinates regulated, high-value digital asset transactions between institutions and self-hosted participants. Relying solely on static did:web documents introduces four operational and security gaps:

  1. Silent hosting or DNS compromise: If an attacker compromises a VASP’s web server, CDN, or DNS configuration, they can silently substitute did.json with attacker-controlled keys to intercept encrypted TAIP-10 Travel Rule PII or forge TAIP-4 Authorize messages. With did:webvh, every DID Document update MUST be chained to the genesis self-certifying identifier (SCID) and signed by authorized updateKeys, making unauthorized host-level tampering cryptographically detectable.
  2. Auditability of historical transactions: Financial institutions must retain and verify transaction authorization logs and compliance presentations (TAIP-8, TAIP-10) for 5+ years. Under did:web, rotating a compromised or expiring key breaks verification of past signatures. did:webvh preserves every historical version in did.jsonl so verifiers can resolve the exact keys active at a past versionTime or versionId.
  3. Key compromise containment and multi-party governance: did:webvh supports key pre-rotation (nextKeyHashes), preventing an attacker with a stolen active update key from rotating control to attacker keys, and optional threshold witnesses (did-witness.json), allowing trust frameworks or compliance networks to co-sign DID updates without operating a blockchain.
  4. Institutional domain portability: Mergers, acquisitions, rebrands, and infrastructure migrations are routine in financial services. With portable: true, a TAP agent can migrate to a new domain while preserving its SCID, verifiable history, and existing counterparty relationships (such as TAIP-15 connections).

Specification

1. Identifier Format and DID-to-HTTPS Transformation

TAP implementations supporting this TAIP MUST conform to the did:webvh v1.0 specification.

A did:webvh identifier has the form:

did:webvh:<SCID>:<domain>[:<path-segment>...]

Where:

  • <SCID> is a 46-character base58btc-encoded SHA-256 multihash (0x12) derived from the JCS-canonicalized (RFC-8785) preliminary genesis log entry.
  • <domain> is a fully qualified domain name (with optional uppercase percent-encoded port %3A<port>). IPv4 and IPv6 literals MUST be rejected.
  • Optional :-delimited deployment path segments map to / path segments.

The DID-to-HTTPS transformation drops did:webvh:<SCID>: and maps the domain and path to the append-only DID Log file did.jsonl:

did:webvh Identifier DID Log URL (did.jsonl) Witness Proofs URL (if witnessed)
did:webvh:<SCID>:vasp.example https://vasp.example/.well-known/did.jsonl https://vasp.example/.well-known/did-witness.json
did:webvh:<SCID>:tap.vasp.example https://tap.vasp.example/.well-known/did.jsonl https://tap.vasp.example/.well-known/did-witness.json
did:webvh:<SCID>:vasp.example:agents:treasury https://vasp.example/agents/treasury/did.jsonl https://vasp.example/agents/treasury/did-witness.json
did:webvh:<SCID>:vasp.example%3A8443:agents:eu https://vasp.example:8443/agents/eu/did.jsonl https://vasp.example:8443/agents/eu/did-witness.json

Hosting requirements for TAP controllers:

  • did.jsonl SHOULD be served with Content-Type: text/jsonl (or application/jsonl) over HTTPS using TLS 1.3 or higher (per TAIP-2).
  • did-witness.json (when witnesses are configured) SHOULD be served with Content-Type: application/json.
  • Both resources MUST include Access-Control-Allow-Origin: * to support browser-based TAP clients and wallets.

2. Using did:webvh in TAP Messages, Agents, and Parties

A did:webvh DID MAY be used anywhere a DID is accepted in TAP, including:

  • TAIP-2 DIDComm v2 envelope from, to, JWS kid, and JWE kid / skid headers.
  • TAIP-5 Agent @id and for fields, and agent management messages (AddAgents, ReplaceAgent, RemoveAgent).
  • TAIP-6 Party @id fields (originator, beneficiary, customer, merchant, requester, principal).

When referencing a verification method in a TAIP-2 JWS or JWE header, the kid MUST be a DID URL whose base DID matches the sender’s or recipient’s did:webvh DID (e.g., did:webvh:<SCID>:vasp.example#key-1).

3. TAP DID Document Profile for did:webvh

The state property of each did.jsonl log entry contains the W3C DID Document (DID-CORE) for that version. For TAP agents (TAIP-5), the resolved DID Document MUST satisfy:

  1. Bare Subject id: Top-level id MUST be a bare did:webvh DID (no DID URL path, query, or fragment) whose SCID matches parameters.scid from entry 1.
  2. DIDComm Endpoint: service MUST include at least one DIDCommMessaging service entry with an HTTPS serviceEndpoint (TLS 1.3+ per TAIP-2), unless the agent operates exclusively via Out-of-Band invitations or fallback serviceUrl.
  3. Messaging Verification Methods:
    • authentication MUST reference at least one signing key compatible with TAIP-2 (e.g., Ed25519 EdDSA, Secp256k1 ES256K) or a TAP-standardized post-quantum signing profile.
    • keyAgreement MUST reference at least one encryption key compatible with TAIP-2 (e.g., X25519 ECDH-ES+A256KW / ECDH-1PU) or a TAP-standardized post-quantum KEM profile.
    • assertionMethod SHOULD reference keys used to sign Verifiable Credentials or /whois presentations.
  4. Key Separation (updateKeys vs. Operational Keys): The multikey public keys in parameters.updateKeys (which authorize did.jsonl log updates via eddsa-jcs-2022) SHOULD be distinct from the operational DIDComm authentication and keyAgreement keys in state. Keeping updateKeys in cold storage, an HSM, or a cloud KMS allows operational messaging keys to be rotated routinely without exposing DID governance keys.
  5. Linked Verifiable Presentations (/whois): Institutional TAP agents MAY publish a signed W3C Verifiable Presentation at the implicit /whois endpoint (https://<domain>/whois.vp, media type application/vp, per LINKED-VP) containing attestations such as VASP registrations, trust registry memberships, or TAIP-11 LEI credentials where credentialSubject.id is the did:webvh DID.

4. Log Verification Requirements for TAP Resolvers

Before trusting any key or DIDCommMessaging endpoint from a did:webvh DID, a TAP resolver MUST execute the full did:webvh v1.0 Read (Resolve) verification algorithm across every log entry in did.jsonl in order (1 through N):

  1. Method Version & Algorithm Pinning:
    • Entry 1 MUST specify parameters.method: "did:webvh:1.0".
    • Resolvers MUST reject unknown or downgraded method values.
    • Under did:webvh:1.0, the only permitted hash algorithm is SHA-256 (multihash 0x12), and the only permitted Data Integrity cryptosuite for both log-entry proofs and witness proofs is eddsa-jcs-2022 (DI-EDDSA) with type: "DataIntegrityProof" and proofPurpose: "assertionMethod".
  2. Genesis SCID Verification:
    • Entry 1 MUST include parameters.scid; later entries MUST NOT include scid.
    • Recompute base58btc(multihash(JCS(preliminary_entry_1), sha2-256)) after removing proof, setting versionId to "{SCID}", and replacing all occurrences of the SCID string with "{SCID}". The result MUST equal parameters.scid and the SCID in the requested DID.
  3. Sequential versionId and entryHash Chain:
    • Version numbers MUST start at 1 and increment by 1 with no gaps, followed by a single - and the entryHash.
    • For every entry, recompute base58btc(multihash(JCS(entry_without_proof_with_prev_versionId), sha2-256)) (using <scid> as the predecessor for entry 1, and entry k-1’s versionId for entry k) and confirm byte-for-byte equality with entryHash. Intermediate entries MUST NOT be skipped unless resuming from an authenticated, integrity-protected cache of previously verified entries.
  4. Monotonic UTC versionTime:
    • Every versionTime MUST be a valid UTC ISO 8601 timestamp with explicit Z or +00:00.
    • Every entry’s versionTime MUST be strictly greater than the previous entry’s versionTime and MUST NOT exceed the resolver’s current clock plus a bounded skew tolerance (SHOULD be ≤ 5 minutes).
  5. Subject Identity & SCID Immutability:
    • Every entry’s state.id MUST parse as a valid did:webvh DID whose SCID is byte-for-byte identical to parameters.scid and the requested DID’s SCID.
    • At least one entry’s state.id MUST exactly match the requested DID (didIdMatchCount > 0).
  6. Authorized Key Proofs:
    • Every entry’s proof MUST verify against a multikey in the active updateKeys:
      • Entry 1: parameters.updateKeys of entry 1.
      • Subsequent entries without pre-rotation: most recent prior updateKeys.
      • Subsequent entries with pre-rotation active: parameters.updateKeys of the current entry.
  7. Error Reporting:
    • Resolution failures MUST return standard DID-RESOLUTION error codes (notFound or invalidDid) and SHOULD include RFC-9457 problemDetails without leaking internal stack traces or file paths.

5. Advanced did:webvh Capabilities in TAP

5.1 Key Pre-Rotation (nextKeyHashes)

Production institutional TAP agents (VASPs, custodians, settlement agents) SHOULD enable key pre-rotation from entry 1 by populating parameters.nextKeyHashes with base58btc(multihash(multikey, sha2-256)) hashes of offline backup update keys.

When pre-rotation is active (previous entry’s nextKeyHashes is non-empty):

  • Every subsequent log entry MUST explicitly include both parameters.updateKeys and parameters.nextKeyHashes (implicit inheritance of updateKeys is forbidden and MUST be rejected).
  • Every multikey in the current entry’s parameters.updateKeys MUST hash to a value present in the immediately preceding entry’s nextKeyHashes.
  • After rotating away from a revealed pre-rotation key, the controller SHOULD securely destroy the spent private key.
  • Pre-rotation MAY be deactivated by setting nextKeyHashes: [] in a valid pre-rotated entry; non-pre-rotation rules apply starting on the following entry.

5.2 Threshold Witnesses (did-witness.json)

TAP ecosystems, VASP directories, or compliance consortia MAY require institutional agents to configure parameters.witness:

"witness": {
  "threshold": 2,
  "witnesses": [
    { "id": "did:key:z6Mkkc51mg2vpQzKWAbWQZupeGYhowaBjYkmvcKMTqteqHB4" },
    { "id": "did:key:z6MkuDdJdKLCgwZuQuEi9xG6LVgJJ9Tebr74CXPYPSumqgJs" },
    { "id": "did:key:z6MkoSWmQyp4fTk4ZQy4KUsss9dFX51XfEUzKKKj1J1JUsrF" }
  ]
}

Normative rules for TAP controllers and resolvers:

  • threshold MUST be a positive integer (1 <= threshold <= count(distinct witnesses[].id)), and all witnesses[].id MUST be distinct Ed25519 did:key (DID-KEY) identifiers compatible with eddsa-jcs-2022.
  • Controllers MUST publish the updated did-witness.json before publishing the updated did.jsonl to avoid resolution race conditions.
  • Resolvers MUST complete all non-witness log verifications first, then fetch did-witness.json, discard proofs whose versionId is not present in did.jsonl, verify that each proof’s verificationMethod has byte-equal body and fragment multibase values (did:key:<mb>#<mb>), decode the key solely from the did:key body, and confirm that at least threshold distinct active witnesses approved each witnessed entry (or a later published entry).

5.3 Watchers

Controllers MAY list parameters.watchers HTTP(S) URLs implementing the did:webvh v1.0 Watcher API (GET /log?scid=..., GET /witness?scid=...). TAP resolvers MAY query configured or independent watchers to:

  • Maintain resolution availability if an origin server experiences downtime.
  • Detect split-view attacks or log truncation across independent vantage points.
  • Resolve archived logs of deactivated or deleted DIDs during regulatory audits.

5.4 DID Portability (portable: true)

If an institutional TAP agent may need to migrate domains in the future, it MUST set parameters.portable: true in entry 1 (setting portable: true in any later entry MUST be rejected).

When migrating a portable did:webvh DID to a new domain or path:

  • The full historical did.jsonl is preserved and extended with a new entry whose state.id uses the new domain/path with the exact same SCID.
  • The new state MUST include the prior DID in alsoKnownAs.
  • TAP agents and resolvers MUST NOT infer trust or domain ownership from any prior domain appearing in earlier log entries; only the current hosting location, SCID continuity, and independent attestations (e.g., /whois VCs or trust registries) are relevant.
  • Counterparties with active TAIP-15 connections MAY update their stored peer DID to the new did:webvh identifier once the full log from genesis through the migration entry verifies with the same SCID.

5.5 Deactivation

  • Hard deactivation (parameters.deactivated: true): Per did:webvh v1.0, resolvers MUST NOT return the DID Document for current resolution and MUST set deactivated: true in DID Document Metadata. TAP agents MUST reject new TAP messages sent from or addressed to a deactivated DID. Historical versions remain resolvable via versionId or versionTime (with deactivated: true in metadata).
  • Freeze (parameters.updateKeys: [] without deactivated: true): Signals that the DID can no longer be updated while keeping the final DID Document resolvable.

6. Historical Resolution for Compliance and Audit

TAP resolvers supporting did:webvh MUST support the DID-CORE query parameters versionId and versionTime, and SHOULD support versionNumber:

  • did:webvh:<SCID>:vasp.example?versionTime=2026-06-15T14:22:10Z resolves the DID Document active at that UTC timestamp.
  • did:webvh:<SCID>:vasp.example?versionId=2-Qm... resolves the exact log entry with that versionId.

When verifying an archived TAIP-2 signed message, TAIP-4 authorization, or TAIP-8/TAIP-10 Travel Rule presentation after subsequent key rotations:

  1. Resolve the signer’s did:webvh DID using ?versionTime=<ISO8601(message.created_time)> (or a recorded versionId captured at receipt time).
  2. Verify the full log chain up through the resolved entry (and any active witness proofs).
  3. Verify the message JWS against the kid present in that historical DID Document’s authentication (or assertionMethod for VCs).

7. Parallel did:web Publishing and Migration

To enable incremental adoption across existing TAP networks without breaking did:web-only peers, a did:webvh controller MAY publish a parallel did:web document (did.json) alongside did.jsonl per did:webvh v1.0 (“Publishing a Parallel did:web DID”):

  1. Include the corresponding did:web identifier in the did:webvh DID Document’s alsoKnownAs array.
  2. Derive did.json from the resolved did:webvh DID Document by ensuring implicit #files and #whois services are present, replacing did:webvh:<SCID>: with did:web:, adding the full did:webvh DID to alsoKnownAs, and removing duplicates.
  3. Publish did.json at the matching did:web HTTPS location (e.g., https://vasp.example/.well-known/did.json) alongside did.jsonl.

Migration guidance for TAP agents:

  • Dual-resolution peers: A TAP resolver resolving a did:web DID whose alsoKnownAs contains a did:webvh DID on the same domain MAY additionally resolve and verify that did:webvh log to obtain verifiable-history guarantees, provided the did:webvh DID Document reciprocally lists the did:web DID in alsoKnownAs and exposes matching verification keys.
  • Wire identity consistency: The from and to DIDs in a TAIP-2 envelope MUST remain consistent with the DID used to sign and encrypt that envelope; agents MUST NOT silently rewrite message from/to identifiers without counterparty agreement.
  • Deprecating did:web: Because parallel did:web resolution does not inherit did:webvh’s tamper-evidence, institutions SHOULD transition counterparties to the did:webvh identifier directly as peer SDKs adopt TAIP-22.

8. Caching, Truncation Detection, and Transport Hardening

8.1 Caching and Truncation Detection

  • Resolvers SHOULD respect parameters.ttl (default 3600 seconds; 0 disables caching) as cache-freshness guidance.
  • Resolvers MUST NOT cache a did:webvh DID that fails verification.
  • Cache-and-compare: To detect log truncation or split-view attacks, TAP resolvers SHOULD persist the highest verified (versionNumber, versionId) observed for each SCID. If a subsequent fetch returns a shorter log or a different entryHash for a previously verified versionNumber, the resolver MUST reject the response and surface an alert/error.

8.2 Transport Hardening (SSRF and Resource Bounds)

Because a TAP agent resolves untrusted peer DIDs over HTTPS, did:webvh resolvers MUST enforce the following transport safeguards (per did:webvh v1.0 Security Considerations):

  1. HTTPS only (TLS 1.3+): Reject any non-https scheme in production. Certificate validation MUST NOT be disabled by default.
  2. No automatic redirects: MUST NOT automatically follow HTTP 3xx responses when fetching did.jsonl or did-witness.json.
  3. IP-literal and private-network rejection: Reject IPv4/IPv6 literals both after percent-decoding the domain and after DNS resolution, blocking loopback (127.0.0.0/8, ::1), private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7), link-local (169.254.0.0/16, fe80::/10), and localhost in production.
  4. Post-decode validation: Normalize percent-encoding hex case (%3A/%3a) and validate decoded path segments, rejecting empty segments, ., .., /, \, U+0000, and leading/trailing whitespace.
  5. Response size and time limits: Check Content-Length before reading, enforce a strict maximum body size for did.jsonl and did-witness.json (RECOMMENDED default: 5 MiB), and enforce an end-to-end wall-clock timeout (RECOMMENDED default: 30 seconds).

Rationale

  • Web-native without blockchain lock-in: TAP is explicitly chain-agnostic. DLT-based DID methods introduce ledger fees, consensus dependencies, and governance friction for regulated institutions. did:webvh achieves ledger-like cryptographic provenance using static HTTPS files that any institution can host on existing infrastructure.
  • Self-certifying + auditable history: Binding the identifier to its genesis SCID and chaining every update via JCS + SHA-256 + eddsa-jcs-2022 directly closes did:web’s silent-compromise and historical-verification gaps.
  • Composable with TAIP-2 and future cryptography: did:webvh’s method parameter supports cryptographic agility for the log itself, while the DID Document inside state can carry classical TAIP-2 keys (Ed25519, Secp256k1, X25519) as well as post-quantum AKP JWKs without changing the DID method.
  • Pragmatic enterprise key management: Separating updateKeys from operational DIDComm keys matches how production implementations (such as didwebvh-java with pluggable Signer interfaces for HSM/AWS KMS) isolate DID governance from hot messaging services.

Test Cases

1. Example Genesis did.jsonl Entry for a TAP Agent

Formatted across multiple lines for readability; on the wire in did.jsonl, each entry MUST be a single compact JSON line terminated by \n:

{
  "versionId": "1-QmQ6FJ4fk2xheSSQoEjVpTgx9AQPKhJgtR9hn1nr4EeCrZ",
  "versionTime": "2026-12-05T12:00:00Z",
  "parameters": {
    "method": "did:webvh:1.0",
    "scid": "QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p",
    "portable": true,
    "ttl": 3600,
    "updateKeys": [
      "z6MkgzBDcBFV3sk4ypPE5YXMZHmS213A3HpYY2LmcVKV15jr"
    ],
    "nextKeyHashes": [
      "QmZreDcjvWEpyRFznQeExWNCsvMLk5i59AcRJJuQC8UodJ"
    ]
  },
  "state": {
    "@context": [
      "https://www.w3.org/ns/did/v1",
      "https://w3id.org/security/multikey/v1"
    ],
    "id": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example",
    "alsoKnownAs": [
      "did:web:originator.vasp.example"
    ],
    "verificationMethod": [
      {
        "id": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example#key-1",
        "type": "Multikey",
        "controller": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example",
        "publicKeyMultibase": "z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK"
      },
      {
        "id": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example#key-2",
        "type": "Multikey",
        "controller": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example",
        "publicKeyMultibase": "z6LSbysY2xFMRpGMhb7tFTLMpeuPRaqaWM1yECx2AtzE3KCc"
      }
    ],
    "authentication": [
      "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example#key-1"
    ],
    "assertionMethod": [
      "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example#key-1"
    ],
    "keyAgreement": [
      "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example#key-2"
    ],
    "service": [
      {
        "id": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example#didcomm-1",
        "type": "DIDCommMessaging",
        "serviceEndpoint": "https://originator.vasp.example/didcomm"
      }
    ]
  },
  "proof": [
    {
      "type": "DataIntegrityProof",
      "cryptosuite": "eddsa-jcs-2022",
      "verificationMethod": "did:key:z6MkgzBDcBFV3sk4ypPE5YXMZHmS213A3HpYY2LmcVKV15jr#z6MkgzBDcBFV3sk4ypPE5YXMZHmS213A3HpYY2LmcVKV15jr",
      "created": "2026-12-05T12:00:00Z",
      "proofPurpose": "assertionMethod",
      "proofValue": "z..."
    }
  ]
}

2. Example TAIP-3 Transfer Message Using did:webvh

{
  "id": "7f3a1c2e-9b4d-4e8a-a1f2-3c5b7d9e0a12",
  "thid": "7f3a1c2e-9b4d-4e8a-a1f2-3c5b7d9e0a12",
  "type": "https://tap.rsvp/schema/1.0#Transfer",
  "from": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example",
  "to": [
    "did:webvh:QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG:beneficiary.vasp.example"
  ],
  "created_time": 1796472000,
  "body": {
    "@context": "https://tap.rsvp/schema/1.0",
    "@type": "https://tap.rsvp/schema/1.0#Transfer",
    "asset": "eip155:1/erc20:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "amount": "2500.00",
    "originator": {
      "@id": "did:pkh:eip155:1:0x1234a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb"
    },
    "beneficiary": {
      "@id": "did:pkh:eip155:1:0xab16a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb"
    },
    "agents": [
      {
        "@id": "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example",
        "@type": "https://schema.org/Organization",
        "role": "OriginatorVASP",
        "for": "did:pkh:eip155:1:0x1234a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb"
      },
      {
        "@id": "did:webvh:QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG:beneficiary.vasp.example",
        "@type": "https://schema.org/Organization",
        "role": "BeneficiaryVASP",
        "for": "did:pkh:eip155:1:0xab16a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb"
      },
      {
        "@id": "did:pkh:eip155:1:0xab16a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb",
        "role": "SettlementAddress",
        "for": "did:pkh:eip155:1:0xab16a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb"
      }
    ]
  }
}

3. Example Parallel did:web Document (did.json)

Published at https://originator.vasp.example/.well-known/did.json alongside did.jsonl:

{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1"
  ],
  "id": "did:web:originator.vasp.example",
  "alsoKnownAs": [
    "did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:originator.vasp.example"
  ],
  "verificationMethod": [
    {
      "id": "did:web:originator.vasp.example#key-1",
      "type": "Multikey",
      "controller": "did:web:originator.vasp.example",
      "publicKeyMultibase": "z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK"
    },
    {
      "id": "did:web:originator.vasp.example#key-2",
      "type": "Multikey",
      "controller": "did:web:originator.vasp.example",
      "publicKeyMultibase": "z6LSbysY2xFMRpGMhb7tFTLMpeuPRaqaWM1yECx2AtzE3KCc"
    }
  ],
  "authentication": [
    "did:web:originator.vasp.example#key-1"
  ],
  "assertionMethod": [
    "did:web:originator.vasp.example#key-1"
  ],
  "keyAgreement": [
    "did:web:originator.vasp.example#key-2"
  ],
  "service": [
    {
      "id": "did:web:originator.vasp.example#didcomm-1",
      "type": "DIDCommMessaging",
      "serviceEndpoint": "https://originator.vasp.example/didcomm"
    },
    {
      "id": "#files",
      "type": "relativeRef",
      "serviceEndpoint": "https://originator.vasp.example/"
    },
    {
      "id": "#whois",
      "type": "LinkedVerifiablePresentation",
      "serviceEndpoint": "https://originator.vasp.example/whois.vp"
    }
  ]
}

4. Required Negative Test Cases

Conforming TAP did:webvh resolvers MUST reject:

  1. SCID mismatch: Entry 1’s parameters.scid does not match the recomputed genesis hash, or any entry’s state.id carries a different SCID (including after a portable migration).
  2. Broken log chain: Version number gaps (e.g., 3-... after 1-...), missing/multiple dashes in versionId, or an entryHash mismatch on any entry (including intermediate entries).
  3. Invalid timestamps: Non-UTC versionTime, equal or decreasing versionTime relative to the previous entry, or versionTime exceeding the future skew tolerance.
  4. Unsupported method or cryptosuite: Unknown parameters.method (e.g., did:webvh:99.0), non-SHA-256 multihash, or a proof with cryptosuite other than eddsa-jcs-2022.
  5. Pre-rotation violations: Omitting parameters.updateKeys while pre-rotation is active, or including an updateKeys entry whose SHA-256 multihash is not in the previous entry’s nextKeyHashes.
  6. Late portability activation: Setting parameters.portable: true in any entry after entry 1.
  7. Witness violations: Duplicate witnesses[].id, invalid threshold (< 1 or > count), did:key proof whose body and fragment multibase values differ, or fewer than threshold distinct valid witness proofs for a witnessed entry.
  8. Transport/SSRF violations: Plaintext http://, automatic 3xx redirects, IPv4/IPv6 literals or private/loopback DNS resolutions, percent-encoded path traversal (%2e%2e), or responses exceeding configured size/time limits.

Security Considerations

  • Cryptographic Verification vs. Trust: Passing did:webvh verification proves log integrity and key-control continuity—it does not by itself establish institutional trustworthiness or regulatory licensing. TAP agents SHOULD combine did:webvh resolution with external trust anchors such as /whois Verifiable Presentations, TAIP-11 LEI verification, or ecosystem trust registries.
  • Misleading Prior Domains: Under portable: true, a malicious controller could create a genesis entry naming a domain it never controlled before migrating to its own domain. Resolvers and TAP compliance engines MUST ignore prior domains in historical log entries when evaluating trust.
  • Key Management: Controllers SHOULD store updateKeys and uncommitted nextKeyHashes private keys in HSMs, cloud KMS, or offline vaults (using pluggable signer abstractions as in didwebvh-java), never in web-root directories or plaintext config files with broad filesystem permissions.
  • Parallel did:web Trade-off: Serving did.json alongside did.jsonl maintains compatibility with legacy peers, but peers resolving did:web do not benefit from SCID binding, pre-rotation, or witness verification.

Privacy Considerations

  • No PII in DID Logs: did.jsonl and did-witness.json are public, append-only files. Controllers MUST NOT embed customer PII, transaction data, or holder-specific URLs in DID Documents or log entries.
  • DNS and Resolution Privacy: Resolving did:webvh identifiers reveals lookup patterns to DNS providers and origin web servers. TAP resolvers SHOULD use DNS over HTTPS (RFC-8484) and MAY resolve through independent watchers or privacy-preserving proxies.
  • Watcher Retention and Erasure: Because watchers are recommended to retain the last known valid state of deleted DIDs indefinitely, institutional controllers SHOULD treat published did.jsonl entries as permanent and exclude any data subject to right-to-erasure obligations.

Backwards Compatibility

TAIP-22 is purely additive to TAIP-2, TAIP-5, and TAIP-6:

  • Existing did:web, did:pkh, and did:key identifiers remain fully supported.
  • No TAP application-layer message schemas (TAIP-3 through TAIP-20) are modified.
  • Controllers adopting did:webvh can publish a parallel did:web document (did.json) so legacy TAP agents continue interoperating without disruption during migration.

References

  • TAIP-1 Transaction Authorization Improvement Proposals
  • TAIP-2 Messaging
  • TAIP-3 Virtual Asset Transfer
  • TAIP-4 Transaction Authorization Protocol
  • TAIP-5 Transaction Agents
  • TAIP-6 Transaction Parties
  • TAIP-8 Selective Disclosure
  • TAIP-10 IVMS101 for Travel Rule
  • TAIP-11 Legal Entity Identifier (LEI)
  • TAIP-15 Agent Connection Protocol
  • TAIP-20 On-Chain Transfer Correlation via Memo Hash
  • did:webvh v1.0 DID Web + Verifiable History Method Specification v1.0 (DIF)
  • didwebvh Decentralized Identity Foundation did:webvh Specification Repository
  • didwebvh-java Decentralized Identity Foundation Java 11+ Reference Implementation
  • DID-CORE W3C Decentralized Identifiers (DIDs) v1.0
  • DID-RESOLUTION W3C CCG Decentralized Identifier Resolution
  • DID-WEB did:web DID Method Specification
  • DID-KEY did:key DID Method Specification
  • DI-EDDSA Data Integrity EdDSA Cryptosuites v1.0 (eddsa-jcs-2022)
  • LINKED-VP DIF Linked Verifiable Presentation Specification v1.0
  • DIDComm DIDComm Messaging v2.1 Specification
  • RFC-8484 DNS Queries over HTTPS (DoH)
  • RFC-8785 JSON Canonicalization Scheme (JCS)
  • RFC-9457 Problem Details for HTTP APIs
  • CAIP-10 Account ID Specification
  • CAIP-19 Asset Type and Asset ID Specification
  • go-didcomm Go DIDComm v2 Implementation

Citation

Please cite this document as:

Pelle Braendgaard, "TAIP-22: Verifiable History DIDs (did:webvh) for TAP [DRAFT]," Transaction Authorization Improvement Proposals, no. 22, December 2026. [Online serial]. Available: https://github.com/TransactionAuthorizationProtocol/TAIPs/blob/master/TAIPs/taip-22.md