-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add whisperlinks #63
add whisperlinks #63
Conversation
hm. might use edit: added in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool feature @cblgh 🎉
thanks for the reviews friends! i'll comment individually above :) |
Hey this is awesome, @cblgh! I definitely want to clone this feature in our work in the future. |
@pvh go for it! 🖤 |
Hi friends!
This PR adds whisperlinks. Whisperlinks are user defined, shortlived, shortname aliases for a cabal key. They look something like
where the first part identifies the string as a whisper link,
workshop
is the user defined alias, and the-1ee
suffix are three first hex characters of the cabal key being shared (which helps verify the joined cabal, as well as disambiguate names & prevent already-unlikely name collisions).Whisperlinks are shortlived, currently terminating after 5 minutes. A whisperlink can be used multiple times before it self-terminates, and it will sync over LAN as well as the internet (it uses hyperswarm, under the hood)
Anyone can create a whisperlink for a cabal they are in by invoking the
/whisper <name>
command.The entire raison d'être of whisperlinks is that creating and sharing cabals in physical space was really awkward before. If you had a workshop at a hackerspace, with everyone gathered locally, you practically had to use a separate chat software in order to transmit the 64 character long cabal key amongst the group. Now, someone could just create a whisperlink and verbally transmit the short & understandable alias they chose.
This PR uses a module I created a while back called paperslip to accomplish most of the not-so-heavy lifting.