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