utils

utils

Source:

Methods

(static) bytesToHex(bytes) → {string}

Convert a byte array to a hex string

Source:
Parameters:
Name Type Description
bytes Array.<number>
Returns:
Type:
string

hex

(static) hexToBytes(hex) → {Array.<number>}

Convert a hex string to a byte array

Source:
Parameters:
Name Type Description
hex string
Returns:
Type:
Array.<number>

bytes

(static) reverseHex(hex) → {string}

Reverses hexadecimal string

Source:
Parameters:
Name Type Description
hex string

Hexadecimal string

Returns:
Type:
string

Reversed hexadecimal string