Jonathan Underwood [ARCHIVE] on Nostr: 📅 Original date posted:2017-12-12 📝 Original message: I made a payment request ...
📅 Original date posted:2017-12-12
📝 Original message:
I made a payment request using UTF-8 description here:
lntb1pdz7e9epp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdpquwpc4curk03c9wlrswe78q4eyqc7d8d0e5l2jffz6amujxz82mtagde82dv8jku2jac79k0yxnjmr0l3f4y5x0jxt46vmcrc0ukzh7l99vdmkezsettfwr4gqnhs2ndx8wdqgfsp82rnvp
using this code: (I just separated encode from sign)
ln.sign(ln.encode({
tags:[
{
tagName:'payment_hash',
data:'0001020304050607080900010203040506070809000102030405060708090102'
},
{
tagName:'description',
data:'ナンセンス 1杯'
}
]
}, false),
Buffer.from('e126f68f7eafcc8b74f54d269fe206be715000f94dac067d1c04a8ca3b2db734',
'hex')).paymentRequest
Full results:
{
"coinType": "testnet",
"payeeNodeKey":
"03e7156ae33b0a208d0744199163177e909e80176e55d97a2f221ede0f934dd9ad",
"paymentRequest":
"lntb1pdz7e9epp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdpquwpc4curk03c9wlrswe78q4eyqc7d8d0e5l2jffz6amujxz82mtagde82dv8jku2jac79k0yxnjmr0l3f4y5x0jxt46vmcrc0ukzh7l99vdmkezsettfwr4gqnhs2ndx8wdqgfsp82rnvp",
"recoveryFlag": 1,
"satoshis": null,
"signature":
"cd3ea92522d777c9184756d7d437275358795b8a9771e2d9e434e5b1bff14d49433e465d74cde0787f2c2bfbe52b1bbb6450cad6970ea804ef054da63b9a0426",
"tags": [
{
"tagName": "payment_hash",
"data":
"0001020304050607080900010203040506070809000102030405060708090102"
},
{
"tagName": "description",
"data": "ナンセンス 1杯"
}
],
"timestamp": 1513055417,
"timestampString": "2017-12-12T05:10:17.000Z"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20171212/3389f867/attachment-0001.html>
📝 Original message:
I made a payment request using UTF-8 description here:
lntb1pdz7e9epp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdpquwpc4curk03c9wlrswe78q4eyqc7d8d0e5l2jffz6amujxz82mtagde82dv8jku2jac79k0yxnjmr0l3f4y5x0jxt46vmcrc0ukzh7l99vdmkezsettfwr4gqnhs2ndx8wdqgfsp82rnvp
using this code: (I just separated encode from sign)
ln.sign(ln.encode({
tags:[
{
tagName:'payment_hash',
data:'0001020304050607080900010203040506070809000102030405060708090102'
},
{
tagName:'description',
data:'ナンセンス 1杯'
}
]
}, false),
Buffer.from('e126f68f7eafcc8b74f54d269fe206be715000f94dac067d1c04a8ca3b2db734',
'hex')).paymentRequest
Full results:
{
"coinType": "testnet",
"payeeNodeKey":
"03e7156ae33b0a208d0744199163177e909e80176e55d97a2f221ede0f934dd9ad",
"paymentRequest":
"lntb1pdz7e9epp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdpquwpc4curk03c9wlrswe78q4eyqc7d8d0e5l2jffz6amujxz82mtagde82dv8jku2jac79k0yxnjmr0l3f4y5x0jxt46vmcrc0ukzh7l99vdmkezsettfwr4gqnhs2ndx8wdqgfsp82rnvp",
"recoveryFlag": 1,
"satoshis": null,
"signature":
"cd3ea92522d777c9184756d7d437275358795b8a9771e2d9e434e5b1bff14d49433e465d74cde0787f2c2bfbe52b1bbb6450cad6970ea804ef054da63b9a0426",
"tags": [
{
"tagName": "payment_hash",
"data":
"0001020304050607080900010203040506070809000102030405060708090102"
},
{
"tagName": "description",
"data": "ナンセンス 1杯"
}
],
"timestamp": 1513055417,
"timestampString": "2017-12-12T05:10:17.000Z"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20171212/3389f867/attachment-0001.html>