Add p2p layer encryption with ECDH/ChaCha20Poly1305

Pull Request #14032

State completed
Build time Total: 62 minutes
7 minutes for macOS
17 minutes for Windows
38 minutes for Linux
Platforms   
Start Date2018-08-23 19:20:28 UTC
Github#14032
Head:
Mergable:
Changed files:
Comments:
Author jonasschnelli
Pull request head hash4e4aedd0
Build styleThis pull request was built on top of current master
Build Log HEAD~6384d7552b Merge branch '2018/08/bip151' of https://github.com/jonasschnelli/bitcoin
4e4aedd0a [QA] add encryption functional test
c72c02291 Add encryption state and session id to getpeerinfo
710ebe414 Avoid ephemeral key->pubkeys that start with net magic
64c90fcbf Implement encryption rekeying
d47801a7a Add and respect service flag NODE_ENCRYPTED