Skip to main content

sidecar_for_export

Function sidecar_for_export 

Source
pub fn sidecar_for_export(
    sidecar: &SidecarV1,
    privacy: ExportPrivacy,
) -> SidecarV1
Expand description

The copy of sidecar that may cross a trust boundary under privacy.

When anything is stripped the copy is returned unsigned: the library signature covered the removed fields, so it no longer verifies. When nothing is stripped the copy keeps its signature. Under the Default choice the device and session ids are always stripped, so a strict copy is always unsigned.