Skip to content

Commit

Permalink
fix: move go.mod at root
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Mar 5, 2024
1 parent c28dd9b commit 1b958f6
Show file tree
Hide file tree
Showing 39 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: build
build: build-tfhe-rs-capi
cd packages/fhevm && go build .
cd pkg/fhevm && go build .

.PHONY: test
test: build-tfhe-rs-capi
cd packages/fhevm && go test -v . \
cd pkg/fhevm && go test -v . \
&& cd ../tfhe && go test -v .

.PHONY: build-tfhe-rs-capi
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/holiman/uint256"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

// generate keys if not present
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/fhevm/evm.go → pkg/fhevm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/holiman/uint256"
fhevm_crypto "github.com/zama-ai/fhevm-go/crypto"
"github.com/zama-ai/fhevm-go/tfhe"
fhevm_crypto "github.com/zama-ai/fhevm-go/pkg/crypto"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

var protectedStorageAddrCallerAddr common.Address
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/fhevm/instructions.go → pkg/fhevm/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/ethereum/go-ethereum/common"
crypto "github.com/ethereum/go-ethereum/crypto"
"github.com/holiman/uint256"
fhevm_crypto "github.com/zama-ai/fhevm-go/crypto"
"github.com/zama-ai/fhevm-go/tfhe"
fhevm_crypto "github.com/zama-ai/fhevm-go/pkg/crypto"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
"go.opentelemetry.io/otel"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/holiman/uint256"
fhevm_crypto "github.com/zama-ai/fhevm-go/crypto"
"github.com/zama-ai/fhevm-go/tfhe"
fhevm_crypto "github.com/zama-ai/fhevm-go/pkg/crypto"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion packages/fhevm/interface.go → pkg/fhevm/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/holiman/uint256"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

type EVMEnvironment interface {
Expand Down
2 changes: 1 addition & 1 deletion packages/fhevm/interpreter.go → pkg/fhevm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package fhevm

import (
"github.com/ethereum/go-ethereum/common"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

type ScopeContext interface {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"

"github.com/ethereum/go-ethereum/common"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
"go.opentelemetry.io/otel/trace"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fhevm
import (
"encoding/hex"

"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

func fheLeRequiredGas(environment EVMEnvironment, input []byte) uint64 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/zama-ai/fhevm-go/kms"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/kms"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
"go.opentelemetry.io/otel/trace"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"

"github.com/ethereum/go-ethereum/common"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

func verifyCiphertextRequiredGas(environment EVMEnvironment, input []byte) uint64 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/holiman/uint256"
fhevm_crypto "github.com/zama-ai/fhevm-go/crypto"
"github.com/zama-ai/fhevm-go/tfhe"
fhevm_crypto "github.com/zama-ai/fhevm-go/pkg/crypto"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
"go.opentelemetry.io/otel/trace"
"golang.org/x/crypto/chacha20"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/bits"

"github.com/holiman/uint256"
"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

func fheRandRequiredGas(environment EVMEnvironment, input []byte) uint64 {
Expand Down
2 changes: 1 addition & 1 deletion packages/fhevm/otel.go → pkg/fhevm/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fhevm
import (
"math/big"

"github.com/zama-ai/fhevm-go/tfhe"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/fhevm/params.go → pkg/fhevm/params.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package fhevm

import "github.com/zama-ai/fhevm-go/tfhe"
import "github.com/zama-ai/fhevm-go/pkg/tfhe"

// This file contains default gas costs of fhEVM-related operations.
// Users can change the values based on specific requirements in their blockchain.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/ethereum/go-ethereum/common"
crypto "github.com/ethereum/go-ethereum/crypto"
"github.com/holiman/uint256"
fhevm_crypto "github.com/zama-ai/fhevm-go/crypto"
"github.com/zama-ai/fhevm-go/tfhe"
fhevm_crypto "github.com/zama-ai/fhevm-go/pkg/crypto"
"github.com/zama-ai/fhevm-go/pkg/tfhe"
)

// An arbitrary constant value to flag locations in protected storage.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion proto/kms.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package kms;
option go_package = "github.com/zama-ai/fhevm-go/kms";
option go_package = "github.com/zama-ai/fhevm-go/pkg/kms";

service KmsEndpoint {
rpc Validate_and_decrypt(DecryptionRequest) returns (DecryptionResponse);
Expand Down

0 comments on commit 1b958f6

Please sign in to comment.