Skip to content

Optimization with windowed shamir, correction of bugs #1

Open
rdubois-crypto wants to merge 25 commits intobtchip:mainfrom
rdubois-crypto:main
Open

Optimization with windowed shamir, correction of bugs #1
rdubois-crypto wants to merge 25 commits intobtchip:mainfrom
rdubois-crypto:main

Conversation

@rdubois-crypto
Copy link

Double base multiplication using windowing and Shamir's trick, imported from https://github.com/rdubois-crypto/MyCairoPlayground/blob/main/Cairo/cairo_secp256r1/src/ec_mulmuladd_secp256r1.cairo

Correction of Neutral point representation (could lead to error)
Suppression of incorrect point normalization at end of file (remnant of a jacobian representation ?)

rdubois-crypto added 25 commits February 22, 2023 15:33
- multiplication using windowing and Shamir's trick, imported from
https://github.com/rdubois-crypto/MyCairoPlayground/blob/main/Cairo/cairo_secp256r1/src/ec_mulmuladd_secp256r1.cairo

- correcting incorrect Neutral Point representation (use of Affine while
Projective is required in some places)

- removing incorrect point normalization at end of file (looks like an
old jacobian implementation)

Note :
- Shamir's
trick:https://crypto.stackexchange.com/questions/99975/strauss-shamir-trick-on-ec-multiplication-by-scalar,

- Windowing method :
https://en.wikipedia.org/wiki/Exponentiation_by_squaring, section
'sliding window'
The implementation uses a 2 bits window with trick, leading to a
16 points elliptic point precomputation
     */
- Inverting y in dbl loop to spare sub
- Using continue to jump the 0 case of mul loop
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