nimbus-eth2/beacon_chain/spec/eth2_apis
Jacek Sieka 20e700fae4
Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex (#3259)
* Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex

Harden the use of `CommitteeIndex` et al to prevent future issues by
using a distinct type, then validating before use in several cases -
datatypes in spec are kept simple though so that invalid data still can
be read.

* fix invalid epoch used in REST
`/eth/v1/beacon/states/{state_id}/committees` committee length (could
return invalid data)
* normalize some variable names
* normalize committee index loops
* fix `RestAttesterDuty` to use `uint64` for `validator_committee_index`
* validate `CommitteeIndex` on ingress in REST API
* update rest rules with stricter parsing
* better REST serializers
* save lots of memory by not using `zip` ...at least a few bytes!
2022-01-09 01:28:49 +02:00
..
eth2_json_rpc_serialization.nim REST JSON support improvements (#3232) 2022-01-06 08:38:40 +01:00
eth2_rest_serialization.nim Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex (#3259) 2022-01-09 01:28:49 +02:00
rest_beacon_calls.nim REST JSON support improvements (#3232) 2022-01-06 08:38:40 +01:00
rest_beacon_client.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rest_config_calls.nim widen allowed specs for validator client 2021-10-21 00:59:05 +03:00
rest_debug_calls.nim REST JSON support improvements (#3232) 2022-01-06 08:38:40 +01:00
rest_keymanager_types.nim Implementation of the Keymanager API (BETA) 2022-01-04 18:51:45 +02:00
rest_node_calls.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rest_remote_signer_calls.nim cleanups, partly from kintsugi branch (#3161) 2021-12-05 17:32:41 +00:00
rest_types.nim Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex (#3259) 2022-01-09 01:28:49 +02:00
rest_validator_calls.nim clean up sync subcommittee handling 2021-10-20 22:59:13 +03:00
rpc_beacon_calls.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
rpc_beacon_client.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
rpc_debug_calls.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
rpc_nimbus_calls.nim REST API client, JSON-RPC cleanups (#2756) 2021-08-03 17:17:11 +02:00
rpc_node_calls.nim REST API client, JSON-RPC cleanups (#2756) 2021-08-03 17:17:11 +02:00
rpc_types.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
rpc_validator_calls.nim Broadcast blocks before integrating in ChainDAG 2021-12-06 17:15:47 +02:00