web3x
Version:
Typescript port of web3.js
21 lines (20 loc) • 502 B
TypeScript
/**
* Convert a byte array to a hex string
*
* Note: Implementation from crypto-js
*
* @method bytesToHex
* @param {Array} bytes
* @return {String} the hex string
*/
export declare function bytesToHex(bytes: number[], prefix?: boolean): string;
/**
* Convert a hex string to a byte array
*
* Note: Implementation from crypto-js
*
* @method hexToBytes
* @param {string} hex
* @return {Array} the byte array
*/
export declare function hexToBytes(hex: string, prefix?: boolean): number[];