CLI Build Instructions
The following instructions cover building and running the VerifiedX Core CLI on Windows, Linux, and Mac. The most important step is to install .NET 6.
For Linux you can find install instructions here https://docs.microsoft.com/en-us/dotnet/core/install/linux. This document covers how to install for Ubuntu.
A build from source runs with dotnet VerifiedXCore.dll. The packaged releases (verifiedx-core-<platform>.zip on the releases page) are self-contained single-file builds: they run directly as ./VerifiedXCore or VerifiedXCore.exe and don’t need .NET installed. Add the testnet argument to run on testnet, and enableapi to turn on the REST API, which is off by default.
Linux Install For Ubuntu 22.04:
-
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb -
sudo dpkg -i packages-microsoft-prod.deb -
rm packages-microsoft-prod.deb -
sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0 -
sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-6.0 -
Run
dotnet --version. You should see a version number of 6.0.xxx -
mkdir vfx- Makes a directory for VFX -
cd vfx -
a) Clone the repo with git.
git clone https://github.com/VerifiedXBlockchain/VerifiedX-Core.gitb) Or download the packaged release for your platform (
verifiedx-core-linux-x64.ziporverifiedx-core-linux-arm64.zip) from https://github.com/VerifiedXBlockchain/VerifiedX-Core/releases/. If you do this, unzip it, navigate to that folder, and skip to step 14, running./VerifiedXCoreinstead. Steps 1 to 6 are not needed for a release build. -
cd VerifiedX-Core -
dotnet build- There should be 0 (zero) errors. -
dotnet publish VerifiedXCore/VerifiedXCore.csproj -c Release -r linux-x64 --output ./vfxpublished**please note thelinux-x64can be changed if you are on a different architecture, for examplelinux-arm64 -
cd vfxpublished -
dotnet VerifiedXCore.dll
You are done! You should now see a wallet running! Some common errors are usually related to file permissions. Please ensure you have given proper permission to the newly created data folder (~/.local/share/RBX, a legacy folder name the code still uses; RBXTest on testnet).
Dotnet Conflicts
Section titled “Dotnet Conflicts”If you see an error like this, it means you have a conflict with dotnet versions.
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not existTo fix, run the following commands:
sudo apt remove dotnet*sudo apt remove aspnetcore*sudo apt remove netstandard*
sudo nano /etc/apt/preferences.d/99microsoft-dotnet.prefThen paste in the following and save/exit nano:
Package: *Pin: origin "packages.microsoft.com"Pin-Priority: 1001Then run:
sudo apt updatesudo apt install dotnet-sdk-6.0Windows
Section titled “Windows”Install the latest .NET 6 SDK from here: https://dotnet.microsoft.com/en-us/download/dotnet/6.0 Once that is installed follow the steps below.
-
Create a directory for VFX and then open a command prompt as administrator and navigate to that directory.
-
Please ensure you have a working version of git installed.
-
a) Clone the repo with git.
git clone https://github.com/VerifiedXBlockchain/VerifiedX-Core.gitb) Or download the packaged release
verifiedx-core-win-x64.zipfrom https://github.com/VerifiedXBlockchain/VerifiedX-Core/releases/. If you do this, unzip it, navigate to that folder, and skip to step 8, runningVerifiedXCore.exeinstead. -
cd VerifiedX-Core -
dotnet build- There should be 0 (zero) errors. -
dotnet publish VerifiedXCore/VerifiedXCore.csproj -c Release -r win-x64 --output ./vfxpublished**please note thewin-x64can be changed if you are on a different architecture -
cd vfxpublished -
dotnet VerifiedXCore.dll(or runVerifiedXCore.exe)
Install the latest .NET 6 SDK from here: https://dotnet.microsoft.com/en-us/download/dotnet/6.0 Once that is installed follow the steps below.
-
Create a directory for VFX, then open a terminal and navigate to that directory.
-
Please ensure you have a working version of git installed.
-
a) Clone the repo with git.
git clone https://github.com/VerifiedXBlockchain/VerifiedX-Core.gitb) Or download the packaged release (
verifiedx-core-osx-arm64.zipfor Apple silicon,verifiedx-core-osx-x64.zipfor Intel) from https://github.com/VerifiedXBlockchain/VerifiedX-Core/releases/. If you do this, unzip it, navigate to that folder, and skip to step 8, running./VerifiedXCoreinstead. -
cd VerifiedX-Core -
dotnet build- There should be 0 (zero) errors. -
dotnet publish VerifiedXCore/VerifiedXCore.csproj -c Release -r osx-x64 --output ./vfxpublished**please note theosx-x64should beosx-arm64on Apple silicon. -
cd vfxpublished -
dotnet VerifiedXCore.dll
Native libraries and PLONK parameters
Section titled “Native libraries and PLONK parameters”The publish output includes the native FROST and PLONK libraries for the runtime you chose (-r), including arm64 builds for linux-arm64. Run the libraries that ship with the release: the FROST library is pinned to version 0.2.0-frost-real, and a node that loads any other version stays out of vBTC key ceremonies and signings.
On first start the node downloads vfx_plonk_v4.params (about 400 MB) into PlonkParams in its data directory and verifies its SHA-256. Set VFX_PLONK_PARAMS_PATH to the full path of an existing copy to skip the download. A copy that doesn’t match the pinned hash is ignored.