pub fn verify_sequential(
v: &Value,
tenant: &str,
keys: &TenantKeys,
flow: &str,
env: &str,
) -> Result<Verified, CertError>Expand description
Verify v, a decision-certificate.v1.6, for the expected tenant, flow and env (spec
v1.6 §4), and read it.
The schema, every v1.5 check and v1.6’s checks beyond the schema (spec v1.6 §2.7, among them that
every pre-registered class crossed, sequential::crossed, and that the revealed salt matches
its commitment, salt_commitment); then v1.5’s checks 1 to 4 with the v1.6 signed bytes,
"decision-cert/certificate.v1.6" 0x0A tenant 0x0A SHA-256(JCS(body)) (the digest’s 32 raw
bytes) built with the expected tenant; then check 5, sequential.flow equals flow (CertError::WrongFlow), and
check 6, sequential.env equals env (CertError::WrongEnv). Any other spec is refused.