-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from zama-ai/davidk/native-fhevm-go
feat: sketch for the initial native api of go ethereum
- Loading branch information
Showing
11 changed files
with
2,798 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.22.0' | ||
|
||
- name: Run tests | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "tfhe-rs"] | ||
path = tfhe-rs | ||
url = https://github.com/zama-ai/tfhe-rs.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
fhevm/executor.pb.go: ../../proto/executor.proto ../../proto/common.proto | ||
protoc \ | ||
--proto_path=../../proto/ \ | ||
--go_opt=paths=source_relative \ | ||
--go_opt=Mprotos/executor.proto=github.com/zama-ai/fhevm-backend/fhevm-engine/fhevm-go-native \ | ||
--go_opt=Mprotos/common.proto=github.com/zama-ai/fhevm-backend/fhevm-engine/fhevm-go-native \ | ||
--go-grpc_out=./fhevm/ --go-grpc_opt=paths=source_relative \ | ||
--go_out=./fhevm/ \ | ||
executor.proto common.proto | ||
|
||
.PHONY: build | ||
build: fhevm/executor.pb.go | ||
cd fhevm && go build . | ||
|
||
.PHONY: run | ||
run: fhevm/executor.pb.go | ||
cd fhevm && go run . | ||
|
||
.PHONY: test | ||
test: fhevm/executor.pb.go | ||
cd fhevm && go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# fhevm-go-native |
Oops, something went wrong.