From d199f0db0c40683bfafdeec4726b517172f8a769 Mon Sep 17 00:00:00 2001 From: bvoiturier Date: Thu, 15 Dec 2022 11:49:58 +0100 Subject: [PATCH] feat(prism-agent): integrate latest pollux version (#259) --- prism-agent/service/project/Dependencies.scala | 4 ++-- .../io/iohk/atala/agent/server/jobs/BackgroundJobs.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prism-agent/service/project/Dependencies.scala b/prism-agent/service/project/Dependencies.scala index be299b60fa..b11bec345e 100644 --- a/prism-agent/service/project/Dependencies.scala +++ b/prism-agent/service/project/Dependencies.scala @@ -8,8 +8,8 @@ object Dependencies { val zioInteropCats = "3.3.0" // scala-steward:off val akka = "2.6.20" val akkaHttp = "10.2.9" - val castor = "0.5.0" - val pollux = "0.11.0" + val castor = "0.5.1" + val pollux = "0.12.0" val connect = "0.5.0" val bouncyCastle = "1.70" val logback = "1.4.5" diff --git a/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/jobs/BackgroundJobs.scala b/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/jobs/BackgroundJobs.scala index d066100eef..507ad8b379 100644 --- a/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/jobs/BackgroundJobs.scala +++ b/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/jobs/BackgroundJobs.scala @@ -25,7 +25,7 @@ import java.io.IOException import zhttp.service._ import zhttp.http._ -import io.iohk.atala.pollux.vc.jwt.JwtCredential +import io.iohk.atala.pollux.vc.jwt.W3CCredential import io.iohk.atala.pollux.core.model.PresentationRecord import io.iohk.atala.pollux.core.service.PresentationService import io.iohk.atala.pollux.core.model.error.PresentationError @@ -138,7 +138,7 @@ object BackgroundJobs { issuer, Instant.now() ) - signedJwtCredential = JwtCredential.toEncodedJwt(w3Credential, issuer) + signedJwtCredential = W3CCredential.toEncodedJwt(w3Credential, issuer) issueCredential = IssueCredential.build( fromDID = issue.from, toDID = issue.to,