Skip to content

Commit

Permalink
fix: Fix bug for presentation format
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 31, 2024
1 parent ad364ef commit 299ab15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1061,13 +1061,13 @@ class OIDC4VC {
if (holderKid == null) {
data = (jsonPath.read(didDocument).first.value! as List).toList();
} else {
data = (toto['verificationMethod'] as List).where(
data = (jsonPath.read(didDocument).first.value! as List).where(
(dynamic e) {
final id = toto['id'];
final kid = e['id'].toString();

if (kid.startsWith('#')) {
if (holderKid == id + kid) return true;
if (holderKid.contains('#')) {
final identifier = '#${holderKid.split('#')[1]}';
if (kid == identifier) return true;
} else {
if (holderKid == kid) return true;
}
Expand Down

0 comments on commit 299ab15

Please sign in to comment.