A connection encrypter that does no connection encryption and trusts the remote peer to provide the correct PeerId.
This should not be used in production and is for research purposes only.
import { createLibp2p } from 'libp2p'import { plaintext } from '@libp2p/plaintext'const node = await createLibp2p({ // ...other options connectionEncrypters: [ plaintext() ]}) Copy
import { createLibp2p } from 'libp2p'import { plaintext } from '@libp2p/plaintext'const node = await createLibp2p({ // ...other options connectionEncrypters: [ plaintext() ]})
A connection encrypter that does no connection encryption and trusts the remote peer to provide the correct PeerId.
This should not be used in production and is for research purposes only.
Example