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

FixedBaseScalarMul black box function #80

Draft
wants to merge 6 commits into
base: generate_constraints_in_black_box_functions
Choose a base branch
from

Conversation

ilitteri
Copy link
Collaborator

No description provided.

@ilitteri ilitteri self-assigned this Mar 31, 2023
// that the resulting point is on the curve.
//
// Returns the indices to the resulting point x and y coordinates.
func AddPoints(augendPointX, augendPointY, addendPointX, addendPointY int, ctx *backend.Context, checkPoint bool) (newPointX, newPointY int) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Point addition algorithm is wrong.

// that the resulting point is on the curve.
//
// Returns the indices to the resulting point x and y coordinates.
func DoublePoint(x, y int, ctx *backend.Context, checkPoint bool) (doubledX, doubledY int) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also point double algorithm is wrong.

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