Skip to content

Commit

Permalink
docs: cleanup docs and setup install prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 authored and austbot committed Oct 29, 2024
1 parent f8e810b commit 7b2fa28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions bin/setup.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash

set -e

INSTALL_PREFIX=
DEFAULT_INSTALL_PREFIX="/opt/risc0-prover"
DEFAULT_INSTALL_PREFIX="."

function parse_arguments() {
# Initialize variables with default values
PROVER_PROVIDER_URL="${DEFAULT_PROVER_PROVIDER_URL}"
INSTALL_PREFIX="${DEFAULT_INSTALL_PREFIX}"
JOB_TIMEOUT="${DEFAULT_JOB_TIMEOUT}"
PROVER_VERSION="${DEFAULT_VERSION}"

# Loop through all arguments
while [[ "$#" -gt 0 ]]; do
case "$1" in
Expand Down Expand Up @@ -43,6 +39,7 @@ function parse_arguments() {
echo "INSTALL_PREFIX is set to '$INSTALL_PREFIX'"
}

parse_arguments "$@"

if [ ! -f "${INSTALL_PREFIX}/stark/stark_verify" ]; then
echo "Error: Bonsol default to checking for the groth16 compression tool to be located at ${INSTALL_PREFIX}/stark"
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/contributing/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Great! Our tools are there. Let's run the `simple` example already provided from
#### Prerequisites
If this is your first time running bonsol install the Risc0 Groth16 Prover:
```bash
./bin/install_prover.sh --prefix /opt/risc0-prover
./bin/install_prover.sh --prefix .
```

The solona cli must be configured. This configuration is typically found in `${HOME}/.config/solana/cli/config.yml`
Expand All @@ -54,7 +54,7 @@ solana-keygen new -o ${HOME}/.config/solana/id.json

1. Download and setup the system with the needed binaries and keys to run the groth16 prover over the risc0 FRI
```bash
./bin/setup.sh --prefix /opt/risc0-prover
./bin/setup.sh --prefix .
```
2. Compile the 乃ㄖ几丂ㄖㄥ on chain program and start a localnet with the program loaded
```bash
Expand Down

0 comments on commit 7b2fa28

Please sign in to comment.