(buffer: ArrayBuffer)
| 1 | export const arrayBufferToHex = (buffer: ArrayBuffer): string => { |
| 2 | return Array.from(new Uint8Array(buffer)) |
| 3 | .map(b => b.toString(16).padStart(2, '0')) |
| 4 | .join(''); |
| 5 | }; |
| 6 | |
| 7 | export const arrayBufferToHashHex = async ( |
| 8 | buffer: ArrayBuffer, |
no test coverage detected