Skip to content

cerealkill/eddsa

Repository files navigation

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

About

EdDSA Signature Snark

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published