Skip to content

Conversation

@orizi
Copy link
Collaborator

@orizi orizi commented Nov 24, 2025

Added actual usage of it in ECDSA - blocked by cfg.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

orizi commented Nov 24, 2025

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

@orizi orizi force-pushed the orizi/11-24-added_const_for_ecpoint_including_non-zero branch 2 times, most recently from 107388f to 9dcfe93 Compare November 24, 2025 10:51
@orizi orizi marked this pull request as ready for review November 24, 2025 10:52
Added actual usage of it in ECDSA - blocked by cfg.

SIERRA_UPDATE_PATCH_CHANGE_TAG=Extending an existing libfunc option.
@orizi orizi force-pushed the orizi/11-24-added_const_for_ecpoint_including_non-zero branch from 9dcfe93 to 341a23a Compare November 24, 2025 12:57
@ilyalesokhin-starkware
Copy link
Contributor

crates/cairo-lang-sierra/src/extensions/modules/const_type.rs line 242 at r2 (raw file):

        return Err(SpecializationError::UnsupportedGenericArg);
    }
    match AffinePoint::new(Felt252::from(x), Felt252::from(y)) {

Does this check if the point is on the curve?

Code quote:

AffinePoint::new(Felt252::from(x), Felt252::from(y))

@ilyalesokhin-starkware
Copy link
Contributor

corelib/src/ecdsa.cairo line 217 at r2 (raw file):

}

#[cfg(sierra: "future")]

what does this do?

Code quote:

cfg(sierra: "future")

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: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @ilyalesokhin-starkware and @TomerStarkware)


corelib/src/ecdsa.cairo line 217 at r2 (raw file):

Previously, ilyalesokhin-starkware wrote…

what does this do?

just hides the rest of the unused code.

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: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @ilyalesokhin-starkware and @TomerStarkware)


crates/cairo-lang-sierra/src/extensions/modules/const_type.rs line 242 at r2 (raw file):

Previously, ilyalesokhin-starkware wrote…

Does this check if the point is on the curve?

yes - that is the exact error type.

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 4 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)

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.

4 participants