small update to IPA notes

This commit is contained in:
2023-04-05 23:39:14 +02:00
parent adceb5308d
commit d509900028
3 changed files with 86 additions and 17 deletions

View File

@@ -186,6 +186,9 @@ class IPA_halo:
def verify(self, P, a, v, x_powers, r, u, U, lj, rj, L, R):
print("methid verify()")
# compute P' = P + [v] U
P = P + int(v) * U
s = build_s_from_us(u, self.d)
b = inner_product_field(s, x_powers)
G = inner_product_point(s, self.gs)
@@ -445,8 +448,6 @@ class TestIPA_halo(unittest.TestCase):
while (u[j] == 0): # prevent u[j] from being 0
u[j] = ipa.F.random_element()
P = P + int(v) * U
# prover
a_ipa, lj, rj, L, R = ipa.ipa(a, x_powers, u, U)