Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function bytesToHex

    • Convert a Uint8Array to a lowercase hexadecimal string.

      Parameters

      • data: Uint8Array

        The byte array to convert

      Returns string

      A lowercase hex string representation (2 characters per byte)

      const bytes = new Uint8Array([0xde, 0xad, 0xbe, 0xef]);
      bytesToHex(bytes); // "deadbeef"