pub async fn verify_commit_against_kel(
commit_bytes: &[u8],
device_kel: &[Event],
root_kel: &[Event],
pinned_roots: &[String],
provider: &dyn CryptoProvider,
) -> CommitVerdictExpand description
Verify a commit purely by KEL replay + delegation + in-process SSH-signature check.
Args:
commit_bytes: The raw git commit object (with thegpgsigSSH signature).device_kel: The signer device’s KEL events (adip, or the root’sicpwhen the root signs directly).root_kel: The root identity’s KEL events (the delegator).pinned_roots: Trusted rootdid:keri:strings (from.auths/roots).provider: Crypto provider for in-process signature verification.
Usage:
ⓘ
let verdict = verify_commit_against_kel(commit, &device_kel, &root_kel, &pinned, &provider).await;
assert!(verdict.is_valid());