Update specs/light_client/merkle_proofs.md
Co-Authored-By: hwwhww <hwwang156@gmail.com>
This commit is contained in:
parent
02cfbca81f
commit
0a1517c9de
|
@ -144,7 +144,7 @@ Generating a proof is simply a matter of taking the node of the SSZ hash tree wi
|
||||||
Here is the verification function:
|
Here is the verification function:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def verify_multi_proof(root: Bytes32, indices: List[int], leaves: List[Bytes32], proof: List[bytes]) -> bool:
|
def verify_multi_proof(root: Bytes32, indices: List[int], leaves: List[Bytes32], proof: List[Bytes32]) -> bool:
|
||||||
tree = {}
|
tree = {}
|
||||||
for index, leaf in zip(indices, leaves):
|
for index, leaf in zip(indices, leaves):
|
||||||
tree[index] = leaf
|
tree[index] = leaf
|
||||||
|
|
Loading…
Reference in New Issue