maidsafe-archive / crust

Reliable p2p network connections in Rust with NAT traversal. One of the most needed libraries for any server-less / decentralised projects
BSD 3-Clause "New" or "Revised" License
956 stars 126 forks source link

resolves #1118: accept encryption keys via Service constructor #1119

Closed povilasb closed 5 years ago

povilasb commented 5 years ago

This allows crust to reuse encryption keys from the upper layers. Since peer ID holds public key as well, a lot of messages, structures were holding redundant copy of peer public key. This commit removes that as well.