Change to SHA256 hashing

This commit is contained in:
Andras Schmelczer 2026-09-19 15:24:47 +01:00
commit 02f70d5f9f

View file

@ -0,0 +1,7 @@
import assert from "node:assert";
import { test } from "node:test";
import { EMPTY_HASH, hash } from "./hash";
void test("EMPTY_HASH is the SHA-256 hash of empty content", async () => {
assert.strictEqual(await hash(new Uint8Array()), EMPTY_HASH);
});