π»Installation
Important: Default deployment via docker-compose is extremely insecure, so ensure that only you can access your wallet at http://wallet.localhost/
If you leave ports open, anyone can access your wallet with your IP address. Please create an auth token or close the ports in Docker!
Server preparation
apt update && apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
Install Docker
. <(wget -qO- https://raw.githubusercontent.com/SecorD0/utils/main/installers/docker.sh)
Installing
Create the necessary directories. We'll use a new directory for each new version
mkdir -p ~/.canton
mkdir -p ~/.canton/0.4.19
cd ~/.canton/0.4.19
Download the archive from docker-compose
wget https://github.com/digital-asset/decentralized-canton-sync/releases/download/v0.4.19/0.4.19_splice-node.tar.gz
tar xzvf 0.4.19_splice-node.tar.gz
cd ~/.canton/0.4.19/splice-node/docker-compose/validator
We explicitly specify the version for correct assembly
export IMAGE_TAG=0.4.19
To launch a node, we need to obtain an access token. For Devnet, we can obtain one ourselves; for Testnet and Mainnet, we need to obtain one from a sponsor
Getting a token for DEVNET (valid for 1 hour)
We use it the first time we run it. For subsequent launches, we delete the token and leave the -o ""
curl -X POST https://sv.sv-1.dev.global.canton.network.sync.global/api/sv/v0/devnet/onboard/validator/prepare
Launching the node
./start.sh -s "<SPONSOR_SV_URL>" -o "<ONBOARDING_SECRET>" -p "<party_hint>" -m "<MIGRATION_ID>" -w
Where:
<SPONSOR_SV_URL> = https://sv.sv-1.dev.global.canton.network.sync.global
<ONBOARDING_SECRET> = Your Devnet token <party_hint> = Your validator name (example: Val-validator-1)
<MIGRATION_ID> = 0 for Devnet (see here - https://sync.global/sv-network/)
After a successful launch, you can check the logs
cd ~/.canton/0.4.19/splice-node/docker-compose/validator
docker compose logs -f validator

Please note that the validator can be stopped with the ./stop.sh
command and restarted with the same start.sh command as above. Subsequent invocations can omit the token and leave the field blank, but the -o
flag is still required, so you must specify the -o ""
argument
Last updated