Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
  • Loading branch information
PatStLouis committed Feb 25, 2025
1 parent 4e0536a commit 7e26e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acapy_agent/vc/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def prove_presentation_route(request: web.BaseRequest):
options = {} if "options" not in body else body["options"]

# We derive the proofType from the holder DID if not provided in options
if not options.get("proofType", None) and presentation.get('holder'):
if not options.get("proofType", None) and presentation.get("holder"):
holder = presentation["holder"]
did = holder if isinstance(holder, str) else holder["id"]
async with context.session() as session:
Expand All @@ -209,7 +209,7 @@ async def prove_presentation_route(request: web.BaseRequest):
options["proofType"] = "BbsBlsSignature2020"
elif key_type == "p256":
options["proofType"] = "EcdsaSecp256r1Signature2019"

else:
options["proofType"] = options.get("proofType") or "Ed25519Signature2020"

Expand Down

0 comments on commit 7e26e37

Please sign in to comment.