Skip to content

Commit

Permalink
Convert py_ecc_Scalar to int in multiply
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Sep 10, 2024
1 parent 6b12e35 commit 21df5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/pyspec/eth2spec/utils/bls.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def use_milagro():
global bls
bls = milagro_bls
global Scalar
Scalar = fastest_bls.Scalar
Scalar = py_ecc_Scalar


def use_arkworks():
Expand Down Expand Up @@ -256,7 +256,7 @@ def multiply(point, scalar):
if not isinstance(scalar, arkworks_Scalar):
return point * arkworks_Scalar(int(scalar))
return point * scalar
return py_ecc_mul(point, scalar)
return py_ecc_mul(point, int(scalar))


def multi_exp(points, scalars):
Expand Down

0 comments on commit 21df5b1

Please sign in to comment.