mirror of
https://github.com/arnaucube/math.git
synced 2026-01-11 16:31:32 +01:00
small update to IPA notes
This commit is contained in:
5
ipa.sage
5
ipa.sage
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user