Skip to content

Commit

Permalink
Chore: Update c-kzg patch (#134)
Browse files Browse the repository at this point in the history
* update kzg patch

* cleanup deps
  • Loading branch information
hashcashier authored Dec 19, 2024
1 parent 30f4a2e commit 11d9ab3
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 40 deletions.
5 changes: 1 addition & 4 deletions guests/reth-ethereum/Cargo.lock

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

6 changes: 0 additions & 6 deletions guests/reth-ethereum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ path = "../../crates/core-ethereum"
default-features = false

[dependencies]
anyhow = { version = "1.0.86", default-features = false }
c-kzg = { version = "=1.0.3", features = ["risc0-ffi"] }
lazy_static = "1.5.0"

reth-chainspec = { git = "https://github.com/risc0/reth", branch = "p1.1.0_zstd", default-features = false, features = [
"std",
] }

[patch.crates-io]
c-kzg = { git = "https://github.com/risc0/c-kzg-4844.git", branch = "p1.0.3" }
Expand Down
10 changes: 0 additions & 10 deletions guests/reth-ethereum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// use c_kzg::KzgSettings;
use risc0_zkvm::guest::env;
use zeth_core::db::trie::TrieDB;
use zeth_core::stateless::client::StatelessClient;
use zeth_core_ethereum::{RethCoreDriver, RethStatelessClient};
// todo: use this instead of the alloy KzgEnv to save cycles
// lazy_static::lazy_static! {
// /// KZG Ceremony data
// pub static ref KZG: (Vec<u8>, KzgSettings) = {
// let mut data = Vec::from(include_bytes!("../kzg_settings_raw.bin"));
// let settings = KzgSettings::from_u8_slice(&mut data);
// (data, settings)
// };
// }

#[no_mangle]
pub extern "C" fn __ctzsi2(x: u32) -> usize {
Expand Down
5 changes: 1 addition & 4 deletions guests/reth-optimism/Cargo.lock

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

6 changes: 0 additions & 6 deletions guests/reth-optimism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ path = "../../crates/core-optimism"
default-features = false

[dependencies]
anyhow = { version = "1.0.86", default-features = false }
c-kzg = { version = "=1.0.3", features = ["risc0-ffi"] }
lazy_static = "1.5.0"

reth-optimism-chainspec = { git = "https://github.com/risc0/reth", branch = "p1.1.0_zstd", default-features = false, features = [
"std",
] }

[patch.crates-io]
c-kzg = { git = "https://github.com/risc0/c-kzg-4844.git", branch = "p1.0.3" }
Expand Down
10 changes: 0 additions & 10 deletions guests/reth-optimism/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// use c_kzg::KzgSettings;
use risc0_zkvm::guest::env;
use zeth_core::db::trie::TrieDB;
use zeth_core::stateless::client::StatelessClient;
use zeth_core_optimism::{OpRethCoreDriver, OpRethStatelessClient};
// todo: use this instead of the alloy KzgEnv to save cycles
// lazy_static::lazy_static! {
// /// KZG Ceremony data
// pub static ref KZG: (Vec<u8>, KzgSettings) = {
// let mut data = Vec::from(include_bytes!("../kzg_settings_raw.bin"));
// let settings = KzgSettings::from_u8_slice(&mut data);
// (data, settings)
// };
// }

#[no_mangle]
pub extern "C" fn __ctzsi2(x: u32) -> usize {
Expand Down

0 comments on commit 11d9ab3

Please sign in to comment.