Skip to content

Conversation

sujalsalekar
Copy link

OnchainCID

A robust Ethereum smart contract for managing decentralized file metadata and ownership with IPFS/Filecoin CID integration. This contract provides a secure and efficient way to track file metadata, manage ownership transfers, and handle storage deal IDs on the blockchain.

Key Features

  • File Metadata Management: Store and manage essential file information including filename, size, MIME type, and encryption status
  • Timestamp Tracking: Built-in creation and update timestamp tracking for all file operations
  • Secure Ownership Transfer: Two-step ownership transfer process with initiation and acceptance phases
  • Deal ID Management: Support for multiple storage deal IDs with batch operations
  • Gas Optimized: Efficient batch operations and storage management
  • Event Tracking: Comprehensive event emission for all major operations

Core Functionalities

  • Push new CIDs with associated metadata
  • Update and manage storage deal IDs
  • Transfer file ownership between addresses
  • Remove CIDs and deal IDs (single or batch)
  • Query detailed file information
  • Track file creation and modification timestamps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant