Skip to content

Commit

Permalink
added # as fragment for kid under verification method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dattatrayamote committed Oct 7, 2024
1 parent fdd0b29 commit 911a3fe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ public String generateTrustListVerificationId(SignerInformationEntity signerInfo

String defaultPath = signerInformationEntity.getDomain()
+ SEPARATOR_DID_PATH + getParticipantCode(signerInformationEntity.getCountry())
+ SEPARATOR_DID_PATH + getMappedGroupName(signerInformationEntity.getGroup())
+ SEPARATOR_DID_PATH + encodeKid(signerInformationEntity.getKid());
+ SEPARATOR_DID_PATH + getMappedGroupName(signerInformationEntity.getGroup());

StringBuilder stringBuilder = new StringBuilder();
String[] pathArray = defaultPath.split(SEPARATOR_DID_PATH);
Expand All @@ -162,7 +161,8 @@ public String generateTrustListVerificationId(SignerInformationEntity signerInfo
stringBuilder.append(SEPARATOR_DID_PATH + pathArray[i]);
}

return getDocumentId(false) + stringBuilder;
return getDocumentId(false) + stringBuilder + SEPARATOR_DID_ID
+ encodeKid(signerInformationEntity.getKid());
}
}

Expand Down

0 comments on commit 911a3fe

Please sign in to comment.