mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-09 15:41:30 +01:00
fix: bug introduced due to merging
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
* Added `Serializable` and `Deserializable` implementations for `PartialMmr` and `InOrderIndex` (#329).
|
* Added `Serializable` and `Deserializable` implementations for `PartialMmr` and `InOrderIndex` (#329).
|
||||||
|
|
||||||
|
|
||||||
## 0.10.0 (2024-08-06)
|
## 0.10.0 (2024-08-06)
|
||||||
|
|
||||||
- Added more `RpoDigest` and `RpxDigest` conversions (#311).
|
- Added more `RpoDigest` and `RpxDigest` conversions (#311).
|
||||||
|
|||||||
@@ -937,8 +937,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_partial_mmr_serialization() {
|
fn test_partial_mmr_serialization() {
|
||||||
let mmr = Mmr::from((0..7).map(int_to_node));
|
let mmr = Mmr::from((0..7).map(int_to_node));
|
||||||
let forest_size = mmr.forest();
|
let partial_mmr = PartialMmr::from_peaks(mmr.peaks());
|
||||||
let partial_mmr = PartialMmr::from_peaks(mmr.peaks(forest_size).unwrap());
|
|
||||||
|
|
||||||
let bytes = partial_mmr.to_bytes();
|
let bytes = partial_mmr.to_bytes();
|
||||||
let decoded = PartialMmr::read_from_bytes(&bytes).unwrap();
|
let decoded = PartialMmr::read_from_bytes(&bytes).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user