@baerae/zkap-zkp-react-native
v0.1.2
Published
React Native SDK for zkap-zkp — on-device ZK proving with Groth16 (BN254) and Poseidon hash. Requires Expo New Architecture.
Readme
@baerae/zkap-zkp-react-native
React Native SDK for zkap-zkp with Expo modules integration.
Install:
npm install @baerae/zkap-zkp-react-nativeRequires Expo New Architecture and the following peer dependencies:
expoexpo-cryptoexpo-file-systemexpo-modules-corereact-native
import { generateHash, generateAnchor } from '@baerae/zkap-zkp-react-native'
const hash = await generateHash(['0x1', '0x2'])
const anchor = await generateAnchor(config, secrets)The npm package bundles the iOS XCFramework and Android .so libraries produced by CI.
