Skip to content

Add subnet validations for DoS resistance#1615

Merged
djrtwo merged 9 commits into
devfrom
subnet-validations
Feb 12, 2020
Merged

Add subnet validations for DoS resistance#1615
djrtwo merged 9 commits into
devfrom
subnet-validations

Conversation

@djrtwo

@djrtwo djrtwo commented Feb 11, 2020

Copy link
Copy Markdown
Contributor

Addresses #1595

Quick details for clarity on what was added/changed:

  • beacon_block
    • prevent multiple beacon blocks from same proposer in a slot
  • committee_index_beacon_attestation
    • prevent multiple attestations from same participant in a slot
  • aggregate_and_proof
    • aggregator signs aggregate_and_proof and broadcasts SignedAggregateAndProof. verify this signature in addition to the proof and attestation sig
    • prevent multiple aggregate_and_proofs from same aggregator in a slot
    • add DOMAIN_SELECTION_PROOF and DOMAIN_AGGREGATE_AND_PROOF
    • add explicit instructions in validator guide for signing these messages
  • reorder gossip conditions to put signature verifications after the cheap checks

@djrtwo djrtwo force-pushed the subnet-validations branch from 89c33b1 to 8a2a689 Compare February 11, 2020 02:36
@djrtwo djrtwo requested a review from protolambda February 11, 2020 02:38
@djrtwo

djrtwo commented Feb 11, 2020

Copy link
Copy Markdown
Contributor Author

cc @AgeManning @mkalinin
Thanks for the input on the issue. Take a look here if you have a moment

Comment thread specs/phase0/p2p-interface.md Outdated
Comment thread specs/phase0/p2p-interface.md Outdated
Comment thread specs/phase0/p2p-interface.md
Comment thread specs/phase0/p2p-interface.md Outdated
Comment thread specs/phase0/p2p-interface.md Outdated
Comment thread specs/phase0/validator.md
@djrtwo djrtwo force-pushed the subnet-validations branch from 700d87c to 9198433 Compare February 11, 2020 22:50
@djrtwo djrtwo force-pushed the subnet-validations branch from 9198433 to 9047638 Compare February 11, 2020 22:54

@hwwhww hwwhww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants