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.
USAGE$./markerregisterOPTIONS--keystoreyourkeystorefilepath--rpcaddrHTTP-RPCserveraddress--commissionTheproportionofawardscollectedbythevalidator,andthentheresttovoter,Thecommissionparameterisrelativeto1000000 (0<commission<1000000)can`tbegreaterthan1000000.Thisattributeisoneoftheobjectsthatvotersreferto when voting.
EXAMPLES:./markerregister--rpcaddrhttp://127.0.0.1:7445--keystore./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15--commission0.1RESPONSE:successorFailed
quicklyRegister
If you have not creat Account or locked the Map, you can quickly register through the quicklyRegister command, which integrates the createAccountlockedMAP.
Please note that you can only use this command once. No matter whether the command succeeds or fails, this command only packs and combines createAccountlockedMAP commands and does not have the nature of reuse.
USAGE$./markerquicklyRegisterOPTIONS--keystoreyourkeystorefilepath--rpcaddrHTTP-RPCserveraddress--commissionTheproportionofawardscollectedbythevalidator,andthentheresttovoter,Commission(0< commission<1000000)can`tbegreaterthan1000000.Thisattributeisoneoftheobjectsthatvotersrefertowhenvoting--lockedNumInordertoregisterasavalidator,youwilllockthe `MAP`. --signerPriv The private key of signaddress is used to generate sign data
EXAMPLES:./markerquicklyRegister--rpcaddrhttp://127.0.0.1:7445--keystore./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15--commission100000--signerPriv842e1d8a93b4e46104da96676066ddb0973c63ec80a15746856c046dd4a1004c--lockedNum1000000RESPONSE:successorFailed
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.
If you need to authorize an account to complete the on chain consensus operation instead of the validator, please call this method for authorization
USAGE$./markerauthorizeValidatorSignerOPTIONS--keystoreyourkeystorefilepath--rpcaddrHTTP-RPCserveraddress --signerPriv The private key of signaddress is used to generate sign data
EXAMPLES:./markerauthorizeValidatorSigner--rpcaddrhttp://127.0.0.1:7445--keystore./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15--signerPriv842e1d8a93b4e46104da96676066ddb0973c63ec80a15746856c046dd4a1004cRESPONSE:INFO [05-30|13:41:55.131]===authorizeValidatorSigner===INFO [05-30|13:41:55.140] TxInfo func=sendContractTransaction TX data nonce =3 gasLimit =4,500,000 gasPrice =101,000,000,000 chainID =214
INFO [05-30|13:41:55.141] Please waiting func=getResult txHash =0x6ccc9758199c105c2b8eb9f9807b553baaa9062ec871a1fc47f3866a4a1e8d49
INFO [05-30|13:42:03.231]TransactionSuccessfunc=queryTxblockNumber=37
MakeECDSASignatureFromSigner
note:signer function
print a ECDSASignature that signer sign the account(validator)
USAGE$./markermakeECDSASignatureFromSignerOPTIONS--targetthetargetyouwillsignthemessage --signerPriv The private key of signaddress is used to generate sign data
EXAMPLES:makeECDSASignatureFromSigner--signerPrivc59c8a05f70b5ea0a0f2a2bd9491686a8c4a55c0585db2c8c6ed7ccfa0ee2c7b--target0xac146d6629F8C3B8F2e830275B583C5402032472RESPONSE:INFO [05-30|13:41:55.131]===ECDSASignature===INFO [05-30|13:41:55.131]===signer===account=0x05D0CFd882185dEB9b3E0eA7872Ad332acB9E31dINFO [05-30|13:41:55.131] ECDSASignature result=0x6dcec34a67a3388b6fbf93ad48f88aa88c0ce46789de0f9e042acbe6e116c97f26d645652576a65602ed97f7ca16f890898b8e761de3edc34447edb2e41713ad01
MakeBLSProofOfPossessionFromSigner
note:signer function
print a BLSProofOfPossession that signer BLSSign the account(validator)
USAGE$./markermakeBLSProofOfPossessionFromSignerOPTIONS--targetthetargetyouwillsignthemessage --signerPriv The private key of signaddress is used to generate sign data
EXAMPLES:makeBLSProofOfPossessionFromSigner--signerPrivc59c8a05f70b5ea0a0f2a2bd9491686a8c4a55c0585db2c8c6ed7ccfa0ee2c7b--target0xac146d6629F8C3B8F2e830275B583C5402032472RESPONSE:INFO [05-30|13:52:40.371]===makeBLSProofOfPossessionFromSigner===INFO [05-30|13:52:40.375] === pop === result=0x1417ef1814518ade2af0e52ce7a11bcf834bba5ac42f91f3a1229c072721bb1b0c82513600690ebc0244572dd459d280abd6c14c0fc4837fa06335c88457a402
USAGE$./markergenerateSignerProofOPTIONS--validatorThetargetyouwillsignthemessage --signerPriv The private key of signaddress is used to generate sign data
EXAMPLES:./markergenerateSignerProof--validator0x73bc690093b9dd0400c91886184a60cc127b2c33--signerPriv040939e5...604b6f25RESPONSE:INFO [08-26|17:32:23.950] generateBLSProof validator=0x01ccDcd1aE63a2C6B4c3493983dc6400C63729Ad signerPrivate=040939e5...604b6f25
INFO [08-26|17:32:23.955]===makeBLSProofOfPossessionFromSigner===INFO [08-26|17:32:23.958]generateBLSProofproof=0xf90149b8...0e56f0ab1
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
USAGE$./markerauthorizeValidatorSignerBySignatureOPTIONS--rpcaddrHTTP-RPCserveraddress--keystoreYourkeystorefilepath--signerAddressofsigner--signatureECDSAsignaturefromsignerEXAMPLES:./markerauthorizeValidatorSignerBySignature--rpcaddrhttp://127.0.0.1:7445--keystore./account.json--signer0x26654eb0bb935dce4a34daa3e14c67662a8aa1f8--signature0x59dff185...32f0d700RESPONSE:INFO [07-08|14:55:00.015] authorizeValidatorSignerBySignature signer=0x26654eb0bb935dce4a34daa3e14c67662a8aa1f8 signature=0x59dff185...32f0d700
INFO [07-08|14:55:00.032] Please waiting func=getResult txHash =0xb73a1376e661d523e44b87c37e2e03cc36534d3a550808245f263aaad358b0ad
INFO [07-08|14:55:05.078]TransactionSuccessfunc=queryTxblockNumber=16