📓
Stake Pool Scripts by APEX Stake Pool
  • Stake pool registration
    • Directory structure
    • Wallet
    • Metadata
    • Configuration file
    • Stake pool scripts
      • Cold key
      • VRF key
      • KES key
      • Operational certificate
      • Registration certificate
      • Stake key registration
      • Stake key delegation
    • Transaction
      • Using a remote node
      • Transaction scripts
    • Retiring the stake pool
  • Hardware wallet for Pledge
    • Stake key
    • Registration certificate
    • Stake key registration
    • Stake key delegation
    • Transactions
      • Registration certificate
      • Delegation certificate
  • Running a cardano node
    • Starting a relay node
    • Starting a block producing node
Powered by GitBook
On this page
  1. Stake pool registration
  2. Stake pool scripts

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
PreviousStake pool scriptsNextVRF key

Last updated 1 year ago