Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subnet validations for DoS resistance #1615

Merged
merged 9 commits into from
Feb 12, 2020
Merged

Add subnet validations for DoS resistance #1615

merged 9 commits into from
Feb 12, 2020

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Feb 11, 2020

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
Copy link
Contributor Author

djrtwo commented Feb 11, 2020

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

specs/phase0/p2p-interface.md Outdated Show resolved Hide resolved
specs/phase0/p2p-interface.md Outdated Show resolved Hide resolved
@protolambda protolambda added the scope:DoS protection Protect the network from Denial of Service attacks. label Feb 11, 2020
specs/phase0/p2p-interface.md Outdated Show resolved Hide resolved
specs/phase0/p2p-interface.md Outdated Show resolved Hide resolved
specs/phase0/validator.md Show resolved Hide resolved
Copy link
Contributor

@hwwhww hwwhww left a comment

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
scope:DoS protection Protect the network from Denial of Service attacks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants