UNPKG

@signumjs/util

Version:

Useful utilities and tools for building Signum Network applications

13 lines 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertByteArrayToHexString = void 0; const convertByteArrayToHexString = (bytes, uppercase = false) => { const hex = []; for (const byte of bytes) { hex.push((byte >>> 4).toString(16)); hex.push((byte & 0xF).toString(16)); } return uppercase ? hex.join('').toUpperCase() : hex.join(''); }; exports.convertByteArrayToHexString = convertByteArrayToHexString; //# sourceMappingURL=convertByteArrayToHexString.js.map