Git Product home page Git Product logo

sr25519-crust's Introduction

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

sr25519-crust's People

Contributors

akvinikym avatar dependabot-preview[bot] avatar dependabot[bot] avatar harrm avatar warchant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sr25519-crust's Issues

[DepShield] (CVSS 9.8) Vulnerability due to usage of rand_core:0.5.1

Vulnerabilities

DepShield reports that this application's usage of rand_core:0.5.1 results in the following vulnerability(s):


Occurrences

rand_core:0.5.1 is a transitive dependency introduced by the following direct dependency(s):

schnorrkel:0.9.1
        └─ curve25519-dalek:2.1.3
              └─ rand_core:0.5.1
        └─ merlin:2.0.1
              └─ rand_core:0.5.1
        └─ rand:0.7.3
              └─ rand_chacha:0.2.2
                    └─ rand_core:0.5.1
              └─ rand_core:0.5.1
        └─ rand_core:0.5.1

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 8.6) Vulnerability due to usage of generic-array:0.12.4

Vulnerabilities

DepShield reports that this application's usage of generic-array:0.12.4 results in the following vulnerability(s):


Occurrences

generic-array:0.12.4 is a transitive dependency introduced by the following direct dependency(s):

schnorrkel:0.9.1
        └─ curve25519-dalek:2.1.3
              └─ digest:0.8.1
                    └─ generic-array:0.12.4
        └─ sha2:0.8.2
              └─ block-buffer:0.7.3
                    └─ generic-array:0.12.4
              └─ digest:0.8.1
                    └─ generic-array:0.12.4

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 9.8) Vulnerability due to usage of rand_chacha:0.2.2

Vulnerabilities

DepShield reports that this application's usage of rand_chacha:0.2.2 results in the following vulnerability(s):


Occurrences

rand_chacha:0.2.2 is a transitive dependency introduced by the following direct dependency(s):

schnorrkel:0.9.1
        └─ rand:0.7.3
              └─ rand_chacha:0.2.2

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Add enum for verify result (as in schnorrkel 0.2.0)

Recently schnorrkel has been updated to 0.2.0: #5

They changed return type of sr25519_verify function.
Previously it returned true/false, but now it returns result on enum.

The task is to update schnorrkel to 0.2.0, change return type of sr25519_verify from bool to enum (prefixed), with all possible errors:

enum sr25519_verify_outcome {
  sr25519_success = 0,
  ...
  (and other errors as non-0 codes)
}

[DepShield] (CVSS 9.8) Vulnerability due to usage of rand_chacha:0.3.1

Vulnerabilities

DepShield reports that this application's usage of rand_chacha:0.3.1 results in the following vulnerability(s):


Occurrences

rand_chacha:0.3.1 is a transitive dependency introduced by the following direct dependency(s):

cbindgen:0.20.0
        └─ tempfile:3.2.0
              └─ rand:0.8.4
                    └─ rand_chacha:0.3.1

rand:0.8.4
        └─ rand_chacha:0.3.1

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Undefined symbols for architecture x86_64

Some errors occurred on the iOS system.

Undefined symbols for architecture x86_64:
"_readdir$INODE64", referenced from:
_macho_try_dsym in libsr25519crust.a(macho.o)
_macho_add in libsr25519crust.a(macho.o)
"_opendir$INODE64", referenced from:
std::sys::unix::fs::readdir::h714714ee58a81923 in libsr25519crust.a(std-f5ac182b2a26610e.std.6cj6x2el-cgu.0.rcgu.o)
_macho_try_dsym in libsr25519crust.a(macho.o)
_macho_add in libsr25519crust.a(macho.o)
"_readdir_r$INODE64", referenced from:
_$LT$std..sys..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::h3275646fa836ad24 in libsr25519crust.a(std-f5ac182b2a26610e.std.6cj6x2el-cgu.0.rcgu.o)
ld: symbol(s) not found for architecture x86_64

Rust bindings for Android (java)

It would useful for Android development to have Rust bindings for Android (java) for following functions:

sr25519_derive_keypair_hard
sr25519_derive_keypair_soft
sr25519_derive_public_soft
sr25519_keypair_from_seed
sr25519_sign
sr25519_verify

It would be possible to use these bindings directly in Android via Mozilla's plugin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.