[英]Blockchain dApp: How end user use dApp without care of Ethereum Account
I want to develop a dApp (Smart Contract) on Ethereum and have a mobile application on top of it. 我想在以太坊上开发一个dApp(智能合约),并在其之上有一个移动应用程序。 My concern is: every time we interact with Smart Contract to inquiry or change data, we need a account as well as a certain number of ETH used as Gas. 我担心的是:每次我们与Smart Contract进行交互以查询或更改数据时,我们都需要一个帐户以及一定数量的ETH作为Gas。 It looks no problem on the development environment, but getting into trouble in real life, I mean about user experience (UX). 在开发环境上看起来没有问题,但是在现实生活中遇到麻烦,我的意思是关于用户体验(UX)。
- Whenever a user download and install the app, we will create for them an Ethereum account. -每当用户下载并安装该应用程序时,我们都会为他们创建一个以太坊帐户。 BUT where they can get ETH to interact with Smart Contract? 但是他们可以从哪里获得以太坊与智能合约的互动? And absolutely, they don't care and don't want to be bothered with exchange ETH. 绝对地,他们不在乎,也不想被交易所ETH打扰。
I have an alternative solution: we have only 1 Ethereum account with some ETH in their and act as the Proxy to the Smart Contract. 我有一个替代解决方案:我们只有1个以太坊账户,其中包含一些ETH,并充当智能合约的代理。 Whenever user's request come, we delegate the request to Smart Contract and return to user. 每当用户请求到达时,我们都会将请求委派给智能合约并返回给用户。 BUT it seems we will lost the main characteristic of Blockhain: Decentralized :) Who know we might arbitrarily change the Smart Contract without user attention. 但是似乎我们将失去Blockhain的主要特征:去中心化:)谁知道我们可能会在不引起用户注意的情况下随意更改智能合约。
Any suggestion is appreciated. 任何建议表示赞赏。 Thank you! 谢谢!
您可以向每个新用户发送一些以太币,以至于可以调用您的合同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.