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

Remove Eq derive for Jacobian for now #44

Merged
merged 1 commit into from
Mar 27, 2020
Merged

Remove Eq derive for Jacobian for now #44

merged 1 commit into from
Mar 27, 2020

Conversation

sorpaas
Copy link
Member

@sorpaas sorpaas commented Mar 27, 2020

This removes the derive of Eq on Jacobian. It is reported in #42 that it just doesn't work. Jacobian has a scale factor z, where values in Affine would be (x / z^2, y / z^3). If z is different, it may represent the same value with different xs and ys.

A proper Eq implementation in Jacobian may just be converting it to Affine and them do the comparison, but that is not cheap. Unless I figured out a better way, making the conversion explicit for library users, by just removing the Eq derive in Jacobian, may be the better idea.

@sorpaas sorpaas merged commit 91e6414 into master Mar 27, 2020
@sorpaas sorpaas deleted the sp-jaco-eq branch March 27, 2020 15:55
trevor-crypto pushed a commit to monacohq/libsecp256k1 that referenced this pull request May 31, 2022
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.

2 participants