Skip to content

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 added 13 commits August 14, 2024 16:44
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
@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 <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
# Conflicts:
#	src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/SdJwtRecordExtensions.cs
Signed-off-by: Kevin <kevin.dinh@lissi.id>
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

Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
# 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 <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
Signed-off-by: Kevin <kevin.dinh@lissi.id>
@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