Skip to content

chore: Simplify point decoding logic#267

Merged
garyschulte merged 4 commits intobesu-eth:mainfrom
kevaundray:kw/simplify-point-decode-logic
Apr 28, 2025
Merged

chore: Simplify point decoding logic#267
garyschulte merged 4 commits intobesu-eth:mainfrom
kevaundray:kw/simplify-point-decode-logic

Conversation

@kevaundray
Copy link
Copy Markdown
Contributor

Based off of #264

@kevaundray kevaundray marked this pull request as ready for review March 19, 2025 21:49
@kevaundray
Copy link
Copy Markdown
Contributor Author

Whether we want this depends on if we do the nested if condition in #262

With this change, we always do a isOnCurveCheck and optionally do a subgroup check (from the API perspective), whereas in 262, we do a IsOnCurveCheck and a subgroup check at once, then depending on the outcome we do a isOnCurveCheck to distinguish the error

@matkt matkt requested a review from garyschulte April 17, 2025 06:45
@garyschulte
Copy link
Copy Markdown
Contributor

LGTM, benchmarks appear essentially unchanged:
image

@garyschulte garyschulte force-pushed the kw/simplify-point-decode-logic branch from 30533fd to 6e68096 Compare April 25, 2025 23:41
@garyschulte
Copy link
Copy Markdown
Contributor

this diff includes 262 (simplest method to get CI to run), and can be rebased once it merges

garyschulte and others added 4 commits April 28, 2025 06:55
…g unless the combined subgroup check fails

Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: Kevaundray Wedderburn <kevtheappdev@gmail.com>
@garyschulte garyschulte force-pushed the kw/simplify-point-decode-logic branch from 6e68096 to 81eadb7 Compare April 28, 2025 13:56
@garyschulte garyschulte enabled auto-merge (squash) April 28, 2025 13:56
@garyschulte garyschulte merged commit b2b17e6 into besu-eth:main Apr 28, 2025
12 checks passed
@garyschulte garyschulte mentioned this pull request Jun 9, 2025
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