noot / schnorr-verify

super cheap solidity schnorr sig verification using only ecrecover and keccak256

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

super cheap solidity schnorr sig verification using only ecrecover and keccak256

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 70.8%Language:Solidity 29.2%