Apply suggestions from code review

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
This commit is contained in:
Hsiao-Wei Wang 2023-09-20 00:18:08 +08:00 committed by GitHub
parent 6041c9b9d6
commit 171ae02280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -399,7 +399,7 @@ def case05_verify_blob_kzg_proof():
'output': None
}
# Edge case: Incorrect `G1_POINT_AT_INFINITY` Proof
# Incorrect `G1_POINT_AT_INFINITY` proof
blob = BLOB_RANDOM_VALID1
commitment = spec.blob_to_kzg_commitment(blob)
proof = spec.G1_POINT_AT_INFINITY
@ -523,12 +523,11 @@ def case06_verify_blob_kzg_proof_batch():
'output': None
}
# Edge case: Incorrect `G1_POINT_AT_INFINITY` Proof
# Incorrect `G1_POINT_AT_INFINITY` proof
blob = BLOB_RANDOM_VALID1
commitment = spec.blob_to_kzg_commitment(blob)
proof = spec.G1_POINT_AT_INFINITY
assert not spec.verify_blob_kzg_proof_batch([blob], [commitment], [proof])
yield 'verify_blob_kzg_proof_batch_case_incorrect_proof_point_at_infinity', {
'input': {
'blobs': encode_hex_list([blob]),