Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

react-native-blind-threshold-bls

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-blind-threshold-bls

React Native module to interface with OPRF library

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

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';

await BlindThresholdBls.blindMessage(base64PhoneNumber);

await BlindThresholdBls.unblindMessage(base64BlindSig, PUB_KEY)

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 *; }

Keywords

react-native

FAQs

Package last updated on 12 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts