Skip to content

Update bitcoin-core/secp256k1 to v0.6.0#5

Merged
yperbasis merged 8 commits into
mainfrom
up_to_v0.6.0_no_submodule
Mar 17, 2025
Merged

Update bitcoin-core/secp256k1 to v0.6.0#5
yperbasis merged 8 commits into
mainfrom
up_to_v0.6.0_no_submodule

Conversation

@yperbasis
Copy link
Copy Markdown
Member

@yperbasis yperbasis commented Mar 6, 2025

@yperbasis yperbasis marked this pull request as ready for review March 7, 2025 16:52
Comment thread ext.h Outdated
(void)ctx;

// TODO(yperbasis): limit or mod?
secp256k1_fe_set_b32_limit(&feX, point);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

limit if you know that the input point is valid. But you may want to check the result of this function.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The result of the function call was ignored before. https://pkg.go.dev/crypto/elliptic says "The behavior of Add, Double, and ScalarMult when the input is not a point on the curve is undefined."

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