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