Delete test_compute_kzg_proof_within_domain

This commit is contained in:
Hsiao-Wei Wang 2023-10-10 16:57:34 +09:00
parent f958c5fc61
commit fd082aede6
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4

View File

@ -167,26 +167,6 @@ def test_barycentric_within_domain(spec):
assert p_z_coeff == p_z_eval == poly_eval[i]
@with_deneb_and_later
@spec_test
@single_phase
def test_compute_kzg_proof_within_domain(spec):
"""
Create and verify KZG proof that p(z) == y
where z is in the domain of our KZG scheme (i.e. a relevant root of unity).
"""
blob = get_sample_blob(spec)
commitment = spec.blob_to_kzg_commitment(blob)
polynomial = spec.blob_to_polynomial(blob)
roots_of_unity_brp = spec.bit_reversal_permutation(spec.ROOTS_OF_UNITY)
for i, z in enumerate(roots_of_unity_brp):
proof, y = spec.compute_kzg_proof_impl(polynomial, z)
assert spec.verify_kzg_proof_impl(commitment, z, y, proof)
@with_deneb_and_later
@spec_test
@single_phase