Commit f0ce03d
authored
feat: make simple node struct that works with QUIC (#39)
* chore: implement P2P Node with QUIC support and basic echo functionality
- Added dependencies for QUIC, cryptograph in Cargo.toml.
- Created a new module `node` to encapsulate the P2P node functionality.
- Removed the default main function as the application structure is now modular.
- Implemented the `Node` struct with Ed25519 key management, QUIC endpoint setup, and peer management.
- Added methods for connecting to peers, adding/removing peers, and handling self-signed certificates.
- Implemented SPKI pinning for enhanced security during peer connections.
- Added a smoke test for establishing a QUIC connection and echoing messages between two nodes.
* chore: remove TODO in Node implementation and .DS_Store and .vscode to .gitignore
* feat: add anyhow dependency, add custom ALPN, zeroize copies after used, clean up API
Anyhow is now used as the standard way to handle errors. Node.rs now has a spawn_echo_server function. connect_to() is renamed to connect_to_spki() and take sin the spki cert instead of the DER cert. Add helper method to get SPKI from der. Make transport directory.
* chore: rebase starting-framework with dioxus project
* refactor: simplify connection handling in Node echo server
* refactor(frontend): simplify echo.rs
* fix(ci): update clippy command to exclude UI targets1 parent ac14a82 commit f0ce03d
52 files changed
Lines changed: 7093 additions & 27 deletions
File tree
- .github/workflows
- crates
- backend
- src
- transport
- tests
- frontend/src
- api
- src
- desktop
- assets
- src
- views
- mobile
- assets
- src
- views
- ui
- assets
- styling
- src
- web
- assets
- src
- views
- src
- app
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments