[go: up one dir, main page]

CN111415162A - Transaction method and system based on blockchain public chain - Google Patents

Transaction method and system based on blockchain public chain Download PDF

Info

Publication number
CN111415162A
CN111415162A CN202010359102.8A CN202010359102A CN111415162A CN 111415162 A CN111415162 A CN 111415162A CN 202010359102 A CN202010359102 A CN 202010359102A CN 111415162 A CN111415162 A CN 111415162A
Authority
CN
China
Prior art keywords
transaction
data
nodes
chain
cross
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010359102.8A
Other languages
Chinese (zh)
Inventor
陈议尊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202010359102.8A priority Critical patent/CN111415162A/en
Publication of CN111415162A publication Critical patent/CN111415162A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明提出一种基于区块链公链的交易系统,主要包括有数据共享系统,数据共享系统中一般包括多个节点,多个节点可以是接入该数据共享系统中的终端,每个节点对应一个或多个终端,数据共享系统共享节点与节点之间的交易数据。每个节点发生交易时生成交易数据,交易数据发送至其他所有节点,每个节点在进行正常工作时可以接收到终端发生的交易数据,数据共享系统将节点与节点之间的交易数据进行共享,从而完成交易数据区块链公链的构建,交易数据发送至其他所有节点以供共享构建成公链,通过公链可以保障交易系统的安全性。The present invention proposes a transaction system based on the blockchain public chain, which mainly includes a data sharing system. The data sharing system generally includes multiple nodes. The multiple nodes can be terminals accessing the data sharing system. Corresponding to one or more terminals, the data sharing system shares transaction data between nodes. Each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes. Each node can receive the transaction data generated by the terminal during normal work. The data sharing system shares the transaction data between nodes. In this way, the construction of the public chain of the transaction data blockchain is completed, and the transaction data is sent to all other nodes for sharing to form a public chain, and the security of the transaction system can be guaranteed through the public chain.

Description

基于区块链公链的交易方法和系统Transaction method and system based on blockchain public chain

技术领域technical field

本发明涉及区块链技术领域,具体涉及基于区块链公链的交易方法和系统。The present invention relates to the technical field of blockchain, in particular to a transaction method and system based on the public chain of blockchain.

背景技术Background technique

数字货币是一种基于区块链技术的密码货币,与传统电子货币相比,它具有去中心化、账本公开、交易匿名等特点。正因为数字货币的匿名性特点,数字货币被越来越多的不法分子关注,并用于赌博、传销、资金盘、洗钱等非法金融活动,对于监管机构来说,他们很难从交易中获取数字货币交易者的用户身份信息,这给相关部门的监管和打击违法犯罪活动带来很大的困扰。Digital currency is a cryptocurrency based on blockchain technology. Compared with traditional electronic currency, it has the characteristics of decentralization, open ledger, and transaction anonymity. It is precisely because of the anonymity of digital currency that more and more criminals pay attention to digital currency and use it for illegal financial activities such as gambling, pyramid schemes, fundraising, and money laundering. For regulators, it is difficult for them to obtain digital currency from transactions. The user identity information of currency traders has brought great trouble to the supervision of relevant departments and the fight against illegal and criminal activities.

现在在日常生活中,使用数字货币进行交易已经越来越多地出现在日常生活中,保证数字货币的交易安全是正待解决的问题.Now in daily life, the use of digital currency for transactions has increasingly appeared in daily life, and ensuring the transaction security of digital currency is a problem to be solved.

发明内容SUMMARY OF THE INVENTION

针对现有技术中的缺陷,本发明提供提出一种基于区块链公链的交易方法及系统,能够打造交易系统的区块链公链,提升数据可信度和不可篡改性。In view of the defects in the prior art, the present invention provides a transaction method and system based on the public blockchain of the blockchain, which can create a public blockchain of the transaction system and improve the reliability and immutability of data.

一种基于区块链公链的交易系统,包括:A transaction system based on the blockchain public chain, including:

数据共享系统,数据共享系统中包括多个节点,每个所述节点对应一个或多个终端,其用于共享节点与节点之间的交易数据;A data sharing system, the data sharing system includes a plurality of nodes, each of the nodes corresponds to one or more terminals, which are used for sharing transaction data between nodes;

