[英]How to write complex dapps
How does one create a more complex dapp that needs features like recurring jobs, generating random numbers, trigger e-mails, etc. (without using something like oraclize).如何创建一个更复杂的 dapp,它需要重复性工作、生成随机数、触发电子邮件等功能(不使用 oraclize 之类的东西)。
What's the flow for an app like this?像这样的应用程序的流程是什么? You write the app in a programming language like Go, deploy your own node and interact with your deployed contract(written in solidity) through RPC?您使用 Go 等编程语言编写应用程序,部署您自己的节点并通过 RPC 与您部署的合约(以 Solidity 编写)交互? That way you can send a random number to the function/contract from your off-chain backend that's then used in the contract?这样你就可以从你的链下后端向函数/合约发送一个随机数,然后在合约中使用它?
Does it make sense to keep on the blockchain only the the features that need to be transparent to the users and have the rest of the app functionalities on a backend like Go?在区块链上只保留需要对用户透明的功能并在像 Go 这样的后端拥有其他应用程序功能是否有意义?
Firts of all, I think that you ask too manu questions and actually, you don't have very clear what you want.首先,我认为您问的问题太多了,实际上,您并不清楚自己想要什么。 However, I'm going to answer them.不过,我要回答他们。
How does one create a more complex dapp如何创建更复杂的 dapp
Developing more complex Smart Contracts.开发更复杂的智能合约。
What's the flow for an app like this?像这样的应用程序的流程是什么?
Does it make sense to keep on the blockchain only the the features that need to be transparent to the users and have the rest of the app functionalities on a backend like Go?在区块链上只保留需要对用户透明的功能并在像 Go 这样的后端拥有其他应用程序功能是否有意义?
It dependes on your case of use这取决于你的使用情况
As Urko said, there is many questions and you shall be specific.正如乌尔科所说,问题很多,你要具体点。 You know a good way to defeat your problem is to divide them and conquer.您知道解决问题的一个好方法是分裂它们并征服它们。
You can use many languages, but my prefer is C/C++ but many people are using Go, Python and specially NodeJS.您可以使用多种语言,但我更喜欢 C/C++,但很多人都在使用 Go、Python 和特别是 NodeJS。
Firstly first, get to know what you are going to do, what you want to do.首先,要知道你要做什么,你想做什么。
I am backing up Urko's answer .我支持Urko 的回答。 Read documentation and sample files such as Solidity can help you to create Smart Contracts and then Deploy and Intract with them.阅读文档和示例文件,例如 Solidity 可以帮助您创建智能合约,然后与它们进行部署和 Intract。 I call DApps, any software which can work with Blockchains.我称之为 DApps,任何可以与区块链配合使用的软件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.