Skip to content

Commit f0ce03d

Browse files
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 targets
1 parent ac14a82 commit f0ce03d

52 files changed

Lines changed: 7093 additions & 27 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
toolchain: stable
2020
override: true
2121
- name: Lint (clippy)
22-
run: cargo clippy --all-targets --all-features -- -D warnings
22+
run: cargo clippy --workspace --exclude ui --all-targets -- -D warnings
2323
- name: Format check
2424
run: cargo fmt --all -- --check
2525
- name: Run tests

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/target
22
/.cargo
3-
/.rustup
3+
/.rustup
4+
.DS_Store
5+
.vscode

0 commit comments

Comments
 (0)