所述节点之间存在信息连接,每个节点发生交易时生成交易数据,交易数据发送至其他所有节点以供共享构建成公链。There is an information connection between the nodes, each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes for sharing to build a public chain.

进一步的,所述数据共享系统中的所述节点之间通过协议互相连接,节点之间通过协议连接进行交易数据的信息传输。Further, the nodes in the data sharing system are connected to each other through a protocol, and the nodes perform information transmission of transaction data through a protocol connection.

进一步的,所述数据共享系统中的所述节点之间通过共识算法获取交易数据。Further, the nodes in the data sharing system obtain transaction data through a consensus algorithm.

进一步的,所述数据共享系统中的节点中均具有交易数据对应的存证数据,所述存证数据上传至区块链中;Further, the nodes in the data sharing system all have certificate data corresponding to the transaction data, and the certificate data is uploaded to the blockchain;

所述数据共享系统中的各节点均对节点中的存证数据进行签名运算,签名运算后得到交易数据对应的签名,签名存储在各个节点中,审计系统对签名进行审计。Each node in the data sharing system performs a signature operation on the data stored in the node, and after the signature operation, a signature corresponding to the transaction data is obtained, the signature is stored in each node, and the audit system audits the signature.

进一步的,所述数据共享系统中的多个节点各存储有异构区块链,各个异构区块链之间构建跨链证明构架,所述跨链证明构架包括:各个异构区块链中构建默克尔结构的跨链事件树,异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳,跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。Further, multiple nodes in the data sharing system each store heterogeneous blockchains, and a cross-chain proof framework is constructed between each heterogeneous blockchain, and the cross-chain proof framework includes: each heterogeneous blockchain A cross-chain event tree with Merkel structure is constructed in the cross-chain event tree, and the heterogeneous blockchain triggers the cross-chain protocol to throw the cross-chain event. The cross-chain event includes the transaction time, transaction amount, transaction terminal code and timestamp of the transaction data. The cross-chain event is inserted into the cross-chain event tree, and the cross-chain event is credibly verified through the Merkel path of the cross-chain event tree.

本发明还提出一种基于区块链公链的交易方法,包括步骤:The present invention also proposes a transaction method based on the blockchain public chain, comprising the steps of:

步骤1:数据共享系统中生成多个节点,每个所述节点对应一个或多个终端;Step 1: multiple nodes are generated in the data sharing system, and each of the nodes corresponds to one or more terminals;

步骤2:共享节点与节点之间的交易数据;Step 2: Share transaction data between nodes;

步骤3:每个节点发生交易时生成交易数据,交易数据发送至其他所有节点以供共享构建成公链。Step 3: Each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes for sharing to build a public chain.

进一步的,还包括步骤:Further, it also includes steps:

步骤4:所述数据共享系统中的所述节点之间通过协议互相连接,节点之间通过协议连接进行交易数据的信息传输。Step 4: The nodes in the data sharing system are connected to each other through a protocol, and the information transmission of transaction data is performed between the nodes through a protocol connection.

进一步的,还包括步骤:Further, it also includes steps:

步骤5:所述数据共享系统中的所述节点之间通过共识算法互相获取交易数据。Step 5: The nodes in the data sharing system mutually acquire transaction data through a consensus algorithm.

进一步的,还包括步骤:Further, it also includes steps:

步骤6:所述数据共享系统中的节点中对交易数据进行哈希运算得到对应的存证数据;Step 6: Hash operation is performed on the transaction data in the nodes in the data sharing system to obtain the corresponding certificate data;

步骤7:所述存证数据上传至区块链中;Step 7: Upload the certificate data to the blockchain;

步骤8:所述数据共享系统中的各节点对节点中的存证数据进行签名运算;Step 8: each node in the data sharing system performs a signature operation on the data stored in the node;

步骤9:签名运算后得到交易数据对应的签名;Step 9: After the signature operation, the signature corresponding to the transaction data is obtained;

步骤10:将签名存储在各个节点中。Step 10: Store the signature in each node.

进一步的,还包括步骤:Further, it also includes steps:

步骤11:在多个节点中的异构区块链之间构建跨链证明构架,所述跨链证明构架包括步骤:Step 11: Build a cross-chain proof framework between heterogeneous blockchains in multiple nodes, and the cross-chain proof framework includes steps:

步骤12:在各个异构区块链中构建默克尔结构的跨链事件树;Step 12: Build a Merkel-structured cross-chain event tree in each heterogeneous blockchain;

