nimbus-eth1/fluffy/rpc
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
..
rpc_calls Optionally write all epoch accumulators when building accumulator 2022-10-18 16:23:10 +03:00
bridge_client.nim Remove unused import of config to avoid select_backend db import (#1018) 2022-03-29 15:51:48 +02:00
eth_rpc_client.nim Cleanup some imports and fix some warnings in the process (#1096) 2022-05-22 22:44:15 +02:00
portal_rpc_client.nim Sharing block header data around in a Portal history network (PoC) (#960) 2022-02-11 14:43:10 +01:00
rpc_discovery_api.nim StyleCheck fixes for Fluffy and lcproxy (#1220) 2022-09-10 21:00:27 +02:00
rpc_eth_api.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
rpc_portal_api.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
rpc_portal_debug_api.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
rpc_types.nim Use json rpc client to run tests on portal testnet (#899) 2021-12-03 09:51:25 +01:00