Skip to main content

disclose_transcript

Function disclose_transcript 

Source
pub fn disclose_transcript(
    jsonl: &str,
    threshold: Level,
) -> Result<String, VerifyError>
Expand description

Withhold every fact recorded above threshold, keeping each line’s commitments, so the result folds to the same fingerprint.

The header and every line at or below the threshold are copied unchanged. A withheld line keeps its at, level, leaf and chain and loses its salt and fact. Lines already withheld stay withheld. The input is not verified here; verify it before, and the output after.

§Errors

Returns VerifyError::Empty for an empty transcript, or VerifyError::InvalidLine for a fact line that does not parse.