Skip to content

Commit

Permalink
ECIP binding : ensure correct type of passed arguments (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
feltroidprime authored Aug 20, 2024
1 parent 61814dc commit c32b347
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hydra/garaga/hints/ecip.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def zk_ecip_hint(
field_type = get_field_type_from_ec_point(Bs[0])
field = get_base_field(c_id.value, field_type)

q, a_num, a_den, b_num, b_den = garaga_rs.zk_ecip_hint(pts, scalars, c_id.value)
q, a_num, a_den, b_num, b_den = garaga_rs.zk_ecip_hint(
pts, list(scalars), c_id.value
)

a_num = [field(int(f, 16)) for f in a_num] if len(a_num) > 0 else [field.zero()]
a_den = [field(int(f, 16)) for f in a_den] if len(a_den) > 0 else [field.one()]
Expand Down

0 comments on commit c32b347

Please sign in to comment.