Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle range proofs in presentation #3347

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ def _check_proof_vs_proposal():
"primary_proof"
]["ge_proofs"]:
proof_pred_spec = ge_proof["predicate"]
if proof_pred_spec["attr_name"] != canon(req_name):
continue
if not (
Predicate.get(proof_pred_spec["p_type"]) is req_pred
and proof_pred_spec["value"] == req_value
proof_pred_spec["attr_name"] == canon(req_name)
and Predicate.get(proof_pred_spec["p_type"]) is req_pred
):
continue
if proof_pred_spec["value"] != req_value:
raise V20PresFormatHandlerError(
f"Presentation predicate on {req_name} "
"mismatches proposal request"
Expand Down
Loading