步骤13:异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳;Step 13: The heterogeneous blockchain triggers a cross-chain protocol to throw a cross-chain event, and the cross-chain event includes the transaction time, transaction amount, transaction terminal code and timestamp of the transaction data;

步骤14:跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。Step 14: Insert the cross-chain event into the cross-chain event tree, and perform credible verification of the cross-chain event through the Merkel path of the cross-chain event tree.

本发明的有益效果体现在:本发明提出一种基于区块链公链的交易系统,主要包括有数据共享系统,数据共享系统中一般包括多个节点,多个节点可以是接入该数据共享系统中的终端,每个节点对应一个或多个终端,数据共享系统共享节点与节点之间的交易数据。每个节点发生交易时生成交易数据,交易数据发送至其他所有节点,每个节点在进行正常工作时可以接收到终端发生的交易数据,数据共享系统将节点与节点之间的交易数据进行共享,从而完成交易数据区块链公链的构建,交易数据发送至其他所有节点以供共享构建成公链,通过公链可以保障交易系统的安全性。The beneficial effects of the present invention are as follows: the present invention proposes a transaction system based on the blockchain public chain, which mainly includes a data sharing system. The data sharing system generally includes multiple nodes, and multiple nodes can access the data sharing system. Terminals in the system, each node corresponds to one or more terminals, and the data sharing system shares transaction data between nodes. Each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes. Each node can receive the transaction data generated by the terminal during normal work. The data sharing system shares the transaction data between nodes. In this way, the construction of the public chain of the transaction data blockchain is completed, and the transaction data is sent to all other nodes for sharing to form a public chain, and the security of the transaction system can be guaranteed through the public chain.

具体实施方式Detailed ways

下面将对本发明技术方案的实施例进行详细的描述。以下实施例仅用于更加清楚地说明本发明的技术方案,因此只作为示例,而不能以此来限制本发明的保护范围。The embodiments of the technical solutions of the present invention will be described in detail below. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

需要注意的是,除非另有说明,本申请使用的技术术语或者科学术语应当为本发明所属领域技术人员所理解的通常意义。It should be noted that, unless otherwise specified, the technical or scientific terms used in this application should have the usual meanings understood by those skilled in the art to which the present invention belongs.

本发明提出一种基于区块链公链的交易系统,主要包括有数据共享系统,数据共享系统中一般包括多个节点,多个节点可以是接入该数据共享系统中的终端,每个节点对应一个或多个终端,数据共享系统共享节点与节点之间的交易数据。每个节点发生交易时生成交易数据,交易数据发送至其他所有节点,每个节点在进行正常工作时可以接收到终端发生的交易数据,数据共享系统将节点与节点之间的交易数据进行共享,从而完成交易数据区块链公链的构建,交易数据发送至其他所有节点以供共享构建成公链,通过公链可以保障交易系统的安全性。The present invention proposes a transaction system based on the blockchain public chain, which mainly includes a data sharing system. The data sharing system generally includes multiple nodes. The multiple nodes can be terminals accessing the data sharing system. Corresponding to one or more terminals, the data sharing system shares transaction data between nodes. Each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes. Each node can receive the transaction data generated by the terminal during normal work. The data sharing system shares the transaction data between nodes. In this way, the construction of the public chain of the transaction data blockchain is completed, and the transaction data is sent to all other nodes for sharing to form a public chain, and the security of the transaction system can be guaranteed through the public chain.

优选的,为了保证数据共享系统内信息互通,在一些实施方式中,一种信息传输连接方式可以是数据共享系统中的所述节点之间通过协议互相连接,节点之间通过协议连接进行交易数据的信息传输。交易数据通过协议共享给所有通过协议连接的节点,该交易数据作为共享数据中的数据在所有节点进行存储,使得在数据共享系统中全部节点上所存储的数据一致。从而使得所有节点均具有该交易数据,使得交易数据具有公共监督性,不能被篡改。Preferably, in order to ensure information exchange in the data sharing system, in some embodiments, an information transmission connection method may be that the nodes in the data sharing system are connected to each other through a protocol, and the nodes are connected to trade data through a protocol connection. information transmission. The transaction data is shared to all nodes connected through the protocol through the protocol, and the transaction data is stored in all nodes as the data in the shared data, so that the data stored on all nodes in the data sharing system is consistent. Therefore, all nodes have the transaction data, so that the transaction data has public supervision and cannot be tampered with.

