Skip to content

Commit

Permalink
feat(fhelib): support all ops in fhelib precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Oct 23, 2023
1 parent f518a9d commit 8ac5b61
Show file tree
Hide file tree
Showing 4 changed files with 1,868 additions and 57 deletions.
12 changes: 12 additions & 0 deletions fhevm/crypto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package fhevm

import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
)

// CreateProtectedStorageAddress creates an ethereum contract address for protected storage
// given the corresponding contract address
func CreateProtectedStorageContractAddress(b common.Address) common.Address {
return crypto.CreateAddress(b, 0)
}
Loading

0 comments on commit 8ac5b61

Please sign in to comment.