Skip to content

Commit

Permalink
Remove commitment
Browse files Browse the repository at this point in the history
  • Loading branch information
shenkeyao committed Sep 14, 2023
1 parent 9ed28f3 commit 40bc007
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions crates/hotshot/src/demos/sdemo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,6 @@ impl BlockPayload for SDemoBlock {
.collect(),
}
}

fn commitment(&self) -> VidResult<Commitment<Self>> {
// TODO: Get the payload commitment after VID integration.
// <https://github.com/EspressoSystems/HotShot/issues/1673>
// <https://github.com/EspressoSystems/jellyfish/issues/369>
unimplemented!();
}
}

impl State for SDemoState {
Expand Down
15 changes: 0 additions & 15 deletions crates/types/src/traits/block_contents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Commitment<Self::Transaction>>;

/// 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<Commitment<Self>>;
}

/// Abstraction over any type of transaction. Used by [`BlockPayload`].
Expand Down Expand Up @@ -159,13 +151,6 @@ pub mod dummy {
fn contained_transactions(&self) -> HashSet<Commitment<Self::Transaction>> {
HashSet::new()
}

fn commitment(&self) -> VidResult<Commitment<Self>> {
// TODO: Get the payload commitment after VID integration.
// <https://github.com/EspressoSystems/HotShot/issues/1673>
// <https://github.com/EspressoSystems/jellyfish/issues/369>
unimplemented!();
}
}

impl TestableBlock for DummyBlock {
Expand Down

0 comments on commit 40bc007

Please sign in to comment.