@openeudi/openid4vp 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/index.cjs +8850 -188
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +280 -7
- package/dist/index.d.ts +280 -7
- package/dist/index.js +8757 -113
- package/dist/index.js.map +1 -1
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -116,12 +116,14 @@ if (result.valid) {
|
|
|
116
116
|
} else {
|
|
117
117
|
console.warn("mismatch reasons:", result.match.unmatched);
|
|
118
118
|
// each entry: { queryId, reason, detail? }
|
|
119
|
-
// reason ∈ { format_mismatch, vct_mismatch, doctype_mismatch, missing_claims, trusted_authority_mismatch, no_credential_found }
|
|
119
|
+
// reason ∈ { format_mismatch, vct_mismatch, doctype_mismatch, missing_claims, value_mismatch, trusted_authority_mismatch, no_credential_found /* only when the candidate list is empty */ }
|
|
120
120
|
}
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
Mismatches return `valid: false` — they do not throw. Only crypto/structural failures (malformed VP tokens, invalid signatures, expired credentials) and malformed DCQL queries throw exceptions.
|
|
124
124
|
|
|
125
|
+
> **Privacy — diagnostics are verifier-internal.** `match.unmatched[].reason` and `detail` (including `value_mismatch`) are intended for verifier-side logging, debugging, and admin UIs. OpenID4VP §11 warns that per-claim verification outcomes can reveal wallet contents to observers. Do NOT echo these diagnostics into the OpenID4VP wire response sent back to the wallet, into end-user-visible error messages that another party could correlate, or into public analytics/third-party logs. The protocol's own error codes are the public interface; these fields are your internal instrumentation.
|
|
126
|
+
|
|
125
127
|
### ParseOptions / VerifyOptions
|
|
126
128
|
|
|
127
129
|
Both `parsePresentation` and `verifyPresentation` accept:
|