驗證器

驗證器的註冊註銷等介紹。

註冊

註冊一個新的驗證者。 通過這條指令,我們會將您的Commission、您的ecdsaPublicKey、您的blsPublicKey、您的blsG1PublicKey、您的BLSProof轉入管理合約。 管理和保護您的資產。 你的 ecdsaPublicKey、你的 blsPublicKey、你的 BLSProof 我們會通過你的密鑰庫得到它們。 驗證者用於達成共識的 ECDSA 公鑰應與驗證者簽名者匹配。 64 字節。 驗證者用於達成共識的 BLS 公鑰應該通過所有權證明。 129 字節。 驗證器用於達成共識的 BLS G1 公鑰。 129 字節。 BLS 公鑰所有權證明,由帳戶地址上的簽名組成。 129 字節。

USAGE
  $ ./marker register

OPTIONS
  --keystore                                                   your keystore file path

  --rpcaddr                                                    HTTP-RPC server address 

  --commission                                                 The proportion of awards 
                                                               collected by the validator,
                                                               and then the rest to voter
                                                               ,The commission parameter 
                                                               is relative to 1000000
                                                               (0 < commission <1000000)
                                                               can`t be greater than 1000000.
                                                               This attribute is one of the 
                                                               objects that voters refer to
                                                               when voting.                                                                                                                            

  
EXAMPLES:
./marker register
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--commission 0.1

RESPONSE:
success
or
Failed

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.

###註銷

註銷一個驗證者。

當然,首先你得是驗證者。

Validators 合約設置了成為驗證者的最短時間(默認 60 天)。 您必須大於這個時間才能註銷驗證器。

為了防止註銷時惡意佔用資源,我們將您的註銷請求置為pending狀態,並在epoch的最後一個區塊進行批量註銷。

恢復註冊

如果您在當前時期註銷您的帳戶,您可以在同一時期恢復您的驗證者身份。

authorizeValidatorSigner

  • 在成為驗證者之前調用此方法

  • 如果需要授權一個賬戶代替驗證者完成鏈上共識操作,請調用該方法進行授權

MakeECDSASignatureFromSigner

  • 注意:簽名者功能

  • 打印 ECDSASignature 簽名者簽署賬戶(驗證者)

MakeBLSProofOfPossessionFromSigner

  • 注意:簽名者功能

  • 打印一個 BLSProofOfPossession 簽名者 BLSSign 帳戶(驗證者)

signerToAccount

  • 查詢目標籤名者的authorizingAccount

生成簽名證明

生成簽名者證明

authorizeValidatorSignerBySignature

  • 在成為驗證者之前調用此方法

  • 如果需要授權一個賬戶代替驗證者完成鏈上共識操作,請調用 這種授權方法

註冊證明

使用 generateSignerProof 生成的證明註冊驗證器

Last updated

Was this helpful?