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/moksha 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
rm -rf vana-dlp-smart-contracts
git clone https://github.com/Josephtran102/vana-dlp-smart-contracts
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:
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 Moksha testnet
OD_CHAIN_NETWORK=moksha
OD_CHAIN_NETWORK_ENDPOINT=https://rpc.moksha.vana.org
# Optional: OpenAI API key for additional data quality check
OPENAI_API_KEY="sk-aIKhy1wmK6VfxzDYkro5pN........._CIJvZx7uZl2HjAA"
# Optional: Your own DLP smart contract address once deployed to the network, useful for local testing
DLP_MOKSHA_CONTRACT=0x657479FF1a0316c105B...........A96625b
# Optional: Your own DLP token contract address once deployed to the network, useful for local testing
DLP_TOKEN_MOKSHA_CONTRACT=0x73eB7F1c42F16A54188c294a878879Bf79c3304C
# The private key for the DLP, follow "Generate validator encryption keys" section in the README
PRIVATE_FILE_ENCRYPTION_PUBLIC_KEY_BASE64="LS0tLS1CRUdJTiB..........g=="