Checks a JSON file downloaded via download_answers_button() against its
embedded SHA-256 hash, to detect whether it was edited after being
downloaded (e.g. a wrong answer quietly changed to a right one before
being turned in). This is tamper-evidence, not proof of identity: the
hash is computed entirely in the reader's own browser with no
server-held secret, so a technical reader could in principle reproduce
it themselves – this is a deterrent and a check against casual editing,
not real cryptographic security.
Arguments
- path
Path to a JSON file downloaded via
download_answers_button().