Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized ecmul on secp256k1 #30

Open
k06a opened this issue Aug 7, 2018 · 1 comment
Open

Optimized ecmul on secp256k1 #30

k06a opened this issue Aug 7, 2018 · 1 comment

Comments

@k06a
Copy link

k06a commented Aug 7, 2018

Recently Vitalik Buterin proposed to abuse ecrecover to compute hashed result of ecmul:
https://ethresear.ch/t/you-can-kinda-abuse-ecrecover-to-do-ecmul-in-secp256k1-today/2384

I had implemented his idea: https://github.com/1Address/ecsol/blob/master/contracts/EC.sol

It uses about 32K gas to call ecmulVerify.

@barryWhiteHat
Copy link
Owner

I think this cannot be used for snark verification as you need to do pairing additons and multiplications which i don't think is possible with secp256k1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants