简体   繁体   English

如何编写复杂的 dapp

[英]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?像这样的应用程序的流程是什么?

  1. You develop the Smart Contract你开发智能合约
  2. You deploy it你部署它
  3. You interact with it你与它互动

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.

相关问题 如何在移动 Dapps 中与智能合约和区块链交互前端? - How to interact a front End with smart contracts and blockchain in mobile Dapps? 什么是 dapp? 洪流客户端可以被视为 dapps 吗? - What are dapps? Can torrent clients be considered as dapps? 我目前正在学习 Solidity 以及如何在以太坊区块链上开发 Dapps,我的理解是否正确? - I'm currently learning Solidity and how to develop Dapps on Ethereum blockchain, is my understanding correct? 在Ride4dApps中,充提dApp(Waves IDE中的例子)是如何处理延迟问题的? - In Ride4dApps, how does the deposit and withdraw dApp(the example in Waves IDE) handle the delay issue? Java DApp上的区块链POC - Blockchain POC on DApps in Java 处理以太坊DApps中的用户配置文件 - Handling user profiles in Ethereum DApps 在ccp ethereum(Aleth zero)中开发Dapps - Dapps development in ccp ethereum(Aleth zero) Ride4dApps 中的 WriteSet、TransferSet 和 ContractResult 之间的主要区别是什么? - What is the main difference between WriteSet, TransferSet and ContractResult in Ride4dApps? 参数“i”在Ride4dApps中的可调用函数中表示什么? - What does the parameter “i” represent in the callable functions in Ride4dApps? Ride4Dapps:TypeError 无法读取 invokeScript 中未定义的属性“长度” - Ride4Dapps: TypeError Cannot read property 'length' of undefined in invokeScript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM