Skip to content

Commit

Permalink
doc: add info related to release v0.1.8 (#189)
Browse files Browse the repository at this point in the history
* doc: add info related to release v0.1.8

* ci: upgrade node version for deployment

* ci: fix image name in docker compose
  • Loading branch information
leventdem authored Aug 29, 2023
1 parent 2316600 commit 8456755
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# ZBC_DEVELOPMENT_PATH=../zbc-development
# ZBC_SOLIDITY_PATH=../zbc-solidity
# ZBC_FHE_TOOL_PATH=../zbc-fhe-tool
#LOCAL_BUILD=false
LOCAL_BUILD=true
LOCAL_BUILD=false
#LOCAL_BUILD=true
GOPRIVATE=github.com/zama-ai/*
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,35 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## [v0.1.8]

Evmos-node docker image: ghcr.io/zama-ai/evmos-node:v0.1.8

Evmos-node developer docker image: ghcr.io/zama-ai/evmos-dev-node:v0.1.8

**Major updates**:

* Add TFHE scalar division operation by @david-zama in [go-ethereum/pull/151](https://github.com/zama-ai/go-ethereum/pull/151)
* Add precompile to all releases by @tremblaythibaultl in [go-ethereum/pull/154](https://github.com/zama-ai/go-ethereum/pull/154)
* Fix gas estimation for explicit decryption by @dartdart26 in [go-ethereum/pull/155](https://github.com/zama-ai/go-ethereum/pull/155)

For build:

| Name | Type | version |
| :---------: | :--------: | :--------------------------------------: |
| go-ethereum | repository | v0.1.9 |
| ethermint | repository | v0.1.2 |
| tfhe-rs | repository | 0.3.1 |


For e2e test:

| Name | Type | version |
| :------------------: | :--------: | :-------------: |
| fhevm-solidity | repository | v0.1.9 |
| fhevm-tfhe-cli | repository | v0.2.0 |
| fhevm-decryptions-db | repository | v0.2.0 |

## [v0.1.7]

**This version includes a repository renaming!**
Expand Down
57 changes: 25 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ Please check the [CHANGELOG](./CHANGELOG.md) to get the last version of the publ

The quick start is to follow this [section](#from-github-package-registry)

Note: on arm64 we still have some issues, fixes are coming soon


# Local build

Expand Down Expand Up @@ -84,13 +82,13 @@ Dependencies:

## From sources

If the developer wants to build everything locally from sources, and run the e2e test this build is the more adapted.
If the developer wants to build everything locally from sources, and run the e2e test, this build is the more adapted.

Dependencies:

| Name | Type | Variable name | where it is defined |
| ----------- | ---------- | --------------- | ------------------- |
| evmos | repository | LOCAL_BUILD | .env |
| evmos | repository | LOCAL_BUILD | .env (set to true) |
| go-ethereum | repository | - | directly in go.mod |
| ethermint | repository | - | directly in go.mod |
| tfhe-rs | repository | TFHE_RS_VERSION | Makefile/.env |
Expand Down Expand Up @@ -138,12 +136,13 @@ CONTAINER ID IMAGE NAMES

To execute the e2e test, here are the dependencies:

| Name | Type | Variable name | where it is defined |
| ------------- | ---------- | --------------------- | ------------------- |
| evmos | repository | LOCAL_BUILD | .env |
| zbc-solidity | repository | ZBC_SOLIDITY_VERSION | Makefile/.env |
| zbc-fhe-tool | repository | ZBC_FHE_TOOL_VERSION | Makefile/.env |
| zbc-oracle-db | repository | ZBC_ORACLE_DB_VERSION | Makefile/.env |
| Name | Type | Variable name | where it is defined |
| -------------------- | ---------- | ---------------------------- | ------------------- |
| evmos | repository | LOCAL_BUILD | .env (set to true) |
| fhevm-solidity | repository | FHEVM_SOLIDITY_VERSION | Makefile/.env |
| fhevm-tfhe-cli | repository | FHEVM_TFHE_CLI_VERSION | Makefile/.env |
| fhevm-decryptions-db | repository | FHEVM_DECRYPTIONS_DB_VERSION | Makefile/.env |




Expand All @@ -164,11 +163,11 @@ make stop_evmos


- check you have all the needed repositories
- zbc-fhe-tool
- zbc-solidity
- zbc-oracledb
- fhevm-tfhe-cli
- fhevm-solidity
- fhevm-decryptions-db
- init evmos node by calling /config/setup.sh file
- generate fhe keys using zbc-fhe-tool based on scripts/prepare_volumes_from_fhe_tool.sh script
- generate fhe keys using fhevm-tfhe-cli based on scripts/prepare_volumes_from_fhe_tool.sh script
- copy them at the right folder using scripts/prepare_demo_local.sh script
- start evmosnodelocal0 and oracledb (local build) using docker-compose/docker-compose.local.yml file
- run the e2e test
Expand All @@ -188,12 +187,10 @@ Dependencies:

| Name | Type | Variable name | where it is defined |
| -------------------------- | ----------------- | ------------- | ---------------------------- |
| evmos | repository | LOCAL_BUILD | .env |
| evmos | repository | LOCAL_BUILD | .env (set to false) |
| ghcr.io/zama-ai/evmos-node | docker image name | hard-coded | docker-compose.validator.yml |




Init evmos and run it:

```bash
Expand All @@ -205,7 +202,7 @@ make run_evmos
Docker ps output:
```
CONTAINER ID IMAGE NAMES
02b40fb0bdf7 ghcr.io/zama-ai/evmos-node:v0.1.0 evmosnode0
02b40fb0bdf7 ghcr.io/zama-ai/evmos-node:v0.1.8 evmosnode0
ac2073c0d6fc ghcr.io/zama-ai/oracle-db-service:latest zbcoracledb
```

Expand All @@ -218,28 +215,24 @@ make run_evmos
make run_e2e_test
make stop_evmos
```
| Name | Type | Variable name | where it is defined |
| :------------------------: | :---------------: | :-------------------: | :--------------------------: |
| evmos | evmos | LOCAL_BUILD | .env |
| ghcr.io/zama-ai/evmos-node | docker image name | hard-coded | docker-compose.validator.yml |
| oracle-db-service | docker image name | hard-coded | docker-compose.validator.yml |
| zbc-solidity | repository | ZBC_SOLIDITY_VERSION | Makefile/.env |
| zbc-fhe-tool | repository | ZBC_FHE_TOOL_VERSION | Makefile/.env |
| zbc-oracle-db | repository | ZBC_ORACLE_DB_VERSION | Makefile/.env |


| Name | Type | Variable name | where it is defined |
| :------------------------: | :---------------: | :--------------------------: | :--------------------------: |
| evmos | evmos | LOCAL_BUILD | .env |
| ghcr.io/zama-ai/evmos-node | docker image name | hard-coded | docker-compose.validator.yml |
| oracle-db-service | docker image name | hard-coded | docker-compose.validator.yml |
| fhevm-solidity | repository | FHEVM_SOLIDITY_VERSION | Makefile/.env |
| fhevm-tfhe-cli | repository | FHEVM_TFHE_CLI_VERSION | Makefile/.env |
| fhevm-decryptions-db | repository | FHEVM_DECRYPTIONS_DB_VERSION | Makefile/.env |


Note:
- for the zbc-oracle-db docker image it could not work on arm64 because the arm64 version is not yet pushed in ghcr.io

<br />
<details>
<summary>Troubleshoot ghcr.io</summary>

Here is a tutorial on [how to manage ghcr.io access](https://github.com/zama-ai/zbc-fhe-tool#using-the-published-image-easiest-way).
Here is a tutorial on [how to manage ghcr.io access](https://github.com/zama-ai/fhevm-tfhe-cli#using-the-published-image-easiest-way).

If you get trouble to pull image from ghcri.io, one can build it locally with
If you get trouble to pull image from ghcr.io, one can build it locally with
```bash
docker build . -t zama-zbc-build -f docker/Dockerfile.zbc.build
```
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/docker-compose.validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
validator:
image: ghcr.io/zama-ai/evmos-node:v0.1.6
image: ghcr.io/zama-ai/evmos-node:v0.1.8
container_name: evmosnode0
ports:
- "26656-26657:26656-26657"
Expand All @@ -21,7 +21,7 @@ services:
ipv4_address: 192.167.10.2

oracledb:
image: ghcr.io/zama-ai/oracle-db-service:latest
image: ghcr.io/zama-ai/fhevm-decryptions-db:v0.1.5
container_name: zbcoracledb
security_opt:
- no-new-privileges:true
Expand Down

0 comments on commit 8456755

Please sign in to comment.