主管:中华人民共和国工业和信息化部     
主办:中国电子信息产业发展研究院      
   赛迪工业和信息化研究院(集团)有限公司

网络空间安全 ›› 2020, Vol. 11 ›› Issue (9): 8-.

• • 上一篇    下一篇

基于脚本解释器的区块链交易合约原理与实践

  

  1. (北京科技大学计算机与通信工程学院,北京 100083)
  • 出版日期:2020-09-25 发布日期:2020-09-27

Principle and practice of blockchain-based transaction contract constructed on script interpreter

  1. (School of Computer & Communication Engineering, University of Science and Technology Beijing, Beijing 100083 )
  • Online:2020-09-25 Published:2020-09-27

摘要: 基于脚本解释器的区块链交易合约架构是目前最简洁且高效的智能合约设计之一,它 具有去中心化、总量固定、可自由兑换、匿名性等特点,也有利于密码技术在区块链中的灵 活应用与实现。文章在整体介绍比特币脚本系统交易结构的基础上,阐述了面向未花费交易 (UTXO)的输入交易、输出交易的结构,并详细地给出了比特币脚本指令系统及其执行过程 和验证机制,从而实现了区块链交易合约中基于脚本解释器的公钥支付方案。

关键词: 智能合约, 比特币, 运行机制

Abstract: The blockchain transaction contract architecture based on the script interpreter is one of the most concise and efficient smart contract designs at present. It has the characteristics of decentralization, fixed total amount, free exchange, and anonymity. It is also conducive to the flexible application and implementation of cryptography in the blockchain. Based on the overall introduction of the transaction structure of the Bitcoin script system, this paper explains the structure of input transactions and output transactions for unspent transactions (UTXO). In addition, this paper details the Bitcoin script instruction system and its execution process and verification mechanism, so as to implement the public key payment scheme based on the script interpreter in the blockchain transaction contract.

Key words: smart contracts, bitcoin, operating mechanism