比特币学习-图灵不完备的脚本语言
2016-09-14 11:33
816 查看
The bitcoin transaction script language contains many operators, but is deliberately limited in one important way - there are no loops or complex flow control capabilities other than conditional flow control. This ensures that the language is not Turing
Complete, meaning that scripts have limited complexity and predictable execution times. Script is not a general-purpose language. These limitations ensure that the language cannot be used to create an infinite loop or other form of "logic bomb" that could
be embedded in a transaction in a way 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.
比特币脚本语言不是图灵完备的,具有一定的局限性,它没有循环语句和复杂的条件控制语句。由于语言存在这种局限性,我们也就没办法使用这种语言写一些死循环或者一些能够导致DOS攻击的恶意代码,从而也就避免了比特币网络受到DOS攻击。每一个全节点,都会对交易进行验证。具有这种局限性的脚本语言,使人们无法把这种验证机制看成一个攻击比特币网络的缺陷。
Note:有翻译不但的地方,还望提出,谢谢。
Complete, meaning that scripts have limited complexity and predictable execution times. Script is not a general-purpose language. These limitations ensure that the language cannot be used to create an infinite loop or other form of "logic bomb" that could
be embedded in a transaction in a way 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.
比特币脚本语言不是图灵完备的,具有一定的局限性,它没有循环语句和复杂的条件控制语句。由于语言存在这种局限性,我们也就没办法使用这种语言写一些死循环或者一些能够导致DOS攻击的恶意代码,从而也就避免了比特币网络受到DOS攻击。每一个全节点,都会对交易进行验证。具有这种局限性的脚本语言,使人们无法把这种验证机制看成一个攻击比特币网络的缺陷。
Note:有翻译不但的地方,还望提出,谢谢。
相关文章推荐
- VimScript脚本语言学习------常用的内置函数---(操纵光标)
- 脚本学习语言http://www.runoob.com/
- lua脚本语言学习
- Shell 学习3 - Shell 脚本语言与编译型语言的差异
- 我为什么建议大家都学习python脚本语言?
- 通过实例学习Virtools脚本语言VSL - 检索和修改数组的数据
- 【学习随笔】由UFT脚本语言对VBS中Sub与Function简单区别
- shell脚本语言学习0——概括
- InstallShield 脚本语言学习笔记
- 通过实例学习Virtools脚本语言VSL - 从数组读取字符串
- shell脚本语言学习第一课
- lua脚本语言学习笔记(二)---LUA函数\数组\迭代器
- eLua学习第一课:和Lua脚本语言的第一次亲密接触
- Redis基础学习--脚本(Lua语言)
- Lua游戏脚本语言入门学习指导
- 自动化运维脚本语言之expect实践学习(1)
- 通过实例学习Virtools脚本语言VSL - 合并字符串
- InstallShield 脚本语言学习笔记
- 通过实例学习Virtools脚本语言VSL - 检索和修改数组的数据
- eLua学习第三课:Lua脚本语言的基础入门教程