Skip to content

Commit

Permalink
fix: minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
aritroCoder committed Aug 7, 2024
1 parent 6179d1d commit 17ff006
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
request_verified = False
for method in verification_method_list:
verkey = method.get("publicKeyBase58")
key_type = ED25519 # need to change this to support other key types
key_type = ED25519 # need to change this to support other key types
sr_pres_request = pres_request.serialize()
sr_pres_request.pop("~thread", None)
sr_pres_request.pop("signature", None)
Expand All @@ -98,11 +98,13 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
if request_verified:
break
except Exception as e:
print(f"Error verifying signature: {e}")
print(
f"Could not verify signature...Retrying with next verification method: {e}" # noqa: E501
)
continue
if not request_verified:
raise HandlerException(
"Presentation request signature verification failed"
"Presentation request signature verification failed. DID of verifier is not verifed" # noqa: E501
)

# Get pres ex record (holder initiated via proposal)
Expand Down

0 comments on commit 17ff006

Please sign in to comment.