Main, Remote, VRF
前セクションで作成した _build
ディレクトリ内から、次のコマンドを実行します:
./bin/catapult.tools.addressgen --count 3 --network public
これにより、次のような 3つの キーペア が出力されます:
address (public): NDPPBHSMLVEU75DNUMFX6GWPTGB6PP6AFQU7WSY
address decoded: 68DEF09E4C5D494FF46DA30B7F1ACF9983E7BFC02C29FB4B
public key: 1E886BA00B4F85DBC0B31DBB78DADFAA29945DF7290DB7A4243D94864483C627
private key: 3DDDC333029BC8ACDB460435BBC71041D460B911725B03D6F93805521AAD60CB
各ブロック (上記で示したブロック) は 秘密鍵
、公開鍵
で構成されるキーペアと アドレス
です。
後で使用するために 一時テキストファイルへそれら全てをコピーして キーペア Main, Remote ,**VRF** にラベルを付けます。
注釈
これらのキーのいずれかを すでに持っている 場合は、ランダムに生成されるキーの代わりに、それらを使用できます。
The most relevant scenario is when using a main account opted-in from a NIS1 account. In this case you can directly use the key obtained in the opt-in process as your Main key instead of the randomly-generated one.
投票
If your node is to be a voting node it must have linked a voting key for the period in which you intend to vote. This is interesting as voting nodes receive voting rewards.
ただし、投票キーの生成は、以前の生成よりも少し複雑です:
Still from within the _build
directory create another directory called votingkeys
.
投票キーの作成 (またはキー):
Voting keys are different from the other keys in that they have a period of validity, for example. They are only valid from a Start Epoch to an End Epoch (see side box).
Nodes are only eligible as voters if they are linked to a valid voting key for the current blockchain epoch, so remember to renew your voting key periodically.
To help you with that task, you can have up to 3 linked voting keys, with different periods, so you can easily renew one key while there's still another one active (you will need to unlink an older key to be able to link more than 3 keys).
A voting key is created using catapult.tools.votingkey
and providing its period of validity (note you do not use catapult.tools.addressgen
as before):
bin/catapult.tools.votingkey --output votingkeys/private_key_tree1.dat \
--startEpoch 100 --endEpoch 460
This creates a file named votingkeys/private_key_tree1.dat
and prints the voting key on the terminal. As your voting keys expire and you create new ones, increase the number on the file name.
generating 361 keys, this might take a while
votingkeys\private_key_tree1.dat generated
verifying generated file
saved voting public key: ****************
loaded voting public key: ****************
Copy the voting key public key into the temporary text file where you keep the rest of the keys, label it Voting and save it for later.
投票キーの更新
登録されているすべての投票キーの有効期限が切れると、ノードは投票者としての資格を失い、そのアカウントは 投票報酬 を受け取れません。
現在のエポックに登録されている投票キーが常に 1 つはあることを確認してください。
You can check your currently registered voting keys using the /accounts
endpoint of the REST API (Get Account Information), in the supplementalPublicKeys
section.
If you need to renew your keys, create new ones as explained above and then register them as explained in the Link the keys section below.