• This repository has been archived on 19/Jan/2023
  • Stars
    star
    30
  • Rank 839,658 (Top 17 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C bindings over RUST sr25519 https://github.com/w3f/schnorrkel

Build Status Gitter

sr25519-crust

C bindings over RUST implementation of sr25519 (schnorrkel) - Schnorr-on-ristretto255 scheme.

Build

  1. 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
  2. mkdir build && cd build

  3. 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
  4. Build and install library:

    sudo make install
    

Docs

Header with comments will be generated in build/include/sr25519/sr25519.h.

Examples