Skip to content

Commit

Permalink
derive Eq, PartialEq, and GetSize for Claim
Browse files Browse the repository at this point in the history
  • Loading branch information
aszepieniec committed May 19, 2023
1 parent 36c9789 commit 77eed35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions triton-vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ triton-profiler = { path = "../triton-profiler" }
# triton-profiler = "0.22.0"
anyhow = "1.0"
bincode = "1.3"
get-size = "0.1.3"
itertools = "0.10.5"
num-traits = "0.2"
rand = "0.8.5"
Expand Down
3 changes: 2 additions & 1 deletion triton-vm/src/proof.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use get_size::GetSize;
use serde::Deserialize;
use serde::Serialize;
use twenty_first::shared_math::b_field_element::BFieldElement;
Expand All @@ -10,7 +11,7 @@ pub struct Proof(pub Vec<BFieldElement>);

/// Contains all the public information of a verifiably correct computation.
/// A corresponding [`Proof`] is needed to verify the computation.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, GetSize)]
pub struct Claim {
/// The public input to the computation.
pub input: Vec<u64>,
Expand Down

0 comments on commit 77eed35

Please sign in to comment.