@pumpkin-plugins/static-hermes-runtime API / hermes/toolchain-environment / verifyWasiSdkArchiveChecksum
Function: verifyWasiSdkArchiveChecksum()
verifyWasiSdkArchiveChecksum(
archivePath,expectedSha256):Promise<void>
Defined in: hermes/toolchain-environment.ts:599
Verify a downloaded WASI SDK archive against its trusted lockfile checksum.
Parameters
archivePath
string
Path to the downloaded SDK archive.
expectedSha256
string
Trusted lowercase SHA-256 digest from the lockfile.
Returns
Promise<void>
Throws
If the archive bytes do not match the lockfile digest.