Skip to content

Commit

Permalink
fix link for real
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Dec 20, 2024
1 parent 0ff5615 commit 60c9879
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions bin/host/src/eigenda_fetcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
use crate::eigenda_blobs::OnlineEigenDABlobProvider;
use alloy_primitives::{keccak256, B256};
use alloy_provider::ReqwestProvider;
use alloy_rlp::Decodable;
use anyhow::{anyhow, Result};
use core::panic;
use hokulea_eigenda::BlobInfo;
use hokulea_proof::hint::{ExtendedHint, ExtendedHintType};
use kona_host::{blobs::OnlineBlobProvider, fetcher::Fetcher, kv::KeyValueStore};
use kona_preimage::{PreimageKey, PreimageKeyType};
use std::sync::Arc;
use tokio::sync::RwLock;
use tracing::{error, info, trace, warn};
use hokulea_eigenda::BlobInfo;
use alloy_rlp::Decodable;

/// The [FetcherWithEigenDASupport] struct wraps and extends kona's [Fetcher] struct with the ability
/// to fetch preimages from EigenDA.
Expand Down Expand Up @@ -138,13 +138,12 @@ where
trace!(target: "fetcher_with_eigenda_support", "Fetching hint: {hint_type} {hint_data}");

if hint_type == ExtendedHintType::EigenDACommitment {

let item_slice = hint_data.as_ref();

// the fourth because 0x01010000 in the beginnin is metadata
let cert_blob_info = BlobInfo::decode(&mut &item_slice[4..])?;
info!("cert_blob_info {:?}", cert_blob_info);

let cert = hint_data;
info!(target: "fetcher_with_eigenda_support", "Fetching AltDACommitment cert: {:?}", cert);
// Fetch the blob sidecar from the blob provider.
Expand Down
2 changes: 0 additions & 2 deletions crates/eigenda/src/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use alloy_rlp::{RlpDecodable, RlpEncodable};

use alloc::vec::Vec;


#[derive(Debug, PartialEq, Clone, RlpEncodable, RlpDecodable)]
pub struct G1Commitment {
pub x: [u8; 32],
Expand All @@ -26,7 +25,6 @@ pub struct BlobHeader {
pub blob_quorum_params: Vec<BlobQuorumParam>,
}


#[derive(Debug, PartialEq, Clone, RlpEncodable, RlpDecodable)]
pub struct BatchHeader {
pub batch_root: Bytes,
Expand Down
1 change: 0 additions & 1 deletion crates/eigenda/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ pub use eigenda_data::EigenDABlobData;

mod certificate;
pub use certificate::BlobInfo;

0 comments on commit 60c9879

Please sign in to comment.