Whether `key` is a 64-character lowercase-hex blake3 key.
(key: &str)
| 359 | |
| 360 | /// Whether `key` is a 64-character lowercase-hex blake3 key. |
| 361 | fn is_blake3_key(key: &str) -> bool { |
| 362 | key.len() == 64 |
| 363 | && key |
| 364 | .bytes() |
| 365 | .all(|byte| byte.is_ascii_digit() || (b'a'..=b'f').contains(&byte)) |
| 366 | } |
| 367 | |
| 368 | /// A hash-verified, privacy-quarantined view of one pack: decoded changes |
| 369 | /// keyed by content hash. |
no test coverage detected