Skip to main content

attested_refs

Function attested_refs 

Source
pub fn attested_refs(
    snapshot: &Value,
) -> Result<BTreeMap<String, String>, String>
Expand description

The refs an attestation says this log ends at, in display form.

The attestation holds canonical choir_hash::ContentHash values and the served view holds their display form, so the first is projected into the second — through ContentHash::to_hex itself rather than through a format string, because a comparison written against imagined hex compares nothing at all.

§Errors

Returns a description when the file is not an attestation.