schnorr-verify
schnorr-verify copied to clipboard
super cheap solidity schnorr sig verification using only ecrecover and keccak256
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