File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/WalletFramework.Oid4Vc/Oid4Vp/PresentationExchange/Services Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ private async Task<Option<IEnumerable<ICredential>>> GetMatchingCredentials(
170
170
var filteredMdocRecords = mdocRecords . OnSome ( records => records
171
171
. Where ( record =>
172
172
{
173
- return record . Mdoc . IssuerSigned . IssuerAuth . ProtectedHeaders . Value . TryGetValue ( new CoseLabel ( 1 ) , out var alg )
173
+ return record . DocType == inputDescriptor . Id
174
+ && record . Mdoc . IssuerSigned . IssuerAuth . ProtectedHeaders . Value . TryGetValue ( new CoseLabel ( 1 ) , out var alg )
174
175
&& supportedFormatSigningAlgorithms . Match (
175
176
formats => formats . MDocFormat ? . Alg ? . Contains ( alg . ToString ( ) ) ?? true ,
176
177
( ) => inputDescriptor . Formats ? . MDocFormat ? . Alg ? . Contains ( alg . ToString ( ) ) ?? true )
You can’t perform that action at this time.
0 commit comments