File Sharing
KayakNet supports sharing files through the chat system and marketplace.
Current Capabilities
Images in Chat
Share images directly in chat:
Click the image icon in chat
Select file from device
Image is encrypted and sent
Recipient sees inline preview
Supported formats:
JPEG/JPG
PNG
GIF
WebP
Size limit: 5MB per image
Marketplace Images
Listings can include product images:
Main image (required)
Up to 5 additional images
Compressed for network efficiency
How It Works
Image Encoding
Delivery
Small images (<100KB): Inline in message
Large images: Chunked delivery
DHT: Store-and-forward for offline
Planned Features
Full File Sharing (Coming Soon)
Share any file type:
Documents (PDF, TXT, etc.)
Archives (ZIP, TAR)
Media (video, audio)
Any binary file
Distributed Storage
Large files will be:
Split into chunks
Encrypted per-chunk
Distributed across DHT
Retrieved on demand
BitTorrent Integration
For large files:
Create KayakNet torrents
Share magnet links in chat
Download via P2P within network
Security
Encryption
All files are encrypted:
Room files: Room symmetric key
DM files: Recipient's public key
Marketplace: Public (for listings)
Metadata
File metadata is also protected:
Filename (optional to share)
Size (padded)
Type (not leaked)
Best Practices
Don't share sensitive files - Unless absolutely necessary
Verify recipients - Ensure intended audience
Delete after use - Clear from local storage
Check file sizes - Large files may be slow
Limitations
Current Limitations
Max image size
5MB
Max images per listing
6
File types
Images only
Network Constraints
Large files strain onion routing
Slow on mobile connections
DHT storage is temporary
API
Upload Image (Chat)
Get Image
Marketplace Image
Last updated

