From 73cae1cd775b670fc70c5f67d10eae000eaa8aaa Mon Sep 17 00:00:00 2001 From: Levent Demir Date: Fri, 23 Jun 2023 14:59:01 +0200 Subject: [PATCH 1/4] build: update tfhe-rs version to 0.3.0-beta.0 --- install_thfe_rs_api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_thfe_rs_api.sh b/install_thfe_rs_api.sh index 8f3b0768f..2b9256dbc 100755 --- a/install_thfe_rs_api.sh +++ b/install_thfe_rs_api.sh @@ -1,7 +1,7 @@ #!/bin/bash git clone https://github.com/zama-ai/tfhe-rs.git -git checkout 1d817c45d5234bcf33638406191b656998b30c2a +git checkout 0.3.0-beta.0 mkdir -p core/vm/lib cd tfhe-rs make build_c_api From 4c688232045e5e0f6d3b9b19ff9f67b5d60deeb3 Mon Sep 17 00:00:00 2001 From: Levent Demir Date: Fri, 23 Jun 2023 15:26:59 +0200 Subject: [PATCH 2/4] chore(ci): bump tfhe-rs verison in ci workflow --- .github/workflows/publish_geth_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_geth_testing.yml b/.github/workflows/publish_geth_testing.yml index b90ad79b0..3ab226514 100644 --- a/.github/workflows/publish_geth_testing.yml +++ b/.github/workflows/publish_geth_testing.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v3 with: repository: zama-ai/tfhe-rs - ref: 1d817c45d5234bcf33638406191b656998b30c2a + ref: 0.3.0-beta.0 path: tfhe-rs - name: Checkout zbc-fhe-tool From c6b8db0dfc73462629647b6a89c444c7ad1531fe Mon Sep 17 00:00:00 2001 From: Levent Demir Date: Fri, 23 Jun 2023 16:20:30 +0200 Subject: [PATCH 3/4] chore(build c api): call deterministic build of C api as in the workflow (ci test) --- install_thfe_rs_api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_thfe_rs_api.sh b/install_thfe_rs_api.sh index 2b9256dbc..effe423cd 100755 --- a/install_thfe_rs_api.sh +++ b/install_thfe_rs_api.sh @@ -4,6 +4,6 @@ git clone https://github.com/zama-ai/tfhe-rs.git git checkout 0.3.0-beta.0 mkdir -p core/vm/lib cd tfhe-rs -make build_c_api +make build_c_api_experimental_deterministic_fft cp target/release/libtfhe.* ../core/vm/lib cp target/release/tfhe.h ../core/vm From 831a6f58b7c0345e9e0ae6f07d8c4747dbc15914 Mon Sep 17 00:00:00 2001 From: Levent Demir Date: Mon, 26 Jun 2023 11:52:11 +0200 Subject: [PATCH 4/4] ci: fix the failing error in the ci --- core/vm/tfhe_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/vm/tfhe_test.go b/core/vm/tfhe_test.go index 58c02d709..5ec189898 100644 --- a/core/vm/tfhe_test.go +++ b/core/vm/tfhe_test.go @@ -148,7 +148,9 @@ func TfheTrivialSerializeDeserialize(t *testing.T, fheUintType fheUintType) { func TfheDeserializeFailure(t *testing.T, fheUintType fheUintType) { ct := new(tfheCiphertext) - err := ct.deserialize(make([]byte, 10), fheUintType) + input := make([]byte, 1) + input[0] = 42 + err := ct.deserialize(input, fheUintType) if err == nil { t.Fatalf("deserialization must have failed") }