Skip to content

Commit

Permalink
feat(LPSignerChanges): Signer tool request changes for LegalParticipant
Browse files Browse the repository at this point in the history
  • Loading branch information
dilipdhankecha2530 committed Mar 13, 2024
1 parent 76fd821 commit 3fa7161
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ private Map<String, Object> prepareCredentialSubjectForLegalParticipant(Particip
//Add @context in the credential
legalParticipant.put(CONTEXT, this.contextConfig.participant());
legalParticipant.put(TYPE, List.of(VERIFIABLE_CREDENTIAL));
legalParticipant.put(ID, participant.getDid());
String participantJsonUrl = this.formParticipantJsonUrl(participant.getDomain(), participant.getId());
legalParticipant.put(ID, participantJsonUrl + "#0");
legalParticipant.put(ISSUER, participant.getDid());
String issuanceDate = LocalDateTime.now().atZone(ZoneOffset.UTC).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME);
legalParticipant.put(ISSUANCE_DATE, issuanceDate);

Map<String, Object> participantCredentialSubject = this.mapper.convertValue(legalParticipant.get(CREDENTIAL_SUBJECT), typeReference);
String participantJsonUrl = this.formParticipantJsonUrl(participant.getDomain(), participant.getId());
participantCredentialSubject.put(ID, participantJsonUrl + "#0");
participantCredentialSubject.put(TYPE, GX_LEGAL_PARTICIPANT);
String registrationId = participantJsonUrl + "#1";
Expand All @@ -147,7 +147,7 @@ private Map<String, Object> prepareCredentialSubjectForLegalParticipant(Particip
Map<String, Object> tncVc = new TreeMap<>();
tncVc.put(CONTEXT, this.contextConfig.tnc());
tncVc.put(TYPE, List.of(VERIFIABLE_CREDENTIAL));
tncVc.put(ID, participant.getDid());
tncVc.put(ID, participantJsonUrl + "#2");
tncVc.put(ISSUER, participant.getDid());
tncVc.put(ISSUANCE_DATE, issuanceDate);

Expand Down

0 comments on commit 3fa7161

Please sign in to comment.