(hash: &Hash)
| 294 | } |
| 295 | |
| 296 | fn hash_proto(hash: &Hash) -> pb::Hash { |
| 297 | pb::Hash { |
| 298 | value: hash.as_bytes().to_vec(), |
| 299 | algorithm: pb::HashAlgorithm::Blake3 as i32, |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | fn hash_domain(hash: &Option<pb::Hash>) -> anyhow::Result<Hash> { |
| 304 | let bytes: [u8; 32] = hash |
no test coverage detected