in src/utils.js [53:66]
export function hexToBytes(hexstr) {
assert(hexstr.length % 2 === 0, 'hexstr.length must be even');
return new Uint8Array(Array.prototype.map.call(hexstr, (c, n) => {
if (n % 2 === 1) {
return hexstr[n - 1] + c;
} else {
return '';
}
}).filter(s => {
return !! s;
}).map(s => {
return parseInt(s, 16);
}));
}