Giter Club home page Giter Club logo

react-native-bbs-signatures's Introduction

React Native BBS Signatures

Wrapper for React Native around ffi-bbs-signatures. It matches the interface from the BBS Signatures library so it can be used with the JSON-LD Signatures BBS library. This library uses the new TurboModule for increased performance. React Native >=66 is required for this library to work.

Functionality

  • Create key pair (bls12381g1, bls12381g2)
  • Convert bls to bbs key (bls12381g1, bls12381g2)
  • Sign with keypair (bls12381g2)
  • Derive zero knowledge proofs with selective disclosure of attributes
  • Verify signature

This library matches the public API of bbs-signatures but still misses some minor functionality.

Installation

To use this library in your React Native project run the following command:

yarn add @animo-id/react-native-bbs-signatures

iOS

On iOS you still need to run pod install --project-directory=ios in the root of your project to setup the native dependencies.

Android

Since autolinking can handle everything on the Android side, no additional steps are required.

Contributing

If you want to add functionality to this library please make sure to run the tests in the cpp/tests folder with your added functionality add run the React Native tests inside the example/ app.

Credits


This work was created as a joint effort between Northern Block, Animo Solutions and the Ontario government, on behalf of the Ontario government.

react-native-bbs-signatures's People

Contributors

berendsliedrecht avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bubbletrouble14

react-native-bbs-signatures's Issues

Build fail on android

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\user\Documents\Programming\ReactLatest\node_modules@animo-id\react-native-bbs-signatures\android\build.gradle' line: 159

  • What went wrong:
    A problem occurred evaluating project ':animo-id_react-native-bbs-signatures'.

Expected directory 'C:\Users\user\Documents\Programming\ReactLatest\node_modules\react-native\android' to contain exactly one file, however, it contains no files.

BUILD FAILED in 3s

Fetch libraries in post-install

Right now we push the libraries to npm and it is quite a big package. We should fetch the binaries in a post install script to keep the npm package relatively small. There is no major benefit in this, but it just feels cleaner.

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.