Skip to main content

verify_service_key_enrollment

Function verify_service_key_enrollment 

Source
pub fn verify_service_key_enrollment(
    public_ca: &[u8],
    authority_log_json: &[u8],
    authority_checkpoint_json: &[u8],
    attestation_json: &[u8],
) -> Result<VerifiedServiceKeyEnrollment>
Expand description

Verify a hyprstream.service-key-enrollment.v1 attestation against the public root, the installed/current authority log, and its independently trusted head (hyprstream#1562).

Fail-closed on: wrong schema/domain, a service outside the fixed allowlist, a malformed or wrong-length hybrid key, an attestation lifetime above one hour or past the delegation expiry, expiry at the current time, a delegation that does not carry the exact enrollment capability, and any signature half that does not verify against the delegated signer.