fn build_store_path_from_fingerprint_parts<'a, S>(
    ty: &str,
    inner_digest: &[u8; 32],
    name: &'a str
) -> Result<StorePath<S>, Error>
where S: Eq + Deref<Target = str> + From<&'a str>,
Expand description

This builds a store path from fingerprint parts. Usually, that function is used from build_text_path and passed a “text hash string” (starting with “text:” as fingerprint), but other fingerprints starting with “output:” are also used in Derivation output path calculation.

The fingerprint is hashed with sha256, and its digest is compressed to 20 bytes. Inside a StorePath, that digest is printed nixbase32-encoded (32 characters).