Removed merkle partial from paths for now

This commit is contained in:
vbuterin 2019-04-03 01:06:18 -05:00 committed by GitHub
parent 2418bab250
commit bee740e834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -170,20 +170,6 @@ We define:
} }
``` ```
#### `merkle_partial_from_paths`
```python
def merkle_partial_from_paths(obj, paths):
indices = set()
for path in paths:
indices = indices.union(get_generalized_indices(obj, path))
return MerklePartial(
root=hash_tree_root(obj),
indices=indices,
values= mk_multi_proof
)
```
#### Proofs for execution #### Proofs for execution
We define `MerklePartial(f, arg1, arg2..., focus=0)` as being a `MerklePartial` object wrapping a Merkle multiproof of the set of nodes in the hash tree of the SSZ object `arg[focus]` that is needed to authenticate the parts of the object needed to compute `f(arg1, arg2...)`. We define `MerklePartial(f, arg1, arg2..., focus=0)` as being a `MerklePartial` object wrapping a Merkle multiproof of the set of nodes in the hash tree of the SSZ object `arg[focus]` that is needed to authenticate the parts of the object needed to compute `f(arg1, arg2...)`.