Verifiable Random Beacon

Overview and prerequisites
Cryptosat periodically generates a 32-byte random beacon and stores it on a smart contract on the Velas blockchain. This tutorial guides through the steps to retrieve and verify randomness generated by Cryptosat.

Getting Started​​

You'll need the following tools to complete the steps in this tutorial:

Setup MetaMask​​

To deploy a smart contract on any blockchain, you need a wallet and corresponding token to pay for the fee.
  1. 1.
    ​Install MetaMask browser extension.
  2. 2.
    Open MetaMask and follow the instruction to setup a new account. Copy your secret recovery phrase into a secure location. You need this to access your walllet later.
  3. 3.
    Configure MetaMask for Velas Network following this article.

Acquire Testnet VLX​​

  1. 1.
    ​Install Velas CLI​
mkdir ~/my-velas-walletvelas-keygen new --outfile ~/my-velas-wallet/my-keypair.json
  1. 1.
    Airdrop some tokens to your wallet
velas airdrop 10 <RECIPIENT_ACCOUNT_ADDRESS> --url
Replace <RECIPIENT_ACCOUNT_ADDRESS> with your base58 encoded public key address.
  1. 1.
    Transfer Velas Native coin to Velas EVM with evm-utils​
velas evm transfer-to-evm -k ~/my-velas-wallet/my-keypair.json <VELAS_EVM_ADDRESS> <AMOUNT>
<VELAS_EVM_ADDRES> will be the public address of your MetaMask wallet.