🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

dhtkv

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dhtkv

cli for storing key/value data in the bittorrent mainline dht

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
2
Created
Source

dhtkv

CLI for storing key/value data in the bittorrent mainline DHT.

You can use get and put to use BEP 44 functionality to store arbitary 1KB immutable or mutable metdata in the DHT itself

You can use announce and lookup to do the more standard ip:port announcing on the DHT

usage

# using bep44 get/put (any payload)
$ dhtkv put "hello world"
23bd9c8eefcd7f7bab73c148d4f025f5ed4ae669

$ dhtkv get 23bd9c8eefcd7f7bab73c148d4f025f5ed4ae669
hello world

# using standard announce/lookup (ip:port payload only)
$ dhtkv announce some-infohash
announce success

$ dhtkv lookup some-infohash
{"host":"1.1.1.1","port":60911}

Keywords

bittorrent

FAQs

Package last updated on 21 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts