VRF Keys
List, Generate, Insert and Remove Orakl Network VRF Keys
If you are not an Orakl Network VRF Node Operator, you do not need to read the explanation on this page.
The Orakl Network VRF Worker needs an access to a private VRF keys (sk
) to produce a provably random number given the consumer seed (received from on-chain). The Orakl Network VRF Listener requires a key hash (keyHash
) that uniquely represents VRF keys. Typically, an Orakl Network VRF Node Operator does not need more than a single set of VRF keys (pk
, sk
, pkX
, pkY
and keyHash
).
The Orakl Network CLI provides commands to
List VRF Keys
All VRF keys registered in the Orakl Network state can be listed with a vrf list
command.
To display VRF keys that are associated with a specific chain, you can apply an additional --chain
parameter.
Generate VRF Keys
VRF keys can be generated with vrf keygen
command.
The vrf keygen
command produces an output similar to the one below. VRF key generation is random, therefore the output will change with every new run. sk
represents a private key that should never be shared with anybody who you do not trust.
The vrf keygen
command only generates VRF keys. If you want to use them in the Orakl Network VRF, you need to insert them to the Orakl Network state through vrf insert
command.
Insert VRF Keys
New VRF keys can be inserted using vrf insert
command. The command below demonstrates how to insert VRF keys generated by the vrf keygen
command above and associate with baobab
chain.
Remove VRF Keys Specified By id
id
VRF keys can be removed based on their id
, using the --id
parameter applied to vrf remove
command.
Last updated