Skip to content

Commit

Permalink
add todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianIOHK committed Dec 15, 2023
1 parent 969d4b3 commit 8c6008f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class PolluxImpl(
val presentationRequest = PresentationRequest(attachmentBase64.base64.base64UrlDecoded)
val cred = anoncreds_wrapper.Credential(credential.id)

// TODO: Replace this piece of code with the new expose methods Ahmed provided on the newer version of anoncreds wrapper.
val jsonElement = Json.parseToJsonElement(attachmentBase64.base64.base64UrlDecoded)
val attributes = (jsonElement as JsonObject)["requested_attributes"]
val attr = (attributes as JsonObject)["attribute_1"] as JsonObject
Expand All @@ -199,6 +200,7 @@ class PolluxImpl(
revealed = true
)
)
// TODO: Until here

val credentialRequests = CredentialRequests(
credential = cred,
Expand Down

0 comments on commit 8c6008f

Please sign in to comment.