<oembed><type>rich</type><version>1.0</version><title>Rusty Russell [ARCHIVE] wrote</title><author_name>Rusty Russell [ARCHIVE] (npub1zw…hkhpx)</author_name><author_url>https://yabu.me/npub1zw7cc8z78v6s3grujfvcv3ckpvg6kr0w7nz9yzvwyglyg0qu5sjsqhkhpx</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2020-02-03&#xA;📝 Original message:&#xA;Bastien TEINTURIER &lt;bastien at acinq.fr&gt; writes:&#xA;&gt; We can easily get rid of (1.) by leveraging the `payment_secret`. The&#xA;&gt; improved scheme is:&#xA;&gt;&#xA;&gt; * Alice draws a random `decoy_key`&#xA;&gt; * Alice computes the corresponding `decoy_node_id = decoy_key * G`&#xA;&gt; * Alice draws a random `payment_secret`&#xA;&gt; * Alice computes `decoy_short_channel_id = H(payment_secret * decoy_key *&#xA;&gt; bob_node_id) xor short_channel_id`&#xA;&gt; * Alice uses the `decoy_key` to sign the invoice&#xA;&gt; * Carol recovers `decoy_node_id` from the invoice signature&#xA;&gt; * Carol includes `P_I = payment_secret * decoy_node_id` in the onion&#xA;&gt; payload for Bob&#xA;&gt; * Bob can compute `short_channel_id = H(bob_private_key * P_I) xor&#xA;&gt; decoy_short_channel_id`&#xA;&gt;&#xA;&gt; But I don&#39;t see how to get rid of (2.). If anyone has a clever idea on how&#xA;&gt; to do that, I&#39;d love to hear it!&#xA;&#xA;I really don&#39;t want a special marker on Carol; she needs to just pay&#xA;like normal.  Not just because it&#39;s simple, but because it means that&#xA;Carol can use a custodial wallet without having to flag the payment as&#xA;somehow special.&#xA;&#xA;AFAICT, having Bob assign scids is the only viable way to do this.  The&#xA;current proposal limits to one scid at a time, but it could be extended&#xA;to allow multiple scids.&#xA;&#xA;(I&#39;m seeking a clever way that Bob can assign them and trivially tell&#xA;which ID is assigned to which peer, but I can&#39;t figure it out, so I&#xA;guess Bob keeps a mapping and restricts each peer to 256 live scids?).&#xA;&#xA;I&#39;ve updated and somewhat simplified the PR now.&#xA;&#xA;Cheers,&#xA;Rusty.</html></oembed>