[go: nahoru, domu]

Skip to content

qdrvm/sr25519-crust

 
 

Repository files navigation

Build Status Gitter

Schnorrkel-crust

C bindings over RUST implementations of sr25519 (schnorrkel) and ed25519.

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/schnorrkel/schnorrkel.h.

Examples

Sr25519

Ed25519

Releases

No releases published

Packages

No packages published

Languages

  • Rust 57.2%
  • C++ 23.3%
  • C 11.5%
  • CMake 7.8%
  • Shell 0.2%