English
Wisdom Chain is about to integrate strongcontract scripting capabilities
This article comes from the official Twitter of Wisdom Chain
URL:
https://twitter.com/Wisdom_Chain/status/1301765540990590976?s=20
01
Contract programming
Since the time when Bitcoin opened block chain in 2009, with the development of technology and ecology, the distributed application based on block chain (dapp) has shown a blowout trend in nearly 10 years. The underlying technology that supports DAPP is "block chain + contract scripting ability".
Solidity
The combination of contract programming capabilities and block chains is generally considered a landmark upgrade in the block chain world.The first platform that combines block chains with contract scripting (smart contract) technology, the birth of ETH, was considered to have ushered in the era of Block Chain 2.0.
02
Ethereum & Solidity
In ETH, the language of contract programming is Solidity, which is Turing-complete and superior language, although it greatly expands the scope of contract capabilities and reduces the difficulty of contract writing.However, there are still technical defects in ETH's contract technology. Simply put, we can understand that ETH can only add a key-value database that cannot be modified. Deploying an intelligent contract is equivalent to adding a key-value pair to this database, the key is the contract address, and the value is the contract code.
Ethereum & Solidity
Because of the non-changeability described above, it means that you find problems with the previous contract code and you cannot modify it either. The only thing you can do is deploy a new contract, but the new contract corresponds to a new address. The code in the new address cannot operate on the ether and data in the old contract account.
At the same time, there is no standard library support at the level of ETH contract design: EVM lacks perfect standard library support, even the most basic string type support, such as string splicing, cutting, finding, and so on, all need to be implemented by the developers themselves.
The consequence is that developers need to focus on more fragmented details that are not part of their own business and not on their own business development.At the same time, self-implemented class libraries may consume a lot of unnecessary gas due to time, high spatial complexity, and developers can learn from related class library codes from open source projects, but also introduce more security issues, which will increase the complexity of contract code auditing.
03
Wisdom Chain & Contract Script
Of course, this is not an attack on the contract technology of ETH, because ETH is a product of early development and has limitations of the times. On the basis of ETH, contract technology developed by Wisdom Chain designed new solutions to prevent such problems as overflow of mathematical calculation and deduction of handling fees when virtual machine is interrupted.
With Wisdom Chain integrating contract scripting capabilities, there will be fewer restrictions on on-chain development and more space for developers. In addition, core developers have disclosed that enterprise-level Wisdom Chain was developed early in the year and has not been brought to the market because of the large environmental impact and extensive security testing.Most importantly, after Wisdom Chain integrates contract scripting capabilities, the more flexible Wisdom Chain and enterprise-level Wisdom Chain must take WDC to a new height.
簡體中文
本文來自Wisdom Chain官方Twitter
URL:
https://twitter.com/Wisdom_Chain/status/1301765540990590976?s=20
01
合約編程
自 2009 年位元幣開啟區塊鏈時代以來,近 10 年里,隨著技術與生態的發展,基于區塊鏈的分布式應用(dapp)呈現出井噴的趨勢,而支撐著 dapp 的底層技術就是“區塊鏈 + 合約腳本編程能力”。
Solidity語言
合約編程能力與區塊鏈的結合,普遍被認為是區塊鏈世界中一次里程碑式的升級。第一個結合了區塊鏈與合約腳本編程(智能合約)技術的平臺–以太坊的誕生,被認為是開啟了"區塊鏈 2.0"時代。
02
以太坊上面編程語言Solidity
在以太坊上,合約編程的語言是 Solidity,它是圖靈完備且較為上層的語言,它雖然擴展了合約的能力范疇,降低了合約撰寫難度。但是ETH的合約技識訓是存在技術缺陷的,簡單的說, 我們可以把以太坊理解成一個只能添加不能修改的鍵值資料庫,部署智能合約相當于向這個資料庫添加一個鍵值對,鍵就是合約地址,值就是合約代碼。
Ethereum & Solidity
由于前面所述的不可更改性,也就說你發現前面合約代碼有問題,你也不能修改,唯一能做的是部署新合約,但是新合約對應新地址,新地址中的代碼是不能操作老合約賬戶中的以太和資料的。
同時ETH合約設計層面缺乏標準庫支持:EVM缺少完善的標準庫支持,甚至最基本的string型別支持,在EVM中都很雞肋,例如字串拼接、切割、查找等等都需要開發者自己實作。
帶來的后果就是開發者需要關注更多非本身業務的零碎細節,不能專注本身業務開發。同時自行實作的類別庫可能會因為時間、空間復雜度太高,消耗大量無謂的gas,又或者開發者從開源專案中借鑒相關類別庫代碼,但也會引入更多安全性方面的問題,加重合約代碼審計的復雜度,亦是得不償失。
03
Wisdom Chain獨立研發的合約技術
當然在這里并不是攻擊以太坊的合約技術,因為以太坊是早期開發的產物,有時代的局限性,而Wisdom chain開發的合約技術,在以太坊的基礎上,設計全新的解決方案,防止了比如:數學計算的溢位,虛擬機中斷時手續費依然會被扣除等,這些以太坊中的問題。
Wisdom chain融合合約腳本編程能力后,鏈上開發的限制也會越來越少,開發者的開發空間越來越大,加之核心開發人員透露企業級Wisdom Chain早在年初開發完畢,一直沒有推向市場,一是因為大環境影響,二是在進行大量的安全測驗。而最重要的Wisdom Chain融合合約腳本編程能力后,更加靈活的Wisdom Chian與企業級Wisdom Chian聯盟鏈一定將WDC帶向新的高度。
關注Wisdom Chain動態
Twitter:Wisdom_Chain
微博:WisdomChain
知乎:智慧鏈技術社區
Facebook:WisdomChain
Telegram:WisdomPublicChain
Medium:Wisdom_Chain
相關資源
WIsdom Chain公鏈檔案知識庫:
https://docs.wisdchain.com/#/
Wisdom Chain官網:
https://wisdchain.io/
Wisdom Chain技術論壇:
http://tech.wisdchain.io/
Wisdom Chain開源代碼庫:
https://github.com/WisedomChainGroup
Wisdom Chain區塊瀏覽器:
https://scan.wisdchain.com
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/7293.html
標籤:區塊鏈技術
