Skip to main content

valid_hash

Function valid_hash 

Source
pub fn valid_hash(hash: &str) -> bool
Expand description

Whether hash has the shape of a content address: 64 lower- or upper-case hex digits. Addresses arrive from documents and peers, so anything else is refused before it can name a path.