Skip to content

Commit

Permalink
Use only sdjwt for zkp
Browse files Browse the repository at this point in the history
  • Loading branch information
code28 committed Aug 26, 2024
1 parent 6e05ad7 commit 373dfd4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ class PostWalletResponseLive(
val key = presentation.zkpKeys?.get(descriptorId)
ensureNotNull(key) { raise(WalletResponseValidationError.InvalidVPToken) }

val proofed = token.let {
val sdjwtToken = token.split("~")[0]
val proofed = sdjwtToken.let {
verifier.verifyChallenge(VpTokenFormat.SDJWT, it, key)
}
ensure(proofed) {
Expand Down

0 comments on commit 373dfd4

Please sign in to comment.