Ver código fonte

comment out test in groth_poly_commit.py

narodnik 5 anos atrás
pai
commit
d76c2836de
1 arquivos alterados com 14 adições e 14 exclusões
  1. 14 14
      scripts/halo/groth_poly_commit.py

+ 14 - 14
scripts/halo/groth_poly_commit.py

@@ -159,19 +159,19 @@ def verify_proof(proof, x):
 
     return True
 
-R = LaurentPolynomialRing(Scalar, names=('x',)); (x,) = R._first_ngens(1)
-a = np.array([
-    Scalar(_sage_const_110 ), Scalar(_sage_const_56 ), Scalar(_sage_const_89 ), Scalar(_sage_const_6543 ), Scalar(_sage_const_2 )
-])
-p = _sage_const_0 
-for i, a_i in enumerate(a):
-    p += a_i * x**i
-print(p)
-xx = Scalar(_sage_const_77 )
-r, commit = poly_commit(p)
-proof = create_proof(p, r, xx)
-assert verify_proof(proof, xx)
-assert proof.poly_commit == commit
-assert proof.value == p(xx)
+#R = LaurentPolynomialRing(Scalar, names=('x',)); (x,) = R._first_ngens(1)
+#a = np.array([
+#    Scalar(_sage_const_110 ), Scalar(_sage_const_56 ), Scalar(_sage_const_89 ), Scalar(_sage_const_6543 ), Scalar(_sage_const_2 )
+#])
+#p = _sage_const_0 
+#for i, a_i in enumerate(a):
+#    p += a_i * x**i
+#print(p)
+#xx = Scalar(_sage_const_77 )
+#r, commit = poly_commit(p)
+#proof = create_proof(p, r, xx)
+#assert verify_proof(proof, xx)
+#assert proof.poly_commit == commit
+#assert proof.value == p(xx)