Bitcoin learning-Turing's incomplete scripting language

Source: Internet
Author: User

The bitcoin transaction script language contains many operators, but was deliberately limited in one important way-there is no loops or complex flow control capabilities other than conditional flow control. This ensures the language are not Turing complete, meaning that scripts has limited complexity and predictable execut Ion Times. Script is not a general-purpose language. These limitations ensure that the language cannot is used to create a infinite loop or other form of ' logic bomb ' that co Uld is embedded in a transaction in a by that causes a denial-of-service attach against the Bitcoin network. Remember, every transaction is validated by every full node on the Bitcoin network. A limited language prevents the transaction validation mechanism from being used as a vulnerability.


Bitcoin scripting language is not Turing complete, has certain limitations, it has no loop statements and complex conditional control statements. Because of the limitations of language, there is no way to write some dead loops or some malicious code that could lead to Dos attacks, thus avoiding Dos attacks on the Bitcoin network. Each full node will validate the transaction. The scripting language with this limitation makes it impossible to think of this verification mechanism as a flaw in attacking the Bitcoin network.


Note: There is translation not only the place, but also hope to put forward, thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.