Hi, dev!
How to generate masternode key?
Masternode key is deprecated with deterministic masternodes. In its place you do
bls generate which produce a public/private keypair.
You put the private key in the VPS' helpthehomeless.conf as
masternodeblsprivkey=privatekeyBesides the collateral address you'll also need owner/voting address, and a payout address. Sending a coin to payoutAddress upfront registering eliminate the need for feeSourceAddress
Registering the node is done with special transactions, the first one:
Step1:
protx register_prepare "collateralHash" collateralIndex "ipAndPort" "ownerKeyAddr" "operatorPubKey" "votingKeyAddr" operatorReward "payoutAddress" "(feeSourceAddress)
operatorPubKey is the bls keypair's public key.
The output will produce a
tx,
collateralAddress and a
signMessage. You will use the two last in next step, the tx is used in 3rd and final step.
Step2:
signmessage collateralAddress "signMessage"
This produces a signature which you use in the last step together with the tx from step 1.
Step3:
protx register_submit "tx" "signature"
You can read more about DIP003 masternodes in Dash' docs:
https://docs.dash.org/en/stable/masternodes/understanding.html