Secure • Decentralized • Verifiable
Features • Architecture • Getting Started • Documentation • Roadmap
- Overview
- Key Features
- Architecture
- Workflow Diagram
- Technology Stack
- Getting Started
- Usage
- Smart Contracts
- Use Cases
- Security
- Roadmap
- Contributing
- License
DeTransfer is a fully decentralized file transfer application that combines the power of distributed storage, blockchain verification, and end-to-end encryption to provide censorship-resistant, verifiable, and trustless data delivery.
Unlike traditional file-sharing services, DeTransfer eliminates single points of failure and central authority control by leveraging a client-side architecture:
- Storage Layer (Walrus) - Decentralized storage with redundancy and high availability
- Verification Layer (Sui) - Blockchain-based metadata storage, ownership, and state management
- Encryption Layer (Seal) - Client-side end-to-end encryption SDK for recipient-only access
- No Central Authority - Fully decentralized architecture
- Cryptographic Verification - Every transfer is provably secure
- Censorship Resistant - No single entity can block or monitor transfers
- End-to-End Encryption - Client-side encryption ensures privacy
- Auditable & Transparent - On-chain proofs enable verification
- Cross-Network Interoperability - Seamless integration across protocols
DeTransfer leverages Walrus for decentralized storage, ensuring files are:
- Stored directly on the Walrus network without intermediaries
- Replicated across multiple independent nodes
- Resistant to data loss and censorship
- Configurable storage epochs (duration)
- Available with high durability guarantees
Sui blockchain provides:
- Immutable on-chain file metadata (blob IDs, filenames, recipients)
- Smart contract-based file registry
- Ownership and recipient tracking
- Transaction integrity and auditability
- Gas-efficient Move language contracts
- Event-based file history queries
Seal SDK provides:
- Client-side encryption before upload
- Recipient-only decryption access
- Session key-based authorization
- Zero-knowledge architecture
- No intermediate access to plaintext data
- Support for both public and private file sharing
- Batch File Upload - Upload multiple files in a single transaction
- Public & Private Sharing - Choose between encrypted private or public files
- Storage Duration Control - Configure storage epochs for file retention
- QR Code Sharing - Easy file sharing via QR codes
- Shared with Me - View all files shared with your wallet
- Progress Tracking - Real-time upload and download progress
- Wallet Integration - Seamless Sui wallet connection via dApp Kit
DeTransfer follows a client-side architecture designed for decentralization, security, and simplicity:
┌─────────────────────────────────────────────────────────────┐
│ Next.js Web Application │
│ • React 19 UI Components │
│ • Seal SDK (Client-side Encryption) │
│ • Walrus HTTP Client (Direct API Integration) │
│ • Sui dApp Kit (Wallet & Transaction Management) │
└──────────┬─────────────────────────────┬────────────────────┘
│ │
▼ ▼
┌──────────────────────┐ ┌─────────────────────────────┐
│ Walrus Storage │ │ Sui Blockchain │
│ • Blob Storage │ │ • File Registry Contract │
│ • HTTP API │ │ • Metadata Storage │
│ • Epoch Management │ │ • Event Queries │
└──────────────────────┘ └─────────────────────────────┘
| Component | Technology | Responsibility |
|---|---|---|
| Web App | Next.js 15, React 19, TypeScript | User interface, file handling, encryption orchestration |
| Seal SDK | @mysten/seal | Client-side end-to-end encryption and decryption |
| Walrus | HTTP API | Decentralized file storage and retrieval |
| Sui | Move Language, @mysten/sui | Smart contracts for file metadata registry |
| Wallet | @mysten/dapp-kit | Wallet connection and transaction signing |
sequenceDiagram
participant U as User (Sender)
participant C as Web App
participant S as Seal SDK
participant W as Walrus Storage
participant B as Sui Blockchain
participant R as Recipient
Note over U,R: File Upload Phase
U->>C: Select file(s) and recipient
U->>C: Choose public or private
alt Private File
C->>S: Encrypt file (Seal SDK)
S->>S: Generate encryption keys
S-->>C: Encrypted blob
end
C->>W: Upload blob to Walrus (HTTP PUT)
W->>W: Store and replicate
W-->>C: Return blob ID
C->>B: Register file metadata (Move call)
B->>B: Execute smart contract
B->>B: Emit FileUploaded event
B-->>C: Transaction confirmation
Note over U,R: File Download Phase
R->>C: View "Shared with Me" (query Sui events)
C->>B: Query FileRecord objects
B-->>C: Return file metadata
R->>C: Request file download
C->>W: Download blob (HTTP GET)
W-->>C: Return encrypted/blob
alt Private File
C->>S: Create session key
C->>R: Request wallet signature
R->>C: Sign personal message
C->>B: Execute seal_approve transaction
C->>S: Decrypt blob
S-->>C: Decrypted file
end
C->>R: Deliver file
-
Upload Phase
- User connects Sui wallet and selects file(s)
- For private files: File is encrypted client-side using Seal SDK
- Encrypted (or plain) file is uploaded directly to Walrus via HTTP API
- Walrus returns a blob ID
- File metadata (blob ID, recipient, filename, etc.) is registered on Sui blockchain
- Smart contract emits FileUploaded event
-
Download Phase
- Recipient views "Shared with Me" by querying Sui blockchain events
- File metadata is retrieved from on-chain FileRecord objects
- Encrypted blob is downloaded directly from Walrus aggregator
- For private files: Recipient creates session key, signs with wallet, executes seal_approve transaction
- File is decrypted client-side using Seal SDK
- Decrypted file is delivered to recipient
- Next.js 15 - React framework with App Router
- React 19 - Modern UI library
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- Framer Motion - Animation library
- Sui - Layer 1 blockchain platform (Testnet)
- Move Language - Smart contract development
- @mysten/sui - Sui TypeScript SDK
- @mysten/dapp-kit - Wallet adapter and transaction management
- @mysten/seal - End-to-end encryption SDK
- Walrus - Decentralized storage network (Testnet)
- @mysten/walrus - Walrus TypeScript SDK (optional, using direct HTTP API)
- Node.js - Runtime environment
- npm - Package manager
Ensure you have the following installed:
- Node.js (v18.0.0 or higher)
- npm package manager
- Sui Wallet browser extension (Installation Guide)
- Git version control
- Clone the repository
git clone https://github.com/anbusan19/DeTransfer.git
cd DeTransfer- Install dependencies
cd web
npm install- Configure environment variables (optional)
The application uses default testnet configurations. If needed, create a
.env.localfile:
# Optional: Override default Sui network
NEXT_PUBLIC_SUI_NETWORK=testnet- Start the development server
cd web
npm run dev-
Open your browser Navigate to
http://localhost:3000 -
Connect your wallet
- Install the Sui Wallet browser extension
- Click "Connect Wallet" in the application
- Approve the connection
The application uses a pre-deployed file registry contract on Sui Testnet:
- Package ID:
0xd6829acedddd2bae3602e16e4130c8e326562b49fd8d29a031362650114bd49f - Module:
file_registry
To deploy your own contract or update the configuration, edit web/app/lib/sui/config.ts.
-
Navigate to Upload Page
- Click "Upload" in the navigation or visit
/upload
- Click "Upload" in the navigation or visit
-
Connect Wallet
- Click "Connect Wallet" and approve the connection
-
Select Files
- Click to select one or multiple files
- Files are processed in batch
-
Configure Upload
- Private Files: Enter recipient wallet address (or use your own)
- Public Files: Toggle "Public File" - no encryption, accessible by blob ID
- Storage Duration: Set epochs (1 epoch ≈ 1 day on testnet)
-
Upload
- Click "Upload Files"
- Sign the transaction when prompted
- Wait for upload and blockchain confirmation
-
View Shared Files
- Navigate to "Receive" page or visit
/receive - View all files shared with your wallet address
- Navigate to "Receive" page or visit
-
Download
- Click "Download" on any file
- For private files: Sign the session key message and approve the
seal_approvetransaction - File will be decrypted and downloaded automatically
- QR Code: Generate QR code with blob ID for easy sharing
- Copy Blob ID: Copy the blob ID to share manually
- Direct Link: Use the blob ID in the URL:
/receive?blobId=<blob-id>
The file registry contract stores file metadata on-chain, including:
- Blob ID (Walrus storage identifier)
- Uploader address
- Recipient address
- File name and type
- File size
- Upload timestamp
- Expiration epoch
- Storage epochs
- Public/private flag
- Package ID:
0xd6829acedddd2bae3602e16e4130c8e326562b49fd8d29a031362650114bd49f - Module:
file_registry - Network: Sui Testnet
register_file- Register a new file with metadataFileUploadedevent - Emitted when a file is registered
The Move source code for the file registry contract is located in the walrus/move/file_registry/ directory.
The application uses Seal's simple_recipient access policy for encryption:
- Package ID:
0xd1d471dd362206f61194c711d9dfcd1f8fd2d3e44df102efc15fa07332996247 - Module:
simple_recipient - Function:
seal_approve- Authorizes recipient to decrypt files
- Secure Document Sharing - Legal, financial, and confidential documents
- Cross-Organization Collaboration - Trustless file exchange between partners
- Compliance & Audit Trails - Verifiable proof of delivery and access logs
- Decentralized Backups - Critical data redundancy without central servers
- Privacy-Focused Sharing - End-to-end encrypted personal files
- Large File Transfers - Bypass email and cloud storage limits
- Permanent Storage - Long-term archival with guaranteed availability
- Whistleblower Protection - Anonymous and secure document submission
- dApp File Storage - Integrate decentralized storage in applications
- NFT Metadata Storage - Store NFT assets with verifiable proofs
- Decentralized CDN - Content delivery without centralized infrastructure
- Web3 Infrastructure - Build on trustless file transfer primitives
- Client-Side Encryption - Private files encrypted using Seal SDK before upload
- Recipient-Only Access - Only the specified recipient wallet can decrypt private files
- Zero-Knowledge Architecture - No intermediate access to plaintext data
- On-Chain Metadata - File metadata stored immutably on Sui blockchain
- Wallet-Based Authentication - All transactions require wallet signatures
- Session Key Authorization - Decryption requires wallet-signed session keys
- Never share your wallet private keys or seed phrases
- Verify recipient addresses before uploading files
- Use private mode for sensitive files - Public files are unencrypted
- Verify blob IDs when sharing - Ensure you're sharing the correct file
- Monitor your wallet activity - Check transactions on Sui explorers
- Keep your wallet extension updated
Found a security issue? Please report it responsibly:
- Email: [email protected]
- PGP Key: Download
- Bug Bounty: Program Details
- Core protocol development
- Sui smart contracts deployment
- Walrus integration
- Seal encryption integration
- Web application (Next.js)
- Batch file upload
- Public and private file sharing
- Public testnet launch
- Security audit completion
- Multi-device session synchronization
- Temporary share links with programmable expiry
- Advanced access control (time-based, usage-limited)
- Mobile applications (iOS/Android)
- Desktop applications (Windows/macOS/Linux)
- Privacy-preserving audit trails with zero-knowledge proofs
- Enterprise API and SDK
- Mainnet deployment
- Cross-chain bridges for multi-blockchain support
- Decentralized governance implementation
- Advanced analytics dashboard
- Third-party integrations and partnerships
- Decentralized identity integration (DID)
- AI-powered file organization and search
- Layer 2 scaling solutions
- Global CDN with edge caching
We welcome contributions from the community! Here's how you can help:
- Report Bugs - Submit detailed bug reports
- Suggest Features - Propose new ideas and enhancements
- Improve Documentation - Help us maintain clear docs
- Submit Pull Requests - Contribute code improvements
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Use TypeScript for type safety
- Follow Next.js and React best practices
- Use ESLint and Prettier for code formatting
- Write comprehensive tests for new features
- Update documentation for API changes
- Maintain backward compatibility when possible
This project is licensed under the MIT License - see the LICENSE file for details.
- Website: https://detransfer.io
- Documentation: https://docs.detransfer.io
- Twitter: @DeTransfer
- Discord: Join our community
- Email: [email protected]
Special thanks to:
- Sui Foundation - For blockchain infrastructure and support
- Walrus Team - For decentralized storage solutions
- Open Source Community - For tools and libraries
- Early Contributors - For testing and feedback
Built for a decentralized future
