flow-core-contracts
flow-core-contracts copied to clipboard
WIP: Adds Proof of Possession verification during node registration
https://github.com/dapperlabs/flow-go/issues/6284
Adds a parameter to the addNodeRecord method in the staking contract for the proof of possession.
In the NodeRecord init function, this is verified with the staking key.
Also updates the locked tokens contract, staking collection, and all of their transactions to include this parameter
I've started to add the tests on top of your work, but eventually hit some issues with the contracts. They issues should be easier for you to solve. My work is on this PR (against your branch), feel free to review it and merge it.
This PR is ready but will wait for the Ledger integration to be merged. This would simplify the contract updates during the future network sporks, while Ledger updates are being developed.
Next step for this PR is to rebase on the stable Cadence branch
Rebasing the PR on the stable-cadence branch is done in separate PR https://github.com/onflow/flow-core-contracts/pull/425. The current PR won't be merged to Cadence v0 and will be used directly with Cadence v1