Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Warchant/sr25519-crust
C bindings over RUST sr25519 https://github.com/w3f/schnorrkel
https://github.com/Warchant/sr25519-crust
bindings c ristretto255 rust schnorr sr25519
Last synced: about 1 month ago
JSON representation
C bindings over RUST sr25519 https://github.com/w3f/schnorrkel
- Host: GitHub
- URL: https://github.com/Warchant/sr25519-crust
- Owner: Warchant
- License: apache-2.0
- Archived: true
- Created: 2019-05-04T11:00:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-10T03:14:00.000Z (over 2 years ago)
- Last Synced: 2024-08-04T08:08:41.870Z (5 months ago)
- Topics: bindings, c, ristretto255, rust, schnorr, sr25519
- Language: Rust
- Homepage:
- Size: 87.9 KB
- Stars: 30
- Watchers: 3
- Forks: 22
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/Warchant/sr25519-crust.svg?branch=master)](https://travis-ci.org/Warchant/sr25519-crust)
[![Gitter](https://badges.gitter.im/sr25519-crust/community.svg)](https://gitter.im/sr25519-crust/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)# sr25519-crust
C bindings over [RUST implementation of sr25519 (schnorrkel)](https://github.com/w3f/schnorrkel) - Schnorr-on-ristretto255 scheme.
## Build
1. Install rust compiler (nightly), `cargo`:
```bash
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.
```bash
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
- [Keypair derivation](./test/derive.cpp)
- [Sign/Verify](./test/ds.cpp)
- [Keypair from seed](./test/keypair_from_seed.cpp)
- [Verifiable random function](./test/vrf.cpp)