ustulation / p2p

NAT Traversal techniques for p2p communication
BSD 3-Clause "New" or "Revised" License
133 stars 28 forks source link

Encrypt UDP hole punching messages #45

Closed povilasb closed 6 years ago

povilasb commented 6 years ago

Encrypts UDP hole punching messages. Other changes regarding encryption will come with future PRs.

povilasb commented 6 years ago

Note that UdpRendezvousMsgwith peers address info is transferred unencrypted, because it holds peers public key, hence encryption is not possible yet. Of course unless we exchanged public key separately. Although, not sure if it's worth it the hustle.

canndrew commented 6 years ago

If we wanted to be encrypted from the first message then we'd need to distribute public keys with endpoints. Otherwise if we want to encrypt endpoint addresses then we need to have two rounds of message passing...

ustulation commented 6 years ago

OS X doesn't start. Rest of CI passes.