VRF key

Create and run the following script (vrf-keys.sh) to generate the VRF key pair and its hash (vrf.skey, vrf.vkey and vkeyhash.out files):

#!/bin/bash


source ./env

cardano-cli node key-gen-VRF \
--verification-key-file ${NODE_HOME}/pool-keys/vrf.vkey \
--signing-key-file ${NODE_HOME}/pool-keys/vrf.skey

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

cardano-cli node key-hash-VRF \
--verification-key-file ${NODE_HOME}/pool-keys/vrf.vkey \
--out-file ${NODE_HOME}/pool-keys/vkeyhash.out

Last updated