This repository provides a solution for integrating IPFS-based file storage with the Bitnet network. It enables indirect IPFS file storage and direct hash indexing on Bitnet, making it possible to leverage decentralized and immutable storage for a variety of applications.
This repository provides a solution for integrating IPFS-based file storage with the Bitnet network. It enables indirect IPFS file storage and direct hash indexing on Bitnet, making it possible to leverage decentralized and immutable storage for a variety of applications.
The IPFS Storage protocol serves as a bridge between the Bitnet network and IPFS, allowing for permanent and immutable file storage. It can be utilized for:
IPFS Service Utilized: Piñata Cloud (can be updated to use any other compatible service).
storeIPFSHash
function on the smart contract.getFileByHash
, to retrieve the specific file URL. The contract returns the concatenated URL using the stored IPFS Gateway URL.The smart contract is designed to store and index IPFS file hashes. It allows for retrieving file links either by using IPFS hashes or by referencing the index position within the stored hashes.
Developers can either build an interface from scratch or use one of the provided templates to build upon. Templates are available in TypeScript, JavaScript/HTML, Python, PHP, and Rust. Most languages with Web 3 support are compatible with this protocol.