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

str

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
  • receipt (Dict[str, Any]) – Receipt dictionary containing the content of an Azure Confidential Ledger write transaction receipt.

  • service_cert (str) – String containing the PEM-encoded certificate of the Confidential Ledger service identity.

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.