Artifact 4c4a3bb2db29265b5243f7d2d66a4eddc547b0e5:
- File wiki_references/2017/software/banking/Interledger/src_from_GitHub/the_repository_clones/ilp-plugin-payment-channel-framework/src/util/int64.js — part of check-in [3d7c129ddd] at 2018-03-21 18:18:26 on branch trunk — banking & unclassified_references (user: martin_vahi, size: 226) [annotate] [blame] [check-ins using]
const int64 = require('int64') function toBuffer (str) { return Buffer.from(int64.dec2hex(str), 'hex') } function toString (buf) { return int64.hex2dec(buf.toString('hex')) } module.exports = { toBuffer, toString }