edgeport - v1.0.3
    Preparing search index...

    Function toHex

    • Encodes bytes as a lowercase hex string.

      Parameters

      • bytes: Uint8Array

        The bytes to encode.

      Returns string

      The hex string (two characters per byte, no separators).

      1.0.3

      import { toHex } from 'edgeport/util';

      toHex(new Uint8Array([0xde, 0xad, 0xbe, 0xef])); // 'deadbeef'