verifyChecksum
verifyChecksum(
data,expectedSha256,source):void
Defined in: checksum.ts:7
Parameters
Section titled “Parameters”Uint8Array
expectedSha256
Section titled “expectedSha256”string
source
Section titled “source”string
Returns
Section titled “Returns”void
Throws
Section titled “Throws”When data’s SHA-256 does not match expectedSha256 — an
unverified download is a supply-chain hole, never tolerated silently.