Module insecure

A connection encrypter that does no connection encryption.

This should not be used in production should be used for research purposes only.

Example

import { createLibp2p } from 'libp2p'
import { plaintext } from 'libp2p/insecure'

// Create a Uint8Array and write the swarm key to it
const swarmKey = new Uint8Array(95)
generateKey(swarmKey)

const node = await createLibp2p({
// ...other options
connectionEncryption: [plaintext()]
})

Index

Functions