Developers Forum for XinFin XDC Network

Julia Pak
Julia Pak

Posted on

Storing bad (evil)types of data on the blockchain : how does protection work?

If blockchains are censorship resistant and one cannot delete/censor content, how do we protect against the worst case scenario? i.e. data being stored related to child porn, murder etc. That's one thing I don't have my head around yet.

AWS, google cloud and centralized services do checks and balances with data being stored and generally use automations to sort and flag.

Discussion (8)

Collapse
akhekade profile image
Atul Khekade

By design, public blockchain doesn't allow you to store videos etc on blockchain, one may store references. But the references can only deal with some sort of decentralised storage network or AWS. AWS has sensorship and will block you permanently once they find out. As for decentralised storage, once the content is flagged as inappropriate, the nodes can be structured to flag it as evil/inappropriate data source. In case of XDC and related l2 use cases, 2/3rd majority is enough to throw you out of ecosystem.

Collapse
ineedhelpx profile image
Julia Pak Author

whats the difference between reference to the data and actual data?

Collapse
akhekade profile image
Atul Khekade

You can't store much data on blockchain except metadata. The metadata can contain hash value reference to external data source. Blockchain isnt designed for heavy onchain data storage.

Thread Thread
ineedhelpx profile image
Julia Pak Author

so this brings on another question: I am developing a food ordering app. I need to dispatch orders that are placed to workers on the ground, can blockchain do order assignment? I'm assuming it can handle this task. My off chain data will be on firebase etc

Thread Thread
akhekade profile image
Atul Khekade

Yes. In this case, the L2 (which is your primary ordering service app) can use L1 (XDC Mainnet) functionality to confirm the orders and/or schedule them. There are some open source references on github to take inspiration from if its something that you may want to refer:

github.com/iampkmone/FoodChain

Thread Thread
ineedhelpx profile image
Julia Pak Author

thank you very much. i will take a read

Collapse
ineedhelpx profile image
Julia Pak Author

hmm this brings up a lot more questions. How do you assure each flag is legitimate? Theoretically if Sally doesn't like Bob, couldn't she just get a ton of bots on her side?

Collapse
akhekade profile image
Atul Khekade

XDC Network itself and most dapps on XDC are staking based. To setup masternode on XDC, one has to stake XDC plus add kyc. If Sally doesnt like Bob, unlikely she will go through the the economic effort required to vote Bob out of the system. That will be economically infeasible. Although a remote probability exists.