Skip to content

Commit

Permalink
test: make test work again
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Losoponkul committed Sep 11, 2024
1 parent 412c741 commit 37c022a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.hyperledger.identus.pollux.prex

import io.circe.*
import io.circe.parser.*
import org.hyperledger.identus.castor.core.model.did.DID
import org.hyperledger.identus.pollux.prex.PresentationSubmissionError.{
ClaimFormatVerificationFailure,
ClaimNotSatisfyInputConstraint,
Expand All @@ -10,7 +11,6 @@ import org.hyperledger.identus.pollux.prex.PresentationSubmissionError.{
SubmissionNotSatisfyInputDescriptors
}
import org.hyperledger.identus.pollux.vc.jwt.{
DID,
ES256KSigner,
Issuer,
JWT,
Expand Down Expand Up @@ -106,7 +106,7 @@ object PresentationSubmissionVerificationSpec extends ZIOSpecDefault {
val publicKey = keyPair.publicKey
val privateKey = keyPair.privateKey
val issuer = Issuer(
DID(payload.iss),
DID.fromString(payload.iss).toOption.get,
ES256KSigner(privateKey.toJavaPrivateKey, None),
publicKey.toJavaPublicKey
)
Expand All @@ -118,7 +118,7 @@ object PresentationSubmissionVerificationSpec extends ZIOSpecDefault {
val publicKey = keyPair.publicKey
val privateKey = keyPair.privateKey
val issuer = Issuer(
DID(payload.iss),
DID.fromString(payload.iss).toOption.get,
ES256KSigner(privateKey.toJavaPrivateKey, None),
publicKey.toJavaPublicKey
)
Expand Down

0 comments on commit 37c022a

Please sign in to comment.