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

Ec slope hint #257

Merged
merged 36 commits into from
Sep 21, 2023
Merged

Ec slope hint #257

merged 36 commits into from
Sep 21, 2023

Conversation

mmsc2
Copy link
Contributor

@mmsc2 mmsc2 commented Sep 19, 2023

No description provided.

@mmsc2 mmsc2 linked an issue Sep 19, 2023 that may be closed by this pull request
@mmsc2 mmsc2 marked this pull request as ready for review September 19, 2023 18:51
pkg/hints/ec_hint.go Outdated Show resolved Hide resolved
Copy link
Contributor

@fmoletta fmoletta left a comment

Choose a reason for hiding this comment

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

Integration test?

@mmsc2
Copy link
Contributor Author

mmsc2 commented Sep 19, 2023

Integration test?

I just try but there is still unimplemented hints to do an integration test

pkg/hints/ec_hint.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2023

Codecov Report

Merging #257 (81b3430) into main (1cdb017) will increase coverage by 0.14%.
The diff coverage is 63.63%.

@@            Coverage Diff             @@
##             main     #257      +/-   ##
==========================================
+ Coverage   58.61%   58.75%   +0.14%     
==========================================
  Files          41       42       +1     
  Lines        5318     5383      +65     
==========================================
+ Hits         3117     3163      +46     
- Misses       1937     1947      +10     
- Partials      264      273       +9     
Files Changed Coverage Δ
pkg/hints/hint_utils/secp_utils.go 0.00% <0.00%> (ø)
pkg/hints/ec_hint.go 66.37% <67.85%> (+9.00%) ⬆️
pkg/hints/hint_processor.go 98.34% <100.00%> (+0.05%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@entropidelic
Copy link
Contributor

A general comment for the whole PR, let's be consistent with the naming conventions, like using camel case and shorter names when applicable (for example, vm instead of virtual_machine or virtualMachine).

@entropidelic
Copy link
Contributor

other than the namings, PR looks good 👍

func BigInt3FromVarName(name string, virtual_machine vm.VirtualMachine, ids_data hint_utils.IdsManager) (EcPoint, error) {
point_addr, err := ids_data.GetAddr(name, &virtual_machine)
func EcPointFromVarName(name string, vm VirtualMachine, idsData IdsManager) (EcPoint, error) {
point_addr, err := idsData.GetAddr(name, &vm)
Copy link
Contributor

Choose a reason for hiding this comment

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

pointAddr

if err != nil {
return err
}

y_bigint3, err := BigInt3FromBaseAddr(point_y, virtual_machine)
y_bigint3, err := BigInt3FromBaseAddr(pointY, vm)
Copy link
Contributor

Choose a reason for hiding this comment

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

yBigint3

@entropidelic entropidelic added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit 102682a Sep 21, 2023
2 checks passed
@entropidelic entropidelic deleted the EcSlopeHint branch September 21, 2023 15:40
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.

EC SLOPE hints
5 participants