pub fn build_text_path_from_content_digest<'r, 'n>(
name: &'n str,
content_digest: impl Into<[u8; 32]>,
references: impl IntoIterator<Item = StorePathRef<'r>> + 'r,
) -> Result<StorePathRef<'n>, ParseStorePathError>Expand description
This builds a store path, for a CAHash::Text type store path.
content_digest needs to be the sha256 digest of the contents.
If you have the contents as a byte slice, you can also use build_text_path.