Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Descriptive annotations visible to intermediate nodes

5 messages, Jan 3 to 11, 2018. Started by Benjamin Mord.

Benjamin Mord (2), Christian Decker (2), ZmnSCPxj

Permalink First message in the Wayback Machine

Benjamin Mord permalink original

Are there, or will there be, annotations one can add to a lightning transaction that can be read by all intermediate nodes along a given route? Conversely, can one add annotations readable only by certain specific known (to sender) intermediate nodes?

ZmnSCPxj in reply to Benjamin Mord permalink original

Good morning Benjamin,

It may be possible to embed this information in the hash preimage of the receiver. Alternatively it would be possible to create a new realm to provide such annotations to specific nodes on the route that support that realm (nodes that do not support this annotation realm would not need to be aware of it).

Regards, ZmnSCPxj

Sent with [ProtonMail](https://protonmail.com) Secure Email.

Quoted text (8 lines)
> -------- Original Message --------
> Subject: [Lightning-dev] Descriptive annotations visible to intermediate nodes
> Local Time: January 3, 2018 12:32 AM
> UTC Time: January 3, 2018 12:32 AM
> From: ben at mord.io
> To: lightning-dev at lists.linuxfoundation.org
>
> Are there, or will there be, annotations one can add to a lightning transaction that can be read by all intermediate nodes along a given route? Conversely, can one add annotations readable only by certain specific known (to sender) intermediate nodes?
Christian Decker in reply to Benjamin Mord permalink original

Hi Benjamin,

currently the only piece of information that is kept contstant along the entire route is the payment hash, and we will be removing that as well in order to further decorrelate hops of a payment and make it harder for forwarding nodes to collate hops into a route.

As ZmnSCPxj has pointed out we do have the possibility of adding some information in the onion packet. You can even give every single hop its very specific information in the onion. Say for example you have a node that does currency conversion, you may specify the desired exchange rate in the onion.

May I ask what use-case you are looking to implement using this feature?

Cheers, Christian

Benjamin Mord <ben at mord.io> writes:

Quoted text (8 lines)
> Are there, or will there be, annotations one can add to a lightning
> transaction that can be read by all intermediate nodes along a given route?
> Conversely, can one add annotations readable only by certain specific known
> (to sender) intermediate nodes?
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://www.learnbitcoin.com/archive/lists/lightning-dev
Benjamin Mord in reply to Christian Decker permalink original

Thanks Christian. I'm reading the BOLTs and reviewing source code now, so perhaps my question / request will be more usefully specific once I've finished that review. Sorry for being vague as to use case for now, let me just point out that the concept of source routing opens up a lot of potential use cases that involve collaborations with intermediaries of various sorts, but for which flexible communication capability would be desirable or required (unless you do that out-of-band, which would be so messy as to largely defeat the point.)

I'm impressed so far by how cleanly and explicitly the BOLTs address extensibility. I find that reassuring, many thanks to whoever applied their technical creativity to this aspect.

Was there a BOLT #6?

On Thu, Jan 4, 2018 at 12:13 PM, Christian Decker < decker.christian at gmail.com> wrote:

Quoted text (30 lines)
> Hi Benjamin,
>
> currently the only piece of information that is kept contstant along the
> entire route is the payment hash, and we will be removing that as well
> in order to further decorrelate hops of a payment and make it harder for
> forwarding nodes to collate hops into a route.
>
> As ZmnSCPxj has pointed out we do have the possibility of adding some
> information in the onion packet. You can even give every single hop its
> very specific information in the onion. Say for example you have a node
> that does currency conversion, you may specify the desired exchange rate
> in the onion.
>
> May I ask what use-case you are looking to implement using this feature?
>
> Cheers,
> Christian
>
> Benjamin Mord <ben at mord.io> writes:
> > Are there, or will there be, annotations one can add to a lightning
> > transaction that can be read by all intermediate nodes along a given
> route?
> > Conversely, can one add annotations readable only by certain specific
> known
> > (to sender) intermediate nodes?
> > _______________________________________________
> > Lightning-dev mailing list
> > Lightning-dev at lists.linuxfoundation.org
> > https://www.learnbitcoin.com/archive/lists/lightning-dev
>
Christian Decker in reply to Benjamin Mord permalink original

Hi Benjamin,

yes, there was a BOLT#6. It was a trivial bootstrapping mechanism I set up using IRC (like the original bitcoin client), but we retired it in favor of DNS seeds and gossiping.

Cheers, Christian

On Thu, Jan 11, 2018 at 5:40 PM Benjamin Mord <ben at mord.io> wrote:

Quoted text (50 lines)
>
> Thanks Christian. I'm reading the BOLTs and reviewing source code now, so
> perhaps my question / request will be more usefully specific once I've
> finished that review. Sorry for being vague as to use case for now, let me
> just point out that the concept of source routing opens up a lot of
> potential use cases that involve collaborations with intermediaries of
> various sorts, but for which flexible communication capability would be
> desirable or required (unless you do that out-of-band, which would be so
> messy as to largely defeat the point.)
>
> I'm impressed so far by how cleanly and explicitly the BOLTs address
> extensibility. I find that reassuring, many thanks to whoever applied their
> technical creativity to this aspect.
>
> Was there a BOLT #6?
>
> On Thu, Jan 4, 2018 at 12:13 PM, Christian Decker <
> decker.christian at gmail.com> wrote:
>
>> Hi Benjamin,
>>
>> currently the only piece of information that is kept contstant along the
>> entire route is the payment hash, and we will be removing that as well
>> in order to further decorrelate hops of a payment and make it harder for
>> forwarding nodes to collate hops into a route.
>>
>> As ZmnSCPxj has pointed out we do have the possibility of adding some
>> information in the onion packet. You can even give every single hop its
>> very specific information in the onion. Say for example you have a node
>> that does currency conversion, you may specify the desired exchange rate
>> in the onion.
>>
>> May I ask what use-case you are looking to implement using this feature?
>>
>> Cheers,
>> Christian
>>
>> Benjamin Mord <ben at mord.io> writes:
>> > Are there, or will there be, annotations one can add to a lightning
>> > transaction that can be read by all intermediate nodes along a given
>> route?
>> > Conversely, can one add annotations readable only by certain specific
>> known
>> > (to sender) intermediate nodes?
>> > _______________________________________________
>> > Lightning-dev mailing list
>> > Lightning-dev at lists.linuxfoundation.org
>> > https://www.learnbitcoin.com/archive/lists/lightning-dev
>>
>