Skip to content

Commit

Permalink
update env script
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft committed Oct 20, 2024
1 parent 7d33831 commit d7cb44b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion script/prove-block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ elif [ "$proof" == "sp1" ]; then
"sp1": {
"recursion": "plonk",
"prover": "network",
"verify": false
"verify": true
}
'
elif [ "$proof" == "sp1-aggregation" ]; then
Expand Down
23 changes: 19 additions & 4 deletions script/setup-bonsai.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
#!/usr/bin/env bash

# Environment variables
BONSAI_API_KEY="1234"
BONSAI_API_URL="https://api.bonsai.xyzz/"
GROTH16_VERIFIER_ADDRESS="3d24C84FC1A2B26f9229e58ddDf11A8dfba802d0"
GROTH16_VERIFIER_RPC_URL="https://sepolia.infura.io/v3/4c76691f5f384d30bed910018c28ba1d"
# risc0
BONSAI_API_KEY=$BONSAI_API_KEY
BONSAI_API_URL=$BONSAI_API_URL
# reference verifier was deployed in holesky
GROTH16_VERIFIER_RPC_URL=https://ethereum-holesky-rpc.publicnode.com
# v1.1.2
GROTH16_VERIFIER_ADDRESS=0x3098D568e8E7E158D1a84233182C5fC60f50c16a

# sp1
SP1_PROVER=network
SKIP_SIMULATION=true
PROVER_NETWORK_RPC=$PROVER_NETWORK_RPC
SP1_PRIVATE_KEY=$SP1_PRIVATE_KEY
# reference verifier was deployed in holesky
SP1_VERIFIER_RPC_URL=https://ethereum-holesky-rpc.publicnode.com
# v2.0.0
# export SP1_VERIFIER_ADDRESS=0x35500C6fdfc4d57582672CE32A55B9a3fB48292d
# v3.0.0-rc3
SP1_VERIFIER_ADDRESS=0x7089666D4fEcca134D1a6d2636b03e2087B52e97

# Function to set environment variable persistently
set_persistent_env() {
Expand Down

0 comments on commit d7cb44b

Please sign in to comment.