Virvi Proof Format v1 Specification
Virvi Proof Format v1 is a portable, versioned JSON artifact format for proving cryptographic control of a persistent digital identity (urn:virvi:identity:<uuid>). Any verifier can validate a .virviproof.json artifact 100% offline using the zero-dependency @virvixr/proof-verify package and a downloaded Public Key Manifest — without trusting or contacting Virvi servers.
Design Guarantees
- Zero unsigned claims: Every security-relevant claim is cryptographically bound into the WebAuthn challenge via a domain-separated SHA-384 digest over RFC 8785 (JSON Canonicalization Scheme) canonical JSON. Unknown top-level properties are rejected (
UNSIGNED_EXTRA_CLAIMS). - Algorithm allowlist: Verifiers strictly allowlist
ES256(P-256),ES384(P-384),EdDSA(Ed25519), andRS256. Algorithm confusion and symmetric MAC algorithms (HS256,none) are rejected. - No unanchored key trust: Proofs never embed self-asserted public keys. Verifiers require a trusted Public Key Manifest (with SHA-384 continuity chain verification) or an explicitly pinned key fingerprint.
- Fresh User Verification (
UV): WebAuthnauthenticatorDatamust assert both User Presence (UP = 1) and User Verification (UV = 1). - Post-Quantum Crypto-Agility (CNSA 2.0 ready):
- Payload digests, key fingerprints, Genesis Fingerprints, and continuity logs use SHA-384 (192-bit quantum collision resistance).
- Maximum artifact size is 64 KB (
65,536bytes) to accommodate future 3–5 KB lattice/hash-based signatures (ML-DSA-65/87,SLH-DSA). - An extensible optional
signaturesarray supports hybrid classical + post-quantum co-signatures without breaking v1 verifiers.
Artifact JSON Structure
{ "version": 1, "mode": "quick", "issuer": "https://virvi.io", "rpId": "virvi.io", "identity": "urn:virvi:identity:11111111-2222-4333-8444-555555555555", "handle": "unknower", "purpose": "identity-verification", "proofId": "unique-proof-id", "challenge": "256-bit-base64url-nonce", "issuedAt": 1796300280, "notBefore": 1796300280, "expiresAt": 1796300580, "context": { "platform": "decentraland", "recipient": "recipient-identifier", "description": "Live identity confirmation" }, "credentialId": "cred_aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "keyFingerprint": "<96-hex-char SHA-384 digest of public key>", "signatureType": "webauthn", "assertion": { "authenticatorData": "<base64url>", "clientDataJSON": "<base64url>", "signature": "<base64url>" }}Canonical Challenge Binding (WebAuthn)
WebAuthn authenticators sign authenticatorData || SHA-256(clientDataJSON) where clientDataJSON.challenge holds an arbitrary byte string. Virvi Proof v1 binds all claims to clientDataJSON.challenge as follows:
- Construct the canonical claim object:
{"challenge": "<proof.challenge>","context": "<proof.context or null>","domain": "virvi-proof:artifact:v1","expiresAt": 1796300580,"handle": "<proof.handle or null>","identity": "urn:virvi:identity:...","issuedAt": 1796300280,"issuer": "https://virvi.io","mode": "quick","notBefore": 1796300280,"proofId": "...","purpose": "identity-verification","rpId": "virvi.io","signatureType": "webauthn","version": 1}
- Serialize deterministically using RFC 8785 (JCS) (keys sorted by UTF-16 code units, no extra whitespace).
- Compute
expectedChallenge = base64url(SHA-384(utf8(canonicalJson))). - Verify
clientDataJSON.challenge === expectedChallengein constant time.
The signing credential reference (credentialId, keyFingerprint) is selected by the user’s authenticator during the WebAuthn ceremony and cryptographically bound by verifying the signature against that exact credential’s public key in the identity’s trusted manifest.
Verification Semantics
Verifiers strictly separate three independent dimensions:
| Dimension | Values | Meaning |
|---|---|---|
| Cryptographic Authenticity | true / false | Canonical SHA-384 binding, webauthn.get, origin, rpIdHash, UP=1, UV=1, and signature verified against trusted key. |
| Temporal Status | valid, expired, not_yet_valid | Evaluated against notBefore / expiresAt with 30s clock skew. Expired authentic proofs report “Authentic signature · Expired”, never “Invalid signature”. |
| Credential Status | active, revoked_after_issuance, revoked_before_issuance | A proof signed by a credential revoked before issuedAt is invalid. A proof signed before a later revocation is reported as authentic with a revocation warning. |
Quick Proof Limitations & Transport
- Quick Proofs default to a 5-minute validity window and are replayable by anyone who receives the artifact during that window. Use a Live Challenge Proof when confirming live control during an active conversation.
- Self-contained URL fragments (
#proof=<base64url>): Fragment identifiers are never sent in HTTP requests, keeping proof artifacts out of server access logs and CDN caches. - Short reference links (
?code=<shortCode>): Opt-in, ≥132-bit random codes that fetch the full signed.virviproof.jsonartifact for local client-side verification. The short code itself is never treated as a cryptographic proof.