Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days ago
JSON representation
super cheap solidity schnorr sig verification using only ecrecover and keccak256
- Host: GitHub
- URL: https://github.com/noot/schnorr-verify
- Owner: noot
- License: lgpl-3.0
- Created: 2022-06-15T21:15:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T01:24:13.000Z (about 2 years ago)
- Last Synced: 2024-10-03T12:23:31.684Z (about 1 month ago)
- Topics: cryptography, ethereum, schnorr, solidity
- Language: JavaScript
- Homepage:
- Size: 283 KB
- Stars: 45
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```