diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/PresentationService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/PresentationService.java index a2b7aaee..86dcd4d1 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/PresentationService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/PresentationService.java @@ -37,7 +37,6 @@ import org.eclipse.tractusx.managedidentitywallets.dao.entity.HoldersCredential; import org.eclipse.tractusx.managedidentitywallets.dao.entity.JtiRecord; import org.eclipse.tractusx.managedidentitywallets.dao.entity.Wallet; -import org.eclipse.tractusx.managedidentitywallets.dao.entity.WalletKey; import org.eclipse.tractusx.managedidentitywallets.dao.repository.HoldersCredentialRepository; import org.eclipse.tractusx.managedidentitywallets.dao.repository.JtiRepository; import org.eclipse.tractusx.managedidentitywallets.dao.repository.WalletKeyRepository; @@ -184,7 +183,6 @@ private void buildVPJwtEdDSA(String audience, String callerBpn, Wallet callerWal X25519PrivateKey ed25519Key = (X25519PrivateKey) result.getRight(); X25519PrivateKey privateKey = new X25519PrivateKey(ed25519Key.asByte()); SignedJWT presentation = presentationFactory.createPresentation(result.getLeft(), verifiableCredentials, audience, privateKey , keyId); - response.put(StringPool.VP, presentation.serialize()); } diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java index 34d98919..7f118ef3 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java @@ -237,7 +237,6 @@ private Wallet createWallet(CreateWalletRequest request, boolean authority, Stri //create private key pair IKeyGenerator keyGenerator = new X25519Generator(); - KeyPair keyPair = keyGenerator.generateKey(); //create did json