lighthouse/testing
Giulio rebuffo 9d6209725f Added Merkle Proof Generation for Beacon State (#3674)
## Issue Addressed

This PR addresses partially #3651

## Proposed Changes

This PR adds the following methods:

* a new method to trait `TreeHash`, `hash_tree_leaves` which returns all the Merkle leaves of the ssz object.
* a new method to `BeaconState`: `compute_merkle_proof` which generates a specific merkle proof for given depth and index by using the `hash_tree_leaves` as leaves function.

## Additional Info

Now here is some rationale on why I decided to go down this route: adding a new function to commonly used trait is a pain but was necessary to make sure we have all merkle leaves for every object, that is why I just added  `hash_tree_leaves`  in the trait and not  `compute_merkle_proof` as well. although it would make sense it gives us code duplication/harder review time and we just need it from one specific object in one specific usecase so not worth the effort YET. In my humble opinion.

Co-authored-by: Michael Sproul <micsproul@gmail.com>
2022-11-08 01:58:18 +00:00
..
antithesis Fix antithesis docker builds (#3380) 2022-07-28 07:40:03 +00:00
ef_tests Added Merkle Proof Generation for Beacon State (#3674) 2022-11-08 01:58:18 +00:00
eth1_test_rig Fix ganache test endpoint for ipv6 machines (#3563) 2022-09-13 01:57:45 +00:00
execution_engine_integration Fix rust 1.65 lints (#3682) 2022-11-04 07:43:43 +00:00
node_test_rig Add merge support to simulator (#3292) 2022-07-18 23:15:40 +00:00
simulator CLI tests for logging flags (#3609) 2022-10-04 08:33:40 +00:00
state_transition_vectors Consensus context with proposer index caching (#3604) 2022-10-15 22:25:54 +00:00
test-test_logger Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
web3signer_tests Builder Specs v0.2.0 (#3134) 2022-07-30 00:22:37 +00:00