cabal-club / cable

A lightweight peer-to-peer chat protocol.
https://cabal.chat
74 stars 4 forks source link

Change the handshake pattern to XXpsk0. #18

Closed hackergrrl closed 11 months ago

hackergrrl commented 11 months ago

This will allow implementations to use the same keypair they use for signing posts in the Wire Protocol for authenticating connections in the Handshake Protocol.

mycognosist commented 11 months ago

@hackergrrl

This looks good to me. I really like that the change provides us with an authentication mechanism during the handshake.

Are there any downsides to this addition that you're aware of?

hackergrrl commented 11 months ago

Are there any downsides to this addition that you're aware of?

Only that it requires another transmission step.

NN:
  -> e
  <- e, ee

XX:
  -> e
  <- e, ee, s, es
  -> s, se
mycognosist commented 11 months ago

@hackergrrl

Only that it requires another transmission step.

Cool, thanks for the clarification. Seems like a perfectly reasonable tradeoff to me.