Alex Bosworth [ARCHIVE] on Nostr: 📅 Original date posted:2017-12-18 📝 Original message: htlc.me storing data in ...
📅 Original date posted:2017-12-18
📝 Original message:
htlc.me storing data in the description is just an artifact of the
original lnd API which didn't include that data in the payment request
On Sat, Dec 16, 2017 at 10:51 AM, Rusty Russell <rusty at rustcorp.com.au> wrote:
> 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.
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
--
Sent from my iPhone
📝 Original message:
htlc.me storing data in the description is just an artifact of the
original lnd API which didn't include that data in the payment request
On Sat, Dec 16, 2017 at 10:51 AM, Rusty Russell <rusty at rustcorp.com.au> wrote:
> 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.
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
--
Sent from my iPhone