Skip to content

Commit

Permalink
chore: Add run local_node scripts (#33)
Browse files Browse the repository at this point in the history
* docs: add local_node scripts

* docs: add some parts for user convenience
  • Loading branch information
lovenoble authored Mar 5, 2024
1 parent b6c8276 commit 3eef00a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,48 @@ For now Ethermint is using go-ethereum v1.13.5, with fhEVM support.

If you want to go deeper in the code and need to add some breakpoints, follow this [tutorial](DEBUG.md) to build from sources and activate the debugger in vscode.

## How to run local node using codebase

Running a node locally currently requires building several different components. From a common parent folder, run the following commands:

### fhevm-tfhe-cli
```bash
git clone https://github.com/zama-ai/fhevm-tfhe-cli
cd fhevm-tfhe-cli

# for x86 CPUs
cargo build --features tfhe/x86_64-unix --release

# for ARM64
cargo build --features tfhe/aarch64-unix --release

sudo cp ./target/release/fhevm-tfhe-cli /usr/local/bin/
```

### fhevm-go
```bash
git clone https://github.com/Inco-fhevm/fhevm-go
cd fhevm-go
git submodule update --init --recursive
make build
```

### zbc-go-etherum
```bash
git clone https://github.com/Inco-fhevm/zbc-go-ethereum
```

### zbc-ethermint
```bash
git clone https://github.com/Inco-fhevm/zbc-ethermint
cd zbc-ethermint
make build-local
sudo cp ./build/incod /usr/local/bin/
./setup.sh
fhevm-tfhe-cli generate-keys -d ~/.incod/keys/network-fhe-keys
cp ./node_config.toml ~/.incod/config
./start.sh
```

## How to run using docker images from registry

Expand Down
4 changes: 4 additions & 0 deletions node_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[fhevm]

# Add mock functionality using trivial encrypt. DO NOT USE in production.
mock_ops_flag = true

0 comments on commit 3eef00a

Please sign in to comment.