nimbus-eth1/fluffy/tools
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
..
docker Add docker file for fluffy (#954) 2022-02-07 09:03:19 +01:00
utp_testing Bump nim-eth and nim-bearssl and accompanying fixes (#1150) 2022-07-04 09:38:02 +02:00
blockwalk.nim Improvements to the propagation and seeding of data (#1058) 2022-04-12 15:49:19 +02:00
eth_data_exporter.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
portalcli.nim Remove Accumulator as network content type and add it to binary (#1267) 2022-10-17 20:38:51 +02:00