Skip to main content

verify_attestation

Function verify_attestation 

Source
pub fn verify_attestation(
    attestation: &Value,
    artifact_path: &Path,
    sbom_path: &Path,
    trusted_public_key: &[u8],
) -> Result<(), &'static str>
Expand description

Verifies an Ed25519 attestation and the current artifact and SBOM digests.

§Parameters

§Returns

Returns the successful value produced by crate::provenance::verify_attestation or an error when the operation fails.

§Errors

Returns an error value when crate::provenance::verify_attestation cannot complete successfully.

§Examples

ⓘ
let _result = pharos_runtime_ops::provenance::verify_attestation(todo!(), todo!(), todo!(), todo!(), todo!());