Skip to content

Commit 036c6ca

Browse files
committed
fixes
1 parent 395b70f commit 036c6ca

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

tests/osaka/eip7594_peerdas/helper_functions.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def eest_verify_cell_kzg_proof_batch(commitment: bytes, cell_indices: list, cell
9999

100100
return is_valid
101101

102-
# our equivalent of ckzgk test_recover_cells_and_kzg_proofs
102+
# our equivalent of ckzg test_recover_cells_and_kzg_proofs
103103
def eest_delete_cells_then_recover_them(cells: list[int], proofs: list[int], deletion_indices: list[int]): # noqa: E501
104104
"""
105105
Simulate the cell recovery process in user-specified scenario.
@@ -109,16 +109,6 @@ def eest_delete_cells_then_recover_them(cells: list[int], proofs: list[int], del
109109
Theoretical Usage: You pass a cell list with to 128 elements to this function along with a list of deletion indices.
110110
These cells will be deleted and then the ckzg recovery mechanism is used to repair the missing cells.
111111
If no assertion is triggered the reconstruction was successful.
112-
113-
Practical Usage Example:
114-
my_byte = "42"
115-
blob = generate_blob_from_hex_byte(my_byte)
116-
if blob is None:
117-
print("Something went wrong. Aborting..")
118-
exit(1)
119-
cells, proofs = eest_compute_cells_and_kzg_proofs(blob)
120-
deletion_indices = [0, 12, 25, 42, 127]
121-
eest_delete_cells_then_recover_them(cells, proofs, deletion_indices)
122112
""" # noqa: E501
123113
# sanity checks
124114
assert len(cells) == 128, f"You are supposed to pass a full cell list with 128 elements to this function, but got list of length {len(cells)}" # noqa: E501
@@ -149,8 +139,7 @@ def eest_delete_cells_then_recover_them(cells: list[int], proofs: list[int], del
149139
# print("Successful reconstruction")
150140

151141

152-
# ---------------- EXAMPLE USAGE -----------------------
153-
142+
""" Example Usage
154143
my_byte = "42" # 0x73 (115) or lower works, 0x74 (116) or higher fails
155144
# generate blob
156145
blob: bytes = generate_blob_from_hex_byte(my_byte)
@@ -167,3 +156,4 @@ def eest_delete_cells_then_recover_them(cells: list[int], proofs: list[int], del
167156
#commitment = bytes((lambda b: (b.__setitem__(8, 0x3a), b)[1])(bytearray(commitment)))
168157
is_valid = eest_verify_cell_kzg_proof_batch(commitment, my_cell_indices, cells, proofs)
169158
print("Success")
159+
"""

0 commit comments

Comments
 (0)