Joseph Poon [ARCHIVE] on Nostr: 📅 Original date posted:2016-04-01 📝 Original message: On Fri, Apr 01, 2016 at ...
📅 Original date posted:2016-04-01
📝 Original message:
On Fri, Apr 01, 2016 at 03:32:15PM +0200, Pierre wrote:
> Also @lnd guys: what's the thing with odd/even htlc ids? Is it just so
> that we can use the same keyspace for incoming/outgoing htlcs and
> quickly tell the direction of a given htlc, or is there something
> else?
Hi Pierre,
I've actually been going back and forth on HTLC IDs lately, and am
actually currently working on a cleaner solution -- I think you might
like it (provided it works out). The thinking was so that one is able to
uniquely identify HTLCs at a later time by having unique ID upon
creation (direction should be contextually understood by the
positive/negative amount). The ID doesn't really need to be in the final
wire protocol, it's more helpful for debugging than anything.
--
Joseph Poon
Published at
2023-06-09 12:46:05Event JSON
{
"id": "af5e7bc3df16be2a24fd8d74f08ab656223e4802f816343721135c07bf89ea74",
"pubkey": "ccb4cc87c455b74febaee5929cfd0726421b2eea64ad2b16440b68e8c7433211",
"created_at": 1686314765,
"kind": 1,
"tags": [
[
"e",
"9526f7c7c06d2c44ce2bb2e0282c88fd2229736f99d283465fab3bfc507e5ee9",
"",
"root"
],
[
"e",
"c868b801606f96b6dc5524f74c72120bb57a41ac0dac9b3472f79c05224975f7",
"",
"reply"
],
[
"p",
"81c48ba46c211bc8fdb490d1ccfb03609c7ea090f8587ddca1c990676f09cfd3"
]
],
"content": "📅 Original date posted:2016-04-01\n📝 Original message:\nOn Fri, Apr 01, 2016 at 03:32:15PM +0200, Pierre wrote:\n\u003e Also @lnd guys: what's the thing with odd/even htlc ids? Is it just so\n\u003e that we can use the same keyspace for incoming/outgoing htlcs and\n\u003e quickly tell the direction of a given htlc, or is there something\n\u003e else?\n\nHi Pierre,\n\nI've actually been going back and forth on HTLC IDs lately, and am\nactually currently working on a cleaner solution -- I think you might\nlike it (provided it works out). The thinking was so that one is able to\nuniquely identify HTLCs at a later time by having unique ID upon\ncreation (direction should be contextually understood by the\npositive/negative amount). The ID doesn't really need to be in the final\nwire protocol, it's more helpful for debugging than anything.\n\n-- \nJoseph Poon",
"sig": "5d47ddf2a0d667ee8bacfed502328675bb3e4690e19064fd993942621ad64c622fc77a8862e5462feca0053003f4dfb7ee3dded71b00eca8906adec86214e01f"
}