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

Optimizing ECDSA with Shamir's trick and windowing #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rdubois-crypto
Copy link

Optimized and standard version may be compared using --print-info over test_bench_ecdsa.cairo and test_bench_opti.cairo.

The obtained speed up is around 46%:

ECDSA optimized over sec256r1
Number of steps: 222828 (originally, 222828)
Used memory cells: 231500

ECDSA standard implementation over sec256r1
Number of steps: 388286 (originally, 388286)
Used memory cells: 402221

Optimized version for starkcurve and secp256k1 are available here:[
https://github.com/rdubois-crypto/MyCairoPlayground/tree/main/Cairo

(PR138 on Starkware repo).](starkware-libs/cairo-lang#138)

rdubois-crypto and others added 5 commits January 13, 2023 09:51
file
test_bench_ecdsa.cairo: bench previous implementation
test_bench_ecdsa_opti.cairo: bench optimized version results
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

Successfully merging this pull request may close these issues.

1 participant