Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snarkjs

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snarkjs - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

2

package.json
{
"name": "snarkjs",
"type": "module",
"version": "0.6.0",
"version": "0.6.1",
"description": "zkSNARKs implementation in JavaScript",

@@ -6,0 +6,0 @@ "main": "./build/main.cjs",

@@ -74,3 +74,3 @@

To install `circom`, follow the instructions at [installing circom](https://docs.circom.io/getting-started/installation).
To install `circom`, follow the instructions at [installing circom](https://docs.circom.io/getting-started/installation).

@@ -87,3 +87,3 @@ ## Guide

```sh
snarkjs powersoftau new bn128 12 pot12_0000.ptau -v
snarkjs powersoftau new bn128 14 pot14_0000.ptau -v
```

@@ -100,3 +100,3 @@

```sh
snarkjs powersoftau contribute pot12_0000.ptau pot12_0001.ptau --name="First contribution" -v
snarkjs powersoftau contribute pot14_0000.ptau pot14_0001.ptau --name="First contribution" -v
```

@@ -108,3 +108,3 @@

`contribute` takes as input the transcript of the protocol so far, in this case `pot12_0000.ptau`, and outputs a new transcript, in this case `pot12_0001.ptau`, which includes the computation carried out by the new contributor (`ptau` files contain a history of all the challenges and responses that have taken place so far).
`contribute` takes as input the transcript of the protocol so far, in this case `pot14_0000.ptau`, and outputs a new transcript, in this case `pot14_0001.ptau`, which includes the computation carried out by the new contributor (`ptau` files contain a history of all the challenges and responses that have taken place so far).

@@ -115,3 +115,3 @@ `name` can be anything you want, and is just included for reference (it will be printed when you verify the file (step 5).

```sh
snarkjs powersoftau contribute pot12_0001.ptau pot12_0002.ptau --name="Second contribution" -v -e="some random text"
snarkjs powersoftau contribute pot14_0001.ptau pot14_0002.ptau --name="Second contribution" -v -e="some random text"
```

@@ -123,5 +123,5 @@

```sh
snarkjs powersoftau export challenge pot12_0002.ptau challenge_0003
snarkjs powersoftau export challenge pot14_0002.ptau challenge_0003
snarkjs powersoftau challenge contribute bn128 challenge_0003 response_0003 -e="some random text"
snarkjs powersoftau import response pot12_0002.ptau response_0003 pot12_0003.ptau -n="Third contribution name"
snarkjs powersoftau import response pot14_0002.ptau response_0003 pot14_0003.ptau -n="Third contribution name"
```

@@ -135,3 +135,3 @@

```sh
snarkjs powersoftau verify pot12_0003.ptau
snarkjs powersoftau verify pot14_0003.ptau
```

@@ -152,3 +152,3 @@

```sh
snarkjs powersoftau beacon pot12_0003.ptau pot12_beacon.ptau 0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 10 -n="Final Beacon"
snarkjs powersoftau beacon pot14_0003.ptau pot14_beacon.ptau 0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f 10 -n="Final Beacon"
```

@@ -168,3 +168,3 @@

```sh
snarkjs powersoftau prepare phase2 pot12_beacon.ptau pot12_final.ptau -v
snarkjs powersoftau prepare phase2 pot14_beacon.ptau pot14_final.ptau -v
```

@@ -224,3 +224,3 @@

```sh
snarkjs powersoftau verify pot12_final.ptau
snarkjs powersoftau verify pot14_final.ptau
```

@@ -336,3 +336,3 @@

Currently, snarkjs supports 3 proving systems: Groth16, PLONK and FFLONK (Beta version).
Currently, snarkjs supports 3 proving systems: Groth16, PLONK and FFLONK (Beta version).

@@ -343,3 +343,3 @@ Groth16 requires a trusted ceremony for each circuit. PLONK and FFLONK do not require it, it's enough with the powers of tau ceremony which is universal.

```sh
snarkjs plonk setup circuit.r1cs pot12_final.ptau circuit_final.zkey
snarkjs plonk setup circuit.r1cs pot14_final.ptau circuit_final.zkey
```

@@ -349,3 +349,3 @@

```sh
snarkjs fflonk setup circuit.r1cs powersOfTau.ptau circuit.zkey
snarkjs fflonk setup circuit.r1cs pot14_final.ptau circuit.zkey
```

@@ -357,3 +357,3 @@

```sh
snarkjs groth16 setup circuit.r1cs pot12_final.ptau circuit_0000.zkey
snarkjs groth16 setup circuit.r1cs pot14_final.ptau circuit_0000.zkey
```

@@ -404,3 +404,3 @@

```sh
snarkjs zkey verify circuit.r1cs pot12_final.ptau circuit_0003.zkey
snarkjs zkey verify circuit.r1cs pot14_final.ptau circuit_0003.zkey
```

@@ -431,3 +431,3 @@

```sh
snarkjs zkey verify circuit.r1cs pot12_final.ptau circuit_final.zkey
snarkjs zkey verify circuit.r1cs pot14_final.ptau circuit_final.zkey
```

@@ -434,0 +434,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc