Skip to content

Commit

Permalink
Update Requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
xander42280 committed Aug 19, 2024
1 parent 5171760 commit 4685339
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions service/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* Compile the Go code to MIPS

Write your own hello.go, and compile with(Recommended use golang1.20)
Write your own hello.go, and compile

```
$ GOOS=linux GOARCH=mips GOMIPS=softfloat go build hello.go -o /tmp/zkm/test/hello_world
Expand All @@ -13,13 +13,7 @@ $ GOOS=linux GOARCH=mips GOMIPS=softfloat go build hello.go -o /tmp/zkm/test/hel
If you build your own server, you can use Docker Compose (The image is built based on AMD64)

Minimum Requirements
| SEG_SIZE | RAM |
| ------- | ------- |
| 1024 | 16G |
| 16384 | 28.2G |
| 32768 | 95.2G |
| 65536 | 96.3G |
| 262144 | 130.1G |
At least 64GB of memory is required

```
$ docker-compose up -d
Expand All @@ -42,7 +36,7 @@ $ RUST_LOG=info ELF_PATH=/tmp/zkm/test/hello_world OUTPUT_DIR=/tmp/zkm/test ENDP

## [Minigeth](https://github.com/zkMIPS/cannon-mips)

* Compile the minigeth_mips Please use Golang1.20 version
* Compile the minigeth_mips

```
$ git clone https://github.com/zkMIPS/cannon-mips
Expand Down Expand Up @@ -84,13 +78,12 @@ $ cargo build --release --target=mips-unknown-linux-musl

* Adjust parameter request stage service

Name | Description
------------ | ------------
ENDPOINT | zkm-prover service endpoint
CA_CERT_PATH | zkm-prover service CA CERT
PRIVATE_KEY | wallet private key, used for message signing
ELF_PATH | the file compiled in the previous step
PUBLIC_INPUT_PATH | Output file for the Generate Suite_json step
- `ENDPOINT`: zkm-prover service endpoint
- `CA_CERT_PATH`: zkm-prover service CA CERT
- `PRIVATE_KEY`: wallet private key, used for message signing
- `ELF_PATH`: the file compiled in the previous step
- `PUBLIC_INPUT_PATH`: Output file for the Generate Suite_json step

```
$ export RUST_LOG=info
$ ENDPOINT=... CA_CERT_PATH=... PRIVATE_KEY=... ELF_PATH=...revm SEG_SIZE=262144 PUBLIC_INPUT_PATH=... cargo run --release --example stage
Expand Down

0 comments on commit 4685339

Please sign in to comment.