Registration certificate

In order to add a new owner to the stake pool, a new stake pool registration certificate needs to be created.
Even if a stake pool can have multiple owners, there can be only one rewards wallet. The script below will also change the rewards wallet to be the newly added stake pool owner, the hardware wallet.
Change the pool-registration.sh script from the pool-scripts folder with the new script below:
#!/bin/bash
​
​
source ./env
​
cardano-cli stake-pool registration-certificate \
--cold-verification-key-file ${NODE_HOME}/pool-keys/cold.vkey \
--vrf-verification-key-file ${NODE_HOME}/pool-keys/vrf.vkey \
--pool-pledge ${PLEDGE} \
--pool-cost ${COST} \
--pool-margin ${MARGIN} \
--pool-reward-account-verification-key-file ${NODE_HOME}/keys/hw-stake.vkey \
--pool-owner-stake-verification-key-file ${NODE_HOME}/keys/stake.vkey \
--pool-owner-stake-verification-key-file ${NODE_HOME}/keys/hw-stake.vkey \
${NET} \
--single-host-pool-relay ${RELAY1_HOST} \
--pool-relay-port ${RELAY1_PORT} \
--single-host-pool-relay ${RELAY2_HOST} \
--pool-relay-port ${RELAY2_PORT} \
--metadata-url ${METADATA_URL} \
--metadata-hash ${METADATA_HASH} \
--out-file ${NODE_HOME}/pool-certificates/pool-registration.cert
The changes are:
  • the new stake pool owner line: --pool-owner-stake-verification-key-file ${NODE_HOME}/keys/hw-stake.vkey \
  • the stake.vkey was replaced with hw-stake.vkey on the --pool-reward-account-verification-key-file line.
The script must be executed in order to generate the new stake pool registration certificate, which will need to be submitted with a transaction.