天天看點

dapp 是什麼?dapp 和 app 有什麼差別?一文明白 dapp。

DApp 是 decentralized application 中文分布式 APP 的縮寫。

一個 DApp 有背景代碼運作在分布式點對點網絡中。傳統的 APP 的背景代碼是運作在中心化的伺服器。

一個 DApp 的前端代碼可以由任何語言開發,和傳統的 APP 一樣。還有,DApp 的前端代碼可以托管在分布式存儲的服務中,例如:Swarm 或者 IPFS。

如果一個 應用 = 前端 + 背景,因為以太坊合約是由運作在以太坊分布式點對點網絡中的代碼組成的,是以 分布式應用 = 前端 + 合約。

圖檔示範一個 DApp 架構:

DApp is an abbreviated form for decentralized application.

A DApp has its backend code running on a decentralized peer-to-peer network. Contrast this with an app where the backend code is running on centralized servers.

A DApp can have frontend code and user interfaces written in any language (just like an app) that can make calls to its backend. Furthermore, its frontend can be hosted on decentralized storage such as Swarm or IPFS.

If an app=frontend+server, since Ethereum contracts are code that runs on the global Ethereum decentralized peer-to-peer network, then:

DApp = frontend + contracts

Illustration of a DApp that uses a blockchain with smart contracts combined with the pillars of Swarm and Whisper:

中文原連結:

http://dappchina.cn/2018/06/28/what-is-a-dapp/

英文原連結:

https://ethereum.stackexchange.com/questions/383/what-is-a-dapp

dapp 開發:10 分鐘 5 步釋出以太坊 ERC20 代币

http://dappchina.cn/2018/04/23/10-minutes-5-steps-erc20-tokens/

繼續閱讀