(s: string)
| 27 | } |
| 28 | |
| 29 | function utf8(s: string): Uint8Array { |
| 30 | return new TextEncoder().encode(s); |
| 31 | } |
| 32 | |
| 33 | async function sha256Hex(bytes: Uint8Array): Promise<string> { |
| 34 | // crypto.subtle.digest accepts an ArrayBuffer view; the cast keeps |
no outgoing calls
no test coverage detected