Request VANA for both your coldkey and hotkey addresses
Note: you can only use the faucet once per day. Use the testnet faucet available at https://faucet.vana.org to fund your wallets, or ask a VANA holder to send you some test VANA tokens.
Always keep your private keys and mnemonic phrases secure. Never share them with anyone.
# Creating a DLP
Generate Encryption Keys
Run the key generation script:
./keygen.sh
This script generates RSA key pairs for file encryption/decryption in the DLP.
Follow the prompts to enter your name, email, and key expiration.
The script generates four files:
public_key.asc and public_key_base64.asc (for UI)
private_key.asc and private_key_base64.asc (for validators)
# Deploy DLP Smart Contracts
Clone the DLP Smart Contract repo:
cd $HOME
git clone https://github.com/vana-com/vana-dlp-smart-contracts.git
cd vana-dlp-smart-contracts
Install Yarn
npm install -g yarn
yarn --version
Install dependencies:
yarn install
Edit the .env file in the vana-dlp-smart-contracts directory:
Connect your cold wallet which you imported at previous step
Call updateFileRewardDelay and set it to 0
Call addRewardsForContributors with 1000000000000000000000000 (1 million tokens)
Update the .env file in the vana-dlp-chatgpt directory:
nano ~/vana-dlp-chatgpt/.env
Paste this content and change your info:
# The network to use, currently Vana Satori testnet
OD_CHAIN_NETWORK=satori
OD_CHAIN_NETWORK_ENDPOINT=https://rpc.satori.vana.org
# Optional: OpenAI API key for additional data quality check
OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
# Optional: Your own DLP smart contract address once deployed to the network, useful for local testing
DLP_SATORI_CONTRACT="0x......YOUR_DLP_CONTRACT_POOL"
# Optional: Your own DLP token contract address once deployed to the network, useful for local testing
DLP_TOKEN_SATORI_CONTRACT="0x.....YOUR_DLP_TOKEN_CONTRACT"
# The private key for the DLP, follow "Generate validator encryption keys" section in the README
PRIVATE_FILE_ENCRYPTION_PUBLIC_KEY_BASE64="LS0B...........................E9DSy0tLS0tCg=="