lighthouse/consensus/types/src
Pawan Dhananjay 31044402ee
Sidecar inclusion proof (#4900)
* Refactor BlobSidecar to new type

* Fix some compile errors

* Gossip verification compiles

* Fix http api types take 1

* Fix another round of compile errors

* Beacon node crate compiles

* EF tests compile

* Remove all blob signing from VC

* fmt

* Tests compile

* Fix some tests

* Fix more http tests

* get compiling

* Fix gossip conditions and tests

* Add basic proof generation and verification

* remove unnecessary ssz decode

* add back build_sidecar

* remove default at fork for blobs

* fix beacon chain tests

* get relase tests compiling

* fix lints

* fix existing spec tests

* add new ef tests

* fix gossip duplicate rule

* lints

* add back sidecar signature check in gossip

* add finalized descendant check to blob sidecar gossip

* fix error conversion

* fix release tests

* sidecar inclusion self review cleanup

* Add proof verification and computation metrics

* Remove accidentally committed file

* Unify some block and blob errors; add slashing conditions for sidecars

* Address review comment

* Clean up re-org tests (#4957)

* Address more review comments

* Add Comments & Eliminate Unnecessary Clones

* update names

* Update beacon_node/beacon_chain/src/metrics.rs

Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>

* Update beacon_node/network/src/network_beacon_processor/tests.rs

Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>

* pr feedback

* fix test compile

* Sidecar Inclusion proof small refactor and updates (#4967)

* Update some comments, variables and small cosmetic fixes.

* Couple blobs and proofs into a tuple in `PayloadAndBlobs` for simplicity and safety.

* Update function comment.

* Update testing/ef_tests/src/cases/merkle_proof_validity.rs

Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>

* Rename the block and blob wrapper types used in the beacon API interfaces.

* make sure gossip invalid blobs are passed to the slasher (#4970)

* Add blob headers to slasher before adding to DA checker

* Replace Vec with HashSet in BlockQueue

* fmt

* Rename gindex -> index

* Simplify gossip condition

---------

Co-authored-by: realbigsean <seananderson33@gmail.com>
Co-authored-by: realbigsean <sean@sigmaprime.io>
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
Co-authored-by: Mark Mackey <mark@sigmaprime.io>
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>
2023-12-05 11:19:59 -05:00
..
beacon_state Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
test_utils Fix todos in deneb code (#4547) 2023-08-03 20:27:03 -04:00
aggregate_and_proof.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
application_domain.rs Register validator api (#3194) 2022-06-30 00:49:21 +00:00
attestation_data.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
attestation_duty.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
attestation.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
attester_slashing.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
beacon_block_body.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
beacon_block_header.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
beacon_block.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
beacon_committee.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
beacon_state.rs Add missed blocks to monitored validators (#4731) 2023-11-09 15:05:14 +11:00
blob_sidecar.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
bls_to_execution_change.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
builder_bid.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
chain_spec.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
checkpoint.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
config_and_preset.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
consts.rs Improvements to Deneb store upon review (#4693) 2023-09-25 14:21:54 -04:00
contribution_and_proof.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
deposit_data.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
deposit_message.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
deposit_tree_snapshot.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
deposit.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
enr_fork_id.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
eth1_data.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
eth_spec.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
execution_block_hash.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
execution_block_header.rs More deneb cleanup (#4640) 2023-08-20 21:17:17 -04:00
execution_payload_header.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
execution_payload.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
fork_context.rs Rename eip4844 to deneb (#4129) 2023-03-26 11:49:16 -04:00
fork_data.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
fork_name.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
fork_versioned_response.rs Remove the unused ExecutionOptimisticForkVersionedResponse type (#4160) 2023-04-12 01:48:21 +00:00
fork.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
graffiti.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
historical_batch.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
historical_summary.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
indexed_attestation.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
lib.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
light_client_bootstrap.rs API for LightClientBootstrap, LightClientFinalityUpdate, LightClientOptimisticUpdate and light client events (#3954) 2023-11-28 17:14:29 +11:00
light_client_finality_update.rs API for LightClientBootstrap, LightClientFinalityUpdate, LightClientOptimisticUpdate and light client events (#3954) 2023-11-28 17:14:29 +11:00
light_client_header.rs API for LightClientBootstrap, LightClientFinalityUpdate, LightClientOptimisticUpdate and light client events (#3954) 2023-11-28 17:14:29 +11:00
light_client_optimistic_update.rs API for LightClientBootstrap, LightClientFinalityUpdate, LightClientOptimisticUpdate and light client events (#3954) 2023-11-28 17:14:29 +11:00
light_client_update.rs API for LightClientBootstrap, LightClientFinalityUpdate, LightClientOptimisticUpdate and light client events (#3954) 2023-11-28 17:14:29 +11:00
participation_flags.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
participation_list.rs Rust 1.71 lints (#4503) 2023-07-17 00:14:19 +00:00
payload.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
pending_attestation.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
preset.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
proposer_preparation_data.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
proposer_slashing.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
relative_epoch.rs Fix Arbitrary implementations (#3867) 2023-01-12 15:17:03 +11:00
selection_proof.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
shuffling_id.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
signed_aggregate_and_proof.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
signed_beacon_block_header.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
signed_beacon_block.rs deneb related logging improvements (#4859) 2023-10-25 15:30:17 +00:00
signed_bls_to_execution_change.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
signed_contribution_and_proof.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
signed_voluntary_exit.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
signing_data.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
slot_data.rs [Altair] Sync committee pools (#2321) 2021-07-15 00:52:02 +00:00
slot_epoch_macros.rs Use SmallVec for TreeHash packed encoding (#3581) 2022-09-16 08:54:06 +00:00
slot_epoch.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
sqlite.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
subnet_id.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
sync_aggregate.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
sync_aggregator_selection_data.rs Fix Rust beta compiler warnings (rustc 1.75.0-beta.1 (782883f60 2023-11-12)) (#4932) 2023-11-18 03:55:11 +11:00
sync_committee_contribution.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
sync_committee_message.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
sync_committee_subscription.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_committee.rs API for LightClientBootstrap, LightClientFinalityUpdate, LightClientOptimisticUpdate and light client events (#3954) 2023-11-28 17:14:29 +11:00
sync_duty.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
sync_selection_proof.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
sync_subnet_id.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
tree_hash_impls.rs Fixes to make EF Capella tests pass (#3719) 2022-11-14 13:14:31 -06:00
validator_registration_data.rs Use only lighthouse types in the mock builder (#4793) 2023-10-03 17:59:28 +00:00
validator_subscription.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
validator.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
voluntary_exit.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
withdrawal_credentials.rs Add validator-manager (#3502) 2023-08-08 00:03:22 +00:00
withdrawal.rs Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00