peerid
v1.1.0
Published
Peer id generator (for bittorrent)
Downloads
8
Maintainers
Readme
peerid
Generate peer id / node id for dht / bt node
Usage
const BtClient = require('bittorrent-tracker')
const peerid = require('peerid')
const client = new BtClient(peerid(), 6881 /*, torrent file */)
// do some ...
peerid('-UT1800-') // with prefix
API
peerid([prefix: String|Buffer]): Buffer
Generate random peer id / node id
License
MIT, © Dmitry Tsvettsikh