React Native Wrapper
The following directory contains a native module implementation of the "pairing crypto" crate for usage in the React Native ecosystem.
Using
Installation
With npm
npm install @mattrglobal/pairing-crypto-rn
Or yarn
yarn add @mattrglobal/pairing-crypto-rn
API
import { bbs } from '@mattrglobal/pairing-crypto-rn';
const keyPair = await bbs.bls12381_sha256.generateKeyPair();
Contributing
We use Yarn as the package manager for this library
To install the required dependencies run
yarn install --frozen-lockfile
yarn bootstrap
To build the library run
This command will build build all the dependant native wrappers and copy the build artifacts into the React Native wrapper to be available to consume.
yarn build:all
To run the local app on iOS
yarn example ios
To run the local app on Android
yarn example android
To run the Detox E2E tests on iOS
yarn detox:build:ios
yarn detox:ios
To run the Detox E2E tests on Android
yarn detox:build:android
yarn detox:android