Cold key

Create and execute the following script (cold-keys.sh) to create the cold key pair files and the cold.counter file:

#!/bin/bash


source ./env

cardano-cli node key-gen \
--cold-verification-key-file ${NODE_HOME}/pool-keys/cold.vkey \
--cold-signing-key-file ${NODE_HOME}/pool-keys/cold.skey \
--operational-certificate-issue-counter-file ${NODE_HOME}/pool-keys/cold.counter

chmod 400 ${NODE_HOME}/pool-keys/cold.skey

Create and execute the following script (stakepoolid.sh) to generate the stake pool id in the hex and bech32 formats:

#!/bin/bash


source ./env

cardano-cli stake-pool id --cold-verification-key-file ${NODE_HOME}/pool-keys/cold.vkey --output-format "hex" | tee stakepoolid.hex
cardano-cli stake-pool id --cold-verification-key-file ${NODE_HOME}/pool-keys/cold.vkey | tee stakepoolid.bech32

Last updated