Function bytesToHex

  • Converts byte sequence to hexadecimal string.

    Returns

    Hexadecimal encoded string

    Example

    import { bytesToHex } from 'p2panda-js';

    const hex = bytesToHex(new Uint8Array([1, 2, 3]));

    Parameters

    • bytes: Uint8Array

      Any byte sequence

    Returns string

Generated using TypeDoc