Documentation Index
Fetch the complete documentation index at: https://mintlify.com/buildonviction/victionchain/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Viction uses keystore-based account management with encrypted JSON files stored according to the Web3 Secret Storage specification. Account operations are performed through thetomo account command.
Account Commands
All account operations are accessed through thetomo account subcommand:
List Accounts
Print a summary of all existing accounts:--datadir: Data directory for the databases and keystore--keystore: Directory for the keystore (default:<datadir>/keystore)
Create New Account
Create a new account and save it to the keystore:--datadir: Data directory for the databases and keystore--keystore: Directory for the keystore--password: Password file for non-interactive mode--lightkdf: Reduce KDF memory & CPU usage at expense of security
Update Account Password
Update an existing account’s password:--datadir: Data directory for the databases and keystore--keystore: Directory for the keystore--lightkdf: Reduce KDF memory & CPU usage
Import Private Key
Import an unencrypted private key into a new account:--datadir: Data directory for the databases and keystore--keystore: Directory for the keystore--password: Password file for non-interactive mode--lightkdf: Reduce KDF memory & CPU usage
Wallet Commands
Import Presale Wallet
Import an Ethereum presale wallet:--datadir: Data directory for the databases and keystore--keystore: Directory for the keystore--password: Password file for non-interactive mode--lightkdf: Reduce KDF memory & CPU usage
Account Unlocking
Accounts can be unlocked when starting the node to enable automatic signing:Keystore Location
By default, keystores are located at:- Linux/macOS:
~/.ethereum/keystore - Custom: Specify with
--keystoreflag or--datadirflag
Keystore Security
Keystores use scrypt key derivation function (KDF) for encryption:Standard KDF (Recommended)
Provides strong security with higher memory and CPU requirements:Lightweight KDF
Reduces memory/CPU usage but provides less security:Account Errors
Common account-related errors:ErrLocked
Error: password or unlock
Cause: Account is locked and requires authentication
Solution: Unlock the account with the correct password
ErrDecrypt
Error: could not decrypt key with given passphrase
Cause: Incorrect password provided
Solution: Verify you’re using the correct passphrase for the account
ErrNoMatch
Error: no key for given address or file
Cause: Account address not found in keystore
Solution: Verify the address is correct and the keystore path is properly configured
Ambiguous Address Error
Multiple key files exist for the same address. The system will test your passphrase against all matching files and identify duplicates to remove.Best Practices
- Backup Your Keys: Regularly backup your keystore directory
- Strong Passphrases: Use long, complex passphrases with mixed characters
- Secure Storage: Keep backups in multiple secure, offline locations
- Test Restores: Verify backups work before relying on them
- Separate Accounts: Use different accounts for different purposes
- Hardware Wallets: Consider hardware wallets for large amounts
- Key Rotation: Update passwords periodically using
account update