Skip to content

Require proof of possession of the staking private key from staking nodes  #426

Open
@tarakby

Description

@tarakby

Context

(based on the old private repo issue https://github.com/dapperlabs/flow-go/issues/6284)

Proof of possession of the staking private key (PoP) is a required info from all staking nodes, to prevent BLS rogue key attacks.
This issue is about updating the core contract node registration to require a valid PoP in all staking requests.

Definition of Done

  • Add a new proof of possession parameter to the registerNode method
  • Verify the PoP in the register method, if it doesn't verify properly, revert
  • Update LockedTokens and StakingCollection to use this new parameter also
  • Add tests for the transaction

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions