@@ -7,7 +7,7 @@ use std::sync::Arc;
77use std:: time:: Duration ;
88use tracing:: instrument;
99use tree_hash:: TreeHash ;
10- use types:: { BeaconStateError , BlobSidecar , BlobSidecarDeneb , EthSpec , Hash256 , Slot } ;
10+ use types:: { BeaconStateError , BlobSidecar , EthSpec , Hash256 , Slot } ;
1111
1212/// An error occurred while validating a gossip blob.
1313#[ derive( Debug ) ]
@@ -151,7 +151,7 @@ impl From<BeaconStateError> for GossipBlobError {
151151#[ educe( PartialEq , Eq ) ]
152152#[ ssz( struct_behaviour = "transparent" ) ]
153153pub struct KzgVerifiedBlob < E : EthSpec > {
154- blob : Arc < BlobSidecarDeneb < E > > ,
154+ blob : Arc < BlobSidecar < E > > ,
155155 #[ ssz( skip_serializing, skip_deserializing) ]
156156 seen_timestamp : Duration ,
157157}
@@ -170,23 +170,23 @@ impl<E: EthSpec> Ord for KzgVerifiedBlob<E> {
170170
171171impl < E : EthSpec > KzgVerifiedBlob < E > {
172172 pub fn new (
173- blob : Arc < BlobSidecarDeneb < E > > ,
173+ blob : Arc < BlobSidecar < E > > ,
174174 kzg : & Kzg ,
175175 seen_timestamp : Duration ,
176176 ) -> Result < Self , KzgError > {
177177 verify_kzg_for_blob ( blob, kzg, seen_timestamp)
178178 }
179- pub fn to_blob ( self ) -> Arc < BlobSidecarDeneb < E > > {
179+ pub fn to_blob ( self ) -> Arc < BlobSidecar < E > > {
180180 self . blob
181181 }
182- pub fn as_blob ( & self ) -> & BlobSidecarDeneb < E > {
182+ pub fn as_blob ( & self ) -> & BlobSidecar < E > {
183183 & self . blob
184184 }
185185 pub fn get_commitment ( & self ) -> & KzgCommitment {
186186 & self . blob . kzg_commitment
187187 }
188188 /// This is cheap as we're calling clone on an Arc
189- pub fn clone_blob ( & self ) -> Arc < BlobSidecarDeneb < E > > {
189+ pub fn clone_blob ( & self ) -> Arc < BlobSidecar < E > > {
190190 self . blob . clone ( )
191191 }
192192 pub fn blob_index ( & self ) -> u64 {
@@ -199,18 +199,15 @@ impl<E: EthSpec> KzgVerifiedBlob<E> {
199199 ///
200200 /// This should ONLY be used for testing.
201201 #[ cfg( test) ]
202- pub fn __assumed_valid ( blob : Arc < BlobSidecarDeneb < E > > ) -> Self {
202+ pub fn __assumed_valid ( blob : Arc < BlobSidecar < E > > ) -> Self {
203203 Self {
204204 blob,
205205 seen_timestamp : Duration :: from_secs ( 0 ) ,
206206 }
207207 }
208208 /// Mark a blob as KZG verified. Caller must ONLY use this on blob sidecars constructed
209209 /// from EL blobs.
210- pub fn from_execution_verified (
211- blob : Arc < BlobSidecarDeneb < E > > ,
212- seen_timestamp : Duration ,
213- ) -> Self {
210+ pub fn from_execution_verified ( blob : Arc < BlobSidecar < E > > , seen_timestamp : Duration ) -> Self {
214211 Self {
215212 blob,
216213 seen_timestamp,
@@ -222,7 +219,7 @@ impl<E: EthSpec> KzgVerifiedBlob<E> {
222219///
223220/// Returns an error if the kzg verification check fails.
224221pub fn verify_kzg_for_blob < E : EthSpec > (
225- blob : Arc < BlobSidecarDeneb < E > > ,
222+ blob : Arc < BlobSidecar < E > > ,
226223 kzg : & Kzg ,
227224 seen_timestamp : Duration ,
228225) -> Result < KzgVerifiedBlob < E > , KzgError > {
@@ -238,7 +235,7 @@ pub struct KzgVerifiedBlobList<E: EthSpec> {
238235}
239236
240237impl < E : EthSpec > KzgVerifiedBlobList < E > {
241- pub fn new < I : IntoIterator < Item = Arc < BlobSidecarDeneb < E > > > > (
238+ pub fn new < I : IntoIterator < Item = Arc < BlobSidecar < E > > > > (
242239 blob_list : I ,
243240 kzg : & Kzg ,
244241 seen_timestamp : Duration ,
@@ -284,7 +281,7 @@ pub fn verify_kzg_for_blob_list<'a, E: EthSpec, I>(
284281 kzg : & ' a Kzg ,
285282) -> Result < ( ) , KzgError >
286283where
287- I : Iterator < Item = & ' a Arc < BlobSidecarDeneb < E > > > ,
284+ I : Iterator < Item = & ' a Arc < BlobSidecar < E > > > ,
288285{
289286 let ( blobs, ( commitments, proofs) ) : ( Vec < _ > , ( Vec < _ > , Vec < _ > ) ) = blob_iter
290287 . map ( |blob| ( & blob. blob , ( blob. kzg_commitment , blob. kzg_proof ) ) )
0 commit comments