Skip to content

Commit

Permalink
fix public_inputs types on from_dict() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
casiojapi committed Sep 16, 2024
1 parent 51f30b7 commit ecbdab5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ def __post_init__(self):
), f"All points must be on the same curve, got {self.a.curve_id}, {self.b.curve_id}, {self.c.curve_id}"
self.curve_id = self.a.curve_id

def from_dict(data: dict, public_inputs: str) -> "Groth16Proof":
def from_dict(
data: dict, public_inputs: None | list | dict = None
) -> "Groth16Proof":
curve_id = try_guessing_curve_id_from_json(data)
try:
proof = find_item_from_key_patterns(data, ["proof"])
Expand Down

0 comments on commit ecbdab5

Please sign in to comment.