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

add remaining ops to the fhelib precompile #19

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Conversation

youben11
Copy link
Member

@youben11 youben11 commented Oct 23, 2023

Fixes #14

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 👍 all our operator tests seem to pass in solidity library

fhevm/crypto.go Outdated

// CreateProtectedStorageAddress creates an ethereum contract address for protected storage
// given the corresponding contract address
func CreateProtectedStorageContractAddress(b common.Address) common.Address {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: to have less files I'd put this standalone function in evm.go that contains the utility functions of our precompiles

Copy link
Member Author

Choose a reason for hiding this comment

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

I can move it yeah. Reading Petar's PR here I also find that he makes a reference to fhevm-go/crypto while I don't think it's available right now, right? Would this solve it?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh my bad, it already exists! I will update the PR

@youben11 youben11 merged commit 603b7ed into main Oct 24, 2023
1 check passed
@youben11 youben11 deleted the feat/add-precompiles branch October 24, 2023 08:45
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.

Move remaining precompiles to fhevm-go
2 participants