Verification¶
Witness-backed chain verification.
WitnessKey
dataclass
¶
WitnessConfig
dataclass
¶
WitnessConfig(receipts: list[str], keys: list[WitnessKey], threshold: int)
verify_chain_with_witnesses
¶
verify_chain_with_witnesses(attestations_json: list[str], root_pk_hex: str, witnesses: WitnessConfig) -> VerificationReport
Verify an attestation chain with witness receipt quorum enforcement.
Parameters:
-
attestations_json(list[str]) –List of attestation JSON strings, ordered root-to-leaf.
-
root_pk_hex(str) –Root identity's Ed25519 public key (hex-encoded).
-
witnesses(WitnessConfig) –Witness configuration with receipts, keys, and threshold.
Returns:
-
VerificationReport–VerificationReport with per-link results and witness quorum status.
Raises:
-
VerificationError–If the chain or witness quorum fails verification.
Examples: