Skip to content

Commit

Permalink
feat: SP1 3.0.0 (#66)
Browse files Browse the repository at this point in the history
* feat: update to 3.0.0

* 3.0.0

* vkey

* sp1 3.0.0

* feat: turn off autodeploy for mainnet
  • Loading branch information
ratankaliani authored Oct 29, 2024
1 parent 6b53cff commit a968976
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 357 deletions.
490 changes: 140 additions & 350 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ blake2 = "0.10.6"
itertools = "0.10.5"
alloy = { version = "0.1.1", features = ["full"] }

sp1-sdk = "2.0.0"
sp1-build = "2.0.0"
sp1-sdk = "3.0.0"
sp1-build = "3.0.0"

reqwest = { version = "0.11.20", features = ["json"] }
futures = "0.3.30"
Expand Down
Binary file modified elf/sp1-vector-docker
Binary file not shown.
2 changes: 1 addition & 1 deletion program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
[dependencies]
sp1-vector-primitives.workspace = true
alloy-sol-types.workspace = true
sp1-zkvm = "2.0.0"
sp1-zkvm = "3.0.0"
2 changes: 1 addition & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ services:
rootDir: script
buildCommand: rm -rf build.rs && cargo build --bin operator --release
startCommand: cargo run --bin operator --release
autoDeploy: true
autoDeploy: false
envVars:
- key: CHAIN_ID
value: 1
Expand Down
4 changes: 4 additions & 0 deletions script/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ path = "bin/operator.rs"
name = "genesis"
path = "bin/genesis.rs"

[[bin]]
name = "vkey"
path = "bin/vkey.rs"

[[bin]]
name = "test"
path = "bin/test.rs"
Expand Down
12 changes: 12 additions & 0 deletions script/bin/vkey.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use sp1_sdk::{HashableKey, ProverClient};
use sp1_vectorx_script::SP1_VECTOR_ELF;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = ProverClient::new();
let (_pk, vk) = client.setup(SP1_VECTOR_ELF);

println!("VK={}", vk.bytes32());

Ok(())
}
3 changes: 0 additions & 3 deletions script/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
use sp1_build::{build_program_with_args, BuildArgs};

fn main() {
// TODO: Re-add this once the Docker changes are merged with a new SP1 release.
// println!("Building program...");
// build_program_with_args(
// "../program",
// BuildArgs {
Expand All @@ -12,5 +10,4 @@ fn main() {
// ..Default::default()
// },
// );
// println!("Program built successfully!");
}

0 comments on commit a968976

Please sign in to comment.