另一种实施方式中,信息传输连接方式可以是数据共享系统中的所述节点之间通过共识算法获取交易数据。任意节点发生交易时,其他节点通过共识算法互相获取交易数据,所有节点通过共识算法获取交易数据,该交易数据存储于所有节点中,使得所有节点中存储的交易数据均一致,保证了数据的真实不可篡改性。In another implementation manner, the information transmission connection mode may be that the nodes in the data sharing system acquire transaction data through a consensus algorithm. When a transaction occurs on any node, other nodes obtain transaction data from each other through consensus algorithm, all nodes obtain transaction data through consensus algorithm, and the transaction data is stored in all nodes, so that the transaction data stored in all nodes is consistent, ensuring the authenticity of the data Immutable.

作为共享数据中的交易数据在所有节点进行存储,使得在数据共享系统中全部节点上所存储的数据一致。从而使得所有节点均具有该交易数据,使得交易数据公开透明化,不能被篡改。The transaction data in the shared data is stored in all nodes, so that the data stored on all nodes in the data sharing system is consistent. Therefore, all nodes have the transaction data, so that the transaction data is open and transparent, and cannot be tampered with.

所述数据共享系统中的节点中均具有交易数据对应的存证数据,所述存证数据上传至区块链中;该存证数据上传至区块链中,并且每个节点都具有其他节点的存证数据。将存证数据上传至区块链,一方面其能够译码出完整的交易数据信息,一方面其占用内存小。The nodes in the data sharing system all have certificate data corresponding to the transaction data, and the certificate data is uploaded to the blockchain; the certificate data is uploaded to the blockchain, and each node has other nodes record data. Upload the certificate data to the blockchain, on the one hand, it can decode the complete transaction data information, on the other hand, it occupies a small memory.

所述数据共享系统中的各节点均对节点中的存证数据进行签名运算,签名运算后得到交易数据对应的签名,签名存储在各个节点中,审计系统对签名进行审计,以保证存证数据的真实可靠性。Each node in the data sharing system performs a signature operation on the certificate data in the node, and after the signature operation, a signature corresponding to the transaction data is obtained, the signature is stored in each node, and the audit system audits the signature to ensure the certificate data. true reliability.

进一步的,所述数据共享系统中的多个节点各存储有异构区块链,各个异构区块链之间构建跨链证明构架,所述跨链证明构架包括:各个异构区块链中构建默克尔结构的跨链事件树,异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳,跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。Further, multiple nodes in the data sharing system each store heterogeneous blockchains, and a cross-chain proof framework is constructed between each heterogeneous blockchain, and the cross-chain proof framework includes: each heterogeneous blockchain A cross-chain event tree with Merkel structure is constructed in the cross-chain event tree, and the heterogeneous blockchain triggers the cross-chain protocol to throw the cross-chain event. The cross-chain event includes the transaction time, transaction amount, transaction terminal code and timestamp of the transaction data. The cross-chain event is inserted into the cross-chain event tree, and the cross-chain event is credibly verified through the Merkel path of the cross-chain event tree.

本发明还提出一种基于区块链公链的交易方法,包括步骤:The present invention also proposes a transaction method based on the blockchain public chain, comprising the steps of:

步骤1:数据共享系统中生成多个节点,每个所述节点对应一个或多个终端;Step 1: multiple nodes are generated in the data sharing system, and each of the nodes corresponds to one or more terminals;

步骤2:共享节点与节点之间的交易数据;Step 2: Share transaction data between nodes;

步骤3:每个节点发生交易时生成交易数据,交易数据发送至其他所有节点以供共享构建成公链。Step 3: Each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes for sharing to build a public chain.

每个节点在进行正常工作时可以接收到终端发生的交易数据,数据共享系统将节点与节点之间的交易数据进行共享,从而完成交易数据区块链公链的构建。Each node can receive the transaction data generated by the terminal during normal operation, and the data sharing system will share the transaction data between nodes, thus completing the construction of the transaction data blockchain public chain.

在一些优选实施例中,还包括步骤:In some preferred embodiments, it also includes the steps:

