paid-services
Version:
Lightning Paid Services library
21 lines (17 loc) • 448 B
JavaScript
const typePartnersRecord = '1';
/** Encode group channel partners into records
{
inbound: <Inbound Channel Partner Public Key Hex String>
outbound: <Outbound Channel Partner Public Key Hex String>
}
@returns
{
records: [{
type: <Type Number String>
value: <Value Hex String>
}]
}
*/
module.exports = ({inbound, outbound}) => {
return {records: [{type: typePartnersRecord, value: inbound + outbound}]};
};