https://github.com/fabryprog/iotbittorrent
POC: using BitTorrent (BEP44) for IoT
https://github.com/fabryprog/iotbittorrent
Last synced: 2 months ago
JSON representation
POC: using BitTorrent (BEP44) for IoT
- Host: GitHub
- URL: https://github.com/fabryprog/iotbittorrent
- Owner: Fabryprog
- License: apache-2.0
- Created: 2020-03-18T19:24:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T22:59:09.000Z (over 1 year ago)
- Last Synced: 2025-02-12T08:57:12.114Z (4 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# INSTALL
```
> git clone https://github.com/Fabryprog/IoTBitTorrent.git
> cd IoTBitTorrent
> npm install
```# PoC
## PUT value inside BitTorrent network
```
> node put.jsBitTorrent node listening on port 20000.
Sending message "Hello World!" using the public key "1c96bf4279e7658205b95aeba183275433b9129b9343cc5e96a179d823929839"
DHT message "Hello World!" sent with hash "0bbbe89100251bb682cb7448b285b6a5d588e22e"
```## GET value from BitTorrent network
```
> node get.js 1c96bf4279e7658205b95aeba183275433b9129b9343cc5e96a179d823929839BitTorrent node listening on port 20000.
Retrieve message using pubKey "1c96bf4279e7658205b95aeba183275433b9129b9343cc5e96a179d823929839"
Retring data using hash "0bbbe89100251bb682cb7448b285b6a5d588e22e"
Message is "Hello World!"
```