步骤4:所述数据共享系统中的所述节点之间通过协议互相连接,节点之间通过协议连接进行交易数据的信息传输。任意节点发生交易时,其他节点通过协议获取交易数据,交易数据通过协议共享给所有通过协议连接的节点,该交易数据作为共享数据中的数据在所有节点进行存储,使得在数据共享系统中全部节点上所存储的数据一致。从而使得所有节点均具有该交易数据,使得交易数据具有公共监督性,不能被篡改。Step 4: The nodes in the data sharing system are connected to each other through a protocol, and the information transmission of transaction data is performed between the nodes through a protocol connection. When a transaction occurs on any node, other nodes obtain transaction data through the protocol, and the transaction data is shared with all nodes connected through the protocol through the protocol. The transaction data is stored in all nodes as the data in the shared data, so that all nodes in the data sharing system The data stored on it is consistent. Therefore, all nodes have the transaction data, so that the transaction data has public supervision and cannot be tampered with.

优选的,还可以包括步骤:步骤5:所述数据共享系统中的所述节点之间通过共识算法互相获取交易数据。其他节点通过共识算法互相获取交易数据,所有节点通过共识算法获取交易数据,该交易数据存储于所有节点中,使得所有节点中存储的交易数据均一致,保证了数据的真实不可篡改性。Preferably, the method may further include the following steps: Step 5: The nodes in the data sharing system obtain transaction data from each other through a consensus algorithm. Other nodes obtain transaction data from each other through consensus algorithm, and all nodes obtain transaction data through consensus algorithm. The transaction data is stored in all nodes, so that the transaction data stored in all nodes is consistent, which ensures the authenticity of the data and cannot be tampered with.

在另一种实施例中,还包括步骤:In another embodiment, it also includes the steps:

步骤6:所述数据共享系统中的节点中对交易数据进行哈希运算得到对应的存证数据;Step 6: Hash operation is performed on the transaction data in the nodes in the data sharing system to obtain the corresponding certificate data;

步骤7:所述存证数据上传至区块链中;Step 7: Upload the certificate data to the blockchain;

步骤8:所述数据共享系统中的各节点对节点中的存证数据进行签名运算;Step 8: each node in the data sharing system performs a signature operation on the data stored in the node;

步骤9:签名运算后得到交易数据对应的签名;Step 9: After the signature operation, the signature corresponding to the transaction data is obtained;

步骤10:将签名存储在各个节点中。Step 10: Store the signature in each node.

作为共享数据中的交易数据在所有节点进行存储,使得在数据共享系统中全部节点上所存储的数据一致。从而使得所有节点均具有该交易数据,使得交易数据公开透明化,不能被篡改。The transaction data in the shared data is stored in all nodes, so that the data stored on all nodes in the data sharing system is consistent. Therefore, all nodes have the transaction data, so that the transaction data is open and transparent, and cannot be tampered with.

数据共享系统中的每个节点,均具有交易数据对应的存证数据,该存证数据上传至区块链中,并且每个节点都具有其他节点的存证数据。Each node in the data sharing system has the certificate data corresponding to the transaction data, the certificate data is uploaded to the blockchain, and each node has the certificate data of other nodes.

在需要审计时,可以直接对节点中的签名进行审计。When auditing is required, the signature in the node can be audited directly.

在另一种实施例中,还包括步骤:In another embodiment, it also includes the steps:

步骤11:在多个节点中的异构区块链之间构建跨链证明构架,所述跨链证明构架包括步骤:Step 11: Build a cross-chain proof framework between heterogeneous blockchains in multiple nodes, and the cross-chain proof framework includes steps:

步骤12:在各个异构区块链中构建默克尔结构的跨链事件树;Step 12: Build a Merkel-structured cross-chain event tree in each heterogeneous blockchain;

步骤13:异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳;Step 13: The heterogeneous blockchain triggers a cross-chain protocol to throw a cross-chain event, and the cross-chain event includes the transaction time, transaction amount, transaction terminal code and timestamp of the transaction data;

步骤14:跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。Step 14: Insert the cross-chain event into the cross-chain event tree, and perform credible verification of the cross-chain event through the Merkel path of the cross-chain event tree.

