Skip to content

reklatsmasters/peerid

Repository files navigation

peerid

travis npm license downloads Test Coverage

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

About

Generate peer id for bittorrent dht node

Resources

License

Stars

Watchers

Forks

Packages

No packages published