@signumjs/util
Version:
Useful utilities and tools for building Signum Network applications
22 lines • 936 B
JavaScript
;
/**
* Original work Copyright (c) 2018 PoC-Consortium
* Modified work Copyright (c) 2019 Burst Apps Team
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertStringToHexString = void 0;
const convertStringToByteArray_1 = require("./convertStringToByteArray");
const convertByteArrayToHexString_1 = require("./convertByteArrayToHexString");
/**
* Converts/Encode a String into Hexadecimally encoded
* Inverse function {@link convertHexStringToString}
* @param str The Hex string to be converted
* @return {string} The Hex String representing the input string
*
* @category conversion
*/
const convertStringToHexString = (str) => {
return (0, convertByteArrayToHexString_1.convertByteArrayToHexString)((0, convertStringToByteArray_1.convertStringToByteArray)(str));
};
exports.convertStringToHexString = convertStringToHexString;
//# sourceMappingURL=convertStringToHexString.js.map