Skip to content

Measurement Registry

Attested verification requires a trusted measurement registry.

Recommended steps:

  1. Obtain the expected measurement from a trusted release source.
  2. Record the measurement hash.
  3. Store it in a signed registry.
  4. Use that value as expectedMeasurement when verifying evidence.

Example retrieval

async function getExpectedMeasurement(version: string): Promise<string> {
  const response = await fetch(`https://measurements.example.com/axiom/${version}`);
  const data = await response.json();
  return data.measurement;
}

Prev: Verifier Integration | Next: Standard Example