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

refactor: clean and separate the fhelib #83

Merged
merged 1 commit into from
Feb 14, 2024
Merged

refactor: clean and separate the fhelib #83

merged 1 commit into from
Feb 14, 2024

Conversation

youben11
Copy link
Member

The goal was to:

  • separate the fhelib from the precompiles
  • replace the big switches in Run/GasCost in the precompile by a map

Separating every fhelib function into a separate file would be way better, but would lead to so many files, which is not really convenient. Another option was to separate the fhelib into a separate package where we could have put every fhelib method into a different file, but that also lead to cyclic import issues as the fhevm and fhelib are quite related.

Copy link
Collaborator

@david-zk david-zk left a comment

Choose a reason for hiding this comment

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

Looking good 💪

fhevm/fhelib.go Outdated Show resolved Hide resolved
Copy link
Contributor

@immortal-tofu immortal-tofu left a comment

Choose a reason for hiding this comment

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

Good job!

@youben11 youben11 merged commit 0be0db2 into main Feb 14, 2024
2 checks passed
@youben11 youben11 deleted the refactor/fhelib branch February 14, 2024 15:56
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