entropyxyz / entropy-core

Protocol and cryptography development.
https://docs.entropy.xyz/
GNU Affero General Public License v3.0
9 stars 1 forks source link

Trigger attestation check during `validate` #1063

Open HCastano opened 5 days ago

HCastano commented 5 days ago

When somebody states their intention to become a validator on the network they need to go through the staking extension pallet's validate() extrinsic. As part of this process we want to ensure that anybody submitting their candidacy is running on suitable hardware, and as such we need issue an attestation challenge.

This PR adds a call into the attestation pallet from the validate() extrinsic and only accepts a caller as a candidate if they succesfully pass the attestation check.

Draft since it's not finished yet.