@hyperledger/aries-askar-react-native v0.2.3
Aries Askar React Native
Wrapper for React Native around Aries Askar
Requirements
This module uses the new React Native Turbo Modules. These are faster than the
previous Native Modules, and can be completely synchronous. A React Native
version of >= 0.66.0 is required for this package to work.
Installation
yarn add @hyperledger/aries-askar-react-nativeSetup
You can import all types and classes from the @hyperledger/aries-askar-react-native library:
import { Key, KeyAlgs } from '@hyperledger/aries-askar-react-native'
const seed = Uint8Array.from(Buffer.from('testseed000000000000000000000001'))
const key = Key.fromSeed({ algorithm: KeyAlgs.Bls12381G1, seed })Note: If you want to use this library in a cross-platform environment you need to import methods from the
@hyperledger/aries-askar-sharedpackage instead. This is a platform independent package that allows to register the native bindings. The@hyperledger/aries-askar-react-nativepackage uses this package under the hood. See the Aries Askar Shared README for documentation on how to use this package.
Version Compatibility
The JavaScript wrapper is versioned independently from the native bindings. The following table shows the compatibility between the different versions:
| Aries Askar | JavaScript Wrapper |
|---|---|
| v0.2.9 | v0.1.0, v0.1.1 |
| v0.3.1 | v0.2.0 |
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago