Skip to main content

expand_short_hash

Function expand_short_hash 

Source
pub fn expand_short_hash(
    short: &str,
    candidates: &[String],
) -> Result<String, HashError>
Expand description

Expand a short hash (typically 8 chars) to a full 40-char hash by prefix-matching against a list of candidates.