Skip to content

Commit

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

* build with 3.0.0, simplify build script

* add"
  • Loading branch information
ratankaliani authored Oct 26, 2024
1 parent 5063135 commit 053c73e
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 86 deletions.
123 changes: 55 additions & 68 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ op-alloy-rpc-types-engine = { version = "0.4.0", default-features = false }
op-alloy-network = { version = "0.4.0", default-features = false }

# sp1
sp1-lib = { version = "3.0.0-rc3", features = ["verify"] }
sp1-zkvm = { version = "3.0.0-rc3", features = ["verify"] }
sp1-sdk = { version = "3.0.0-rc3" }
sp1-build = { version = "3.0.0-rc3" }
sp1-lib = { version = "3.0.0", features = ["verify"] }
sp1-zkvm = { version = "3.0.0", features = ["verify"] }
sp1-sdk = { version = "3.0.0" }
sp1-build = { version = "3.0.0" }

[profile.release-client-lto]
inherits = "release"
Expand All @@ -95,7 +95,6 @@ lto = "fat"
[patch.crates-io]
tiny-keccak = { git = "https://github.com/sp1-patches/tiny-keccak", branch = "patch-v2.0.2" }
sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha2", branch = "patch-sha2-v0.10.8" }
# TODO: Update this to patch-ecdsa-v0.16.8 when updating SP1 to v3.0.0.
ecdsa = { git = "https://github.com/sp1-patches/signatures", branch = "ratan/secp256k1-add-fixes-v0.16.8" }
ecdsa = { git = "https://github.com/sp1-patches/signatures", branch = "patch-ecdsa-v0.16.8" }
bn = { git = "https://github.com/0xWOLAND/bn.git", package = "substrate-bn" }
sha3 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha3", branch = "patch-sha3-v0.10.8" }
16 changes: 8 additions & 8 deletions contracts/opsuccinctl2ooconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"challenger": "0x0000000000000000000000000000000000000000",
"finalizationPeriod": 0,
"l2BlockTime": 2,
"l2BlockTime": 10,
"proposer": "0xDEd0000E32f8F40414d3ab3a830f735a3553E18e",
"rollupConfigHash": "0x8dad3aa88de72762859feb6781d937efa8f39c8b681a51443b0abfde108fbbcd",
"startingBlockNumber": 3730147,
"startingOutputRoot": "0xf407882134911ff651913f160094a25432595681e8d80780beb0d3bab091cd75",
"startingTimestamp": 1729812782,
"submissionInterval": 10,
"rollupConfigHash": "0x7ca9e1e9829e0e28c934debd1adab0592b4a906d48b01d750ec46c02d09ad833",
"startingBlockNumber": 189844,
"startingOutputRoot": "0x349580265330723772a762b228da0b4f2488d8aa89e3716a47e4ab3e23e018f8",
"startingTimestamp": 1729904164,
"submissionInterval": 1200,
"verifierGateway": "0x3B6041173B80E77f038f3F2C0f9744f04837185e",
"aggregationVkey": "0x005b650a80bf636cca3ec505db06e8feed106518ddb60ddc676ba2a60b3d996e",
"rangeVkeyCommitment": "0x65f38ee76137657870e8ea9c700ba929050206996b86e596264399302636ecde"
"aggregationVkey": "0x00bc1916ee812b6de22411eb6f13b36b05ae09845535c99cb0f27176674c3064",
"rangeVkeyCommitment": "0x05d515a12d9e84e55ae64bf9427d2dc63f32b97841cf0fe822c67d1b31238624"
}
Binary file modified elf/aggregation-elf
Binary file not shown.
Binary file modified elf/fault-proof-elf
Binary file not shown.
Binary file modified elf/range-elf
Binary file not shown.
4 changes: 0 additions & 4 deletions scripts/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ homepage.workspace = true
name = "fetch-and-save-proof"
path = "bin/fetch_and_save_proof.rs"

[[bin]]
name = "update-vkeys"
path = "bin/update_vkeys.rs"

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

0 comments on commit 053c73e

Please sign in to comment.