Skip to main content

validate_before_render

Function validate_before_render 

Source
pub fn validate_before_render(
    container_bytes: &[u8],
    manifest: &GeometryManifestFacts<'_>,
    config: &GeometryAssetConfiguration,
    index: &QuinIndex,
    now: u32,
    key_resolver: impl Fn(u64) -> Option<VerifyingKey>,
) -> Result<Mesh, BarrierError>
Expand description

The validate-before-render barrier.

  1. Relational SHACL validation.
  2. .10d whole-file CRC verification.
  3. Provenance extraction and validate_provenance (source_digest and licence checks).
  4. If a VC is present, decodes it and verifies the signature using verify_grounded.
  5. Finally decodes and returns the Mesh.