MLSNews

《未闻》区块链技术日报,聚焦业内技术更新,做您最好的眼睛。

View project on GitHub

​MLSNEWS

——————◆ 20190822 ◆——————

  • Pieter Wuille推出’Miniscript’,一种新的比特币智能合约语言

    随着著名程序员PieterWuille推出了一种专门为比特币设计的新编码语言,智能合约很快就会在比特币上得到提升。

    “ministcript”语言周一发布在比特币开发者的邮件列表中,旨在使程序员更容易编写“智能合约”或比特币消费条件。Wuille说,程序员Wuille、AndrewPoelstra和SanketSanjalkar已经研究了大约一年的代码。

    虽然它是在幕后分享的,但伍维尔说他现在正在把它发布到电子邮件列表中,因为它现在已经达到了“一个我想得到更多关注的阶段”。

    Smart contracts could soon get a boost in bitcoin as prominent programmer Pieter Wuille has unveiled a new coding language designed specifically for their use.

    Posted to the bitcoin developer mailing list Monday, the ‘Miniscript’ language aims to make it easier for programmers to write up “smart contracts” or conditions for spending bitcoins. Programmers Wuille, Andrew Poelstra and Sanket Sanjalkar have been working on the code for roughly a year, Wuille said.

    Although it’s been shared around behind the scenes, Wuille said he is now posting it to the email list because it’s now it’s reached “a stage where I’d like to get it some more attention.”

  • Merkle Tree - 它是什么以及为什么使用它?

    投资加密货币和区块链技术是一回事,但完全理解区块链如何运作的细节则是另一回事。在许多区块链中,包括自我生态系统,正在整合到网络中的一项技术是Merkle Tree。虽然该网络有很多部分,但Merkle Tree是确定我们计划如何确保验证过程中的效率和可靠性的一个重要方面。

    Merkle Tree不是一个新的惊人发现,但它是一个经过测试的真实系统,不仅在区块链中使用,而且在任何无信任或对等2对等环境中使用得非常广泛。事实上,这个概念可以追溯到1979年,在区块链甚至是一个想法之前。它以计算机科学家Ralph Merkle的名字命名。

    简单来说,Merkle Tree需要大量数据,将其压缩成一个简单的字符串,这些字符可以证明其中保存的数据的真实性,而不会泄露数据是什么。类似于压缩文件(.ZIP或.RAR),如果根据特定标准正确命名,用户可以识别内容而无需解压缩并打开包含的文件。这个字符串(标题)称为哈希。散列是一种单向函数,这意味着如果您输入相同的数据,您将始终获得相同的散列,但您无法获取该散列并提取原始数据。

    It is one thing to invest in cryptocurrency and blockchain technology, but it is another to fully understand the details of how blockchain works. In many blockchains, including the aelf ecosystem, one piece of technology that is being incorporated into the network is the Merkle Tree. Although there are many parts to this network, the Merkle Tree is one important aspect to understand when identifying how we plan to ensure efficiency and reliability in the verification process.

    The Merkle Tree is not some new amazing discovery, but it is a tested and true system which is used quite widely not just in blockchain, but any trust-less or peer-2-peer environment. In fact, this concept dates back to 1979, before blockchain was even an idea. It is named after computer scientist, Ralph Merkle.

    A Merkle Tree, in simple terms, takes lots of data, compresses it down into one simple string of characters which can prove the verity of the data held within, without revealing what that data is. Similar to a compressed file (.ZIP or .RAR), which if named correctly according to a certain standard, a user can recognize the content without having to decompress and open the contained files. This string of characters (title) is called a hash. Hashing is a one-way function, which means if you put in the same data you will always get the same hash, but you cannot take that hash and extract the original data.

  • 了解加密货币开发

    在研究加密货币时,每个人都首先听说了erc20术语。ERC是以太坊Github存储库中的一个标签,这意味着有人希望得到关于某件事情的正式反馈。在以太坊的早期,有人希望得到加密货币规范的反馈,并得到了ERC20标签。历史就是这样被创造出来的,没有多少思考。

    请看一下OpenZeppelin的erc20实现。那份合同是大多数加密货币的基础。如果您不太了解代码,请不要担心。注意它只有228行代码,其中三分之二是注释。不会那么复杂的。

    您可以按原样部署RC20合同,并且您将拥有一种加密货币。很可能您希望添加一些功能,如令牌符号和小数,或传输限制,或停止向无效帐户传输。所有这些变更都只是为了向ERC20合同中添加更多方法的规范。他们之间没有什么不同。

    Everyone hears first about the ERC20 term when researching cryptocurrencies. ERC is a label in the Ethereum GitHub repository that means that someone wants formal feedback on something. In the early days of Ethereum someone wanted feedback for a cryptocurrency specification and got the ERC20 label. That is how history is often made, without much thought.

    Please have a look at the ERC20 implementation from OpenZeppelin. That contract is the base for most of the cryptocurrencies out there. Don’t worry if you don’t understand too much of the code. Pay attention to the fact that it only has 228 lines of code, and of those two thirds are comments. It can’t be that complicated.

    You could deploy theERC20 contract as-is and you would have a cryptocurrency. Most likely you want to add some functionality such as a token symbol and decimals, or transfer restrictions, or to stop transfers to invalid accounts. All these variations are only specifications to add more methods to an ERC20 contract. They are not that different between them.