nimbus-eth1/fluffy/scripts
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
..
launch_local_testnet.sh Remove Accumulator as network content type and add it to binary (#1267) 2022-10-17 20:38:51 +02:00
makedir.sh Add local testnet script and required json-rpc calls (#891) 2021-11-24 08:45:55 +01:00
test_portal_testnet.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00