Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

valora-inc/react-native-blind-threshold-bls

Repository files navigation

react-native-blind-threshold-bls

Description

This is a React Native wrapper for the Celo Threshold BLS Rust library

It works on iOS and Android, providing access to the crypto operations implemented by the rust library.

Getting started

$ npm install react-native-blind-threshold-bls --save

Usage

import BlindThresholdBls from 'react-native-blind-threshold-bls';

BlindThresholdBls;

Updating the libs

The precompiled libs for android (.so files) and ios (.a file) and checked into this repo. To update them, follow the instructions in the celo-threshold-bls-rs repo to create the libs and then copy them over here.

Android libs live in android/src/main/jniLibs. The combined iOS lib lives in ios/Libraries.

Additionally, the header file for the FFI bindings must be included here to support compilation for iOS. That file is located at ios/Headers/threshold.h. Do not modify that file directly. If the FFI interface must change, change it in the celo-threshold-bls-rs repo and copy the header file here.

Proguard

To accomodate JNA, add the following to the consuming app's proguard rules:

-dontwarn java.awt.*
-keep class com.sun.jna.* { *; }
-keepclassmembers class * extends com.sun.jna.* { public *; }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •