(bytes: Uint8Array)
| 1275 | }); |
| 1276 | |
| 1277 | async function sha256(bytes: Uint8Array): Promise<Uint8Array> { |
| 1278 | const { createHash } = await import("node:crypto"); |
| 1279 | const hash = createHash("sha256"); |
| 1280 | hash.update(bytes); |
| 1281 | return new Uint8Array(hash.digest()); |
| 1282 | } |
no test coverage detected