Decrypt incoming data. If the remote PeerId is known, pass it for extra verification, otherwise it will be determined during the handshake
Optional
remotePeer: PeerIdEncrypt outgoing data to the remote party. If the remote PeerId is known, pass it for extra verification, otherwise it will be determined during the handshake.
Optional
remotePeer: PeerId
A libp2p connection encrypter module must be compliant to this interface to ensure all exchanged data between two peers is encrypted.