We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4743f78 + 71d0c46 commit dbcc24aCopy full SHA for dbcc24a
pytreexo.py
@@ -135,6 +135,7 @@ def right_sibling(position: int) -> int:
135
136
def calculate_roots(numleaves: int, dels: [bytes], proof: Proof) -> [bytes]:
137
if not proof.targets: return []
138
+ if len(proof.targets) != len(dels): raise("len of dels and proof.targets differ")
139
140
position_hashes = {}
141
for i, target in enumerate(proof.targets):
0 commit comments