# guts-p2p
P2P networking layer for Guts using commonware primitives.
## Overview
This crate provides peer-to-peer networking for:
- Repository replication across nodes
- Encrypted communication (Noise protocol)
- Peer discovery and mesh networking
- Efficient delta synchronization
## Features
- Built on [commonware-p2p](https://crates.io/crates/commonware-p2p)
- Ed25519-based peer identity
- Automatic peer discovery
- Bandwidth-efficient synchronization
## Usage
```rust
use guts_p2p::{P2PNetwork, ReplicationConfig};
// Start P2P network
let network = P2PNetwork::new(config).await?;
// Replicate a repository
network.replicate(&repo_key).await?;
```
## Part of Guts
This crate is part of [Guts](https://github.com/AbdelStark/guts), a decentralized, censorship-resistant alternative to GitHub built on BFT consensus.
## License
MIT OR Apache-2.0