Skip to content

Commit

Permalink
Merge pull request #2 from zama-ai/feat/reduce-process-time-KMS
Browse files Browse the repository at this point in the history
feat: use last gateway image for faster async dec response with new e…
  • Loading branch information
leventdem authored Jun 28, 2024
2 parents 4994e73 + e96fecd commit 2cefa8e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Execute the following commands:
```bash
# Init node and copy or gen fhe keys
make init-ethermint-node
# Run fhEVM + full KMS components
# Run fhEVM + full KMS components
make run-full
# Deploy ACL, Gateway ...
# Deploy ACL, Gateway ..., please wait until the end before testing!!!
make prepare-e2e-test
# This test will fail (first event catch is buggy - we are on it)
make run-async-test
Expand All @@ -34,6 +34,8 @@ make run-async-test
make run-true-input-async-test
# Manual test
cd work_dir/fhevm & npx hardhat test --grep 'test async decrypt uint32'
cd work_dir/fhevm & npx hardhat test --grep 'test async decrypt uint64'
cd work_dir/fhevm & npx hardhat test --grep 'test async decrypt several addresses'
```


Expand Down
12 changes: 9 additions & 3 deletions docker-compose/docker-compose-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zama-kms
services:

kv-store:
image: ghcr.io/zama-ai/kms-blockchain-gateway-dev:aa90d98
image: ghcr.io/zama-ai/kms-blockchain-gateway-dev:3057a02
command:
- "kv_store"
ports:
Expand Down Expand Up @@ -34,14 +34,18 @@ services:
- ASC_CONN__BLOCKCHAIN__ADDRESSES=http://blockchain-validator:9090
- ASC_CONN__CORE__ADDRESSES=http://core:50051
- ASC_CONN__STORE__URL=http://kv-store:8088
- ASC_CONN__CORE__TIMEOUT_CONFIG__DECRYPTION__INITIAL_WAIT_TIME=1
- ASC_CONN__CORE__TIMEOUT_CONFIG__DECRYPTION__RETRY_INTERVAL=1
- ASC_CONN__CORE__TIMEOUT_CONFIG__REENCRYPTION__INITIAL_WAIT_TIME=1
- ASC_CONN__CORE__TIMEOUT_CONFIG__REENCRYPTION__RETRY_INTERVAL=1
depends_on:
blockchain-validator:
condition: service_healthy
core:
condition: service_healthy

core:
image: ghcr.io/zama-ai/kms-service-dev:aa90d98
image: ghcr.io/zama-ai/kms-service-dev:3057a02
ports:
- "50051:50051"
healthcheck:
Expand All @@ -52,7 +56,9 @@ services:
start_period: 10s

gateway:
image: ghcr.io/zama-ai/kms-blockchain-gateway-dev:aa90d98
image: ghcr.io/zama-ai/kms-blockchain-gateway-dev:3057a02
ports:
- "7077:7077"
command:
- "gateway"
volumes:
Expand Down

0 comments on commit 2cefa8e

Please sign in to comment.