(bytes: Uint8Array)
| 87 | } |
| 88 | |
| 89 | function toHex(bytes: Uint8Array): string { |
| 90 | let out = ""; |
| 91 | for (const byte of bytes) { |
| 92 | out += byte.toString(16).padStart(2, "0"); |
| 93 | } |
| 94 | return out; |
| 95 | } |
| 96 | |
| 97 | function compareBigInt(a: bigint, b: bigint): number { |
| 98 | if (a < b) return -1; |