在区块链中保存文件的最佳实践 [英] Best practice to save files in blockchain

查看:102
本文介绍了在区块链中保存文件的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将文件保存为区块链数据的一部分的最佳实践是什么?我要保存的文件很大.

What is the best practice to save files as part of a blockchain's data? I have tremendously large files to be saved.

我们不能将这些文件保存在云存储(像Dropbox这样的集中式解决方案)中,并使用文件哈希将它们与区块链数据链接吗? 还是使用像IPFS这样的分布式文件存储更好? 还是在安全性,容量,性能和容错性方面有更好的解决方案.

Can't we save these file on cloud storage (centralized solution like dropbox), and link them with blockchain data using a file hash? Or is it better to use a distributed file storage like IPFS? Or is there any better solution in term of security, volume, performance, and fault tolerance.

推荐答案

您不想直接使用传统的区块链.区块链有利于交易信息/状态变化,大数据存储通常不是一个好主意.这是由于存储数据和安全性的高成本.我建议您看一下另一种分散式存储机制.哈希链接是由您可以查看的名为MedRec的小组试用的.

You do not want to directly use a traditional blockchain. Blockchains are good for transactional information/state changes, large data storage is generally a bad idea. This is due to the high cost of storing data and security. I would advise to look at another decentralized storage mechanism. The hashing link is something that has been trialed out by a group called MedRec you can look at.

https://viral.media.mit.edu/pub/medrec

否则,可以选择IPFS以及Sia和StorJ.分布式哈希表是一个值得研究的领域.

Otherwise, IPFS is an option, along with Sia and StorJ. Distributed Hashtables is an area to look into.

https://www.ipfs.io/

https://storj.io/storj.pdf

https://sia.tech/

这个领域仍然是新的并且正在迅速发展,因此标准和技术仍在设定中.我建议您分别阅读每个选项,然后找出最适合您问题的解决方案.

This field is still new and rapidly developing so standards and the tech are still being set. I would advice reading each option individually and coming to figure out what solution fits your problem the best.

这篇关于在区块链中保存文件的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