-
Notifications
You must be signed in to change notification settings - Fork 0
add npm package for dc api wasm bundle #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
893a8e1 to
fcd3a46
Compare
4be0fff to
def4628
Compare
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
def4628 to
6137177
Compare
sbihel
reviewed
Sep 30, 2025
Ryanmtate
commented
Sep 30, 2025
Ryanmtate
commented
Sep 30, 2025
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
beb600c to
306bb5f
Compare
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
badf424 to
334201b
Compare
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
334201b to
d31574a
Compare
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
f2dfbff to
a8c417c
Compare
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
sbihel
approved these changes
Oct 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new functionality and refactors the codebase to support OpenID4VP and DC-API flows for mobile driver's license (mDL) credential presentation. The changes include new session management logic, cryptographic operations, and integration with external libraries for both DC-API Annex C and D flows. Additionally, the configuration system is updated to support certificate chains and keys required for secure communication.
DC-API and OpenID4VP Flows Implementation
Added support for DC-API Annex C and D flows, including session initiation, encryption/decryption, and response validation logic in
core/src/annex_c.rsandcore/src/annex_d.rs. These modules now handle session state, cryptographic handover, and response authentication for mDL credential presentation. [1] [2]Introduced new session state types (
InitiatedSessionState) and response data structures to manage the lifecycle of credential presentation sessions for both DC-API and OpenID4VP flows. [1] [2]Cryptographic and External Library Integration
Integrated cryptographic libraries (
hpke,p256,pkcs8,sha2, etc.) and external dependencies for COSE, CBOR, and X.509 operations, enabling secure key generation, signing, and certificate chain validation. These dependencies are reflected incore/Cargo.toml.Added logic for generating and verifying cryptographic handover information and session transcripts using CBOR serialization and SHA-256 hashing, ensuring the integrity of credential presentation sessions. [1] [2]
OpenID4VP Client and Verifier Abstractions
OID4VPClient,OID4VPVerifier) incore/src/client.rs, providing interfaces for building authorization requests, signing JWTs, and managing session storage for OpenID4VP flows.Configuration System Refactor
core/src/config.rsto support loading certificate chains in PEM format and client keys, allowing for secure initialization of cryptographic clients and verifiers.Dependency Management
core/Cargo.toml, including cryptography, serialization, and HTTP libraries, and switchedopenid4vpandopenid4vp-frontendto use specific git revisions for wasm compatibility.