0.2.1 • Published 9 months ago

warp-contracts-plugin-snarkjs v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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;
0.2.1

9 months ago

0.2.0

9 months ago

0.1.6

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago