MCPcopy Create free account
hub / github.com/dfinity/orbit / arrayBufferToHex

Function arrayBufferToHex

apps/wallet/src/utils/crypto.utils.ts:1–5  ·  view source on GitHub ↗
(buffer: ArrayBuffer)

Source from the content-addressed store, hash-verified

1export 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
7export const arrayBufferToHashHex = async (
8 buffer: ArrayBuffer,

Callers 5

fetchCanisterModuleHashFunction · 0.90
normalizeFunction · 0.90
arrayBufferToHashHexFunction · 0.85

Calls 3

mapMethod · 0.80
toStringMethod · 0.80
fromMethod · 0.45

Tested by

no test coverage detected