Validator
Introduction register deregister and so on about validator.
Register
Register a new Validator. Through this command, we will transfer your Commission、your ecdsaPublicKey、your blsPublicKey、your blsG1PublicKey、your BLSProof into the management contract. To manage and secure your assets. your ecdsaPublicKey、your blsPublicKey、your BLSProof we'll get them through your keystore. The ECDSA public key that the validator is using for consensus, should match the validator signer. 64 bytes. The BLS public key that the validator is using for consensus, should pass proof of possession. 129 bytes. The BLS G1 public key that the validator is using for consensus. 129 bytes. The BLS public key proof-of-possession, which consists of a signature on the account address. 129 bytes.
quicklyRegister
If you have not creat Account or locked the Map, you can quickly register through the quicklyRegister
command, which integrates the createAccount
lockedMAP
.
Please note that you can only use this command once. No matter whether the command succeeds or fails, this command only packs and combines createAccount
lockedMAP
commands and does not have the nature of reuse.
deregister
deregister a validator.
Of course, first you have to be a validator.
The Validators
contract sets the minimum time(default 60 Day) to become a validator. You must be greater than this time before you can deregister validator.
In order to prevent malicious occupation of resources during deregister, we put your deregister request in pending status and perform batch logout in the last block of the epoch.
revertRegister
if you deRegister your account in the current epoch you can revert your validator identity at the same epoch.
authorizeValidatorSigner
call this method before become to be a validator
If you need to authorize an account to complete the on chain consensus operation instead of the validator, please call this method for authorization
MakeECDSASignatureFromSigner
note:signer function
print a ECDSASignature that signer sign the account(validator)
MakeBLSProofOfPossessionFromSigner
note:signer function
print a BLSProofOfPossession that signer BLSSign the account(validator)
signerToAccount
Query the authorizingAccount of a target signer
generateSignerProof
generate signer proof
authorizeValidatorSignerBySignature
call this method before become to be a validator
If you need to authorize an account to complete the on chain consensus operation instead of the validator, please call this method for authorization
registerByProof
Last updated