Skip to content

Conversation

@orizi
Copy link
Collaborator

@orizi orizi commented Nov 18, 2025

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

orizi commented Nov 18, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@orizi orizi marked this pull request as ready for review November 18, 2025 10:56
Copy link
Collaborator

@TomerStarkware TomerStarkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@TomerStarkware reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)

@ilyalesokhin-starkware
Copy link
Contributor

corelib/src/ecdsa.cairo line 190 at r1 (raw file):

    state.add_mul(ord - z_div_r, gen_point);
    // Checking if the actual parity of the point's y is different than requested, and if so,
    // flipping the multiplier to match the requested parity.

Suggestion:

    // Checking if the actual parity of the point's y is different than the requested, and if so,
    // flipping the multiplier instead of negating the point to match the requested parity.

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilyalesokhin-starkware reviewed 1 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)

@orizi orizi force-pushed the gt/orizi/11-17-improved_recovery-function_of_ecdsa branch from 9fd312b to 9514b60 Compare November 19, 2025 09:10
Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware)


corelib/src/ecdsa.cairo line 190 at r1 (raw file):

    state.add_mul(ord - z_div_r, gen_point);
    // Checking if the actual parity of the point's y is different than requested, and if so,
    // flipping the multiplier to match the requested parity.

Done.

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@ilyalesokhin-starkware reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @orizi)

@orizi orizi force-pushed the gt/orizi/11-17-improved_recovery-function_of_ecdsa branch from 9514b60 to 13cf941 Compare November 19, 2025 09:20
@orizi orizi force-pushed the gt/orizi/11-17-improved_recovery-function_of_ecdsa branch from 13cf941 to 76d8d4b Compare November 19, 2025 09:32
Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orizi reviewed 3 of 3 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @orizi)

@orizi orizi enabled auto-merge November 19, 2025 09:38
@orizi orizi added this pull request to the merge queue Nov 19, 2025
Merged via the queue into main with commit d68fa29 Nov 19, 2025
54 checks passed
@orizi orizi deleted the gt/orizi/11-17-improved_recovery-function_of_ecdsa branch November 19, 2025 17:28
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.

5 participants