A lightweight and high-performance node implementation for the Keryx network, running at 10 blocks per second (10 BPS).
Keryx is the first BlockDAG ecosystem purpose-built for decentralized AI inference.
By combining high-throughput GHOSTDAG architecture with optimistic verifiability, we are building a sovereign, censorship-resistant intelligence infrastructure.
Keryx utilizes KeryxHash, a specialized PoW algorithm evolved from kHeavyHash, specifically optimized for GPU efficiency and network security:
ASIC Isolation: Implementation of KERYX_MATRIX_SALT, a 32-byte domain-specific salt that isolates the network from existing Kaspa ASICs.
WaveMix Technology: A 4-round ARX (Add-Rotate-Xor) post-processing step designed to increase GPU register pressure, favoring consumer hardware.
Security Mutation: Re-engineered consensus validation layers to ensure unique block signing.
Building on Linux
-
Install general prerequisites
sudo apt install curl git build-essential libssl-dev pkg-config
-
Install Protobuf (required for gRPC)
sudo apt install protobuf-compiler libprotobuf-dev #Required for gRPC -
Install the clang toolchain (required for RocksDB and WASM secp256k1 builds)
sudo apt-get install clang-format clang-tidy \ clang-tools clang clangd libc++-dev \ libc++1 libc++abi-dev libc++abi1 \ libclang-dev libclang1 liblldb-dev \ libllvm-ocaml-dev libomp-dev libomp5 \ lld lldb llvm-dev llvm-runtime \ llvm python3-clang
-
Install the rust toolchain
If you already have rust installed, update it by running:
rustup update -
Install wasm-pack
cargo install wasm-pack
-
Install wasm32 target
rustup target add wasm32-unknown-unknown
-
Clone the repo
git clone https://github.com/Keryx-labs/keryx-node cd keryx-node -
Build the node
cargo build --release
Building on Windows
-
Install Git for Windows or an alternative Git distribution.
-
Install Protocol Buffers and add the
bindirectory to yourPath -
Install LLVM-15.0.6-win64.exe
Add the
bindirectory of the LLVM installation (C:\Program Files\LLVM\bin) to PATHset
LIBCLANG_PATHenvironment variable to point to thebindirectory as wellIMPORTANT: Due to C++ dependency configuration issues, LLVM
ARinstallation on Windows may not function correctly when switching between WASM and native C++ code compilation (nativeRocksDB+secp256k1vs WASM32 builds ofsecp256k1). Unfortunately, manually settingARenvironment variable also confuses C++ build toolchain (it should not be set for native but should be set for WASM32 targets). Currently, the best way to address this, is as follows: after installing LLVM on Windows, go to the targetbininstallation directory and copy or renameLLVM_AR.exetoAR.exe. -
Install the rust toolchain
If you already have rust installed, update it by running:
rustup update -
Install wasm-pack
cargo install wasm-pack
-
Install wasm32 target
rustup target add wasm32-unknown-unknown
-
Clone the repo
git clone https://github.com/Keryx-labs/keryx-node cd keryx-node -
Build the node
cargo build --release
Building on Mac OS
-
Install Protobuf (required for gRPC)
brew install protobuf
-
Install llvm.
The default XCode installation of
llvmdoes not support WASM build targets. To build WASM on MacOS you need to installllvmfrom homebrew (at the time of writing, the llvm version for MacOS is 16.0.1).brew install llvm
NOTE: Homebrew can use different keg installation locations depending on your configuration. For example:
/opt/homebrew/opt/llvm->/opt/homebrew/Cellar/llvm/16.0.1/usr/local/Cellar/llvm/16.0.1
To determine the installation location you can use
brew list llvmcommand and then modify the paths below accordingly:% brew list llvm /usr/local/Cellar/llvm/16.0.1/bin/FileCheck /usr/local/Cellar/llvm/16.0.1/bin/UnicodeNameMappingGenerator ...
If you have
/opt/homebrew/Cellar, then you should be able to use/opt/homebrew/opt/llvm.Add the following to your
~/.zshrcfile:export PATH="/opt/homebrew/opt/llvm/bin:$PATH" export LDFLAGS="-L/opt/homebrew/opt/llvm/lib" export CPPFLAGS="-I/opt/homebrew/opt/llvm/include" export AR=/opt/homebrew/opt/llvm/bin/llvm-ar
Reload the
~/.zshrcfilesource ~/.zshrc
-
Install the rust toolchain
If you already have rust installed, update it by running:
rustup update -
Install wasm-pack
cargo install wasm-pack
-
Install wasm32 target
rustup target add wasm32-unknown-unknown
-
Clone the repo
git clone https://github.com/Keryx-labs/keryx-node cd keryx-node -
Build the node
cargo build --release
Start a node
./target/release/keryxd./target/release/keryxd --help- Website: keryx-labs.com
- X (Twitter): @Keryx_Labs
- Discord: Join the Community
"Intelligence is the message. Keryx is the messenger."