azure.confidentialledger.receipt package¶
-
azure.confidentialledger.receipt.
compute_claims_digest
(application_claims: List[Dict[str, Any]]) → str[source]¶ Compute the claims digest from a list of Azure Confidential Ledger application claims.
- Parameters
application_claims (List[Dict[str, Any]]) – List of application claims to be verified against the receipt.
- Returns
The claims digest of the application claims.
- Return type
- Raises
ValueError – If the claims digest computation has failed.
-
azure.confidentialledger.receipt.
verify_receipt
(receipt: Dict[str, Any], service_cert: str, *, application_claims: Optional[List[Dict[str, Any]]] = None) → None[source]¶ Verify that a given Azure Confidential Ledger write transaction receipt is valid from its content and the Confidential Ledger service identity certificate.
- Parameters
- Keyword Arguments
application_claims (Optional[List[Dict[str, Any]]]) – List of application claims to be verified against the receipt.
- Raises
ValueError – If the receipt verification has failed.