> For the complete documentation index, see [llms.txt](https://apexpool.gitbook.io/stake-pool-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apexpool.gitbook.io/stake-pool-scripts/stake-pool-registration/stake-pool-scripts/vrf-key.md).

# 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):

```bash
#!/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

```
