Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

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
Contributor

@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
Contributor

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 force-pushed the feat/add-precompiles branch from 8ac5b61 to 54d04b3 Compare October 24, 2023 07:21
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move remaining precompiles to fhevm-go
2 participants