Skip to content

Function: verifyCapabilityPin()

ts
function verifyCapabilityPin(currentDigest, config): Promise<AttestationResult>;

Defined in: packages/core/src/introspection/CryptoAttestation.ts:245

Runtime capability pinning — check that the current digest matches what was attested at build time.

Designed to be called once at server startup in the attach() flow.

Parameters

ParameterTypeDescription
currentDigestServerDigestRe-computed server digest
configZeroTrustConfigZero-trust configuration

Returns

Promise<AttestationResult>

Attestation result

Throws

If failOnMismatch is true and the digest doesn't match