Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2017-12-16 📝 Original message: Jonathan Underwood ...
📅 Original date posted:2017-12-16
📝 Original message:
Jonathan Underwood <junderwood at bitcoinbank.co.jp> writes:
> iirc they are using the description as a way to join the user data and the
> payment hash on their end.
But the description isn't used when I send a payment. All they get is
the payment_hash.
> htlc me is one node but separates its balance into user accounts that exist
> outside lightning. I think the identifier is used so when their backend
> checks the payment request status, the user info is right there in their
> local lnd RPC response rather than having to store their own database
> separately.
Ah, that's understandable, but it seems like a wrong API.
c-lightning doesn't store the description in the database at all: each
invoice uses a label which the invoice creator specifies. Unlike a
description, this must be unique. It's not exposed to customers at all.
Cheers,
Rusty.
Published at
2023-06-09 12:47:59Event JSON
{
"id": "fe24e10da6b1e9a038ce3e4b1d18fb4265e11aa9bea5d86fe436025d28a0893e",
"pubkey": "13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425",
"created_at": 1686314879,
"kind": 1,
"tags": [
[
"e",
"3116f5c29c5dc34156cc0d7b8c18c7f0b4f198b1f29affc604211c8c32af34de",
"",
"root"
],
[
"e",
"142a6b90fcb41c7d814ea88075c307f6e8baae6ed91cb69357a210ab54bbe226",
"",
"reply"
],
[
"p",
"e999edd1a420e7d5e19be7870cbcfa798bb98cb408e5929a2a18181c8c6f1dee"
]
],
"content": "📅 Original date posted:2017-12-16\n📝 Original message:\nJonathan Underwood \u003cjunderwood at bitcoinbank.co.jp\u003e writes:\n\u003e iirc they are using the description as a way to join the user data and the\n\u003e payment hash on their end.\n\nBut the description isn't used when I send a payment. All they get is\nthe payment_hash.\n\n\u003e htlc me is one node but separates its balance into user accounts that exist\n\u003e outside lightning. I think the identifier is used so when their backend\n\u003e checks the payment request status, the user info is right there in their\n\u003e local lnd RPC response rather than having to store their own database\n\u003e separately.\n\nAh, that's understandable, but it seems like a wrong API.\n\nc-lightning doesn't store the description in the database at all: each\ninvoice uses a label which the invoice creator specifies. Unlike a\ndescription, this must be unique. It's not exposed to customers at all.\n\nCheers,\nRusty.",
"sig": "8d172ede87ca6a0cbb90d4ac697abb411df9ace4a839896d7cbf1e1d355dfd15dbbc96e6aa929aace170355f6ddae50e5aa4e08d578fabc23043e761d258d42b"
}