From 969d4b3b50006c20558a49d88729b57718db357a Mon Sep 17 00:00:00 2001 From: Cristian G Date: Thu, 14 Dec 2023 15:09:16 -0500 Subject: [PATCH] feat: presentation created, hardcoded logic waiting for new anoncreds wrapper version --- .../kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt | 2 +- .../io/iohk/atala/prism/walletsdk/prismagent/PrismAgent.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt index 817137992..221b9033b 100644 --- a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt +++ b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt @@ -195,7 +195,7 @@ class PolluxImpl( val requestedAttributes = listOf( RequestedAttribute( - referent = "name", + referent = "attribute_1", revealed = true ) ) diff --git a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/PrismAgent.kt b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/PrismAgent.kt index a52ecfa03..d442513aa 100644 --- a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/PrismAgent.kt +++ b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/PrismAgent.kt @@ -939,8 +939,8 @@ class PrismAgent { throw PrismAgentError.InvalidCredentialFormatError(CredentialType.ANONCREDS_PROOF_REQUEST) } val linkSecret = getLinkSecret() - pollux.createVerifiablePresentationAnoncred(request, credential as AnonCredential, linkSecret) - presentationString = "" + val presentation = pollux.createVerifiablePresentationAnoncred(request, credential as AnonCredential, linkSecret) + presentationString = presentation.getJson() } else -> {