-
Notifications
You must be signed in to change notification settings - Fork 49
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
refactor: resolve BigInt3 structure #354
refactor: resolve BigInt3 structure #354
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, I have run the CI and lint and unit tests have failed. Make sure to run make unit
in the project and fix the failing code. Also run golangci-lint run
and gofmt -w .
to lint the code
@MaksymMalicki the tests are failing due to a circular import issue emanating from the hinter package that the |
1146346
to
edde223
Compare
Hi @MoigeMatino, thank you for the contribution. I understand the problem and agree, that this functionality needs to be decoupled. However I don't think that creating a separate utility file just for BigInt3 is a good idea. I think it would be a better idea, to place this new utility where the problematic Edit: On the second thought, the placement of the
The problem should then solve itself, as the problematic functionality will be removed from the |
@MoigeMatino |
@MaksymMalicki Thanks for your response, this is well noted 👍🏽 |
@cicr99 Thanks for the response, on it 🚀 |
@cicr99 @MaksymMalicki I think creating a separate PR for moving |
Sure thing @MoigeMatino, let us know when the new PR is ready! Good luck! |
Will do, thanks @MaksymMalicki |
@MoigeMatino I've added the label |
@cicr99 that's fine and yes I'm currently working on issue #384. |
@MoigeMatino that's great! Could you comment on the issue #384 so we can assign you to it? |
@cicr99 Done. Apologies that #384 has taken a while, closing on this ASAP. |
@MoigeMatino now the problem with dependencies has been solved, you should be able to work on this issue again |
@MoigeMatino any update? |
@TAdev0 resolving a couple of issues, should be done soon. Will reach out in case of anything. |
draft: change file structure
Modified function definition by replacing reference to VM.VirtualMachine with Memory and performed ci linting
edde223
to
56074c4
Compare
@TAdev0 This PR is now ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MoigeMatino hi,
left 2 comments in your code.
So for now, you extracted the logic to create a helper function, in order to avoid code duplication. But you dont use this function. You should use it where it is needed in the codebase!
@MoigeMatino hey, I just tested locally and it shouldn't be that difficult. I copy pasted your code in memory_value.go file :
Then, i identified that this logic is used in zerohint_signatures.go AND zerohint_ec.go For example, in zerohint_signatures , line 45 :
can easily by replaced by :
you should do the same in other places where you can do it, in signatures and ec hint files |
@MoigeMatino
|
@MoigeMatino any update on this? |
@TAdev0 will be finishing on this from tomorrow, been having a busy week 😮💨 |
draft: change file structure
Modified function definition by replacing reference to VM.VirtualMachine with Memory and performed ci linting
…airo-vm-go into refactor-bigint3-structure
…solution logic Replaced the embedded code for resolving BigInt3 structures with the ResolveBigInt3 helper function to improve code readability and maintainability. This change reduces code duplication and ensures consistent logic for handling BigInt3 structures.
…airo-vm-go into refactor-bigint3-structure
Hi @TAdev0 👋🏾. I've pushed the changes. Must admit it took me having to study the code a bit more to properly address the changes that needed to be made. It was a fun weekend, I must say 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MoigeMatino left a minor comment, otherwise lgtm !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@MoigeMatino as Hari pointed out, please read the file entirely, y points are extracted in multiple places in the EC hint file |
…airo-vm-go into refactor-bigint3-structure
@TAdev0 This was an oversight on my part🙈, resolved the parsing of all y values in the EC hint file, changes pushed. |
looks good! |
What does this PR do?
Related Issues?