CryptoDBSS with IPFS/Web3 implementation

CryptoDbss allows short messages to be published on the blockchain as a transaction. This can be annotated to be linked as metadata, for example, the SHA of a data or document. In this case, an example of its use with IPFS will be given.

What is IPFS?

Interplanetary File System, as its acronym IPFS, is a decentralized network protocol that allows its users to share any file, or data between connected nodes. It can also be called Web3 protocol, therefore anyone running a node can share or download what others share, without the need for a centralized server. These files, in turn, can be in directories, which allows for more orderly and precise indexing, to access them, it is necessary to know the CID (content identifier). This is generated when the file is uploaded. Each CID for each file and directory is unique, so there is only one unique one for each one, just like a hash, which is generally represented in base58.

Many decentralized apps and DAO's that use the term web3 implement it through IPFS.

Some advantages of implement IPFS
  1. Save space on long messages, resulting in lighter and lower-cost transactions.
  2. complete decentralization of the data that is shared.
  3. share associated metadata or files in blockchain without them taking up space within it.
  4. Increase capabilities to make more Web3 implementations.
Okay, and now how do we implement the IPFS protocol in cryptoDBSS??

As mentioned above, CryptoDBSS allows hosting short messages, 32 bytes in size to be exact. The CID can be coded into base16 and be reinterpreted for use as a post message on CryptoDbSS. This can then be read from the blockchain and be reconstructed as a CID using base32 or base58, and then, will recover the data from IPFS.

On the cryptoDBSS GitHub, there is already a repo illustrating the use of this implementation, using a local client and kubo (the official IPFS version in Go).

The command is executed to post a file containing the following message in a transaction:

"hello, 你好 , this is a message of CryptoDbSS using IPFS."


CryptoDbSS IPFS web3
The terminal indicates that everything proceeded correctly, both the network file sharing on IPFS and the transaction containing the CID in CryptoDbSS.

Then we retrieve the CID and use IPFS to access the data.
CryptoDbSS msg ipfs cid retrieving message from web3
source code app github.com/CryptoDbSS/IPFS-Implementation

keep following the updates and news in this blog an the github repo, thanks for read.

Popular posts from this blog

Consensus: MatchMin

Upcoming Update: Interoperability with Ethereum, External Chain Data Index with IPFS and Support for Federated Learning AI