Skip to content
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

Implement OID4VP for mdocs #157

Merged
merged 27 commits into from
Aug 19, 2024
Merged

Implement OID4VP for mdocs #157

merged 27 commits into from
Aug 19, 2024

Conversation

Dindexx
Copy link
Contributor

@Dindexx Dindexx commented Aug 14, 2024

Short description of what this resolves:

This PR adds OID4VP support for mdocs

Changes proposed in this pull request:

  • Adds whole E2E support for OID4VP with mdocs
  • Adds more types and refactors for security and encoding

@Dindexx Dindexx added the enhancement New feature or request label Aug 14, 2024
@Dindexx Dindexx requested a review from ntsbs August 14, 2024 15:21
@Dindexx Dindexx self-assigned this Aug 14, 2024
Signed-off-by: Kevin <[email protected]>
# Conflicts:
#	src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/SdJwtRecordExtensions.cs
Signed-off-by: Kevin <[email protected]>
Copy link
Contributor

@ntsbs ntsbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

{
var sigStructureByteString = sigStructure.ToCborByteString();
var signature = await _keyStore.Sign(keyId, sigStructureByteString.EncodeToBytes());
return new CoseSignature(signature);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the COSE signature just the DER-encoded bytes?


namespace WalletFramework.Core.Cryptography.Models;

public record PublicKey(Base64UrlString X, Base64UrlString Y)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually looks like a JWK object

# Conflicts:
#	src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/SdJwtRecordExtensions.cs
#	src/WalletFramework.Oid4Vc/Oid4Vp/Models/AuthorizationRequest.cs
#	src/WalletFramework.Oid4Vc/Oid4Vp/Models/ClientMetadata.cs
#	test/WalletFramework.Oid4Vc.Tests/Oid4Vp/Services/Oid4VpHaipClientTests.cs
#	test/WalletFramework.Oid4Vc.Tests/PresentationExchange/Services/PexServiceTests.cs
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
@Dindexx Dindexx merged commit 8016504 into main Aug 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants