A libp2p connection encrypter module must be compliant to this interface to ensure all exchanged data between two peers is encrypted.

Type Parameters

  • Extension = unknown

Hierarchy

  • ConnectionEncrypter

Properties

protocol: string
secureInbound: ((localPeer: PeerId, connection: Duplex<AsyncGenerator<Uint8Array, any, unknown>, Source<Uint8Array>, Promise<void>>, remotePeer?: PeerId) => Promise<SecuredConnection<Extension>>)

Type declaration

secureOutbound: ((localPeer: PeerId, connection: Duplex<AsyncGenerator<Uint8Array, any, unknown>, Source<Uint8Array>, Promise<void>>, remotePeer?: PeerId) => Promise<SecuredConnection<Extension>>)

Type declaration