Skip to content

IdCred: Support lengths up to 23 long KIDs#326

Merged
geonnave merged 5 commits intolake-rs:mainfrom
chrysn-pull-requests:id-cred-23
Nov 25, 2024
Merged

IdCred: Support lengths up to 23 long KIDs#326
geonnave merged 5 commits intolake-rs:mainfrom
chrysn-pull-requests:id-cred-23

Conversation

@chrysn
Copy link
Copy Markdown
Member

@chrysn chrysn commented Nov 25, 2024

Currently, IdCred supports precisely one length for KIDs: 1.

This generalizes the code to support lengths 0..=23.

I don't know whether other places in the code need to support that too, or whether it suffices. At any rate it doesn't create storage issues: IdCred can also hold credentials by value, and they are way longer than KIDs.

This uses early returns, but they were already used in that function, and I'm not sure if the issue with early returns hasn't been solved in hax anyway.

Requires: #325

@chrysn chrysn mentioned this pull request Nov 25, 2024
@geonnave geonnave merged commit e1561d6 into lake-rs:main Nov 25, 2024
@chrysn chrysn deleted the id-cred-23 branch November 25, 2024 19:14
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.

2 participants