Socket
Book a DemoInstallSign in
Socket

@iden3/react-native-circom-witnesscalc

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

@iden3/react-native-circom-witnesscalc

React-native wrapper for circom-witnesscalc

latest
Source
npmnpm
Version
0.0.1-alpha.4
Version published
Maintainers
2
Created
Source

react-native-circom-witnesscalc

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

Installation

npm i @iden3/react-native-circom-witnesscalc

iOS

Add the following line to your Podfile:

use_frameworks! :linkage => :static

Usage

import {calculateWitness} from '@iden3/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.

Keywords

react-native

FAQs

Package last updated on 03 Feb 2025

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