Decrypt incoming data. If the remote PeerId is known, pass it for extra verification, otherwise it will be determined during the handshake
Encrypt 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.
A libp2p connection encrypter module must be compliant to this interface to ensure all exchanged data between two peers is encrypted.