简体   繁体   English

去中心化应用架构

[英]Architecture for Decentralized Application

I have been learning SOLIDITY for quite a bit and am ready to do projects.我已经学习了 SOLIDITY 很长一段时间,并准备做项目。 I wanted to make a cool project where we store transaction details in form of PDF into blockchain and all those details are recorded in blockchain.我想做一个很酷的项目,我们以 PDF 的形式将交易细节存储到区块链中,所有这些细节都记录在区块链中。

Like take example of persons health report.以人的健康报告为例。 His initial health report is stored in blockchain.他最初的健康报告存储在区块链中。 Later if someone wants to change that they cant using blockchain right?以后如果有人想改变他们不能使用区块链的情况,对吗?

I want to build such projects using ethereum and IPFS.我想使用以太坊和 IPFS 构建这样的项目。

I would like to know architecture and someuseful resources to do so.我想知道架构和一些有用的资源来这样做。

Thanks in advance!提前致谢!

You can use Emercoin NVS for your purpose, and store within NVS your IPFS hash.您可以出于您的目的使用Emercoin NVS ,并将您的 IPFS 哈希存储在 NVS 中。 So, by searchable name, you can extract from blockchain your IPFS hash, and by hash - you can extract from IPFS your file object (PDF or so).因此,通过可搜索的名称,您可以从区块链中提取您的 IPFS 哈希,并通过哈希 - 您可以从 IPFS 中提取您的文件对象(PDF 左右)。

NVS allows to use command "name_update", when you assign for a search name another value (new IPFS hash).当您为搜索名称分配另一个值(新的 IPFS 哈希)时,NVS 允许使用命令“name_update”。 Of course, old values also kept in the blockchain, and you can extract history of the updates with a command "name_history".当然,旧值也保留在区块链中,您可以使用命令“name_history”提取更新的历史记录。

I recommend you to create prototype with Emercoin Testnet .我建议您使用Emercoin Testnet创建原型。 If you need testnet EMCs for your experiments - ask me, I'll provide for free.如果您的实验需要测试网 EMC - 问我,我会免费提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM