Skip to content

Commit

Permalink
update kzg patch
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Dec 19, 2024
1 parent 30f4a2e commit 3da71a9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion guests/reth-ethereum/Cargo.lock

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

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
2 changes: 1 addition & 1 deletion guests/reth-optimism/Cargo.lock

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

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 3da71a9

Please sign in to comment.