Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function decToInt64(d: string): Int64 {
const h = decToHexBytes(d);
const neg = h[0] === "-";
if (neg) h.shift();
const v = new Int64(new Uint8Array(R.map(b => parseInt(b, 16), h)));
if (neg) v.negate();
return v;
}