libcp2p icon indicating copy to clipboard operation
libcp2p copied to clipboard

Basic Networking - Part 2

Open bonedaddy opened this issue 5 years ago • 0 comments

Overview

The focus on this issue is to enable secure connections to endpoints using PeerIDs, and securing the connection using the corresponding public key

Expected Outcome

  • Initiate a connection to a target host specified by multiaddr + peerid
  • If target host does not have the specified peerid, disconnect
  • Hosts will use public key cryptography to secure the connections, by using the public key that corresponds to the peerid
    • this means we need a method of testing that the target has the public key, by using a signed message or something similar
    • we need to securely exchange keys, and also make sure that the verification that the target peer has the key
      • we can proibably do this by message verification using a protocol handler + timestamp to act as a "nonce" preventing signed message reuse
  • Change the multiaddr protocol /ipfs to /p2p

bonedaddy avatar Jul 21 '20 08:07 bonedaddy