@tonappchain/adnl
Version:
ADNL TypeScript implementation
12 lines • 410 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.bytesToHex = void 0;
const uintToHex = (uint) => {
const hex = `0${uint.toString(16)}`;
return hex.slice(-(Math.floor(hex.length / 2) * 2));
};
const bytesToHex = (bytes) => {
return bytes.reduce((acc, uint) => `${acc}${uintToHex(uint)}`, '');
};
exports.bytesToHex = bytesToHex;
//# sourceMappingURL=utils.js.map