Authored by Thibaut Sardan
ChainSafe has been collaborating with the Filecoin Foundation to develop a Filecoin-Substrate Bridge (FSB) for a few months now. This is a project intended to extend the functionality of Filecoin, enabling developers to build features into a Substrate chain that are dependent on Filecoin state.
The collaboration is ongoing, and the first phase of the project will - at its most basic - consist of a federation off-chain agents that can relay information from Filecoin to Polkadot. As part of the final steps of this phase, we developed an example application that illustrates the use of the bridge pallet.
To this end, we came up with the idea of a tech demo including CID Proofs, NFTs, and Filecoin Storage. In more detail, we've created a UI that allows users to validate a Filecoin Block CID, upload a file into Filecoin using ChainSafe Storage (an API that allows users to load files to IPFS, batch them, & upload to Filecoin) and then Mint an NFT using an innovative standard called RMRK.
The UI has two basic functionalities, and it can be found here.
Users can check if a new block CID is valid.
Users can mint a RMRK NFT on Substrate, and the image gets uploaded to IPFS using ChainSafe Storage.
Note** You need to have the Filecoindot pallet running on your local machine to make this work.
Here's the UI in action:
Stay tuned for potential new developments in the coming months. Also, check out the public repo of the project!
The Filecoin Foundation is an independent organization that facilitates governance of the Filecoin network, funds critical development projects, supports the growth of the Filecoin ecosystem, & advocates for Filecoin and the decentralized web.
RMRK is a next-generation protocol that equips NFTs with superpowers using its suite of NFT legos. The RMRK protocol makes it possible for NFTs to own other NFTs, change based on conditions, have multiple resources, have multiple outputs depending on the context, accept emojis, act as a DAO, and more. With these legos, RMRK enables the creation of the most advanced NFT projects the world has ever seen. You can explore this right now on Kanaria, RMRK's flagship NFT 2.0 project.
ChainSafe is a leading blockchain research and development firm specializing in infrastructure solutions for the decentralized web. Alongside client implementations for Ethereum, Polkadot, Filecoin, and Mina, we're building a portfolio of web3 products - Files, Storage, the Gaming SDK, and ChainBridge. As part of our mission to build innovative products for users and better tooling for developers, ChainSafe embodies an open source and community-oriented ethos. To learn more, click here.