Skip to content

Commit

Permalink
Fix retrieval of descriptorId
Browse files Browse the repository at this point in the history
  • Loading branch information
Jdu278 committed Aug 23, 2024
1 parent 17ee0a3 commit a988172
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ class PostWalletResponseLive(
"mso_mdoc" -> print("mso_mdoc")
"vc+sd-jwt+zkp" -> {
logger.info("Starting zkp verification for SDJWT")
val descriptorId: String = descriptor.id.toString()
val descriptorId: String = descriptor.id.value
logger.info("ZKP-SDJWT: descriptorId=$descriptorId")
logger.info("This is the whole presentation: $presentation")

val key = presentation.zkpKeys?.getValue(descriptorId)
val key = presentation.zkpKeys?.get(descriptorId)
logger.info("ZKP-SDJWT: key=$key")
ensureNotNull(key) { raise(WalletResponseValidationError.InvalidVPToken) }

Expand Down

0 comments on commit a988172

Please sign in to comment.