Re: [Lightning-dev] Minor tweaks to blinded path proposal

2020-11-21 Thread Rusty Russell
Bastien TEINTURIER writes: > Hey Rusty, > > Good questions. > > I think we could use additive tweaks, and they are indeed faster so it can > be worth doing. > We would replace `B(i) = HMAC256("blinded_node_id", ss(i)) * P(i)` by `B(i) > = HMAC256("blinded_node_id", ss(i)) * G + P(i)`. > Intuitivel

Re: [Lightning-dev] Minor tweaks to blinded path proposal

2020-11-19 Thread Bastien TEINTURIER
Hey Rusty, Good questions. I think we could use additive tweaks, and they are indeed faster so it can be worth doing. We would replace `B(i) = HMAC256("blinded_node_id", ss(i)) * P(i)` by `B(i) = HMAC256("blinded_node_id", ss(i)) * G + P(i)`. Intuitively since the private key of the tweak comes f

[Lightning-dev] Minor tweaks to blinded path proposal

2020-11-17 Thread Rusty Russell
See: https://github.com/lightningnetwork/lightning-rfc/blob/route-blinding/proposals/route-blinding.md 1. Can we use additive tweaks instead of multiplicative? They're slightly faster, and supported by the x-only secp API. 2. Can we use x-only pubkeys? It's generally trivial, and a