Skip to content

React native wrapper for circom-witnesscalc library intended for zero knowledge proof witness calculation.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt
Notifications You must be signed in to change notification settings

iden3/react-native-circom-witnesscalc

Repository files navigation

react-native-circom-witnesscalc

React native wrapper for circom-witnesscalc library intended for zero knowledge proof witness calculation.

Installation

npm install react-native-circom-witnesscalc

Usage

import {calculateWitness} from 'react-native-circom-witnesscalc';

// ...

const inputs = RNFS.readFile('path/to/inputs.json', 'utf8');
const graph = RNFS.readFile('path/to/graph.wcd', "base64");

const result = await calculateWitness(inputs, graph);

const bytes = base64ToArrayBuffer(result);

License

CircomWitnesscalc is part of the iden3 project and licensed under MIT and APACHE 2.0 licences. Please check the LICENSE-MIT and LICENSE-APACHE files for more details.

About

React native wrapper for circom-witnesscalc library intended for zero knowledge proof witness calculation.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published