warp-contracts-plugin-snarkjs
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Snarkjs Plugin for Warp Contracts

Snarkjs extension for warp contracts, allowing one to verify proofs within a Warp smart-contract.

Note that:

  • v0.1.x uses SnarkJS v0.6.x
  • v0.2.x uses SnarkJS v0.7.x

You might want to make sure that the client that is generating the proofs has the same minor version.

Installation

yarn add warp-contracts-plugin-snarkjs

Usage

import { WarpFactory } from "warp-contracts";
import { SnarkjsExtension } from "warp-contracts-plugin-snarkjs";

const warp = WarpFactory.forMainnet().use(new SnarkjsExtension());

Then, use groth16 or plonk within the smart-contract as:

SmartWeave.extensions.groth16;
SmartWeave.extensions.plonk;

Readme

Keywords

none

Package Sidebar

Install

npm i warp-contracts-plugin-snarkjs

Weekly Downloads

7

Version

0.2.1

License

MIT

Unpacked Size

4.85 kB

Total Files

11

Last publish

Collaborators

  • firstbatch