Artifact Content
Not logged in

Artifact 233fadd203156ac003a9fcd947e5ef14d2ce92c2:


'use strict'

const IlpPacket = require('ilp-packet')

const serialize = (p) => {
  return IlpPacket.serializeIlpPayment(p)
}

const parse = (packet) => {
  return IlpPacket.deserializeIlpPayment(Buffer.from(packet, 'base64'))
}

module.exports = {
  serialize,
  parse
}