babylonchain / babylon

Main repo for Babylon full node
https://babylonchain.io
Other
232 stars 162 forks source link

`x/checkpointing` Add check to verify if Validator BLS key match on `WrappedCreateValidator` #640

Open RafilxTenfen opened 4 months ago

RafilxTenfen commented 4 months ago

Make sure the BLS pub key matches the validator addr to avoid having one key for validator and another for BLS creation

Check on genesis init as well

fuleru commented 3 months ago

Please tell me how to do this. For example, the node restores the wallet through the mnemonic phrase.

RafilxTenfen commented 3 months ago

Please tell me how to do this. For example, the node restores the wallet through the mnemonic phrase.

This is not the same thing, is to add a check on validator creation that the BLS key associated address is the same as the validator is using as sdk.VallAddress