ZmnSCPxj [ARCHIVE] on Nostr: š
Original date posted:2018-11-15 š Original message: Good morning Conner et ...
š
Original date posted:2018-11-15
š Original message:
Good morning Conner et al,
> > > 5. `len` - one byte or two? I believe we tend to use two bytes for various
> > > lengths.
> > >
> >
> > Maybe varint? One byte is not enough for all lengths, but two seems excessive
> > for uint8 or even uint32.
>
> Given that messages are currently only up to 65536 bytes total, is that not a bit much?
Sorry, I misunderstood.
This is varint, correct?
http://learnmeabitcoin.com/glossary/varintIf so, I think this is good idea.
It seems we do not have varint currently in Lightning (at least the parts I am familiar with).
I suppose the t-l-v being in a different BOLT would let us make some section or part for describing `varint`.
Regards,
ZmnSCPxj
Published at
2023-06-09 12:52:53Event JSON
{
"id": "425af63a2244304d937a0896de27fc219f2e2aed5d1d9b8d8c26e4bc7a3e3fb6",
"pubkey": "4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861",
"created_at": 1686315173,
"kind": 1,
"tags": [
[
"e",
"d96b54bd1a16a00379a91b3db2449979b8b41d8eecbbb0fb0270247887f2b600",
"",
"root"
],
[
"e",
"29d16a5a37f1a68e9e29160dcdcde319aac5ed9bbd65c2af4175fd09fe58450c",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "š
Original date posted:2018-11-15\nš Original message:\nGood morning Conner et al,\n\n\u003e \u003e \u003e 5. `len` - one byte or two? I believe we tend to use two bytes for various\n\u003e \u003e \u003e lengths.\n\u003e \u003e \u003e\n\u003e \u003e\n\u003e \u003e Maybe varint? One byte is not enough for all lengths, but two seems excessive\n\u003e \u003e for uint8 or even uint32.\n\u003e\n\u003e Given that messages are currently only up to 65536 bytes total, is that not a bit much?\n\nSorry, I misunderstood.\n\nThis is varint, correct? http://learnmeabitcoin.com/glossary/varint\n\nIf so, I think this is good idea.\nIt seems we do not have varint currently in Lightning (at least the parts I am familiar with).\nI suppose the t-l-v being in a different BOLT would let us make some section or part for describing `varint`.\n\nRegards,\nZmnSCPxj",
"sig": "9b73734c2c90758ed7248436ddff8252b280c8bdae7106a214498f10555fa3041e0c839e1849a9bee27881aae67ef8305b4a178fcfe842c27675ffcd2ec996ed"
}