Quick Start
1) Build
2) Generate VRF key
3) Configure environment
MINER_OPERATOR_KEY and MINER_VRF_KEY through a secret manager or protected service environment. Do not export raw private keys in an interactive shell or commit them to an env file.
4) Register VRF key
5) Start mining
Core commands
aultmined keygenaultmined vrfkeygenaultmined set-keyaultmined mineaultmined mine --yes
Key environment variables
MINER_OPERATOR_KEY: secp256k1 operator private key. Inject it as a secret, not via interactiveexport.MINER_VRF_KEY: Ed25519 VRF private key. Inject it as a secret, not via interactiveexport.CHAIN_GRPC: gRPC endpointCHAIN_RPC: RPC endpointCHAIN_ID: chain IDMINER_BATCH_SIZE: max submissions per batchMINER_DISABLE_DB: disable SQLite if neededMINER_DATA_DIR: key/data directory
MINER_OPERATOR_KEY nor MINER_VRF_KEY is set, auto mode can generate keys.
How mining works
- Monitor epochs
- Compute VRF output
- Check threshold
- Solve micro-PoW
- Batch-submit wins
Operator mode (delegated licenses)
Troubleshooting
- Stuck on “awaiting delegation”: confirm delegated licenses on-chain
- VRF registration retries: usually resolves after valid delegation/key setup
- Health check failures: verify gRPC/RPC connectivity
- Key persistence issues: verify the storage mount or data directory
Security Notice
⚠️ Never expose your private keys. If your deployment uses the following environment variables, treat them as secrets:MINER_OPERATOR_KEYMINER_VRF_KEY
- Commit them to version control
- Share them in screenshots or logs
- Store them in plaintext in production servers
- Export them in an interactive shell
- Use them directly in shell history
- Use a secure key management system
- Isolate the miner in a dedicated environment
- Restrict server access
- Avoid storing raw private keys in shared environments