Kryvon / NODE GUIDENODE GUIDE

Run Node

Build Kryvon from source, run a node on your network, and configure an Eaglesong miner with a native SQIsign reward address.

KRYVON is a public, permissionless, quantum-resistant layer-1 blockchain using proof of work and post-quantum SQIsign signatures.

Build from Source

Clone the Kryvon source repository and open its directory.

git clone https://github.com/kryvon-labs/kryvon.git
cd kryvon

Install system dependencies

On macOS, install the Xcode Command Line Tools if needed.

xcode-select --install

Once the Command Line Tools are installed, use Homebrew to install the remaining build tools.

brew install cmake llvm pkgconf

If the build reports that it cannot find libclang, set this in the build terminal.

export LIBCLANG_PATH="$(brew --prefix llvm)/lib"

On Debian or Ubuntu, install the native build tools and certificates.

sudo apt update
sudo apt install build-essential clang cmake libclang-dev libssl-dev pkg-config curl ca-certificates

Install Rust 1.95.0

For a first-time Rustup installation, run the installer from rustup.rs.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain none

With Rustup installed, run these commands from the repository root.

export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install 1.95.0 --profile minimal
rustc +1.95.0 --version

The compiler should report rustc 1.95.0, the version pinned in rust-toolchain.toml. If Cargo reports rustc 1.90.0 is not supported, check command -v cargo and put $HOME/.cargo/bin first in the terminal's PATH.

Build the release binary

Cargo downloads the Rust dependencies listed in Cargo.lock on the first build.

cargo +1.95.0 build --release --locked --bin kryvon

Add kryvon to your PATH

From the repository root, install the built binary into your user bin directory.

install -m 755 target/release/kryvon "$HOME/.cargo/bin/kryvon"
export PATH="$HOME/.cargo/bin:$PATH"
kryvon --version

Add the export PATH line to ~/.zshrc for zsh or ~/.bashrc for Bash so new terminals can find kryvon. Run the install command again after rebuilding to update the installed binary.

Quick Start

Initialize a new node

Choose one initialization command before starting the node. You can run these commands from any directory.

To enable mining, replace YOUR_KRY1_WALLET_ADDRESS with the full public kry1… address that should receive block rewards.

kryvon init --chain mainnet --ba-arg "YOUR_KRY1_WALLET_ADDRESS"

For a node without mining, use the standard initialization.

kryvon init --chain mainnet

Start the node

kryvon run

To check the current block height, query the node from another terminal.

curl -fsS -H 'content-type: application/json' \
  --data '{"id":1,"jsonrpc":"2.0","method":"get_tip_block_number","params":[]}' \
  http://127.0.0.1:8114

A result of 0x0 means the node is at genesis. Press Ctrl+C in the node terminal to stop it and run kryvon run to restart it.

KRYVON stores its config and data under ~/.kryvon by default. To use an existing node, set KRYVON_HOME to its absolute directory in your shell startup file. The -C option selects a directory for a single command.

By default, RPC listens on 127.0.0.1:8114 and P2P listens on all IPv4 interfaces on port 8115.

For a node serving the Kryvon web wallet, start it with kryvon run --indexer to provide balance, unspent-cell and transaction-history RPCs. See JSON-RPC and WebSocket setup for connection settings.

Start mining

Use a public reward address from your Kryvon wallet. Initialize with --ba-arg or follow Enable mining on an existing node. Start the node, then run the miner in a second terminal from the same node directory.

kryvon miner

The bundled miner uses Eaglesong. --ba-arg sets the recipient of new mining rewards. The bundled chain specification defines genesis and its allocation. If you use -C or KRYVON_HOME, point both processes at the same node data.

Run in the background

On macOS and Linux, stop any foreground instance with Ctrl+C, then start the node as a daemon.

kryvon run --daemon

Use kryvon daemon --check to check its status and kryvon daemon --stop to stop it.

For a node configured for mining, start the background node and the miner from one terminal.

kryvon run --daemon && kryvon miner

Enable mining on an existing node

If you initialized mainnet without a reward address, use your full public kry1… wallet address in this command on macOS or Linux. It prints the [block_assembler] section from a temporary config.

(
  tmp_node=$(mktemp -d) || exit
  trap 'rm -rf -- "$tmp_node"' EXIT
  kryvon -C "$tmp_node" init --chain mainnet --ba-arg "YOUR_KRY1_WALLET_ADDRESS" >/dev/null &&
    grep -Fx -A 4 '[block_assembler]' "$tmp_node/kryvon.toml"
)

Update the [block_assembler] section in your node's kryvon.toml. If the section is absent, paste the full output including the header. Ensure the [rpc] section's modules list includes Miner, then restart the node and run kryvon miner.

Windows with Docker Desktop

Install Docker Desktop for Windows and use its WSL 2 backend in Linux container mode. In PowerShell, check that the engine reports linux. Docker Desktop installation guide

docker info --format '{{.OSType}}'

Build the image once from the repository root.

docker build -f docker/hub/Dockerfile -t kryvon:local .

Run the remaining commands from any PowerShell directory. Initialize the mainnet volume once, then start the node in the background.

docker volume create kryvon-data
docker run --rm -v kryvon-data:/var/lib/kryvon --entrypoint /bin/kryvon kryvon:local init --chain mainnet
docker run -d --name kryvon --restart unless-stopped -v kryvon-data:/var/lib/kryvon --entrypoint /bin/kryvon kryvon:local run

The Windows commands invoke the Linux binary directly so they also work when Git checks out the entrypoint script with CRLF line endings. The kryvon-data volume keeps the config and chain data, and the RPC and P2P ports stay inside the Docker network.

Watch the node logs with docker logs -f kryvon. Use docker stop --timeout 60 kryvon to stop the node and docker start kryvon to start it again with the same data.

Join a Network

Use --chain mainnet or --chain testnet during initialization, with a separate node directory for each chain. The default bootnode list is empty. Set network.bootnodes in the generated kryvon.toml to connect to peers.

KRYVON mainnet uses the Eaglesong mining algorithm.

How to Contribute

See CONTRIBUTING.md for the contribution workflow.

License

KRYVON is released under the MIT license. See COPYING.