[AIR-3][AIS-3][BPC-3][RES-3]
last_updated: 2025-05-30
Cross-Platform Installation Guide¶
Overview¶
Add a brief overview of this document here.
Table of Contents¶
Anya now supports cross-platform installation using Dart SDK, making it easier to deploy and run on any operating system.
Prerequisites¶
Windows¶
## Install Chocolatey (if not installed)
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
## Install Dart SDK
choco install dart-sdk -y
macOS¶
Linux (Ubuntu/Debian)¶
## Add Google's apt repository
sudo apt-get update
sudo apt-get install apt-transport-https
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
## Install Dart SDK
sudo apt-get update
sudo apt-get install dart
Installing Anya¶
Once Dart SDK is installed, you can install Anya using:
Verifying Installation¶
Verify your installation:
Configuration¶
Create a new Anya project:
Configure your Bitcoin network settings in config.yaml:
network:
type: mainnet # or testnet
rpc_url: "http://localhost:8332"
rpc_user: "your_username"
rpc_password: "your_password"
web5:
enabled: true
did_method: "key" # or "ion"
Running Anya¶
Start the Anya service:
Development Setup¶
For development, you'll need additional tools:
## Install development dependencies
dart pub get
## Run tests
dart test
## Build for production
dart compile exe bin/anya.dart
Troubleshooting¶
Common Issues¶
-
Dart SDK not found
-
Permission Issues
-
Network Configuration
Next Steps¶
Last updated: 2025-06-02