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.
You'll need the following tools to complete the steps in this tutorial:
To deploy a smart contract on any blockchain, you need a wallet and corresponding token to pay for the fee.
- 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.
mkdir ~/my-velas-walletvelas-keygen new --outfile ~/my-velas-wallet/my-keypair.json
- 1.Airdrop some tokens to your wallet
velas airdrop 10 <RECIPIENT_ACCOUNT_ADDRESS> --url https://explorer.testnet.velas.com/rpc
<RECIPIENT_ACCOUNT_ADDRESS>with your base58 encoded public key address.
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.