refactor: optimize code, remove not momentarily necessary functions

This commit is contained in:
Andrey Khmuro
2023-06-02 21:57:33 +03:00
parent b4324475b6
commit ebf71c2dc7
3 changed files with 118 additions and 229 deletions

View File

@@ -101,3 +101,8 @@ 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])
}