Class PresentedCredential
- Namespace
- Tessio.Verifier.Core
- Assembly
- Tessio.Verifier.Core.dll
A single credential extracted from a presentation, in its serialized wire form.
public sealed record PresentedCredential : IEquatable<PresentedCredential>
- Inheritance
-
PresentedCredential
- Implements
- Inherited Members
Remarks
FROZEN contract (contracts-v0). Extended additively with the optional CredentialQueryId; no existing member changed.
Properties
CredentialQueryId
The id of the DCQL Credential Query this presentation answers: the vp_token key it arrived under.
Null when the vp_token was a bare presentation or array, not keyed at all, and the parser was given no
query to read it against.
public string? CredentialQueryId { get; init; }
Property Value
Remarks
SPEC: OpenID4VP 1.0 section 8.1: vp_token holds "entries where the key is the id value used for a
Credential Query in the DCQL query and the value is an array of one or more Presentations that match the
respective Credential Query". A query offering several credentials as alternatives is answered by one of
them, and this says which.
As the wallet sent it, unless the parser was given the request's query
(WalletResponseParserOptions.DcqlQueryJson), in which case it names a Credential Query of that query
and Format is that Credential Query's format.
Init-only and optional, so every existing construction of this record still compiles and behaves as it did.
Format
Credential format identifier. For v0.1 this is "dc+sd-jwt".
public required string Format { get; init; }
Property Value
RawValue
The credential as received on the wire (e.g., the SD-JWT VC string including disclosures and the optional Key Binding JWT, tilde-separated).
public required string RawValue { get; init; }