Skip to content

Statelessly track requested credentials via nonce - #29

Merged
MasterKale merged 8 commits into
mainfrom
track-requested-credentials-in-nonce
Oct 4, 2026
Merged

MasterKale merged 8 commits into
mainfrom
track-requested-credentials-in-nonce

Conversation

@MasterKale

@MasterKale MasterKale commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

This PR tightens up credential presentation by tracking the expected shape of the presented credentials via the nonce. The doc type of a presented mdoc is verified, and SD-JWT-VCs verify which VCTs were noted as acceptable.

To keep things stateless, these extra signals are tracked via the nonce. This represents a breaking change as nonces generated before updating to this version of the library will not contain the necessary new values. But since no one's using the library right now that's fine. At worst they'll have to re-request the credential since requests are only good for five minutes by default.

(Note to future self: I will be much less cavalier about this if this project starts to see adoption.)

@MasterKale MasterKale added this to the v0.6.0 milestone Oct 4, 2026
@MasterKale
MasterKale merged commit a49b53d into main Oct 4, 2026
5 checks passed
@MasterKale
MasterKale deleted the track-requested-credentials-in-nonce branch October 4, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant