We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a28bc8 commit 002102bCopy full SHA for 002102b
batcher/aligned-sdk/src/sdk/aggregation.rs
@@ -49,13 +49,14 @@ impl AggregationModeVerificationData {
49
50
// We use a newtype wrapper around `[u8; 32]` because Rust's orphan rule
51
// prevents implementing a foreign trait (`IsMerkleTreeBackend`) for a foreign type (`[u8; 32]`).
52
-#[derive(Default, PartialEq, Eq)]
53
-struct Hash32([u8; 32]);
+#[derive(Default, Debug, PartialEq, Eq)]
+pub struct Hash32([u8; 32]);
54
55
impl IsMerkleTreeBackend for Hash32 {
56
type Data = Hash32;
57
type Node = [u8; 32];
58
59
+ /// We don't have to hash the data, as the blob already contains the proof commitments (which represent the merkle leaves)
60
fn hash_data(leaf: &Self::Data) -> Self::Node {
61
leaf.0
62
}
0 commit comments