Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noot/schnorr-verify

super cheap solidity schnorr sig verification using only ecrecover and keccak256
https://github.com/noot/schnorr-verify

cryptography ethereum schnorr solidity

Last synced: about 1 month ago
JSON representation

super cheap solidity schnorr sig verification using only ecrecover and keccak256

Awesome Lists containing this project

README

        

# 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
```