在上述步骤11~14中,数据共享系统中的多个节点各存储有异构区块链,各个异构区块链之间构建跨链证明构架,所述跨链证明构架包括:各个异构区块链中构建默克尔结构的跨链事件树,异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳,跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。不仅在异构区块链之间打造交易数据的区块链公链,而且可以实现跨链数据验证。In the above steps 11 to 14, multiple nodes in the data sharing system each store heterogeneous blockchains, and a cross-chain proof framework is constructed between each heterogeneous blockchain, and the cross-chain proof framework includes: each heterogeneous blockchain The cross-chain event tree of Merkel structure is constructed in the blockchain, and the heterogeneous blockchain triggers the cross-chain protocol to throw the cross-chain event. The cross-chain event includes the transaction time, transaction amount, transaction terminal code and Timestamp, the cross-chain event is inserted into the cross-chain event tree, and the cross-chain event is credibly verified through the Merkel path of the cross-chain event tree. It not only creates a blockchain public chain for transaction data between heterogeneous blockchains, but also enables cross-chain data verification.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围,其均应涵盖在本发明的权利要求和说明书的范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. The scope of the invention should be included in the scope of the claims and description of the present invention.

Claims (10)

1.基于区块链公链的交易系统,其特征在于,包括:1. A transaction system based on the blockchain public chain, characterized in that it includes: 数据共享系统,数据共享系统中包括多个节点,每个所述节点对应一个或多个终端,其用于共享节点与节点之间的交易数据;A data sharing system, the data sharing system includes a plurality of nodes, each of the nodes corresponds to one or more terminals, which are used for sharing transaction data between nodes; 所述节点之间存在信息连接,每个节点发生交易时生成交易数据,交易数据发送至其他所有节点以供共享构建成公链。There is an information connection between the nodes, each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes for sharing to build a public chain. 2.根据权利要求1所述的基于区块链公链的交易系统,其特征在于,所述数据共享系统中的所述节点之间通过协议互相连接,节点之间通过协议连接进行交易数据的信息传输。2. The transaction system based on the blockchain public chain according to claim 1, characterized in that, the nodes in the data sharing system are connected to each other through a protocol, and the nodes are connected to each other through a protocol connection to exchange transaction data. Information transfer. 3.根据权利要求1所述的基于区块链公链的交易系统,其特征在于,所述数据共享系统中的所述节点之间通过共识算法获取交易数据。3. The transaction system based on the blockchain public chain according to claim 1, wherein the nodes in the data sharing system obtain transaction data through a consensus algorithm. 4.根据权利要求1~3任意一项所述的基于区块链公链的交易系统,其特征在于,所述数据共享系统中的节点中均具有交易数据对应的存证数据,所述存证数据上传至区块链中;4. The transaction system based on the blockchain public chain according to any one of claims 1 to 3, wherein the nodes in the data sharing system all have certificate data corresponding to transaction data, and the storage The certificate data is uploaded to the blockchain; 所述数据共享系统中的各节点均对节点中的存证数据进行签名运算,签名运算后得到交易数据对应的签名,签名存储在各个节点中,审计系统对签名进行审计。Each node in the data sharing system performs a signature operation on the data stored in the node, and after the signature operation, a signature corresponding to the transaction data is obtained, the signature is stored in each node, and the audit system audits the signature. 5.根据权利要求4所述的基于区块链公链的交易系统,其特征在于,所述数据共享系统中的多个节点各存储有异构区块链,各个异构区块链之间构建跨链证明构架,所述跨链证明构架包括:各个异构区块链中构建默克尔结构的跨链事件树,异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳,跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。5. The transaction system based on blockchain public chain according to claim 4, characterized in that, multiple nodes in the data sharing system each store heterogeneous blockchains, and each heterogeneous blockchain Build a cross-chain proof framework, the cross-chain proof framework includes: constructing a Merkel-structured cross-chain event tree in each heterogeneous blockchain, and the heterogeneous blockchain triggers a cross-chain protocol to throw cross-chain events. The cross-chain event includes the transaction time, transaction amount, transaction terminal code and timestamp of the transaction data. The cross-chain event is inserted into the cross-chain event tree, and the cross-chain event is credibly verified through the Merkle path of the cross-chain event tree. 6.基于区块链公链的交易方法,其特征在于,包括步骤:6. The transaction method based on the blockchain public chain, characterized in that it includes the steps: 步骤1:数据共享系统中生成多个节点,每个所述节点对应一个或多个终端;Step 1: multiple nodes are generated in the data sharing system, and each of the nodes corresponds to one or more terminals; 步骤2:共享节点与节点之间的交易数据;Step 2: Share transaction data between nodes; 步骤3:每个节点发生交易时生成交易数据,交易数据发送至其他所有节点以供共享构建成公链。Step 3: Each node generates transaction data when a transaction occurs, and the transaction data is sent to all other nodes for sharing to build a public chain. 7.根据权利要求6所述的基于区块链公链的交易方法,其特征在于,还包括步骤:7. The transaction method based on the blockchain public chain according to claim 6, further comprising the steps of: 步骤4:所述数据共享系统中的所述节点之间通过协议互相连接,节点之间通过协议连接进行交易数据的信息传输。Step 4: The nodes in the data sharing system are connected to each other through a protocol, and the information transmission of transaction data is performed between the nodes through a protocol connection. 8.根据权利要求7所述的基于区块链公链的交易方法,其特征在于,还包括步骤:8. The transaction method based on the blockchain public chain according to claim 7, further comprising the steps of: 步骤5:所述数据共享系统中的所述节点之间通过共识算法互相获取交易数据。Step 5: The nodes in the data sharing system mutually acquire transaction data through a consensus algorithm. 9.根据权利要求8所述的基于区块链公链的交易方法,其特征在于,还包括步骤:9. The transaction method based on the blockchain public chain according to claim 8, further comprising the steps of: 步骤6:所述数据共享系统中的节点中对交易数据进行哈希运算得到对应的存证数据;Step 6: Hash operation is performed on the transaction data in the nodes in the data sharing system to obtain the corresponding certificate data; 步骤7:所述存证数据上传至区块链中;Step 7: Upload the certificate data to the blockchain; 步骤8:所述数据共享系统中的各节点对节点中的存证数据进行签名运算;Step 8: each node in the data sharing system performs a signature operation on the data stored in the node; 步骤9:签名运算后得到交易数据对应的签名;Step 9: After the signature operation, the signature corresponding to the transaction data is obtained; 步骤10:将签名存储在各个节点中。Step 10: Store the signature in each node. 10.根据权利要求9所述的基于区块链公链的交易方法,其特征在于,还包括步骤:10. The transaction method based on the blockchain public chain according to claim 9, characterized in that, further comprising the steps of: 步骤11:在多个节点中的异构区块链之间构建跨链证明构架,所述跨链证明构架包括步骤:Step 11: Build a cross-chain proof framework between heterogeneous blockchains in multiple nodes, and the cross-chain proof framework includes steps: 步骤12:在各个异构区块链中构建默克尔结构的跨链事件树;Step 12: Build a Merkel-structured cross-chain event tree in each heterogeneous blockchain; 步骤13:异构区块链触发跨链协议来抛出跨链事件,所述跨链事件包括交易数据的交易时间、交易金额、交易终端代码和时间戳;Step 13: The heterogeneous blockchain triggers a cross-chain protocol to throw a cross-chain event, and the cross-chain event includes the transaction time, transaction amount, transaction terminal code and timestamp of the transaction data; 步骤14:跨链事件插入所述跨链事件树,通过跨链事件树的默克尔路径对跨链事件进行可信验证。Step 14: Insert the cross-chain event into the cross-chain event tree, and perform credible verification of the cross-chain event through the Merkel path of the cross-chain event tree.
CN202010359102.8A 2020-04-29 2020-04-29 Transaction method and system based on blockchain public chain Pending CN111415162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010359102.8A CN111415162A (en) 2020-04-29 2020-04-29 Transaction method and system based on blockchain public chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010359102.8A CN111415162A (en) 2020-04-29 2020-04-29 Transaction method and system based on blockchain public chain

