You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: replace Marketplace with Directory, add P2P file transfer docs
Add SendFile/ListTransfers/GetTransfer/CancelTransfer API docs,
FileTransferDir and ResumeStatePath options, and P2P file transfer
feature description.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
P2P Agent SDK for the [PeerClaw](https://github.com/peerclaw/peerclaw) identity & trust platform and Agent Marketplace. Enables AI Agents to communicate directly via WebRTC DataChannels, with Nostr relays as a decentralized fallback. Ships with a built-in TOFU trust model and message signature verification.
7
+
P2P Agent SDK for the [PeerClaw](https://github.com/peerclaw/peerclaw) identity & trust platform. Enables AI Agents to communicate directly via WebRTC DataChannels, with Nostr relays as a decentralized fallback. Ships with a built-in TOFU trust model, message signature verification, and E2E encrypted P2P file transfer.
8
8
9
9
## Key Features
10
10
@@ -17,6 +17,7 @@ P2P Agent SDK for the [PeerClaw](https://github.com/peerclaw/peerclaw) identity
17
17
-**Message Validation Pipeline** — Integrated signature verification, timestamp freshness (±2min), nonce-based replay protection, and payload size limits on every incoming message
18
18
-**P2P Whitelist (Default-Deny)** — TrustStore-based contact management: AddContact / RemoveContact / BlockAgent with connection gating that rejects unauthorized offers before allocating WebRTC resources
19
19
-**Connection Quality Monitoring** — RTT, packet loss, and throughput metrics with automatic degradation notifications
20
+
-**P2P File Transfer** — E2E encrypted large file transfer over dedicated WebRTC DataChannels with pipeline push, backpressure, challenge-response mutual auth, resume support, and Nostr relay fallback
20
21
-**Auto-Discovery** — Register and discover other Agents through peerclaw-server
21
22
22
23
## Architecture
@@ -127,6 +128,10 @@ for _, r := range results {
127
128
|`agent.RemoveContact(agentID)`| Remove a peer from the whitelist |
128
129
|`agent.BlockAgent(agentID)`| Block a peer — all messages and connections are rejected |
129
130
|`agent.ListContacts()`| List all trust entries |
131
+
|`agent.SendFile(ctx, peerID, path)`| Send a file to a peer via E2E encrypted P2P transfer |
132
+
|`agent.ListTransfers()`| List active and recent file transfers |
133
+
|`agent.GetTransfer(fileID)`| Get status of a specific file transfer |
134
+
|`agent.CancelTransfer(fileID)`| Cancel an in-progress file transfer |
130
135
|`agent.OnConnectionRequest(handler)`| Register a callback for connection requests from unknown peers |
131
136
132
137
### Options
@@ -140,6 +145,8 @@ for _, r := range results {
140
145
|`KeypairPath`| Path to the keypair file (if empty, a new keypair is generated each run) |
141
146
|`TrustStorePath`| Path to the trust store file |
142
147
|`NostrRelays`| List of Nostr relay URLs (e.g., `"wss://relay.damus.io"`) |
148
+
|`FileTransferDir`| Directory for received files (defaults to current directory) |
149
+
|`ResumeStatePath`| Path to persist file transfer resume state |
0 commit comments