Skip to content

Session transcript definition #10

Todo

Description

@c2bo

Somewhat related to #8

We need an agreement on and common description of what data should be signed over by the device and what protection guarantees we need.

Historically in OpenID4VP, there was a bit of divergence, where the data being signed over by the Wallet was slightly different between the formats. We should align on a generic definition what exactly we sign over and how that is constructed. SessionTranscript is reconstructed, whereas KB-JWT contained the values and both contain different values (e.g., JwkTumbprint)

SessionTranscript for mDoc (vanilla OpenID4VP):

OpenID4VPHandover = [
"OpenID4VPHandover", ; A fixed identifier for this handover type
OpenID4VPHandoverInfoHash ; A cryptographic hash of OpenID4VPHandoverInfo
]

; Contains the sha-256 hash of OpenID4VPHandoverInfoBytes
OpenID4VPHandoverInfoHash = bstr

; Contains the bytes of OpenID4VPHandoverInfo encoded as CBOR
OpenID4VPHandoverInfoBytes = bstr .cbor OpenID4VPHandoverInfo

OpenID4VPHandoverInfo = [
clientId,
nonce,
jwkThumbprint,
responseUri
] ; Array containing handover parameters

clientId = tstr

nonce = tstr

jwkThumbprint = bstr

responseUri = tstr

This is kb-jwt for SD-JWT VC (vanilla OpenID4VP)

The following is a non-normative example of the unsecured payload of the Key Binding JWT of a Verifiable Presentation.

{
  "nonce": "n-0S6_WzA2Mj",
  "aud": "x509_san_dns:client.example.org",
  "iat": 1709838604,
  "sd_hash": "Dy-RYwZfaaoC3inJbLslgPvMp09bH-clYP_3qbRqtW4"
}

Activity

  1. GarethCOliver commented on Jul 6, 2026

    @GarethCOliver
    Collaborator

    We also need to decide how to include channel binding. The channel definition is outside the scope of this spec but ideally there would be a simple, encapsulated way to plug this in

  2. c2bo commented on Jul 6, 2026

    @c2bo
    MemberAuthor

    We also need to decide how to include channel binding. The channel definition is outside the scope of this spec but ideally there would be a simple, encapsulated way to plug this in

    Agreed, in my mind I'd like to define a common set of values we bind to the device signature and then basically for each format simply describe how exactly that happens.
    The decision we probably have to make is if we simply define 1 sessiontranscript for everything and just add that to every credential format into the device signed part, or if the formats define their own data structs.

  3. leifj commented on Jul 21, 2026

    @leifj

    also agree on some pluggability for channel binding. We already know that dchp will run over at least two transports (nfc+http) and there will probably be more bindings down the line.

  4. julescafik commented on Aug 6, 2026

    @julescafik

    Adding my previous issue here per Oliver’s note: "the error/refusal/partial-result semantics in section 6; and the §5.5 that 5.4 references but which doesn't exist. https://github.com/openid/dchp/issues/10 covers what we sign over generally, but not that specific gap.”

    mdoc SessionTranscript derivation is unspecified (§5.4 references a non-existent §5.5)
    Section 5.4 states that mdoc device authentication uses the WalletTransactionTranscript “embedded in a derived SessionTranscript; see section 5.5.” There is no section 5.5.

    Problem
    The draft doesn't define how the map-based WalletTransactionTranscript is turned into the concrete CBOR SessionTranscript that existing mdoc device keys actually sign.

    From what I can see without a normative derivation, wallets and verifiers cannot produce or verify matching device signatures. This breaks interop at the holder-binding (anti-cloning / anti-replay) join point that is specific to the mdoc path.

  5. awoie commented on Aug 10, 2026

    @awoie
    Contributor

    WG discussion:

    • Format specific or format agnostic?
      • WG seems to agree that one session transcript is best; also on the binary representation level just one should be defined that works for all formats.
      • Do we need different lists of attributes for DC API and in-person presentation?
        • different lists needed, because part 5 does not have client data.
        • thing that is missing on session transcript compared to initial document: transaction data
      • needs allowed fields and size limits for session transcript is important to have.

    @timcappalli @MasterKale @leecam is coming back with a proposal on client data in 1 week (DC API).

  6. jogu commented on Aug 27, 2026

    @jogu
    Contributor

    We discussed on last week's WG (when GitHub was down)

    Tim/Lee/Matt have been discussing the client data work, and they have now opened an issue in w3c for this work:

    w3c-fedid/digital-credentials#574

  7. awoie commented on Sep 7, 2026

    @awoie
    Contributor

    WG discussion (Pre-GDC F2F, 8/31/2026):

    • Proposal: define a session transcript hash, with individual formats defining how that hash is represented in their respective format which will be covered by the format-specific details sections.
    • Should request_hash support algorithm agility instead of using a hardcoded algorithm? @ve7jtb to create an issue.

    @andrewhughes3000 might have additional items in his minutes.

  8. andrewhughes3000 commented on Sep 7, 2026

    @andrewhughes3000
    Member

    WG discussion (Pre-GDC F2F, 8/31/2026) - from meeting notes:

    • Transfer layer / credential format agnostic?
    • Description of some of the discussions in W3C DC API WG about layering information that could be used in the transcripts
      • I.e. DCHP would generate a ‘generic’ transcript/hash that could be consumed by specific formats/transports
    • Still to be discussed: details about what the transaction transcript is intended to achieve (therefore what fields achieve this)
    • Discussion about “client data” and how this relates to “origin” info - and how these are structured in different formats
    • Suggestion to consider ability to use different (future-proofing) hashing mechanisms
      • Or examine whether hashing adds value in all cases (i.e. in transcripts hashing is probably not necessary)
  9. andrewhughes3000 commented on Oct 15, 2026

    @andrewhughes3000
    Member

    WG discussion:
    Chairs to schedule a specific call to discuss transcript.

  10. awoie commented on Nov 5, 2026

    @awoie
    Contributor

    WG discussion:

  11. awoie commented on Nov 16, 2026

    @awoie
    Contributor

    WG discussion:

    The group agreed on the following two proposals without objection:

    • Standardized transcript generation: Generate a single transcript from DCHP, process it through a defined mechanism to produce a standardized output, and specify in the annexes how each credential format includes it.
    • Unhashed opaque bytes: Provide unhashed opaque bytes directly to the credential formats (and evaluate any resulting issues) rather than hashing them.
      • No crypto agility needed: Avoiding the hashing function removes the need for crypto agility within DCHP.
      • No privacy impact: There is no privacy requirement to hide transcript information from the wallet.
      • Sizing trade-off: Providing a hash may still offer payload size advantages.

    @martijnharing to take a look how text is impacted and create PR.

    Original notes drafted here https://hackmd.io/KfX2OWEwQ7iEMKKW8cVcaQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions