diff --git a/crates/hotshot/src/demos/sdemo.rs b/crates/hotshot/src/demos/sdemo.rs index 7e7472683a..66f9ec8133 100644 --- a/crates/hotshot/src/demos/sdemo.rs +++ b/crates/hotshot/src/demos/sdemo.rs @@ -236,13 +236,6 @@ impl BlockPayload for SDemoBlock { .collect(), } } - - fn commitment(&self) -> VidResult> { - // TODO: Get the payload commitment after VID integration. - // - // - unimplemented!(); - } } impl State for SDemoState { diff --git a/crates/types/src/traits/block_contents.rs b/crates/types/src/traits/block_contents.rs index afc714e169..861645d7fc 100644 --- a/crates/types/src/traits/block_contents.rs +++ b/crates/types/src/traits/block_contents.rs @@ -58,14 +58,6 @@ pub trait BlockPayload: /// returns hashes of all the transactions in this block /// TODO make this ordered with a vec fn contained_transactions(&self) -> HashSet>; - - /// Compute the VID payload commitment. - /// - /// # Errors - /// - `VidResult::Err` in case of actual error. - /// - `VidResult::Ok(Result::Err)` if verification fails. - /// - `VidResult::Ok(Result::Ok)` if verification succeeds. - fn commitment(&self) -> VidResult>; } /// Abstraction over any type of transaction. Used by [`BlockPayload`]. @@ -159,13 +151,6 @@ pub mod dummy { fn contained_transactions(&self) -> HashSet> { HashSet::new() } - - fn commitment(&self) -> VidResult> { - // TODO: Get the payload commitment after VID integration. - // - // - unimplemented!(); - } } impl TestableBlock for DummyBlock {