https://github.com/n0-computer/iroh-workshop-web3summit
Iroh workshop at web3 summit 2024
https://github.com/n0-computer/iroh-workshop-web3summit
Last synced: about 1 year ago
JSON representation
Iroh workshop at web3 summit 2024
- Host: GitHub
- URL: https://github.com/n0-computer/iroh-workshop-web3summit
- Owner: n0-computer
- Created: 2024-08-18T12:21:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T07:30:03.000Z (over 1 year ago)
- Last Synced: 2025-04-28T16:09:25.757Z (about 1 year ago)
- Language: Rust
- Size: 154 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Latest version of this workshop is at https://github.com/n0-computer/iroh-workshop-omniopencon
# Code for the iroh workshop @ Web3Summit 2024
## Discord (to exchange tickets etc)
https://iroh.computer/discord
## Slides
https://tinyurl.com/2bb23ybx
## Hackmd
https://hackmd.io/_nQqsdplTZiyZ4DprCBGMQ?view
You can run each step using e.g.
```
cd pipe1
cargo run
```
You can copy each example as a starting point for a standalone
crate.
## Pipe
Simple pipe between two endpoints anywhere in the world.
Like netcat, but global
/pipe-diy just the project setup, DIY
/pipe1 minimal working version
/pipe2 use iroh DNS node discovery to get shorter tickets
/pipe3 use https://pkarr.org node discovery to get p2p discovery
/pipe4 add direct addresses to the published records
## Chat
Peer to peer group chat using iroh gossip protocol
/chat-diy just the project setup, DIY
/chat1 minimal working version, text protocol
/chat2 messages signed by the node id
/chat3 add encrypted direct messages
## Raw Chat
Same as above, but implemented using iroh-net and iroh-gossip instead of using
iroh.
# Prerequisites
## Git
https://git-scm.com/downloads
## Rust
https://www.rust-lang.org/tools/install
```sh
curl https://sh.rustup.rs | sh
```
## VS Code
https://code.visualstudio.com/download
## Rust Analyzer plugin
https://rust-analyzer.github.io/
- rust-analyzer also works with Emacs and Vim
- you can install it from within vscode

## Iroh CLI
```sh
cargo install iroh-cli`
```
## Nice to have
```sh
cargo install dumbpipe
cargo install sendme
```
## Links
- Discord: https://iroh.computer/discord
- Iroh docs: https://docs.rs/iroh
- Our blog: https://iroh.computer/blog