Publications (1)

Publication Number Publication Date
CN111415162A true CN111415162A (en) 2020-07-14

Family

ID=71492220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010359102.8A Pending CN111415162A (en) 2020-04-29 2020-04-29 Transaction method and system based on blockchain public chain

Country Status (1)

Country Link
CN (1) CN111415162A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180350A (en) * 2017-03-31 2017-09-19 唐晓领 A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system
CN107819777A (en) * 2017-11-17 2018-03-20 北京亿生生网络科技有限公司 A kind of data based on block chain technology deposit card method and system
CN108596622A (en) * 2018-05-02 2018-09-28 北京链链信息技术有限公司 The shared system and method for Transaction Information
CN109493042A (en) * 2018-10-24 2019-03-19 南京邮电大学 A kind of intelligent contract possessing access control function is credible to deposit card method and system
CN109543459A (en) * 2018-11-22 2019-03-29 中国联合网络通信集团有限公司 A kind of data deposit card method and apparatus
CN109636622A (en) * 2019-01-03 2019-04-16 平安科技(深圳)有限公司 A kind of fund data sharing method, system and electronic equipment based on block chain
WO2019137408A1 (en) * 2018-01-10 2019-07-18 Shanghai Weilian Information Technology Co., Ltd. Methods, device, block chain node, computer-readable media and system for carbon recording and trading based on block chain
CN110493220A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 A kind of data sharing method based on block chain, equipment and storage medium
CN110766410A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Method and equipment for constructing and verifying credible cross-chain event based on Mercker tree
WO2020042792A1 (en) * 2018-08-31 2020-03-05 阿里巴巴集团控股有限公司 Blockchain-based transaction consensus processing method and apparatus, and electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180350A (en) * 2017-03-31 2017-09-19 唐晓领 A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system
CN107819777A (en) * 2017-11-17 2018-03-20 北京亿生生网络科技有限公司 A kind of data based on block chain technology deposit card method and system
WO2019137408A1 (en) * 2018-01-10 2019-07-18 Shanghai Weilian Information Technology Co., Ltd. Methods, device, block chain node, computer-readable media and system for carbon recording and trading based on block chain
CN108596622A (en) * 2018-05-02 2018-09-28 北京链链信息技术有限公司 The shared system and method for Transaction Information
WO2020042792A1 (en) * 2018-08-31 2020-03-05 阿里巴巴集团控股有限公司 Blockchain-based transaction consensus processing method and apparatus, and electronic device
CN109493042A (en) * 2018-10-24 2019-03-19 南京邮电大学 A kind of intelligent contract possessing access control function is credible to deposit card method and system
CN109543459A (en) * 2018-11-22 2019-03-29 中国联合网络通信集团有限公司 A kind of data deposit card method and apparatus
CN109636622A (en) * 2019-01-03 2019-04-16 平安科技(深圳)有限公司 A kind of fund data sharing method, system and electronic equipment based on block chain
CN110493220A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 A kind of data sharing method based on block chain, equipment and storage medium
CN110766410A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Method and equipment for constructing and verifying credible cross-chain event based on Mercker tree

