Skip to content

Commit a1f03d4

Browse files
authored
feat(coprocessor): host-listener + transaction-sender, delegations (#1092)
* feat(coprocessor): host-listener + transaction-sender, delegations * fix(host-contracts): delegations, expiry/expiration * test(test-suite): delegate user decryption, happy path test * test(coprocessor): host-listener, faster test * fix(coprocessor): update delegation db expiration date type
1 parent 657a07e commit a1f03d4

File tree

50 files changed

+2223
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2223
-159
lines changed

.github/workflows/test-suite-e2e-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ jobs:
182182
run: |
183183
./fhevm-cli test public-decrypt-http-mixed
184184
185+
- name: Delegate User Decryption (partial test)
186+
working-directory: test-suite/fhevm
187+
run: |
188+
./fhevm-cli test delegate-user-decryption
189+
185190
- name: Show logs on test failure
186191
working-directory: test-suite/fhevm
187192
if: always()

charts/coprocessor/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: coprocessor
22
description: A helm chart to distribute and deploy Zama fhevm Co-Processor services
3-
version: 0.7.3
3+
version: 0.7.4
44
apiVersion: v2
55
keywords:
66
- fhevm

charts/coprocessor/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,16 @@ txSender:
757757
- --gas-limit-overprovision-percent=120
758758
- --graceful-shutdown-timeout=8s
759759
- --service-name=txn-sender
760+
# New in 0.10
760761
- --metric-host-txn-latency=0.1:60.0:0.1
761762
- --metric-zkproof-txn-latency=0.1:60.0:0.1
762763
- --gauge-update-interval-secs=10
764+
- --host-chain-url=$(ETHEREUM_RPC_URL)
765+
- --delegation-block-delay=10 # not applied immediately to avoid reorg
766+
- --delegation-clear-after-n_blocks=648000 # ~3 months at 12s block time, only on successful delegations
767+
- --delegation-fallback-polling=30 # polling fallback in seconds when notification are not received
768+
- --delegation-max-retry=100000 # does not include immediate retry on transient error which are infinite
769+
- --retry-immediately-on-nonce-error=2 # nonce error happens as error from one transaction can invalidate other nonce
763770

764771
# Service ports configuration
765772
ports:

coprocessor/fhevm-engine/.sqlx/query-1c23ffbe8e1840eb63722e1d1811ba32941e6d8bc4d5c369edef3a66d622a46e.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-49df3987b4d6dd11618ff2654434c824fcb9be9a0ca96d4db4712fce6888dfbd.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-716311a203bbae991195af32e0d5da036f2cbd318140bb898c16130192da8263.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-7baf37d2fc7d679f43113aaca360cabb4213aa8bb3572f521e7f37d5224c3759.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-a5631e0977691e152b0e25d1f2c53d39302e5f3436c7790a6f0824330bd1fb3a.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-ac06d348f1c67ccd28d7366a1d81ca221f8e611fa06a25dec4fa538e7157f293.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-bbd25e5c5690ba1ce84d97a39c7a979b8c36ff03dafefe054b2884fb4cc8d13d.json

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)