/schnorr-verify

super cheap solidity schnorr sig verification using only ecrecover and keccak256

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

Optimized Schnorr verification contract

This repo contains a contract Schnorr.sol which verifies a Schnorr signature using only ecrecover and keccak256.

Total gas cost: 29743

How it works

See https://hackmd.io/@nZ-twauPRISEa6G9zg3XRw/SyjJzSLt9

Try it out

Compile:

npx hardhat compile

Test:

npx hardhat test