verifyReceipt method

bool verifyReceipt(
  1. ZapReceipt receipt
)

Verifies receipt against everything this client witnessed: the verdict, the checks, and — the cryptographic core — the recomputed chain digest.

Implementation

bool verifyReceipt(ZapReceipt receipt) =>
    receipt.isPass &&
    receipt.checks.every((c) => c.ok) &&
    receipt.chainDigest == recomputeChainDigest(receipt.missionId);