Skip to content

Latest commit

 

History

History
57 lines (53 loc) · 1.61 KB

README.md

File metadata and controls

57 lines (53 loc) · 1.61 KB

EdDSA Signature Snark Smart-Contract Test

Boilerplate to deploy EdDSA signature validation circuit smart-contract.

Usage

First install snark tool:

npm i -g snarkjs

Install dependencies:

npm i

Generate new private key and input.json containing it:

node generate_inputs.js

Calculate the snark scheme witness, witness.json for provided input

snarkjs calculatewitness

Generate local proof and scheme outputs

snarkjs proof

Test is all went smooth:

snarkjs verify

Generate the solidity verifier.sol smart-contract

snarkjs generateverifier

Now deploy the smart-contract on your favorite EWM based chain And then use the tool to generate the smart-contract method call

snarkjs generatecall

References