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
attestation: Input consumed bycrate::provenance::verify_attestation.artifact_path: Input consumed bycrate::provenance::verify_attestation.sbom_path: Input consumed bycrate::provenance::verify_attestation.trusted_public_key: Input consumed bycrate::provenance::verify_attestation.) -> Result<(: Input consumed bycrate::provenance::verify_attestation.
§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!());§Related
crate::provenancefor adjacent helpers that share the same runtime surface.