refactor: optimize code, fix bugs

This commit is contained in:
Andrey Khmuro
2023-06-05 18:02:16 +03:00
parent 43f1a4cb64
commit 2708a23649
3 changed files with 93 additions and 131 deletions

View File

@@ -101,8 +101,3 @@ impl std::error::Error for MerkleError {}
const fn int_to_node(value: u64) -> Word {
[Felt::new(value), ZERO, ZERO, ZERO]
}
#[cfg(test)]
const fn int_to_digest(value: u64) -> RpoDigest {
RpoDigest::new([Felt::new(value), ZERO, ZERO, ZERO])
}