Similar Documents

Publication Publication Date Title
US11829494B2 (en) Distributed privately subspaced blockchain data structures with secure access restriction management
TWI716140B (en) Data processing method and device based on blockchain
Taskinsoy Blockchain: a misunderstood digital revolution. Things you need to know about blockchain
US11538105B2 (en) Cryptographic-asset collateral management
US20200027066A1 (en) Blockchain-Based Digital Token Utilization
CN107688944A (en) A kind of power system method of commerce based on block chain
WO2021220062A1 (en) Blockchain transaction
CN111260485A (en) Mutual-aid insurance method, equipment and medium based on block chain
CN110930152B (en) Data processing method based on block chain and related equipment
CN109547488A (en) A kind of trust data calculating and exchange system based on alliance's block chain
CN110473081A (en) Based on the electronic bill method of charging out and device of block chain, electronic equipment
US20250182106A1 (en) Methods and systems for forensic investigations in contract networks
CN113592476A (en) Cross-chain asset transfer method, computer device, and storage medium
CN113269543A (en) Multilayer mixed transaction capacity expansion system and method for block chain
Flood et al. Blockchain’s future: can the decentralized blockchain community succeed in creating standards?
KR102376783B1 (en) The blockchain-based transaction history confirmation system
CN111415162A (en) Transaction method and system based on blockchain public chain
CN111598556A (en) Digital currency exchange method, device, equipment and medium
CN117560137A (en) A block chain service device, block chain service system and communication method
Das et al. Blockchain technology: fundamentals, applications, and challenges
CN114926274A (en) Electronic credit accounting method and system based on block chain
CN112418867A (en) Distributed token payment method based on block chain
Al-Rawy et al. Advanced Security Using Blockchain and Distributed Ledger Technology
CN111553735A (en) Point transaction method and system using public link
CN109087184A (en) A kind of bank's financial management method and system based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714