Skip to main content
Version: v0.4.x

Linux

To install Indy SDK on Linux, a couple of dependencies are required. This guide covers the installation for the more popular Linux distributions.

Libsodium

Libsodium is used by the Indy SDK for encryption, decryption, hashing and signing.

pacman -S libsodium

Libzmq

Libzmq is a lightweight messaging queue used by the Indy SDK.

pacman -S zeromq

Indy SDK

All the steps mentioned here are distribution independent. As the Indy SDK doesn't provide binaries for many releases, we will build it from source. This does mean that some additional requirements are necessary, like Rust.

Downloading Rust is as easy as executing the following command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

This will install Rustup which is the installer for Rust.

With Rust, we can now build the Indy SDK from source.

First, clone the repository in a temporary directory:

git clone https://github.com/hyperledger/indy-sdk

Secondly, go to the correct directory

cd indy-sdk/libindy

Third, build the library

cargo build --release

Lastly, move the library to the correct location

sudo mv target/release/libindy.so /usr/lib/libindy.so

Confirm installation

To see whether the Indy SDK is correctly installed on your system, run the following command and it should not error.

npx -p @aries-framework/node@^0.3 is-indy-installed