pub fn verify_genesis_capsule(
claimed_cid512: &str,
capsule_bytes: &[u8],
) -> Result<VerifiedCapsule, GateError>Expand description
Verify that capsule_bytes are the genuine genesis capsule named by the
claimed did:at9p:<did_body> identifier, where did_body is the bare
cid512 (no did:at9p: prefix).
Pure and I/O-free: no network, no filesystem, no async, no clock. The caller is responsible for having fetched the bytes for this identifier from whatever (untrusted) locator; this function decides whether to accept them.
Returns a VerifiedCapsule witness, or a GateError naming the gate
that rejected the input. Gates run in order canon → hash → sig; a later gate
is never reached if an earlier one fails.