nimbus-eth1/fluffy/network
Kim De Mey 36d430aaa2
Add headers with proof content type and use it for verification (#1281)
* Add headers with proof content type and use it for verification

- Add BlockHeaderWithProof content type & content
- Use BlockHeaderWithProof content to verify if chain data is
part of the canonical chain
- Adjust parser & seeder code to be able to seed these headers
with proof
- Adjust eth_data_exporter to be able to export custom header
ranges for which to build proofs (mostly for testing)

There is currently quite some ugliness & clean-up needed for which
a big part is due tos upporting both BlockHeader and
BlockHeaderWithProof on the network.

* Change accumulator proof to array / SSZ vector type

- Change accumulator proof to SSZ vector instead of SSZ list.
- Add and use general buildProof and buildHeaderWithProof func.

* Make the BlockHeaderWithProof an SSZ Union with None option

* Update portal-spec-tests to master commit
2022-11-04 09:27:01 +01:00
..
beacon_light_client Extend light client network (#1287) 2022-11-03 09:12:32 +01:00
header StyleCheck fixes for Fluffy and lcproxy (#1220) 2022-09-10 21:00:27 +02:00
history Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
state Remove Accumulator as network content type and add it to binary (#1267) 2022-10-17 20:38:51 +02:00
wire Remove Accumulator as network content type and add it to binary (#1267) 2022-10-17 20:38:51 +02:00
network_seed.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00