MmrPeaks::hash_peaks() returns Digest (#230)

This commit is contained in:
Philippe Laferrière
2023-11-28 16:45:45 -05:00
committed by Bobbin Threadbare
parent d719cc2663
commit 18310a89f0
2 changed files with 5 additions and 8 deletions

View File

@@ -64,8 +64,8 @@ impl MmrPeaks {
/// The procedure will:
/// - Flatten and pad the peaks to a vector of Felts.
/// - Hash the vector of Felts.
pub fn hash_peaks(&self) -> Word {
Rpo256::hash_elements(&self.flatten_and_pad_peaks()).into()
pub fn hash_peaks(&self) -> RpoDigest {
Rpo256::hash_elements(&self.flatten_and_pad_peaks())
}
pub fn verify(&self, value: RpoDigest, opening: MmrProof) -> bool {