信息安全研究 ›› 2022, Vol. 8 ›› Issue (5): 468-.

• 区块链与可信交易专题 • 上一篇    下一篇

面向金融领域的智能合约特定语言设计

李洋1李洁2葛宁1胡凯1   

  1. 1(北京航空航天大学计算机学院北京100191)
    2(北京物资学院信息学院北京101149)
    (m18340018575@163.com)
  • 出版日期:2022-05-07 发布日期:2022-05-03
  • 通讯作者: 李洋 硕士研究生.主要研究方向为区块链技术和形式化方法. m18340018575@163.com
  • 作者简介:李洋 硕士研究生.主要研究方向为区块链技术和形式化方法. m18340018575@163.com 李洁 硕士,助理研究员.主要研究方向为智能合约和形式化方法. lijiebwu@163.com 葛宁 博士,副教授.主要研究方向为形式化方法、模型驱动工程和智能化软件工程. gening@buaa.edu.cn 胡凯 博士,教授.主要研究方向为分布式计算、区块链与数字社会技术. hukai@buaa.edu.cn

Design of a Smart Contract Specific Language for Financial Field

  • Online:2022-05-07 Published:2022-05-03

摘要: 基于区块链的智能合约专业性强、可读性差、生产效率低,近年来已有多个基于智能合约的面向金融各细分领域的领域特定语言(domainspecific language, DSL)被提出,并被用于解决不同领域专业人士直接书写智能合约难度大的问题.然而,面向金融资产证券化的DSL尚未开发出来.首先介绍智能合约与金融领域现有的结合状况;然后提出资产证券化合约的流程,并设计了一种书写该合约的领域特定语言ABSDSL;最后用ABSDSL编写资产证券化合约,并通过将其转化为采用Solidity代码书写的智能合约验证了其准确性.

关键词: 区块链, 智能合约, 金融, 领域特定语言, 资产证券化

Abstract: Smart contracts based on blockchain are highly professional, poorly readable and inefficient. In recent years, many domainspecific languages (DSL) based on smart contracts for financial subdivision fields have been proposed and used to solve the problem that it is difficult for professionals in different fields to write smart contracts directly. However, the DSL for financial asset securitization has not been developed yet. This paper first introduces the existing combination of smart contract and financial field, then puts forward the process of asset securitization contract, and designs a domainspecific language ABSDSL for writing the contract. Finally, an asset securitization contract is written in ABSDSL and verified its accuracy by transformed into a smart contract written in Solidity.

Key words: blockchain, smart contract, finance, domainspecific language, asset securitization