Function tvix_store::import::derive_nar_ca_path_info

source ·
pub fn derive_nar_ca_path_info(
    nar_size: u64,
    nar_sha256: [u8; 32],
    ca: Option<&CAHash>,
    name: Bytes,
    root_node: Node
) -> PathInfo
Expand description

Takes the NAR size, SHA-256 of the NAR representation, the root node and optionally a CA hash information.

Returns the path information object for a NAR-style object.

This PathInfo can be further filled for signatures, deriver or verified for the expected hashes.