# CertNIC Trust Protocol (CTP-0.1) — Canonical Specification

> **Institutional Boundary:** Identity by INIC.SI · Evidence by CertNIC.org · Decisions Remain Yours (`ACT`, `ESCALATE`, `DECLINE`).

## 1. Protocol Operations
1. **Discover:** Resolve W3C DID (`/.well-known/did.json`), RFC 7517 JWKS (`/.well-known/jwks.json`), Key Lifecycle Registry (`/.well-known/key-lifecycle-registry.json`), and signed Version Manifest (`/.well-known/version-manifest.json`).
2. **Evaluate:** Query `/api/v1/trust-checks/{id}` to retrieve an 8-layer (`L0_PROVIDER`..`L7_RELATIONSHIP`) Trust-Check envelope.
3. **Verify:** Recompute RFC 8785 (JCS) canonical UTF-8 payload digest (`sha256`), verify the 64-byte (`86` base64url char) detached Ed25519 signature against `did:web:inic.si`, and validate deterministic `AID-0002` weighted scoring.
4. **Decide Locally & Emit Receipt:** Enforce local relying-party policy (`ACT`, `ESCALATE`, `DECLINE`) and optionally emit a signed Decision Receipt (`decision-receipt-1.0.schema.json`).

## 2. Five-Point Verification Vector (V1–V5)
- **V1 Provenance:** Explicit source attribution (`SYSTEM_GENERATED`, `CONTROLLER_DECLARED`, `INDEPENDENT_AUDIT`).
- **V2 Integrity:** SHA-256 content hashes + detached Ed25519 record seal over JCS bytes.
- **V3 Relevance:** Scoped `decision_context` binding.
- **V4 Freshness:** Explicit `issued_at`, `expires_at`, and `key_status_snapshot` windows.
- **V5 Verification State:** Non-escalating status bands (`ELIGIBLE_STRONG`, `ELIGIBLE_STANDARD`, `ELIGIBLE_LIMITED`, `INSUFFICIENT_EVIDENCE`, `TOMBSTONED`, `UNALLOCATED`).
