Closed Varunram closed 5 years ago
Should we have some way for forcibly connect to a known node using XX?
Hm, to break the trust web that the PK provides, nice idea, maybe I'll put that into its own PR so that it doesn't delay this PR getting in :) Might want to have that option in lit
itself to ensure that we don't trust anyone by their PKs permanently.
This is cool -- not sure why you'd want to force XX though if you already have the key? It seems like the only advantage of XX is that you learn the remote key at the end.
Thinking back, I don't know either. If he has a new pubkey, he'd have a new listening address as well. But might be that you want to forcibly connect because you want to reverify his PK or something..
XK mode does (re?)verify their pubkey. It just doesn't tell you it if you don't know it already.
Don't merge / review yet, needs rework on top of master.
Closing this in favour of #435
Since we know the pubkey of nodes we connected to previously, use Noise_XK to connect to them and connect to new nodes using Noise_XX