@animo-id/react-native-bbs-signatures
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i @animo-id/react-native-bbs-signatures

Weekly Downloads

87

Version

0.1.0

License

Apache-2.0

Unpacked Size

55.6 MB

Total Files

92

Last publish

Collaborators

  • animo-bot
  • animo-ana
  • blu3beri
  • timoglastra