Comments (2)
You need to install sp1up, which you can do by adding:
RUN curl -L https://sp1.succinct.xyz | bash && ~/.sp1/bin/sp1up
from sp1.
Adding some more context here in case anyone else runs into this, this is what my final dockerfile looked like:
# Stage 1: Build the Go project
FROM --platform=amd64 golang:1.22 AS go-builder
# Stage 2: Build the Rust project
FROM --platform=linux/amd64 ghcr.io/succinctlabs/sp1:v1.0.5-testnet AS rust-builder
# Dependencies
RUN apt update && apt install -y clang libssl-dev pkg-config build-essential curl git
# Install Go 1.22
COPY --from=go-builder /usr/local/go /usr/local/go
ENV PATH="/usr/local/go/bin:$PATH"
ENV PATH="/root/.sp1/bin:$PATH"
RUN curl -L https://sp1.succinct.xyz | bash
WORKDIR /internal
# # Copy repo
COPY . /internal
RUN ~/.sp1/bin/sp1up --version v1.0.5-testnet
RUN cargo prove --version
RUN cargo build --bin fibonacci --release && \
cp target/release/fibonacci /fibonacci
ENTRYPOINT ["/fibonacci"]
Make sure you add ENV PATH="/root/.sp1/bin:$PATH"
to the path apart from running the download and installation command for sp1up
. Also make sure the installed version (here, v1.0.5-testnet
) and the version in your Cargo.toml
match.
Really appreciate @ctian1's help in debugging this
from sp1.
Related Issues (20)
- sp1up: set specific version HOT 2
- cargo prove --version showing commit hash, but not the more friendly tagged version (ex: testnet-1.0.4) HOT 1
- Fibbonacci problem (fresh from sp1-template) OOMs when proving HOT 1
- Plonk bn254 artifacts take extremely long time to load HOT 1
- Is normal that the program gets segmentfault when we run in debug mode? HOT 1
- Plonky3 EVM verifier? HOT 1
- v1.0.6-testnet: constraint #1685 is not satisfied HOT 1
- Question about the `secp256k1::verify_signature` in precompiles HOT 5
- EVM proving example fails with error HOT 4
- Add max cycles parameter to `ProverClient` `{execute, prove}` HOT 1
- Succinct Toolchain Installation Issue for the Sample Program HOT 1
- Denial of Service on Verifier - Verifier can panic due to assert_eq!() statement HOT 1
- mul_assign will panic if scalar is zero
- Unused variable `shard_main_datas` HOT 1
- The usage about the `secp256k1::ecrecover` in `zkvm::precompiles`
- BN254 Patched Crate
- [docs] Wrong default and path in quickstart guide and program does not allow for proofs for n larger 186
- Problems about `poseidon2_wide` in `recursion`
- error: could not compile `syn` (build script) due to 1 previous error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp1.