TAIP-22: Verifiable History DIDs (did:webvh) for TAP
Table of Contents
- TAIP-22: Verifiable History DIDs (did:webvh) for TAP
- Simple Summary
- Abstract
- Motivation
- Specification
- 1. Identifier Format and DID-to-HTTPS Transformation
- 2. Using did:webvh in TAP Messages, Agents, and Parties
- 3. TAP DID Document Profile for did:webvh
- 4. Log Verification Requirements for TAP Resolvers
- 5. Advanced did:webvh Capabilities in TAP
- 6. Historical Resolution for Compliance and Audit
- 7. Parallel did:web Publishing and Migration
- 8. Caching, Truncation Detection, and Transport Hardening
- Rationale
- Test Cases
- Security Considerations
- Privacy Considerations
- Backwards Compatibility
- References
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:
- Identifier syntax, DID-to-HTTPS transformation, and hosting requirements (
did.jsonl,did-witness.json, and/whois). - The TAP DID Document profile inside
did:webvhlog entries, includingDIDCommMessagingendpoints, operational messaging keys, and separation fromupdateKeys. - Normative
did:webvh:1.0log verification, pre-rotation (nextKeyHashes), threshold witnesses, watchers, portability, and deactivation handling for TAP resolvers. - Historical resolution (
versionIdandversionTime) for auditing past TAP authorizations and TAIP-8/TAIP-10 compliance presentations. - Backward-compatible migration via parallel
did:webpublishing (did.jsonwith mutualalsoKnownAs). - 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:
- Silent hosting or DNS compromise: If an attacker compromises a VASP’s web server, CDN, or DNS configuration, they can silently substitute
did.jsonwith attacker-controlled keys to intercept encrypted TAIP-10 Travel Rule PII or forge TAIP-4Authorizemessages. Withdid:webvh, every DID Document update MUST be chained to the genesis self-certifying identifier (SCID) and signed by authorizedupdateKeys, making unauthorized host-level tampering cryptographically detectable. - 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:webvhpreserves every historical version indid.jsonlso verifiers can resolve the exact keys active at a pastversionTimeorversionId. - Key compromise containment and multi-party governance:
did:webvhsupports 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. - 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-characterbase58btc-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.jsonlSHOULD be served withContent-Type: text/jsonl(orapplication/jsonl) over HTTPS using TLS 1.3 or higher (per TAIP-2).did-witness.json(when witnesses are configured) SHOULD be served withContent-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, JWSkid, and JWEkid/skidheaders. - TAIP-5 Agent
@idandforfields, and agent management messages (AddAgents,ReplaceAgent,RemoveAgent). - TAIP-6 Party
@idfields (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:
- Bare Subject
id: Top-levelidMUST be a baredid:webvhDID (no DID URL path, query, or fragment) whose SCID matchesparameters.scidfrom entry 1. - DIDComm Endpoint:
serviceMUST include at least oneDIDCommMessagingservice entry with an HTTPSserviceEndpoint(TLS 1.3+ per TAIP-2), unless the agent operates exclusively via Out-of-Band invitations or fallbackserviceUrl. - Messaging Verification Methods:
authenticationMUST reference at least one signing key compatible with TAIP-2 (e.g., Ed25519EdDSA, Secp256k1ES256K) or a TAP-standardized post-quantum signing profile.keyAgreementMUST reference at least one encryption key compatible with TAIP-2 (e.g., X25519ECDH-ES+A256KW/ECDH-1PU) or a TAP-standardized post-quantum KEM profile.assertionMethodSHOULD reference keys used to sign Verifiable Credentials or/whoispresentations.
- Key Separation (
updateKeysvs. Operational Keys): The multikey public keys inparameters.updateKeys(which authorizedid.jsonllog updates viaeddsa-jcs-2022) SHOULD be distinct from the operational DIDCommauthenticationandkeyAgreementkeys instate. KeepingupdateKeysin cold storage, an HSM, or a cloud KMS allows operational messaging keys to be rotated routinely without exposing DID governance keys. - Linked Verifiable Presentations (
/whois): Institutional TAP agents MAY publish a signed W3C Verifiable Presentation at the implicit/whoisendpoint (https://<domain>/whois.vp, media typeapplication/vp, per LINKED-VP) containing attestations such as VASP registrations, trust registry memberships, or TAIP-11 LEI credentials wherecredentialSubject.idis thedid:webvhDID.
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):
- Method Version & Algorithm Pinning:
- Entry 1 MUST specify
parameters.method: "did:webvh:1.0". - Resolvers MUST reject unknown or downgraded
methodvalues. - Under
did:webvh:1.0, the only permitted hash algorithm is SHA-256 (multihash0x12), and the only permitted Data Integrity cryptosuite for both log-entry proofs and witness proofs iseddsa-jcs-2022(DI-EDDSA) withtype: "DataIntegrityProof"andproofPurpose: "assertionMethod".
- Entry 1 MUST specify
- Genesis SCID Verification:
- Entry 1 MUST include
parameters.scid; later entries MUST NOT includescid. - Recompute
base58btc(multihash(JCS(preliminary_entry_1), sha2-256))after removingproof, settingversionIdto"{SCID}", and replacing all occurrences of the SCID string with"{SCID}". The result MUST equalparameters.scidand the SCID in the requested DID.
- Entry 1 MUST include
- Sequential
versionIdandentryHashChain:- Version numbers MUST start at
1and increment by1with no gaps, followed by a single-and theentryHash. - For every entry, recompute
base58btc(multihash(JCS(entry_without_proof_with_prev_versionId), sha2-256))(using<scid>as the predecessor for entry 1, and entryk-1’sversionIdfor entryk) and confirm byte-for-byte equality withentryHash. Intermediate entries MUST NOT be skipped unless resuming from an authenticated, integrity-protected cache of previously verified entries.
- Version numbers MUST start at
- Monotonic UTC
versionTime:- Every
versionTimeMUST be a valid UTC ISO 8601 timestamp with explicitZor+00:00. - Every entry’s
versionTimeMUST be strictly greater than the previous entry’sversionTimeand MUST NOT exceed the resolver’s current clock plus a bounded skew tolerance (SHOULD be ≤ 5 minutes).
- Every
- Subject Identity & SCID Immutability:
- Every entry’s
state.idMUST parse as a validdid:webvhDID whose SCID is byte-for-byte identical toparameters.scidand the requested DID’s SCID. - At least one entry’s
state.idMUST exactly match the requested DID (didIdMatchCount > 0).
- Every entry’s
- Authorized Key Proofs:
- Every entry’s
proofMUST verify against a multikey in the activeupdateKeys:- Entry 1:
parameters.updateKeysof entry 1. - Subsequent entries without pre-rotation: most recent prior
updateKeys. - Subsequent entries with pre-rotation active:
parameters.updateKeysof the current entry.
- Entry 1:
- Every entry’s
- Error Reporting:
- Resolution failures MUST return standard DID-RESOLUTION error codes (
notFoundorinvalidDid) and SHOULD include RFC-9457problemDetailswithout leaking internal stack traces or file paths.
- Resolution failures MUST return standard DID-RESOLUTION error codes (
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.updateKeysandparameters.nextKeyHashes(implicit inheritance ofupdateKeysis forbidden and MUST be rejected). - Every multikey in the current entry’s
parameters.updateKeysMUST hash to a value present in the immediately preceding entry’snextKeyHashes. - 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:
thresholdMUST be a positive integer (1 <= threshold <= count(distinct witnesses[].id)), and allwitnesses[].idMUST be distinct Ed25519did:key(DID-KEY) identifiers compatible witheddsa-jcs-2022.- Controllers MUST publish the updated
did-witness.jsonbefore publishing the updateddid.jsonlto avoid resolution race conditions. - Resolvers MUST complete all non-witness log verifications first, then fetch
did-witness.json, discard proofs whoseversionIdis not present indid.jsonl, verify that each proof’sverificationMethodhas byte-equal body and fragment multibase values (did:key:<mb>#<mb>), decode the key solely from thedid:keybody, and confirm that at leastthresholddistinct 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.jsonlis preserved and extended with a new entry whosestate.iduses the new domain/path with the exact same SCID. - The new
stateMUST include the prior DID inalsoKnownAs. - 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.,
/whoisVCs or trust registries) are relevant. - Counterparties with active TAIP-15 connections MAY update their stored peer DID to the new
did:webvhidentifier 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 setdeactivated: truein DID Document Metadata. TAP agents MUST reject new TAP messages sent from or addressed to a deactivated DID. Historical versions remain resolvable viaversionIdorversionTime(withdeactivated: truein metadata). - Freeze (
parameters.updateKeys: []withoutdeactivated: 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:10Zresolves the DID Document active at that UTC timestamp.did:webvh:<SCID>:vasp.example?versionId=2-Qm...resolves the exact log entry with thatversionId.
When verifying an archived TAIP-2 signed message, TAIP-4 authorization, or TAIP-8/TAIP-10 Travel Rule presentation after subsequent key rotations:
- Resolve the signer’s
did:webvhDID using?versionTime=<ISO8601(message.created_time)>(or a recordedversionIdcaptured at receipt time). - Verify the full log chain up through the resolved entry (and any active witness proofs).
- Verify the message JWS against the
kidpresent in that historical DID Document’sauthentication(orassertionMethodfor 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”):
- Include the corresponding
did:webidentifier in thedid:webvhDID Document’salsoKnownAsarray. - Derive
did.jsonfrom the resolveddid:webvhDID Document by ensuring implicit#filesand#whoisservices are present, replacingdid:webvh:<SCID>:withdid:web:, adding the fulldid:webvhDID toalsoKnownAs, and removing duplicates. - Publish
did.jsonat the matchingdid:webHTTPS location (e.g.,https://vasp.example/.well-known/did.json) alongsidedid.jsonl.
Migration guidance for TAP agents:
- Dual-resolution peers: A TAP resolver resolving a
did:webDID whosealsoKnownAscontains adid:webvhDID on the same domain MAY additionally resolve and verify thatdid:webvhlog to obtain verifiable-history guarantees, provided thedid:webvhDID Document reciprocally lists thedid:webDID inalsoKnownAsand exposes matching verification keys. - Wire identity consistency: The
fromandtoDIDs in a TAIP-2 envelope MUST remain consistent with the DID used to sign and encrypt that envelope; agents MUST NOT silently rewrite messagefrom/toidentifiers without counterparty agreement. - Deprecating
did:web: Because paralleldid:webresolution does not inheritdid:webvh’s tamper-evidence, institutions SHOULD transition counterparties to thedid:webvhidentifier 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(default3600seconds;0disables caching) as cache-freshness guidance. - Resolvers MUST NOT cache a
did:webvhDID 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 differententryHashfor a previously verifiedversionNumber, 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):
- HTTPS only (TLS 1.3+): Reject any non-
httpsscheme in production. Certificate validation MUST NOT be disabled by default. - No automatic redirects: MUST NOT automatically follow HTTP
3xxresponses when fetchingdid.jsonlordid-witness.json. - 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), andlocalhostin production. - Post-decode validation: Normalize percent-encoding hex case (
%3A/%3a) and validate decoded path segments, rejecting empty segments,.,..,/,\,U+0000, and leading/trailing whitespace. - Response size and time limits: Check
Content-Lengthbefore reading, enforce a strict maximum body size fordid.jsonlanddid-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:webvhachieves 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-2022directly closesdid:web’s silent-compromise and historical-verification gaps. - Composable with TAIP-2 and future cryptography:
did:webvh’smethodparameter supports cryptographic agility for the log itself, while the DID Document insidestatecan carry classical TAIP-2 keys (Ed25519,Secp256k1,X25519) as well as post-quantumAKPJWKs without changing the DID method. - Pragmatic enterprise key management: Separating
updateKeysfrom operational DIDComm keys matches how production implementations (such as didwebvh-java with pluggableSignerinterfaces 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:
- SCID mismatch: Entry 1’s
parameters.sciddoes not match the recomputed genesis hash, or any entry’sstate.idcarries a different SCID (including after a portable migration). - Broken log chain: Version number gaps (e.g.,
3-...after1-...), missing/multiple dashes inversionId, or anentryHashmismatch on any entry (including intermediate entries). - Invalid timestamps: Non-UTC
versionTime, equal or decreasingversionTimerelative to the previous entry, orversionTimeexceeding the future skew tolerance. - Unsupported method or cryptosuite: Unknown
parameters.method(e.g.,did:webvh:99.0), non-SHA-256 multihash, or a proof withcryptosuiteother thaneddsa-jcs-2022. - Pre-rotation violations: Omitting
parameters.updateKeyswhile pre-rotation is active, or including anupdateKeysentry whose SHA-256 multihash is not in the previous entry’snextKeyHashes. - Late portability activation: Setting
parameters.portable: truein any entry after entry 1. - Witness violations: Duplicate
witnesses[].id, invalidthreshold(< 1or> count),did:keyproof whose body and fragment multibase values differ, or fewer thanthresholddistinct valid witness proofs for a witnessed entry. - Transport/SSRF violations: Plaintext
http://, automatic3xxredirects, 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:webvhverification proves log integrity and key-control continuity—it does not by itself establish institutional trustworthiness or regulatory licensing. TAP agents SHOULD combinedid:webvhresolution with external trust anchors such as/whoisVerifiable 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
updateKeysand uncommittednextKeyHashesprivate 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:webTrade-off: Servingdid.jsonalongsidedid.jsonlmaintains compatibility with legacy peers, but peers resolvingdid:webdo not benefit from SCID binding, pre-rotation, or witness verification.
Privacy Considerations
- No PII in DID Logs:
did.jsonlanddid-witness.jsonare 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:webvhidentifiers 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.jsonlentries 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, anddid:keyidentifiers remain fully supported. - No TAP application-layer message schemas (TAIP-3 through TAIP-20) are modified.
- Controllers adopting
did:webvhcan publish a paralleldid:webdocument (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:webvhSpecification 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:webDID Method Specification - DID-KEY
did:keyDID 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