Skip to content

getvrfpublickey Command Guide

Enrico Rubboli edited this page Sep 4, 2023 · 1 revision

The getvrfpublickey command retrieves the Verifiable Random Function (VRF) public key associated with the currently selected account in your Mintlayer wallet.

Understanding VRF Public Keys

A Verifiable Random Function (VRF) is a cryptographic primitive that produces a random output given an input, and this output can be verified with a unique proof. In the context of blockchain systems, VRFs are often used in consensus algorithms to ensure randomness in processes like validator or miner selection. The VRF public key allows others to verify the output of the VRF without knowing the private key.

Usage

To retrieve the VRF public key, use the following command:

getvrfpublickey

Output

Upon execution, the command will return the VRF public key associated with the selected account. For example:

00e20816f7372fa7ca1b8ba6846bf02e55afae614f4d7fdd53f38fff2a52519f3a

Important Notes

  • The VRF public key is essential for verifying the randomness in certain blockchain operations.
  • As with all public keys, the VRF public key can be shared openly, but ensure that the corresponding private key is kept secure and private.

Options

  • -h, --help: Displays the help message for the getvrfpublickey command.
Clone this wiki locally