C bindings over RUST implementation of sr25519 (schnorrkel) - Schnorr-on-ristretto255 scheme.
-
Install rust compiler (nightly),
cargo
:curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly source $HOME/.cargo/env rustup install nightly rustup default nightly
-
mkdir build && cd build
-
Options;
-DTESTING=[ON|OFF]
- enable or disable build of tests.-DCMAKE_BUILD_TYPE=[Release|Debug]
- select build type.-DBUILD_SHARED_LIBS=[TRUE|FALSE]
- build shared/static library.
cmake .. -DCMAKE_BUILD_TYPE=Release
-
Build and install library:
sudo make install
Header with comments will be generated in build/include/sr25519/sr25519.h
.