jankaszel / hypercore-literary-broadcast

Broadcast verses from Goethe's Faust via hypercore extension messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hypercore Extension Broadcast Test

This small application is a test on using hypercore feed extensions in order to broadcast ephemeral messages to peers on a P2P network. For that purpose, it sends single verses from Goethe's Faust (obtained from Projekt Gutenberg) to each peer that is accessing the same hypercore feed. To run this test, you'll need to have installed Node.js and to obtain the module's dependencies (npm install).

To my understanding, hypercore feeds as well as their replication streams are encrypted and a feed's discovery key serves both for discovery as well as decryption. With the first instance of the application, we will let hypercore generate a new feed and thus, a new discovery key:

node .

This instance will output its discovery key. Copy it and create a second instance with this key:

node . <key>

Upon feed initialization and discovery—both peers will join the same swarm based on the feed's key—they will start sending random lines from the first chapter of Faust to each other. That's it!

I might be wrong on that feeds itself—that is, their persistence on memory or disk—are actually encrypted, and encryption could rather be limited to network communication via the Noise protocol.

About

Broadcast verses from Goethe's Faust via hypercore extension messages

License:MIT License


Languages

Language:JavaScript 100.0%