web3x
Version:
Typescript port of web3.js
17 lines (16 loc) • 477 B
TypeScript
/**
* Should be called to get hex representation (prefixed by 0x) of utf8 string
*
* @method utf8ToHex
* @param {String} str
* @returns {String} hex representation of input string
*/
export declare let utf8ToHex: (str: string) => string;
/**
* Should be called to get utf8 from it's hex representation
*
* @method hexToUtf8
* @param {String} hex
* @returns {String} ascii string representation of hex value
*/
export declare let hexToUtf8: (hex: string) => string;