Skip to content

secp25k61: Polish field64 comments.#3713

Merged
davecgh merged 2 commits into
decred:masterfrom
davecgh:secp256k1_field64_updates
Jul 8, 2026
Merged

secp25k61: Polish field64 comments.#3713
davecgh merged 2 commits into
decred:masterfrom
davecgh:secp256k1_field64_updates

Conversation

@davecgh

@davecgh davecgh commented Jun 28, 2026

Copy link
Copy Markdown
Member

This requires #3712.

This adds a bunch of comments to the recently added FieldVal64 code and polishes some of the existing ones to make everything more consistent with the 10x26 field and provide mathematical justification for things such as bounds on the number of reductions and overflow prevention.

While some of them are repetitive, it helps ensure they aren't lost if the old field implementation is ever removed in favor of the new field implementation.

It also updates the 10x26 field rationale to account for modern Go additions and the new field.

Finally, it reorders a some of the FieldVal64 methods around to match the order definition in the 10x26 field for consistency.

@davecgh davecgh added this to the 2.2.0 milestone Jun 28, 2026
@davecgh davecgh force-pushed the secp256k1_field64_updates branch from 88b1dd4 to 14fd8ff Compare June 28, 2026 22:28
Comment thread dcrec/secp256k1/field64.go Outdated
Comment thread dcrec/secp256k1/field64.go Outdated
Comment thread dcrec/secp256k1/field64.go Outdated
@davecgh davecgh force-pushed the secp256k1_field64_updates branch from 14fd8ff to 5e58c54 Compare July 6, 2026 23:35
davecgh added 2 commits July 7, 2026 22:36
This moves some FieldVal64 methods around to match the order definition
in the 10x26 field for consistency.
This adds a bunch of comments to the recently added FieldVal64 code and
polishes some of the existing ones to make everything more consistent
with the 10x26 field and provide mathematical justification for things
such as bounds on the number of reductions and overflow prevention.

While some of them are repetitive, it helps ensure they aren't lost if
the old field implementation is ever removed in favor of the new field
implementation.

It also updates the 10x26 field rationale to account for modern Go
additions and the new field.
@davecgh davecgh force-pushed the secp256k1_field64_updates branch from 5e58c54 to e017347 Compare July 8, 2026 03:36
@davecgh davecgh merged commit e017347 into decred:master Jul 8, 2026
32 checks passed
@davecgh davecgh deleted the secp256k1_field64_updates branch July 8, 2026 03:39
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.

3 participants