- return serialized identity points

- result = None initially
This commit is contained in:
Kevaundray Wedderburn 2024-04-23 15:11:46 +01:00
parent 309979d778
commit f3302a3836
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ def g2_lincomb(points: Sequence[G2Point], scalars: Sequence[BLSFieldElement]) ->
assert len(points) == len(scalars)
if len(points) == 0:
return bls.Z2()
return bls.G2_to_bytes96(bls.Z2())
points_g2 = []
for point in points:

View File

@ -279,7 +279,7 @@ def g1_lincomb(points: Sequence[KZGCommitment], scalars: Sequence[BLSFieldElemen
assert len(points) == len(scalars)
if len(points) == 0:
return bls.Z1()
return bls.G1_to_bytes48(bls.Z1())
points_g1 = []
for point in points:

View File

@ -251,7 +251,7 @@ def multi_exp(points, integers):
else:
raise Exception("Invalid point type")
result = Z1()
result = None
if isinstance(points[0], py_ecc_G1):
result = Z1()
elif isinstance(points[0], py_ecc_G2):