Movatterモバイル変換


[0]ホーム

URL:


CN108009811A - A cross-chain communication method for inter-cloud computing environment value exchange - Google Patents

A cross-chain communication method for inter-cloud computing environment value exchange
Download PDF

Info

Publication number
CN108009811A
CN108009811ACN201711237256.4ACN201711237256ACN108009811ACN 108009811 ACN108009811 ACN 108009811ACN 201711237256 ACN201711237256 ACN 201711237256ACN 108009811 ACN108009811 ACN 108009811A
Authority
CN
China
Prior art keywords
transaction
sender
chain
cross
block
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.)
Granted
Application number
CN201711237256.4A
Other languages
Chinese (zh)
Other versions
CN108009811B (en
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.)
Shanghai Ucloud Information Tech Co ltd
National University of Defense Technology
Original Assignee
Shanghai Ucloud Information Tech Co ltd
National University of Defense Technology
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 Shanghai Ucloud Information Tech Co ltd, National University of Defense TechnologyfiledCriticalShanghai Ucloud Information Tech Co ltd
Priority to CN201711237256.4ApriorityCriticalpatent/CN108009811B/en
Publication of CN108009811ApublicationCriticalpatent/CN108009811A/en
Application grantedgrantedCritical
Publication of CN108009811BpublicationCriticalpatent/CN108009811B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a cross-chain communication method for inter-cloud computing environment value exchange, aiming at ensuring the safety, reliability and high efficiency of the value exchange process. The technical scheme is that a cross-chain communication system consisting of a cross-chain communication module, a node management module, a verification module and an accounting module is installed in each user node on each block chain, an intermediate chain is established, routing nodes are selected from the intermediate chain, and value transfer and communication among the chains are completed by the routing nodes; a cross-link communication module of a sender constructs a fund pool for the sender, a receiver and a routing node, fund transfer is carried out according to a fund transfer scheme, and an authentication module of the receiver authenticates the validity and availability of the fund of the sender in an intelligent contract mode; the accounting module of the receiving party broadcasts the transaction result, and the sending party, the receiving party and the MidChain generate a new block to store transaction data. The method and the device can ensure the safety, reliability and high efficiency of the value exchange process and realize seamless chain-to-chain communication.

Description

Translated fromChinese
一种面向云际计算环境价值交换的跨链通信方法A cross-chain communication method for inter-cloud computing environment value exchange

技术领域technical field

本发明涉及区块链以及分布式云计算领域,具体涉及一种利用区块链作为基础技术支撑,跨链进行价值交换的通信方法。The present invention relates to the field of blockchain and distributed cloud computing, in particular to a communication method for cross-chain value exchange using blockchain as a basic technical support.

背景技术Background technique

区块链的概念在08年中本聪的《Bitcoin:A Peer-to-Peer Electronic CashSystem》(即《比特币:一种点对点的电子现金系统》)一文中,作为比特币的底层技术被提出。为了实现一种点对点的去中心化可信记账系统,中本聪将比特币的每次交易信息分别放入一个区块(即一个用于存放交易数据哈希值和时间戳的块结构)中,每个区块再按照时间戳顺序连成一条链,称为区块链。某条区块链上的用户节点(也可称属于某条区块链的用户节点)是指将该条区块链上所有区块同步到本地服务器的用户终端,在云际计算环境中,特指云服务消费者和云服务提供商。一条区块链上有多个用户节点,所有用户节点都具备广播功能、验证功能、分配资金池中的资金、资金转移功能。此外,由于区块链本身就可看作一本分布式帐本,所以将每个用户节点同步到本地服务器的整条区块链称作本地账本,随着新区块的生成,本地账本也要同步进行更新。这样通过区块链的形式,中本聪完美地实现了对等网络下的去中心化可信记账系统。如图2所示,区块链由多个区块(规定第一个区块叫做创世块)按照生成交易的时间戳顺序连成。每个区块由区块头和其他三个数据域组成。区块头包含6个数据域,分别为:区块ID、随机数、上一区块哈希值、生成区块的时间戳、Merkle根哈希值、难度值。区块ID是对每一个区块的编号,用于验证模块和交易完成后查看交易信息;随机数是和交易信息做哈希运算的一个数字(哈希运算是一个把任意长度的数据映射成固定长度数据的运算,比特币中使用到的是SHA-256哈希算法,来源于美国国家标准与技术研究院发布的《安全散列标准》),用于用户节点依据PoW共识机制争夺记账权;上一区块哈希值是指与所属区块相连的上一个区块的各数据域信息合并进行哈希运算所得到的值,第一个区块的上一区块哈希值为0;生成区块的时间戳指一串表示区块生成时间的字符序列;Merkle根哈希值是将交易信息里面的各条交易信息通过Merkle Proof方法(Nakamoto S.Bitcoin:Apeer-to-peer electronic cash system[J].2008,即《比特币:一种点对点的电子现金系统》第4页第22-31行)合并而成;难度值是用户争夺记账权时计算哈希值的难度系数。区块中的另外三个数据域分别为:区块大小、交易计数器、交易信息。区块大小是用字节数表示的区块的大小;交易计数器是该区块中记录的交易数量;交易信息是对每条交易记录的信息,由用户节点根据具体的交易进行记录。之后,受到比特币的灵感启示,越来越多致力于区块链基础设施发展的企业涌入行业市场,极具代表性的包括Blockstream、Ripple以及Ethereum等。The concept of blockchain was proposed as the underlying technology of Bitcoin in Satoshi Nakamoto's "Bitcoin: A Peer-to-Peer Electronic Cash System" (ie "Bitcoin: A Peer-to-Peer Electronic Cash System") in 2008 . In order to realize a point-to-point decentralized trusted accounting system, Satoshi Nakamoto put each transaction information of Bitcoin into a block (that is, a block structure for storing transaction data hash value and timestamp) In , each block is connected into a chain according to the order of timestamp, which is called a blockchain. A user node on a certain blockchain (also referred to as a user node belonging to a certain blockchain) refers to a user terminal that synchronizes all blocks on the blockchain to a local server. In an inter-cloud computing environment, Specifically refers to cloud service consumers and cloud service providers. There are multiple user nodes on a blockchain, and all user nodes have the functions of broadcasting, verification, allocation of funds in the fund pool, and transfer of funds. In addition, since the blockchain itself can be regarded as a distributed ledger, the entire blockchain that synchronizes each user node to the local server is called a local ledger. As new blocks are generated, the local ledger must also Synchronously for updates. In this way, through the form of blockchain, Satoshi Nakamoto perfectly realized the decentralized and trusted bookkeeping system under the peer-to-peer network. As shown in Figure 2, the blockchain is composed of multiple blocks (the first block is called the creation block) connected in the order of the timestamps of the generated transactions. Each block consists of a block header and three other data fields. The block header contains 6 data fields, namely: block ID, random number, hash value of the previous block, timestamp of generated block, Merkle root hash value, and difficulty value. The block ID is the number of each block, which is used to verify the module and view the transaction information after the transaction is completed; the random number is a number that is hashed with the transaction information (the hash operation is a mapping of data of any length into For the operation of fixed-length data, the SHA-256 hash algorithm is used in Bitcoin, which is derived from the "Secure Hash Standard" issued by the National Institute of Standards and Technology), and is used for user nodes to compete for bookkeeping based on the PoW consensus mechanism Right; the hash value of the previous block refers to the value obtained by combining the data field information of the previous block connected to the block to which the hash operation is performed. The hash value of the previous block of the first block is 0; the time stamp of the generated block refers to a string of character sequences representing the block generation time; the Merkle root hash value is the transaction information in the transaction information through the Merkle Proof method (Nakamoto S.Bitcoin: Apeer-to-peer electronic cash system[J].2008, that is, "Bitcoin: A Peer-to-Peer Electronic Cash System" page 4, line 22-31) was merged; the difficulty value is the difficulty coefficient of calculating the hash value when users compete for the right to bookkeeping . The other three data fields in the block are: block size, transaction counter, and transaction information. The block size is the size of the block represented by the number of bytes; the transaction counter is the number of transactions recorded in the block; the transaction information is the information recorded for each transaction, which is recorded by the user node according to the specific transaction. Afterwards, inspired by Bitcoin, more and more companies dedicated to the development of blockchain infrastructure poured into the industry market, including Blockstream, Ripple, and Ethereum.

借鉴比特币的思想,以太坊尝试在比特币协议之上构建一个总体上完全无需信任基础的智能合约平台。它是一个创新的可编程的区块链平台,允许任何人在平台中建立和使用通过区块链技术运行的去中心化应用。相比于比特币区块链,纯粹是一个关于交易信息的列表,以太坊区块链以账户为基础单元,它跟踪每个账户的状态,所有以太坊区块链上的状态转换都是账户之间价值和信息的转移。账户分为外部账户和合约账户,外部账户由用户通过私钥控制,合约账户则是由合约编码——即智能合约——来控制。Drawing on the idea of Bitcoin, Ethereum tries to build a smart contract platform based on the Bitcoin protocol that does not need a trust base at all. It is an innovative programmable blockchain platform that allows anyone to build and use decentralized applications that run on blockchain technology. Compared with the Bitcoin blockchain, which is purely a list of transaction information, the Ethereum blockchain uses accounts as the basic unit, which tracks the status of each account, and all state transitions on the Ethereum blockchain are account Transfer of value and information between. Accounts are divided into external accounts and contract accounts. External accounts are controlled by users through private keys, and contract accounts are controlled by contract codes—that is, smart contracts.

关于智能合约,早在1994年,密码学家尼克萨博(Nick Szabo)就在自己的网站中提出了智能合约的概念,但一直不能应用于现实。直到中本聪的比特币被提出之后,才得以继续发展。智能合约是一段可自动执行的计算机程序(如《Ethereum White Paper:ANEXTGENERATION SMART CONTRACT&DECENTRALIZED APPLICATION PLATFORM》,即《以太坊:下一代智能合约和去中心化应用平台》,第13页16行-第17页24行,介绍了以太坊中智能合约的概念、怎么编写以及如何使用。文中讲到:“Smart contracts,cryptographic"boxes"thatcontain value and only unlock it if certain conditions are met”,说明智能合约是一个包含有价值,且仅当满足某些特定条件时才可被解锁的加密盒子,即一段自动执行判断动作的程序),在程序中输入用于判断动作执行与否的条件,当一个预先编好的条件被触发时,智能合约执行相应的合同条款。将它部署到区块链上,可实现对交易流程和交易数据的自动操控,进而也可通过执行这段程序实现与现实资产的交互。Regarding smart contracts, as early as 1994, cryptographer Nick Szabo proposed the concept of smart contracts on his website, but it has not been applied in reality. It was not until Satoshi Nakamoto's Bitcoin was proposed that it continued to develop. A smart contract is a computer program that can be automatically executed (such as "Ethereum White Paper: ANEXTGENERATION SMART CONTRACT&DECENTRALIZED APPLICATION PLATFORM", that is, "Ethereum: Next Generation Smart Contract and Decentralized Application Platform", page 13, line 16-page 17 Line 24 introduces the concept of smart contracts in Ethereum, how to write them, and how to use them. The article mentions: "Smart contracts, cryptographic "boxes" that contain value and only unlock it if certain conditions are met", indicating that smart contracts are a system that contains An encrypted box that is valuable and can only be unlocked when certain conditions are met, that is, a program that automatically executes a judgment action), enter the conditions for judging whether the action is executed or not in the program, when a pre-programmed When a condition is triggered, the smart contract executes the corresponding contract terms. Deploying it on the blockchain can realize the automatic manipulation of the transaction process and transaction data, and then also realize the interaction with real assets by executing this program.

如果说区块链解决了交易通道不可信问题的话,那么共识机制则是解决了区块链如何在分布式场景下达成一致性的问题。具有代表性的共识算法有PBFT(PracticalByzantine Fault Tolerance,实用拜占庭容错算法)、PoW(Proof of Work,工作量证明)共识算法(Nakamoto S.Bitcoin:Apeer-to-peer electronic cashsystem[J].2008,即《比特币:一种点对点的电子现金系统》第4页第1-22行)、PoS(Proof of Stake,股权证明)共识算法等。PBFT是在拜占庭将军问题场景下产生的一种基于消息传递的共识算法。异步网络环境下PBFT算法所能允许的最大容错数为(n-1)/3(n为总节点数)。PBFT算法经过预准备、准备、执行三个阶段达成一致性,而这三阶段均有可能因为失败而重复进行。基于工作量证明的PoW共识算法主要用于区块的记账权争夺中。一个区块的哈希值(即将该区块中的交易记录通过哈希加密运算所得的结果,交易记录由一串数字表示)由N个前导零构成,零的个数取决于网络的难度值。要得到合理的哈希值需要经过大量尝试计算,计算时间取决于机器的哈希运算速度。区块链上的用户基于算力来争夺记账权,从而获得比特币收益,这一操作也被称为挖矿。由于寻找到正确的哈希值是一个概率事件,当节点拥有占全网m%的算力时,该节点即有m%的概率找到区块的哈希值,m为实数。但是,PoW资源浪费度极高,且最终运算并没有实际用途。PoS是基于权益的证明算法,它认为区块链上的记录和证明应该由那些在链上具有经济利益的人来维护和保障。通过要求证明人提供一定数量加密货币的所有权而非进行难度极高的工作量证明,PoS从根本上摆脱了PoW的算力浪费。If the blockchain solves the problem of untrustworthy transaction channels, then the consensus mechanism solves the problem of how the blockchain can reach consensus in a distributed scenario. Representative consensus algorithms include PBFT (Practical Byzantine Fault Tolerance, Practical Byzantine Fault Tolerance Algorithm), PoW (Proof of Work, workload proof) consensus algorithm (Nakamoto S.Bitcoin: Apeer-to-peer electronic cashsystem[J].2008, That is, "Bitcoin: A Peer-to-Peer Electronic Cash System", line 1-22 on page 4), PoS (Proof of Stake, proof of equity) consensus algorithm, etc. PBFT is a consensus algorithm based on message passing generated in the Byzantine general problem scenario. The maximum number of faults allowed by the PBFT algorithm in an asynchronous network environment is (n-1)/3 (n is the total number of nodes). The PBFT algorithm reaches consensus through three stages of pre-preparation, preparation, and execution, and these three stages may be repeated due to failure. The PoW consensus algorithm based on the proof of work is mainly used in the competition for the accounting right of the block. The hash value of a block (that is, the result obtained by hashing the transaction records in the block, and the transaction records are represented by a string of numbers) consists of N leading zeros, and the number of zeros depends on the difficulty value of the network . To get a reasonable hash value requires a lot of trial calculations, and the calculation time depends on the hashing speed of the machine. Users on the blockchain compete for bookkeeping rights based on computing power, so as to obtain bitcoin income. This operation is also called mining. Since finding the correct hash value is a probabilistic event, when a node has m% of the computing power of the entire network, the node has an m% probability of finding the hash value of the block, and m is a real number. However, PoW resources are extremely wasteful, and the final calculation has no practical use. PoS is an equity-based proof algorithm, which believes that records and proofs on the blockchain should be maintained and guaranteed by those who have economic interests in the chain. By requiring the prover to provide ownership of a certain amount of cryptocurrency instead of performing extremely difficult proof-of-work, PoS fundamentally gets rid of the waste of computing power of PoW.

现有的多云服务提供商,例如Inter-Cloud、SuperCloud、Multi-Cloud、FedeartedCloud等,主要侧重于为满足云服务消费者的需求而进行资源的整合,但其缺乏参与者共享协作的平台与机制支撑以及云服务提供商之间合作共赢的服务模式。Existing multi-cloud service providers, such as Inter-Cloud, SuperCloud, Multi-Cloud, FedeartedCloud, etc., mainly focus on the integration of resources to meet the needs of cloud service consumers, but they lack a platform and mechanism for participants to share and collaborate Support and a win-win service model between cloud service providers.

云际计算(Joint Cloud Computing)是为满足未来云计算的需求,适应云计算的未来发展而提出的可解决现有研究困境的支撑技术,它是以云服务提供商之间开放协作为基础,多云资源深度融合,支持云提供者之间自助协作和利益交换的多云联合,方便开发者通过“软件定义”方式定制云服务、创造云价值的新一代云计算模式。在云际计算场景中,云际链与其它类型的区块链(用户链、业务链)共存,单条区块链内存在价值交换的需求,同时,随着云计算的多样变化和发展,链与链之间的价值交换需求也日益增加。Joint Cloud Computing (Joint Cloud Computing) is a supporting technology proposed to meet the needs of future cloud computing and adapt to the future development of cloud computing, which can solve the existing research dilemma. It is based on open collaboration among cloud service providers. The deep integration of multi-cloud resources supports the multi-cloud alliance of self-service collaboration and benefit exchange between cloud providers, and facilitates developers to customize cloud services through "software-defined" methods, creating a new generation of cloud computing models that create cloud value. In the inter-cloud computing scenario, the inter-cloud chain coexists with other types of blockchains (user chains, business chains), and there is a demand for value exchange in a single blockchain. At the same time, with the various changes and developments of cloud computing, chain The demand for value exchange between chains is also increasing.

在互联网全球化的发展趋势下,单一区块链结构越来越难以满足多样的交易服务的需求。为了应对复杂多变的云计算交易服务挑战,一些公司提出了跨链进行交易的概念。具有代表性的包括Blockstream公司提出的侧链技术(Sidechain)、Ripple公司提出的跨链协议Interledger等。Blockstream公司提出的侧链是一条用于实现比特币在多个区块链间转移的链。资金转移时,需要等待一个确认期和一个竞赛期。确认期是指资金在转移到侧链之前,需要在资金发送方所处的链上被锁定一段时间,以便能生成足够多的工作量来抵抗攻击。而竞赛期则是用于防止重组时出现双花攻击。这两段时期都分别需要等待1-2天的时间锁定资金。由于花费了过多时间用于处理资金验证,造成了侧链技术的效率低下,并不能满足正常交易的需求。Under the development trend of Internet globalization, it is increasingly difficult for a single blockchain structure to meet the needs of various transaction services. In order to cope with the complex and changeable cloud computing transaction service challenges, some companies have proposed the concept of cross-chain transactions. Representative ones include the Sidechain technology (Sidechain) proposed by Blockstream, and the cross-chain protocol Interledger proposed by Ripple. The side chain proposed by Blockstream is a chain used to realize the transfer of Bitcoin between multiple blockchains. When funds are transferred, there is a confirmation period and a contest period to wait. The confirmation period means that before the funds are transferred to the side chain, they need to be locked on the chain where the fund sender is located for a period of time, so that enough workload can be generated to resist the attack. The competition period is used to prevent double-spending attacks during reorganization. Both of these periods need to wait for 1-2 days to lock funds. Due to the excessive time spent on processing funds verification, the side chain technology is inefficient and cannot meet the needs of normal transactions.

Ripple公司提出的Interledger协议是一种用于跨支付系统之间支付的协议。若交易双方处于不同的支付系统,彼此之间是没有直接的交易通道来完成交易的。针对这种情况,Interledger协议提出,在交易资金的发送方(Sender)和接收方(Receiver)之间加入中间件(Connectors)来连接,通过这样的方式,在不同的支付系统之间建立一条可直接交易的通道,同时,通过第三方资金托管平台(Escrow)来实现交易准备时对资金的托管和控制,但Escrow本身具有的巨大敞口风险使得Interledger协议的安全性存在置疑。The Interledger protocol proposed by Ripple is a protocol for payment between payment systems. If the two parties to the transaction are in different payment systems, there is no direct transaction channel between them to complete the transaction. In response to this situation, the Interledger protocol proposes to add middleware (Connectors) between the sender (Sender) and the receiver (Receiver) of transaction funds to connect, and in this way, establish a link between different payment systems. The channel for direct transactions, meanwhile, uses a third-party fund custody platform (Escrow) to realize the custody and control of funds during transaction preparation, but the huge exposure risk of Escrow itself makes the security of the Interledger protocol questionable.

因此,要实现跨链进行交易或通信,还存在着以下这些技术问题:Therefore, to achieve cross-chain transactions or communication, there are still the following technical problems:

1.安全性问题。基于数字货币进行链间通信需要对通信双方的权益进行保障,即保证交易货币有效可用;交易记录真实可追溯;恶意攻击的可能性低。因此,需要完善的机制来维护交易的可追溯性和稳定运行,目前技术往往通过第三方(如Interledger中的Escrow)对交易进行监督和维护,由于第三方机构本身具有一定的安全隐患(可能存在欺诈行为),所以整个价值交换过程的安全并不能得到保证。1. Security issues. Inter-chain communication based on digital currency needs to protect the rights and interests of both parties in the communication, that is, to ensure that the transaction currency is valid and available; the transaction records are authentic and traceable; the possibility of malicious attacks is low. Therefore, a complete mechanism is needed to maintain the traceability and stable operation of the transaction. At present, the technology often supervises and maintains the transaction through a third party (such as Escrow in Interledger). Fraud), so the security of the entire value exchange process cannot be guaranteed.

2.效率问题。要保证安全性,则需要耗费大量时间用于货币验证(包括验证货币的来源是否有效以及货币是否可用)和确帐(确认交易并记录)。目前技术大多耗费大量时间用于验证资金的有效性(如侧链在一次价值转移中,花费了2-4天时间用于锁定资金),大大降低了价值交换的效率。2. Efficiency issues. To ensure security, it takes a lot of time for currency verification (including verifying whether the source of the currency is valid and whether the currency is available) and confirmation (confirming the transaction and recording it). Most of the current technologies take a lot of time to verify the validity of funds (for example, it takes 2-4 days for the side chain to lock funds in a value transfer), which greatly reduces the efficiency of value exchange.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种面向云际计算环境价值交换的跨链通信方法,保证价值交换过程的安全可靠和高效,促进任意两条链之间的交易和沟通交流,实现链与链之间的无缝跨链通信。The technical problem to be solved by the present invention is to provide a cross-chain communication method for value exchange in an inter-cloud computing environment, to ensure the safety, reliability and efficiency of the value exchange process, to promote transactions and communication between any two chains, and to realize chain-to-chain communication. Seamless cross-chain communication between chains.

本发明的技术方案是为了促进链间价值交换,特别是针对某些没有直接连接通道的链而提供跨链通信方案。在云际计算环境中,存在一条称为云际链的区块链,它与其它类型的区块链(包括提供云计算服务的业务链,以及使用云计算服务的用户链)都存在跨链通信的需求。根据Ripple(瑞波)公司提出的Interledger协议(《AProtocol for InterledgerPayments》,即《Interledger白皮书》)建立中间件连接不同支付系统的思想,本发明建立连接云际链和任意一条链之间(如图4所示,以业务链A为例)的中间链,通过中间链进行跨链通信进而实现价值交换;同时,采用智能合约的方式对价值交换过程中的资金有效性进行验证,保障交易过程的安全性。本发明采用的区块链与图2所示数据结构相同,对区块中的交易信息域的内容做了规定。每条交易信息包括的内容为:交易记录索引号、发送方地址、接收方地址、交易资源内容、交易转移金额、生成交易的时间戳。交易记录索引号是对区块链中第i个区块中记载的每一笔交易记录按时间顺序进行的编号,用于资金验证和交易完成后查看交易信息,i为正整数;发送方地址指发起交易的用户节点的IP地址;接收方地址指接收交易的用户节点的IP地址;交易资源内容指云服务交易中,云服务提供商向云服务消费者提供的云服务资源;交易转移金额指云服务交易中,云服务消费者购买云服务提供商提供的资源所需的金额;生成交易的时间戳指一串表示交易生成时间的字符序列。The technical solution of the present invention is to promote inter-chain value exchange, especially to provide a cross-chain communication solution for some chains without direct connection channels. In the inter-cloud computing environment, there is a blockchain called the inter-cloud chain, which is cross-chain with other types of blockchains (including business chains that provide cloud computing services and user chains that use cloud computing services). Communication needs. According to the Interledger protocol proposed by Ripple ("AProtocol for InterledgerPayments", namely "Interledger White Paper"), the idea of establishing middleware to connect different payment systems, the present invention establishes a connection between the inter-cloud chain and any chain (as shown in Figure 4 As shown, taking business chain A as an example), the intermediate chain performs cross-chain communication through the intermediate chain to realize value exchange; at the same time, it uses smart contracts to verify the validity of funds in the process of value exchange to ensure the security of the transaction process sex. The block chain adopted by the present invention has the same data structure as that shown in FIG. 2 , and the content of the transaction information field in the block is specified. Each transaction information includes: transaction record index number, sender's address, receiver's address, transaction resource content, transaction transfer amount, and the time stamp when the transaction was generated. The transaction record index number is the chronological number of each transaction record recorded in the i-th block in the blockchain. It is used for fund verification and to view transaction information after the transaction is completed. i is a positive integer; sender address Refers to the IP address of the user node that initiates the transaction; receiver address refers to the IP address of the user node that receives the transaction; transaction resource content refers to the cloud service resource provided by the cloud service provider to the cloud service consumer in the cloud service transaction; transaction transfer amount It refers to the amount required by the cloud service consumer to purchase the resources provided by the cloud service provider in the cloud service transaction; the timestamp of generating the transaction refers to a sequence of characters indicating the time when the transaction was generated.

本发明包括以下步骤:The present invention comprises the following steps:

第一步,在云际计算环境各区块链上的每个用户节点中安装跨链通信系统,该系统由跨链通信模块、节点管理模块、验证模块、记账模块组成。The first step is to install a cross-chain communication system in each user node on each blockchain in the inter-cloud computing environment. The system consists of a cross-chain communication module, a node management module, a verification module, and an accounting module.

跨链通信模块与发送方(即交易发送方,本发明默认交易发送方为购买资源并支付金额的一方)、接收方(即交易接收方,本发明默认交易接收方为提供资源并接受金额的一方)、节点管理模块、验证模块、记账模块相连,负责搭建中间链、构造路由节点资金池,同时负责发送方、接收方、路由节点之间的通信并进行资金转移。它根据发送方发送的请求,确定发送方地址和接收方地址,根据这两个地址构建出连接发送方与接收方的中间链,将中间链上的所有用户节点IP地址送给节点管理模块;跨链通信模块从节点管理模块接收路由节点IP地址,根据路由节点结果进行通信连接并进行云服务交易,同时将交易中涉及的资金发送给验证模块;跨链通信模块从验证模块接收交易验收结果,根据交易验收结果继续执行交易或终止;跨链通信模块完成交易后,将交易信息发送给记账模块。The cross-chain communication module and the sender (that is, the transaction sender, the default transaction sender in the present invention is the party that purchases resources and pays the amount), the receiver (that is, the transaction receiver, the default transaction receiver in the present invention is the one that provides resources and accepts the amount) One party), the node management module, the verification module, and the accounting module are connected, responsible for building the intermediate chain, constructing the routing node fund pool, and responsible for the communication between the sender, the receiver, and the routing node and the transfer of funds. It determines the address of the sender and the address of the receiver according to the request sent by the sender, builds an intermediate chain connecting the sender and the receiver based on these two addresses, and sends the IP addresses of all user nodes on the intermediate chain to the node management module; The cross-chain communication module receives the IP address of the routing node from the node management module, communicates and connects according to the result of the routing node and performs cloud service transactions, and at the same time sends the funds involved in the transaction to the verification module; the cross-chain communication module receives the transaction acceptance result from the verification module , continue to execute the transaction or terminate it according to the transaction acceptance result; after the cross-chain communication module completes the transaction, it sends the transaction information to the accounting module.

节点管理模块与跨链通信模块相连,从跨链通信模块接收中间链上的用户节点IP地址,从中间链上的用户节点中选择参与跨链通信的路由节点,将路由节点IP地址发送给跨链通信模块;The node management module is connected to the cross-chain communication module, receives the user node IP address on the intermediate chain from the cross-chain communication module, selects the routing node participating in the cross-chain communication from the user nodes on the intermediate chain, and sends the routing node IP address to the cross-chain chain communication module;

验证模块与跨链通信模块相连,从跨链通信模块接收交易资金,负责验证交易资金的有效性和可用性,并将交易验证结果返回给跨链通信模块;The verification module is connected to the cross-chain communication module, receives transaction funds from the cross-chain communication module, is responsible for verifying the validity and availability of transaction funds, and returns the transaction verification results to the cross-chain communication module;

记账模块与跨链通信模块、发送方、接收方相连,从跨链通信模块接收交易信息,负责为交易产生账本并同步给发送方和接收方所在链的所有用户节点。The accounting module is connected with the cross-chain communication module, the sender, and the receiver, receives transaction information from the cross-chain communication module, and is responsible for generating a ledger for the transaction and synchronizing it to all user nodes in the chain where the sender and receiver are located.

第二步,发送方的跨链通信模块在发送方和接收方之间搭建中间链。方法如下:In the second step, the cross-chain communication module of the sender builds an intermediate chain between the sender and the receiver. Methods as below:

2.1发送方的跨链通信模块根据发送方地址-StartAddr和接收方地址EndAddr,构建中间链,构建的中间链用MidChain表示。方法为:2.1 The sender's cross-chain communication module builds an intermediate chain based on the sender's address-StartAddr and the receiver's address EndAddr, and the constructed intermediate chain is represented by MidChain. The method is:

2.1.1将中间链数据结构确定为区块链。2.1.1 Determine the intermediate chain data structure as a blockchain.

2.1.2初始化中间链的第一个区块:2.1.2 Initialize the first block of the intermediate chain:

2.1.2.1将区块大小确定为整个区块所占字节大小;2.1.2.1 Determine the block size as the byte size occupied by the entire block;

2.1.2.2将交易计数器初始化为0;2.1.2.2 Initialize the transaction counter to 0;

2.1.2.3初始化中间链第一个区块的区块头:2.1.2.3 Initialize the block header of the first block of the intermediate chain:

2.1.2.3.1将区块ID初始化为001;2.1.2.3.1 Initialize the block ID to 001;

2.1.2.3.2将随机数初始化为0;2.1.2.3.2 Initialize the random number to 0;

2.1.2.3.3将上一区块哈希值初始化为0;2.1.2.3.3 Initialize the hash value of the previous block to 0;

2.1.2.3.4将难度值初始化为0;2.1.2.3.4 Initialize the difficulty value to 0;

2.1.2.3.5将生成区块的时间戳确定为该区块生成时刻的时间;2.1.2.3.5 Determine the time stamp of the generated block as the time when the block is generated;

2.1.2.3.6将Merkle根哈希值初始化为0;2.1.2.3.6 Initialize the Merkle root hash value to 0;

2.1.2.4初始化区块中的交易信息:2.1.2.4 Initialize the transaction information in the block:

2.1.2.4.1将交易记录索引号初始化为Mid-1-1(并以Mid-1-2,Mid-1-3,Mid-1-4的形式依次增长);2.1.2.4.1 Initialize the transaction record index number as Mid-1-1 (and increase sequentially in the form of Mid-1-2, Mid-1-3, and Mid-1-4);

2.1.2.4.2将交易资源内容初始化为空;2.1.2.4.2 Initialize the transaction resource content as empty;

2.1.2.4.3将交易转移金额初始化为0;2.1.2.4.3 Initialize the transaction transfer amount to 0;

2.1.2.4.4将发送方地址确定为StartAddr;2.1.2.4.4 Determine the sender address as StartAddr;

2.1.2.4.5将接收方地址确定为EndAddr;2.1.2.4.5 Determine the recipient address as EndAddr;

2.1.2.4.6将生成交易的时间戳初始化为0;2.1.2.4.6 Initialize the timestamp of the generated transaction to 0;

2.1.3创建属于MidChain的用户节点,方法为:分别在发送方所在区块链、接收方所在区块链中任意选择至少5个不同的用户节点服务器来同步MidChain上的区块信息,并将同步了的服务器地址记录为用户节点的IP地址。2.1.3 Create a user node belonging to MidChain, the method is: respectively select at least 5 different user node servers in the blockchain where the sender is located and the blockchain where the receiver is located to synchronize the block information on MidChain, and The synchronized server address is recorded as the IP address of the user node.

2.1.4发送方的跨链通信模块将中间链上的所有用户节点IP地址发送给发送方的节点管理模块。2.1.4 The cross-chain communication module of the sender sends the IP addresses of all user nodes on the intermediate chain to the node management module of the sender.

第三步,发送方的节点管理模块从跨链通信模块接收属于MidChain的用户节点IP地址,从中选择1个用户节点作为路由节点,方法是:In the third step, the sender's node management module receives the IP address of the user node belonging to MidChain from the cross-chain communication module, and selects a user node as a routing node, the method is:

3.1采用PoW共识算法来确定候选节点范围,方法是:采用PoW共识算法进行算力竞争,选择算力最强的前五个用户节点作为侯选节点,所述算力最强是指用户节点通过运算最快得到一个随机数,使得该随机数与区块头内6个数据使用Merkle Proof方法合并在一起之后得到的数满足难度值设定,难度值=最大目标值÷当前目标值(最大目标值为固定的哈希值,一般设为0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;当前目标值为当前区块(即最新生成的这个区块)的区块头哈希值)。3.1 Use the PoW consensus algorithm to determine the range of candidate nodes. The method is: use the PoW consensus algorithm to compete for computing power, and select the top five user nodes with the strongest computing power as candidate nodes. The strongest computing power means that the user nodes pass The operation is the fastest to get a random number, so that the number obtained after merging the random number and the 6 data in the block header using the Merkle Proof method satisfies the difficulty value setting, difficulty value = maximum target value ÷ current target value (maximum target value It is a fixed hash value, generally set to 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; the current target value is the block header hash value of the current block (that is, the latest generated block).

3.2由于使用路由节点连接通信需要手续费(路由节点作为跨链通信的中间连接节点,为发送方和接收方连接通信是要收取费用的,具体手续费金额由路由节点自定),因此,从采用PoW共识算法选择出的五个候选节点中,对它们连接交易双方通信所需的手续费高低进行排序,选择手续费最低的候选节点作为MidChain上的路由节点,简称路由节点。3.2 Since the use of routing nodes to connect to communication requires a handling fee (the routing node is an intermediate connection node for cross-chain communication, it is charged for connecting the sender and receiver, and the specific handling fee amount is determined by the routing node), therefore, from Among the five candidate nodes selected by the PoW consensus algorithm, the fees required to connect the two parties to the transaction are sorted, and the candidate node with the lowest fee is selected as the routing node on MidChain, referred to as the routing node.

3.3发送方的节点管理模块将路由节点IP地址发送给发送方的跨链通信模块。3.3 The sender's node management module sends the routing node IP address to the sender's cross-chain communication module.

第四步,发送方的跨链通信模块根据发送方、接收方IP地址以及从节点管理模块接收的路由节点IP地址,为参与跨链通信的发送方、接收方、以及所选出的路由节点构造资金池,根据参与跨链通信的发送方、接收方协商好的资金转移方案(方案中包括购买的资源内容和所需转移的资金金额,该金额又包括购买资源所需金额和路由节点连接通信所需手续费用)进行资金转移。具体步骤如下:In the fourth step, the cross-chain communication module of the sender, according to the IP address of the sender, the receiver and the IP address of the routing node received from the node management module, selects the sender, receiver, and selected routing node for participating in the cross-chain communication. Construct a fund pool, according to the fund transfer plan negotiated by the sender and receiver participating in the cross-chain communication (the plan includes the content of the purchased resources and the amount of funds to be transferred, and the amount includes the amount required for the purchase of resources and routing node connections Fees required for communication) to transfer funds. Specific steps are as follows:

4.1为参与跨链通信的发送方、接收方以及路由节点这三方建立独立的资金池,即用形如(节点IP地址,预存资金金额)的键值对来表示节点及其对应的预存资金金额;4.1 Establish an independent fund pool for the sender, receiver and routing node participating in the cross-chain communication, that is, use a key-value pair in the form of (node IP address, pre-stored fund amount) to represent the node and its corresponding pre-stored fund amount ;

4.2发送方、接收方以及路由节点这三方都预存一部分资金到资金池中,即给这三方的(节点IP地址,预存资金金额)分别赋三者的IP地址和相应的预存资金值。4.2 The sender, receiver and routing node all pre-store part of the funds in the fund pool, that is, give the three parties (node IP address, pre-stored fund amount) the IP address of the three parties and the corresponding pre-stored fund value.

4.3发送方将资金转移方案广播给路由节点和接收方,路由节点及接收方收到广播出的资金转移方案,核对资金转移方案内容(资金转移金额和路由节点手续费)是否正确,若正确,则接收方将确认结果(即认为方案内容正确无误)发送给路由节点,路由节点收集好确认结果(包括自己的确认结果)后签名,将附上签名的资金转移方案返回给发送方,同时,路由节点和接收方将交易中涉及的资金发送给自己的验证模块,转第五步;若不正确,则接收方将错误信息发送给路由节点,路由节点收集好错误信息(包括自己发现的错误信息)并附上自己的签名,将错误信息发送至发送方,发送方检查修改资金转移方案后,再次广播出来,转4.3步。4.3 The sender broadcasts the fund transfer plan to the routing node and the receiver. The routing node and the receiver receive the broadcasted fund transfer plan, and check whether the content of the fund transfer plan (fund transfer amount and routing node handling fee) is correct. If correct, Then the recipient sends the confirmation result (that is, the content of the plan is correct) to the routing node, and the routing node collects the confirmation result (including its own confirmation result) and signs it, and returns the signed fund transfer plan to the sender. At the same time, The routing node and the receiver send the funds involved in the transaction to their verification module, and go to the fifth step; if it is incorrect, the receiver sends the error information to the routing node, and the routing node collects the error information (including the error found by itself) Information) and attach your own signature, and send the error message to the sender. After the sender checks and modifies the fund transfer plan, it will broadcast it again, and go to step 4.3.

第五步,接收方的验证模块采用智能合约的方式对发送方资金的有效性和可用性进行验证。验证的具体方法是:In the fifth step, the receiver's verification module uses smart contracts to verify the validity and availability of the sender's funds. The specific method of verification is:

5.1在智能合约(即部署在验证模块中的一段自动执行判断动作的程序)中输入资金的判断条件:判断资金来源是否有效,即发送方是否有足够的资金进行转移。5.1 Judgment conditions for entering funds in the smart contract (that is, a program deployed in the verification module that automatically executes judgment actions): to determine whether the source of funds is valid, that is, whether the sender has enough funds to transfer.

5.2遍历发送方所属区块链的每一个区块,查询发送方的交易信息(即交易转移金额和交易资源内容),判断发送方是否存在足够资金用于本次交易(即发送方的转入资金总额减去转出资金总额是否大于本次交易需要转出的资金数额),若不存在足够资金,说明验证失败,资金转移方案作废,交易双方协调下一步操作,根据协调结果,或转4.3步,由发送方重新生成资金转移方案并再次广播;或转第七步终止本次交易;若存在足够资金,则说明验证成功,将验证成功的结果返回给发送方的跨链通信模块,转5.3步;5.2 Traverse each block of the sender's blockchain, query the sender's transaction information (ie transaction transfer amount and transaction resource content), and determine whether the sender has enough funds for this transaction (ie, the sender's transfer-in Whether the total amount of funds minus the total amount of transferred funds is greater than the amount of funds that need to be transferred out of this transaction), if there is not enough funds, it means that the verification failed, and the fund transfer plan is invalidated. Step 1, the sender regenerates the fund transfer plan and broadcasts it again; or go to step 7 to terminate the transaction; if there are enough funds, it means that the verification is successful, and the verification result will be returned to the cross-chain communication module of the sender, and go to 5.3 step;

5.3发送方的跨链通信模块根据资金转移方案中涉及的交易转移金额重新分配资金池中的资金,即将发送方的(节点IP地址,预存资金金额)改为(节点IP地址,现有资金金额)完成资金转移,(现有资金金额=预存资金金额-交易转移金额),并将交易信息发送给记账模块。5.3 The sender's cross-chain communication module redistributes the funds in the fund pool according to the transaction transfer amount involved in the fund transfer plan, that is, the sender's (node IP address, pre-stored fund amount) is changed to (node IP address, existing fund amount ) to complete the fund transfer, (existing fund amount = pre-stored fund amount - transaction transfer amount), and send the transaction information to the accounting module.

第六步,接收方的记账模块接收5.3步中来自跨链通信模块发送的交易信息,由各条区块链(包括发送方所在区块链、接收方所在区块链、MidChain)获得记账权的用户节点生成新区块,分别放到各自的区块链中,以存储交易信息,方法是:In the sixth step, the accounting module of the receiver receives the transaction information sent from the cross-chain communication module in step 5.3, and each blockchain (including the blockchain of the sender, the blockchain of the receiver, and MidChain) obtains the transaction information. The user nodes of the account rights generate new blocks and put them in their respective blockchains to store transaction information. The method is:

6.1记账模块将交易信息(包括交易记录索引号、交易资源内容、交易转移金额、发送方地址、接收方地址以及生成交易的时间戳)进行哈希运算(一种将目标文本转换成具有相同长度的杂凑字符串的算法,采用美国国家标准与技术研究院发布的《安全散列标准》中的SHA-256哈希算法)后,广播给发送方和接收方所在区块链、以及中间链上的每个用户节点。6.1 The accounting module performs hash operation on transaction information (including transaction record index number, transaction resource content, transaction transfer amount, sender address, receiver address, and timestamp of generated transaction) (a method that converts the target text into The algorithm of the hash string of length, using the SHA-256 hash algorithm in the "Secure Hash Standard" issued by the National Institute of Standards and Technology), broadcasts to the blockchain where the sender and receiver are located, as well as the intermediate chain Each user node on .

6.2各用户节点(包括发送方所在链、接收所在链以及中间链上的所有用户节点)争夺记账权,方法是采用PoW共识算法进行算力竞争,选出算力最强的1个用户节点。每条区块链最终有一个用户节点获得记账权,并在该用户节点所属区块链上生成一个新的区块,并将区块大小、交易计数器、区块头、以及交易信息一同放入新生成的区块中。区块中各内容赋值如下:6.2 Each user node (including all user nodes on the chain where the sender is located, the chain where the receiver is located, and the intermediate chain) competes for the right to bookkeeping. The method is to use the PoW consensus algorithm to compete for computing power, and select a user node with the strongest computing power . Each blockchain eventually has a user node that obtains accounting rights, and generates a new block on the blockchain to which the user node belongs, and puts the block size, transaction counter, block header, and transaction information together in the newly generated block. The assignment of each content in the block is as follows:

6.2.1区块大小确定为整个区块所占的字节大小;6.2.1 The block size is determined as the byte size occupied by the entire block;

6.2.2交易计数器确定为该区块中所包含的交易次数;6.2.2 The transaction counter is determined as the number of transactions contained in the block;

6.2.3区块头中所包含的6个数据分别赋值:6.2.3 The 6 data contained in the block header are assigned respectively:

6.2.3.1区块ID为00i(i为区块序号,随着区块的增加,i的值按n+1,n+2,n+3,…的规律递增,n为获得记账权的用户节点所属区块链原有区块数,n为正整数);6.2.3.1 The block ID is 00i (i is the block number, as the block increases, the value of i increases according to the law of n+1, n+2, n+3,..., n is the The original block number of the blockchain to which the user node belongs, n is a positive integer);

6.2.3.2随机数即为获得记账权的用户节点在争夺记账权时运算获得的随机数值;6.2.3.2 The random number is the random value obtained by the user nodes who have obtained the bookkeeping right when they compete for the bookkeeping right;

6.2.3.3上一区块哈希值为上一个区块的哈希值;6.2.3.3 The hash value of the previous block is the hash value of the previous block;

6.2.3.4难度值通过公式难度值=最大目标值÷当前目标值确定;6.2.3.4 The difficulty value is determined by the formula difficulty value = maximum target value ÷ current target value;

6.2.3.5生成区块的时间戳确定为该区块生成时刻的时间;6.2.3.5 The time stamp of the generated block is determined as the time when the block is generated;

6.2.3.6Merkle根哈希为交易信息通过Merkle Proof方法合并得到的哈希值;6.2.3.6 The Merkle root hash is the hash value obtained by merging transaction information through the Merkle Proof method;

6.2.4交易信息所包含的6个数据分别赋值:6.2.4 The six data contained in the transaction information are assigned respectively:

6.2.4.1将交易记录索引号赋值为Mid-(i-1);6.2.4.1 Assign the transaction record index number as Mid-(i-1);

6.2.4.2将交易资源内容确定为具体交易的资源内容(字符串形式);6.2.4.2 Determine the resource content of the transaction as the resource content of the specific transaction (in the form of a string);

6.2.4.3将交易转移金额确定为具体交易所转移的金额数目;6.2.4.3 Determine the transaction transfer amount as the amount transferred by a specific transaction;

6.2.4.4将发送方地址确定为StartAddr;6.2.4.4 Determine the sender address as StartAddr;

6.2.4.5将接收方地址确定为EndAddr;6.2.4.5 Determine the recipient address as EndAddr;

6.2.4.6将生成交易的时间戳确定为交易生成时刻的时间;6.2.4.6 Determine the time stamp of the generated transaction as the time when the transaction is generated;

6.3发送方和接收方所在区块链以及中间链上的各用户节点将新生成的区块同步下载到各自的本地账本。6.3 The blockchains where the sender and receiver are located and each user node on the intermediate chain will download the newly generated blocks to their respective local ledgers synchronously.

第七步,本次云服务交易通信结束。Step 7: This cloud service transaction communication ends.

采用本发明可以达到以下技术效果:Adopt the present invention can reach following technical effect:

1.由于记账模块将交易信息记录在每个用户节点的本地账本中,规避了只由交易双方记账所带来的交易信息可追溯性差的问题,同时也避免了第三方托管系统资金敞口风险大的问题。1. Since the accounting module records the transaction information in the local ledger of each user node, it avoids the problem of poor traceability of transaction information caused by only accounting for both parties to the transaction, and also avoids the risk of capital exposure in the third-party escrow system. high-risk issues.

2.由于第五步采用智能合约的方式,与现有的资金验证方式相比,效率得到提高。例如,侧链技术中通过两个等待期的资金锁定来完成验证,两个等待期总共花费2-4天的时间,这样一来,严重影响了交易进程。而采用智能合约的方式,针对资金是否有效(即该资金上一笔的交易记录是否存在)、是否可用(即该资金是否已被使用)预先设置规则,自动完成资金验证,减少了不必要的等待时间,加快了确账速度,交易的高效和有序得到保证。2. Since the fifth step adopts the smart contract method, compared with the existing fund verification method, the efficiency is improved. For example, in the side chain technology, the verification is completed by locking funds for two waiting periods, and the two waiting periods take a total of 2-4 days, which seriously affects the transaction process. With the smart contract method, rules are set in advance regarding whether the funds are valid (that is, whether the last transaction record of the funds exists), whether they are available (that is, whether the funds have been used), and the fund verification is automatically completed, reducing unnecessary The waiting time speeds up the confirmation speed, and the efficient and orderly transaction is guaranteed.

3.第四步中采用建立资金池的方式,根据资金分配方案所描述的转移对象和金额来重新分配双方资金池中的资金数额,通过这样的方式,与将具体货币进行直接转移相比,安全性有所提高。同时,此种方式也适用于多次小型交易,直接修改资金金额,减少了不必要的时间延迟,效率更高。3. In the fourth step, the method of establishing a fund pool is used to redistribute the amount of funds in the fund pools of both parties according to the transfer objects and amounts described in the fund allocation plan. In this way, compared with direct transfer of specific currencies, Security has been improved. At the same time, this method is also suitable for multiple small transactions, directly modifying the amount of funds, which reduces unnecessary time delays and is more efficient.

附图说明Description of drawings

图1是云际计算环境中链与链之间跨链通信的场景图。Figure 1 is a scene diagram of cross-chain communication between chains in the cloud computing environment.

图2是本发明区块链的数据结构图。Fig. 2 is a data structure diagram of the block chain of the present invention.

图3是本发明第一步构建的面向云际计算环境的跨链通信系统逻辑结构图;Fig. 3 is a logical structure diagram of the inter-cloud computing environment-oriented cross-chain communication system constructed in the first step of the present invention;

图4是本发明构建的中间链连接发送方与接收方并进行通信的场景图。Fig. 4 is a scene diagram of the communication between the sender and the receiver connected by the intermediate chain constructed by the present invention.

图5是本发明整体流程图。Fig. 5 is an overall flowchart of the present invention.

具体实施方式Detailed ways

图1是背景技术中云际计算环境中链与链之间跨链通信的场景图。在云际计算环境中,存在着各种类别的区块链(区块链的数据结构如图2所示),包括沟通各种链联接协作的云际链,提供云计算服务的业务链A、业务链B,以及购买使用云计算服务的用户链C、用户链D。处于不同链上的用户节点(包括CSP(云服务提供商)、和CSC(云服务消费者))都存在着交易的需求。针对这种跨链的情况,需要通信的两条链之间搭建一条中间链来连接。Fig. 1 is a scene diagram of cross-chain communication between chains in the inter-cloud computing environment in the background technology. In the inter-cloud computing environment, there are various types of blockchains (the data structure of the blockchain is shown in Figure 2), including the inter-cloud chain that communicates with various chains to connect and collaborate, and the business chain A that provides cloud computing services , business chain B, and user chain C and user chain D who purchase and use cloud computing services. User nodes on different chains (including CSP (cloud service provider) and CSC (cloud service consumer)) all have transaction needs. For this cross-chain situation, it is necessary to build an intermediate chain between the two chains of communication to connect.

图2是本发明区块链的数据结构图。本发明对区块中的交易信息域的内容做了规定。每条交易信息包括的内容为:交易记录索引号、发送方地址、接收方地址、交易资源内容、交易转移金额、生成交易的时间戳。区块中的其它信息和背景技术中描述的现有区块链完全相同。Fig. 2 is a data structure diagram of the block chain of the present invention. The present invention specifies the content of the transaction information field in the block. Each transaction information includes: transaction record index number, sender's address, receiver's address, transaction resource content, transaction transfer amount, and the time stamp when the transaction was generated. Other information in the block is exactly the same as the existing blockchain described in the background technology.

图3是本发明第一步构建的面向云际计算环境的跨链通信系统逻辑结构图。跨链通信模块与发送方(即交易发送方,本发明默认交易发送方为购买资源并支付金额的一方)、接收方(即交易接收方,本发明默认交易接收方为提供资源并接受金额的一方)、节点管理模块、验证模块、记账模块相连,负责搭建中间链、构造路由节点资金池,同时负责发送方、接收方、路由节点之间的通信并进行资金转移。它根据发送方发送的请求,确定发送方地址和接收方地址,根据这两个地址构建出连接发送方与接收方的中间链,将中间链上的所有用户节点IP地址送给节点管理模块;跨链通信模块从节点管理模块接收路由节点IP地址,根据路由节点结果进行通信连接并进行云服务交易,同时将交易中涉及的资金发送给验证模块;跨链通信模块从验证模块接收交易验收结果,根据交易验收结果继续执行交易或终止;跨链通信模块完成交易后,将交易信息发送给记账模块。Fig. 3 is a logical structure diagram of the inter-cloud computing environment-oriented cross-chain communication system constructed in the first step of the present invention. The cross-chain communication module and the sender (that is, the transaction sender, the default transaction sender in the present invention is the party that purchases resources and pays the amount), the receiver (that is, the transaction receiver, the default transaction receiver in the present invention is the one that provides resources and accepts the amount) One party), the node management module, the verification module, and the accounting module are connected, responsible for building the intermediate chain, constructing the routing node fund pool, and responsible for the communication between the sender, the receiver, and the routing node and the transfer of funds. It determines the address of the sender and the address of the receiver according to the request sent by the sender, builds an intermediate chain connecting the sender and the receiver based on these two addresses, and sends the IP addresses of all user nodes on the intermediate chain to the node management module; The cross-chain communication module receives the IP address of the routing node from the node management module, communicates and connects according to the result of the routing node and performs cloud service transactions, and at the same time sends the funds involved in the transaction to the verification module; the cross-chain communication module receives the transaction acceptance result from the verification module , continue to execute the transaction or terminate it according to the transaction acceptance result; after the cross-chain communication module completes the transaction, it sends the transaction information to the accounting module.

节点管理模块与跨链通信模块相连,从跨链通信模块接收中间链上的用户节点IP地址,从中间链上的用户节点中选择参与跨链通信的路由节点,将路由节点IP地址发送给跨链通信模块;The node management module is connected to the cross-chain communication module, receives the user node IP address on the intermediate chain from the cross-chain communication module, selects the routing node participating in the cross-chain communication from the user nodes on the intermediate chain, and sends the routing node IP address to the cross-chain chain communication module;

验证模块与跨链通信模块相连,从跨链通信模块接收交易资金,负责验证交易资金的有效性和可用性,并将交易验证结果返回给跨链通信模块;The verification module is connected to the cross-chain communication module, receives transaction funds from the cross-chain communication module, is responsible for verifying the validity and availability of transaction funds, and returns the transaction verification results to the cross-chain communication module;

记账模块与跨链通信模块、发送方、接收方相连,从跨链通信模块接收交易信息,负责为交易产生账本并同步给发送方和接收方所在链的所有用户节点。The accounting module is connected with the cross-chain communication module, the sender, and the receiver, receives transaction information from the cross-chain communication module, and is responsible for generating a ledger for the transaction and synchronizing it to all user nodes in the chain where the sender and receiver are located.

图4是本发明构建的中间链联接发送方和接收方并进行通信的场景图。假设云际链与业务链A之间存在通信的需求,但不存在直接的联接通道,于是在两链之间搭建中间链,Node2是中间链的路由节点,发送方、接收方和中间链的路由节点都配有一个资金池。Fig. 4 is a scene diagram of an intermediate link constructed by the present invention connecting a sender and a receiver for communication. Assuming that there is a need for communication between the cloud chain and business chain A, but there is no direct connection channel, an intermediate chain is built between the two chains. Node2 is the routing node of the intermediate chain, and the sender, receiver, and intermediate chain Routing nodes are equipped with a fund pool.

图5是本发明的整体流程图。本发明具体步骤如下:Fig. 5 is an overall flowchart of the present invention. Concrete steps of the present invention are as follows:

第一步,在云际计算环境各区块链上的每个用户节点中安装跨链通信系统,该系统如图3所示,由跨链通信模块、节点管理模块、验证模块、记账模块组成。The first step is to install a cross-chain communication system in each user node on each blockchain in the inter-cloud computing environment. The system is shown in Figure 3 and consists of a cross-chain communication module, a node management module, a verification module, and an accounting module .

第二步,发送方的跨链通信模块在发送方和接收方之间搭建中间链。方法如下:In the second step, the cross-chain communication module of the sender builds an intermediate chain between the sender and the receiver. Methods as below:

2.1发送方的跨链通信模块根据发送方地址-StartAddr和接收方地址EndAddr,构建中间链,构建的中间链用MidChain表示。方法为:2.1 The sender's cross-chain communication module builds an intermediate chain based on the sender's address-StartAddr and the receiver's address EndAddr, and the constructed intermediate chain is represented by MidChain. The method is:

2.1.1将中间链数据结构确定为区块链。2.1.1 Determine the intermediate chain data structure as a blockchain.

2.1.2初始化中间链的第一个区块:2.1.2 Initialize the first block of the intermediate chain:

2.1.2.1将区块大小确定为整个区块所占字节大小;2.1.2.1 Determine the block size as the byte size occupied by the entire block;

2.1.2.2将交易计数器初始化为0;2.1.2.2 Initialize the transaction counter to 0;

2.1.2.3初始化中间链第一个区块的区块头:2.1.2.3 Initialize the block header of the first block of the intermediate chain:

2.1.2.3.1将区块ID初始化为001;2.1.2.3.1 Initialize the block ID to 001;

2.1.2.3.2将随机数初始化为0;2.1.2.3.2 Initialize the random number to 0;

2.1.2.3.3将上一区块哈希值初始化为0;2.1.2.3.3 Initialize the hash value of the previous block to 0;

2.1.2.3.4将难度值初始化为0;2.1.2.3.4 Initialize the difficulty value to 0;

2.1.2.3.5将生成区块的时间戳确定为该区块生成时刻的时间;2.1.2.3.5 Determine the time stamp of the generated block as the time when the block is generated;

2.1.2.3.6将Merkle根哈希值初始化为0;2.1.2.3.6 Initialize the Merkle root hash value to 0;

2.1.2.4初始化区块中的交易信息:2.1.2.4 Initialize the transaction information in the block:

2.1.2.4.1将交易记录索引号初始化为Mid-1-1(并以Mid-1-2,Mid-1-3,Mid-1-4的形式依次增长);2.1.2.4.1 Initialize the transaction record index number as Mid-1-1 (and increase sequentially in the form of Mid-1-2, Mid-1-3, and Mid-1-4);

2.1.2.4.2将交易资源内容初始化为空;2.1.2.4.2 Initialize the transaction resource content as empty;

2.1.2.4.3将交易转移金额初始化为0;2.1.2.4.3 Initialize the transaction transfer amount to 0;

2.1.2.4.4将发送方地址确定为StartAddr;2.1.2.4.4 Determine the sender address as StartAddr;

2.1.2.4.5将接收方地址确定为EndAddr;2.1.2.4.5 Determine the recipient address as EndAddr;

2.1.2.4.6将生成交易的时间戳初始化为0;2.1.2.4.6 Initialize the timestamp of the generated transaction to 0;

2.1.3创建属于MidChain的用户节点,方法为:分别在发送方所在区块链、接收方所在区块链中任意选择至少5个不同的用户节点服务器来同步MidChain上的区块信息,并将同步了的服务器地址记录为用户节点的IP地址。2.1.3 Create a user node belonging to MidChain, the method is: respectively select at least 5 different user node servers in the blockchain where the sender is located and the blockchain where the receiver is located to synchronize the block information on MidChain, and The synchronized server address is recorded as the IP address of the user node.

2.1.4发送方的跨链通信模块将中间链上的所有用户节点IP地址发送给发送方的节点管理模块。2.1.4 The cross-chain communication module of the sender sends the IP addresses of all user nodes on the intermediate chain to the node management module of the sender.

第三步,发送方的节点管理模块从跨链通信模块接收属于MidChain的用户节点IP地址,从中选择1个用户节点作为路由节点,方法是:In the third step, the sender's node management module receives the IP address of the user node belonging to MidChain from the cross-chain communication module, and selects a user node as a routing node, the method is:

3.1采用PoW共识算法来确定候选节点范围,方法是:采用PoW共识算法进行算力竞争,选择算力最强的前五个用户节点作为侯选节点,所述算力最强是指用户节点通过运算最快得到一个随机数,使得该随机数与区块头内6个数据使用Merkle Proof方法合并在一起之后得到的数满足难度值设定,难度值=最大目标值÷当前目标值(最大目标值为固定的哈希值,一般设为0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;当前目标值为当前区块(即最新生成的这个区块)的区块头哈希值)。3.1 Use the PoW consensus algorithm to determine the range of candidate nodes. The method is: use the PoW consensus algorithm to compete for computing power, and select the top five user nodes with the strongest computing power as candidate nodes. The strongest computing power means that the user nodes pass The operation is the fastest to get a random number, so that the number obtained after merging the random number and the 6 data in the block header using the Merkle Proof method satisfies the difficulty value setting, difficulty value = maximum target value ÷ current target value (maximum target value It is a fixed hash value, generally set to 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; the current target value is the block header hash value of the current block (that is, the latest generated block).

3.2由于使用路由节点连接通信需要手续费(路由节点作为跨链通信的中间连接节点,为发送方和接收方连接通信是要收取费用的,具体手续费金额由路由节点自定),因此,从采用PoW共识算法选择出的五个候选节点中,对它们连接交易双方通信所需的手续费高低进行排序,选择手续费最低的候选节点作为MidChain上的路由节点,简称路由节点。3.2 Since the use of routing nodes to connect to communication requires a handling fee (the routing node is an intermediate connection node for cross-chain communication, it is charged for connecting the sender and receiver, and the specific handling fee amount is determined by the routing node), therefore, from Among the five candidate nodes selected by the PoW consensus algorithm, the fees required to connect the two parties to the transaction are sorted, and the candidate node with the lowest fee is selected as the routing node on MidChain, referred to as the routing node.

3.3发送方的节点管理模块将路由节点IP地址发送给发送方的跨链通信模块。3.3 The sender's node management module sends the routing node IP address to the sender's cross-chain communication module.

第四步,发送方的跨链通信模块根据发送方、接收方IP地址以及从节点管理模块接收的路由节点IP地址,为参与跨链通信的发送方、接收方、以及所选出的路由节点构造资金池,根据参与跨链通信的发送方、接收方协商好的资金转移方案进行资金转移。具体步骤如下:In the fourth step, the cross-chain communication module of the sender, according to the IP address of the sender, the receiver and the IP address of the routing node received from the node management module, selects the sender, receiver, and selected routing node for participating in the cross-chain communication. Construct a fund pool, and transfer funds according to the fund transfer plan negotiated by the sender and receiver participating in the cross-chain communication. Specific steps are as follows:

4.1为参与跨链通信的发送方、接收方以及路由节点这三方建立独立的资金池,即用形如(节点IP地址,预存资金金额)的键值对来表示节点及其对应的预存资金金额;4.1 Establish an independent fund pool for the sender, receiver and routing node participating in the cross-chain communication, that is, use a key-value pair in the form of (node IP address, pre-stored fund amount) to represent the node and its corresponding pre-stored fund amount ;

4.2发送方、接收方以及路由节点这三方都预存一部分资金到资金池中,即给这三方的(节点IP地址,预存资金金额)分别赋三者的IP地址和相应的预存资金值。4.2 The sender, receiver, and routing node all pre-store part of the funds in the fund pool, that is, assign the IP addresses and corresponding pre-stored fund values to the three parties (node IP address, pre-stored fund amount) respectively.

4.3发送方将资金转移方案广播给路由节点和接收方,路由节点及接收方收到广播出的资金转移方案,核对资金转移方案内容是否正确,若正确,则接收方将确认结果(即认为方案内容正确无误)发送给路由节点,路由节点收集好确认结果(包括自己的确认结果)后签名,将附上签名的资金转移方案返回给发送方,同时,路由节点和接收方将交易中涉及的资金发送给自己的验证模块,转第五步;若不正确,则接收方将错误信息发送给路由节点,路由节点收集好错误信息(包括自己发现的错误信息)并附上自己的签名,将错误信息发送至发送方,发送方检查修改资金转移方案后,再次广播出来,转4.3步。4.3 The sender broadcasts the fund transfer plan to the routing node and the receiver. The routing node and the receiver receive the broadcasted fund transfer plan and check whether the content of the fund transfer plan is correct. If it is correct, the receiver will confirm the result (that is, consider the plan The content is correct) to the routing node, the routing node collects the confirmation result (including its own confirmation result) and signs it, and returns the signed fund transfer plan to the sender. Send the funds to its own verification module, and go to the fifth step; if it is incorrect, the receiver will send the error information to the routing node, and the routing node will collect the error information (including the error information found by itself) and attach its own signature, and send The error message is sent to the sender. After the sender checks and modifies the fund transfer plan, it broadcasts it again and goes to step 4.3.

第五步,接收方的验证模块采用智能合约的方式对发送方资金的有效性和可用性进行验证。验证的具体方法是:In the fifth step, the receiver's verification module uses smart contracts to verify the validity and availability of the sender's funds. The specific method of verification is:

5.1在智能合约中输入资金的判断条件:判断资金来源是否有效,即发送方是否有足够的资金进行转移。5.1 Judgment conditions for entering funds in the smart contract: determine whether the source of funds is valid, that is, whether the sender has enough funds to transfer.

5.2遍历发送方所属区块链的每一个区块,查询发送方的交易信息(即交易转移金额和交易资源内容),判断发送方是否存在足够资金用于本次交易(即发送方的转入资金总额减去转出资金总额是否大于本次交易需要转出的资金数额),若不存在足够资金,说明验证失败,资金转移方案作废,交易双方协调下一步操作,根据协调结果,或转4.3步,由发送方重新生成资金转移方案并再次广播;或转第七步终止本次交易;若存在足够资金,则说明验证成功,将验证成功的结果返回给发送方的跨链通信模块,转5.3步;5.2 Traverse each block of the sender's blockchain, query the sender's transaction information (ie transaction transfer amount and transaction resource content), and determine whether the sender has enough funds for this transaction (ie, the sender's transfer-in Whether the total amount of funds minus the total amount of transferred funds is greater than the amount of funds that need to be transferred out of this transaction), if there is not enough funds, it means that the verification failed, and the fund transfer plan is invalidated. Step 1, the sender regenerates the fund transfer plan and broadcasts it again; or go to step 7 to terminate the transaction; if there are enough funds, it means that the verification is successful, and the verification result will be returned to the cross-chain communication module of the sender, and go to 5.3 step;

5.3发送方的跨链通信模块根据资金转移方案中涉及的交易转移金额重新分配资金池中的资金,即将发送方的(节点IP地址,预存资金金额)改为(节点IP地址,现有资金金额)完成资金转移,现有资金金额=预存资金金额-交易转移金额,并将交易信息发送给记账模块。5.3 The sender's cross-chain communication module redistributes the funds in the fund pool according to the transaction transfer amount involved in the fund transfer plan, that is, the sender's (node IP address, pre-stored fund amount) is changed to (node IP address, existing fund amount ) to complete the fund transfer, the existing fund amount = pre-stored fund amount - transaction transfer amount, and send the transaction information to the accounting module.

第六步,接收方的记账模块接收5.3步中来自跨链通信模块发送的交易信息,由各条区块链(包括发送方所在区块链、接收方所在区块链、MidChain)获得记账权的用户节点生成新区块,分别放到各自的区块链中,以存储交易信息,方法是:In the sixth step, the accounting module of the receiver receives the transaction information sent from the cross-chain communication module in step 5.3, and each blockchain (including the blockchain of the sender, the blockchain of the receiver, and MidChain) obtains the transaction information. The user nodes of the account rights generate new blocks and put them in their respective blockchains to store transaction information. The method is:

6.1记账模块将交易信息进行哈希运算(一种将目标文本转换成具有相同长度的杂凑字符串的算法,采用美国国家标准与技术研究院发布的《安全散列标准》中的SHA-256哈希算法)后,广播给发送方和接收方所在区块链、以及中间链上的每个用户节点。6.1 The accounting module hashes the transaction information (an algorithm that converts the target text into a hash string with the same length, using SHA-256 in the "Secure Hash Standard" issued by the National Institute of Standards and Technology Hash algorithm), broadcast to the blockchain where the sender and receiver are located, and each user node on the intermediate chain.

6.2各用户节点(包括发送方所在链、接收所在链以及中间链上的所有用户节点)争夺记账权,方法是采用PoW共识算法进行算力竞争,选出算力最强的1个用户节点。每条区块链最终有一个用户节点获得记账权,并在该用户节点所属区块链上生成一个新的区块,并将区块大小、交易计数器、区块头、以及交易信息一同放入新生成的区块中。区块中各内容赋值如下:6.2 Each user node (including all user nodes on the chain where the sender is located, the chain where the receiver is located, and the intermediate chain) competes for the right to bookkeeping. The method is to use the PoW consensus algorithm to compete for computing power, and select a user node with the strongest computing power . Each blockchain eventually has a user node that obtains accounting rights, and generates a new block on the blockchain to which the user node belongs, and puts the block size, transaction counter, block header, and transaction information together in the newly generated block. The assignment of each content in the block is as follows:

6.2.1区块大小确定为整个区块所占的字节大小;6.2.1 The block size is determined as the byte size occupied by the entire block;

6.2.2交易计数器确定为该区块中所包含的交易次数;6.2.2 The transaction counter is determined as the number of transactions contained in the block;

6.2.3区块头中所包含的6个数据分别赋值:6.2.3 The 6 data contained in the block header are assigned respectively:

6.2.3.1区块ID为00i(i为区块序号,随着区块的增加,i的值按n+1,n+2,n+3,…的规律递增,n为获得记账权的用户节点所属区块链原有区块数,n为正整数);6.2.3.1 The block ID is 00i (i is the block number, as the block increases, the value of i increases according to the law of n+1, n+2, n+3,..., n is the The original block number of the blockchain to which the user node belongs, n is a positive integer);

6.2.3.2随机数即为获得记账权的用户节点在争夺记账权时运算获得的随机数值;6.2.3.2 The random number is the random value obtained by the user nodes who have obtained the bookkeeping right when they compete for the bookkeeping right;

6.2.3.3上一区块哈希值为上一个区块的哈希值;6.2.3.3 The hash value of the previous block is the hash value of the previous block;

6.2.3.4难度值通过公式难度值=最大目标值÷当前目标值确定;6.2.3.4 The difficulty value is determined by the formula difficulty value = maximum target value ÷ current target value;

6.2.3.5生成区块的时间戳确定为该区块生成时刻的时间;6.2.3.5 The time stamp of the generated block is determined as the time when the block is generated;

6.2.3.6Merkle根哈希为交易信息通过Merkle Proof方法合并得到的哈希值;6.2.3.6 The Merkle root hash is the hash value obtained by merging transaction information through the Merkle Proof method;

6.2.4交易信息所包含的6个数据分别赋值:6.2.4 The six data contained in the transaction information are assigned respectively:

6.2.4.1将交易记录索引号赋值为Mid-(i-1);6.2.4.1 Assign the transaction record index number as Mid-(i-1);

6.2.4.2将交易资源内容确定为具体交易的资源内容;6.2.4.2 Determine the resource content of the transaction as the resource content of the specific transaction;

6.2.4.3将交易转移金额确定为具体交易所转移的金额数目;6.2.4.3 Determine the transaction transfer amount as the amount transferred by a specific transaction;

6.2.4.4将发送方地址确定为StartAddr;6.2.4.4 Determine the sender address as StartAddr;

6.2.4.5将接收方地址确定为EndAddr;6.2.4.5 Determine the recipient address as EndAddr;

6.2.4.6将生成交易的时间戳确定为交易生成时刻的时间;6.2.4.6 Determine the time stamp of the generated transaction as the time when the transaction is generated;

6.3发送方和接收方所在区块链以及中间链上的各用户节点将新生成的区块同步下载到各自的本地账本。6.3 The blockchains where the sender and receiver are located and each user node on the intermediate chain will download the newly generated blocks to their respective local ledgers synchronously.

第七步,本次云服务交易通信结束。Step 7: This cloud service transaction communication ends.

Claims (7)

Translated fromChinese
1.一种面向云际计算环境价值交换的跨链通信方法,其特征在于包括以下步骤:1. A cross-chain communication method for inter-cloud computing environment value exchange, characterized in that it comprises the following steps:第一步,在云际计算环境各区块链上的每个用户节点中安装跨链通信系统,该系统由跨链通信模块、节点管理模块、验证模块、记账模块组成;区块链上的用户节点或属于某条区块链的用户节点是指将该条区块链上所有区块同步到本地服务器的用户终端,包括云服务消费者和云服务提供商;The first step is to install a cross-chain communication system in each user node on each blockchain in the inter-cloud computing environment. The system consists of a cross-chain communication module, a node management module, a verification module, and an accounting module; A user node or a user node belonging to a blockchain refers to a user terminal that synchronizes all blocks on the blockchain to a local server, including cloud service consumers and cloud service providers;跨链通信模块与发送方即交易发送方、接收方即交易接收方、节点管理模块、验证模块、记账模块相连,负责搭建中间链、构造路由节点资金池,同时负责发送方、接收方、路由节点之间的通信并进行资金转移;它根据发送方发送的请求,确定发送方地址和接收方地址,根据这两个地址构建出连接发送方与接收方的中间链,将中间链上的所有用户节点IP地址送给节点管理模块;跨链通信模块从节点管理模块接收路由节点IP地址,根据路由节点结果进行通信连接并进行云服务交易,同时将交易中涉及的资金发送给验证模块;跨链通信模块从验证模块接收交易验收结果,根据交易验收结果继续执行交易或终止;跨链通信模块完成交易后,将交易信息发送给记账模块;The cross-chain communication module is connected with the sender as the transaction sender, the receiver as the transaction receiver, the node management module, the verification module, and the accounting module. It is responsible for building an intermediate chain and constructing a routing node fund pool. The communication between the routing nodes and the transfer of funds; it determines the address of the sender and the address of the receiver according to the request sent by the sender, and constructs an intermediate chain connecting the sender and the receiver based on these two addresses, and transfers the All user node IP addresses are sent to the node management module; the cross-chain communication module receives the routing node IP addresses from the node management module, communicates and connects according to the routing node results and performs cloud service transactions, and at the same time sends the funds involved in the transaction to the verification module; The cross-chain communication module receives the transaction acceptance result from the verification module, and continues to execute or terminate the transaction according to the transaction acceptance result; after the cross-chain communication module completes the transaction, it sends the transaction information to the accounting module;节点管理模块与跨链通信模块相连,从跨链通信模块接收中间链上的用户节点IP地址,从中间链上的用户节点中选择参与跨链通信的路由节点,将路由节点IP地址发送给跨链通信模块;The node management module is connected to the cross-chain communication module, receives the user node IP address on the intermediate chain from the cross-chain communication module, selects the routing node participating in the cross-chain communication from the user nodes on the intermediate chain, and sends the routing node IP address to the cross-chain chain communication module;验证模块与跨链通信模块相连,从跨链通信模块接收交易资金,负责验证交易资金的有效性和可用性,并将交易验证结果返回给跨链通信模块;The verification module is connected to the cross-chain communication module, receives transaction funds from the cross-chain communication module, is responsible for verifying the validity and availability of transaction funds, and returns the transaction verification results to the cross-chain communication module;记账模块与跨链通信模块、发送方、接收方相连,从跨链通信模块接收交易信息,负责为交易产生账本并同步给发送方和接收方所在链的所有用户节点;The accounting module is connected to the cross-chain communication module, the sender, and the receiver, receives transaction information from the cross-chain communication module, and is responsible for generating the ledger for the transaction and synchronizing it to all user nodes in the chain where the sender and receiver are located;第二步,发送方的跨链通信模块在发送方和接收方之间搭建中间链,方法如下:In the second step, the cross-chain communication module of the sender builds an intermediate chain between the sender and the receiver, as follows:2.1发送方的跨链通信模块根据发送方地址StartAddr和接收方地址EndAddr,构建中间链MidChain,方法为:2.1 The cross-chain communication module of the sender builds an intermediate chain MidChain according to the sender's address StartAddr and the receiver's address EndAddr, the method is:2.1.1将中间链数据结构确定为区块链,区块中的交易信息包括的内容为:交易记录索引号、发送方地址、接收方地址、交易资源内容、交易转移金额、生成交易的时间戳;交易记录索引号是对区块链中第i个区块中记载的每一笔交易记录按时间顺序进行的编号,用于资金验证和交易完成后查看交易信息;发送方地址指发起交易的用户节点的IP地址;接收方地址指接收交易的用户节点的IP地址;交易资源内容指云服务交易中,云服务提供商向云服务消费者提供的云服务资源;交易转移金额指云服务交易中,云服务消费者购买云服务提供商提供的资源所需的金额;生成交易的时间戳指一串表示交易生成时间的字符序列;i为正整数;2.1.1 Determine the data structure of the intermediate chain as a blockchain, and the transaction information in the block includes: transaction record index number, sender address, receiver address, transaction resource content, transaction transfer amount, and transaction generation time stamp; the transaction record index number is the serial number of each transaction record recorded in the i-th block in the blockchain, which is used for fund verification and to view transaction information after the transaction is completed; The IP address of the user node; the recipient address refers to the IP address of the user node receiving the transaction; the transaction resource content refers to the cloud service resources provided by the cloud service provider to the cloud service consumer in the cloud service transaction; the transaction transfer amount refers to the cloud service In the transaction, the amount required by the cloud service consumer to purchase the resources provided by the cloud service provider; the timestamp of generating the transaction refers to a string of character sequences representing the generation time of the transaction; i is a positive integer;2.1.2初始化中间链的第一个区块;2.1.2 Initialize the first block of the intermediate chain;2.1.3创建属于MidChain的用户节点,方法为:分别在发送方所在区块链、接收方所在区块链中任意选择至少5个不同的用户节点服务器来同步MidChain上的区块信息,并将同步了的服务器地址记录为用户节点的IP地址;2.1.3 Create a user node belonging to MidChain, the method is: respectively select at least 5 different user node servers in the blockchain where the sender is located and the blockchain where the receiver is located to synchronize the block information on MidChain, and The synchronized server address is recorded as the IP address of the user node;2.1.4发送方的跨链通信模块将中间链上的所有用户节点IP地址发送给发送方的节点管理模块;2.1.4 The cross-chain communication module of the sender sends the IP addresses of all user nodes on the intermediate chain to the node management module of the sender;第三步,发送方的节点管理模块从跨链通信模块接收属于MidChain的用户节点IP地址,从中选择1个用户节点作为路由节点,方法是:In the third step, the sender's node management module receives the IP address of the user node belonging to MidChain from the cross-chain communication module, and selects a user node as a routing node, the method is:3.1采用PoW共识算法来确定候选节点范围;3.1 Use the PoW consensus algorithm to determine the range of candidate nodes;3.2从采用PoW共识算法选择出的候选节点中,对它们连接交易双方通信所需的手续费高低进行排序,选择手续费最低的候选节点作为MidChain上的路由节点,简称路由节点;3.2 From the candidate nodes selected by the PoW consensus algorithm, sort the transaction fee required to connect the two parties to the transaction, and select the candidate node with the lowest transaction fee as the routing node on MidChain, referred to as the routing node;3.3发送方的节点管理模块将路由节点IP地址发送给发送方的跨链通信模块;3.3 The node management module of the sender sends the IP address of the routing node to the cross-chain communication module of the sender;第四步,发送方的跨链通信模块根据发送方、接收方IP地址以及从节点管理模块接收的路由节点IP地址,为参与跨链通信的发送方、接收方、以及所选出的路由节点构造资金池,根据参与跨链通信的发送方、接收方协商好的资金转移方案进行资金转移,具体步骤如下:In the fourth step, the cross-chain communication module of the sender, according to the IP address of the sender, the receiver and the IP address of the routing node received from the node management module, selects the sender, receiver, and selected routing node for participating in the cross-chain communication. Construct a fund pool, and transfer funds according to the fund transfer plan negotiated by the sender and receiver participating in the cross-chain communication. The specific steps are as follows:4.1为参与跨链通信的发送方、接收方以及路由节点这三方建立独立的资金池,即用形如(节点IP地址,预存资金金额)的键值对来表示节点及其对应的预存资金金额;4.1 Establish an independent fund pool for the sender, receiver and routing node participating in the cross-chain communication, that is, use a key-value pair in the form of (node IP address, pre-stored fund amount) to represent the node and its corresponding pre-stored fund amount ;4.2发送方、接收方以及路由节点这三方都预存一部分资金到资金池中,即给这三方的(节点IP地址,预存资金金额)分别赋三者的IP地址和相应的预存资金值;4.2 The sender, receiver and routing node all pre-store part of the funds in the fund pool, that is, give the three parties (node IP address, pre-stored fund amount) the IP address and corresponding pre-stored fund value of the three parties;4.3发送方将资金转移方案广播给路由节点和接收方,路由节点及接收方收到广播出的资金转移方案,核对资金转移方案内容是否正确,若正确,则接收方将确认结果发送给路由节点,路由节点收集好确认结果后签名,将附上签名的资金转移方案返回给发送方,同时,路由节点和接收方将交易中涉及的资金发送给自己的验证模块,转第五步;若不正确,则接收方将错误信息发送给路由节点,路由节点收集好错误信息并附上自己的签名,将错误信息发送至发送方,发送方检查修改资金转移方案后,再次广播出来,转4.3步;所述资金转移方案内容包括资金转移金额和路由节点手续费,所述确认结果是认为方案内容正确无误的结果,所述确认结果包括路由节点自身的确认结果,所述错误信息包括路由节点自己发现的错误信息;4.3 The sender broadcasts the fund transfer plan to the routing node and the receiver. The routing node and the receiver receive the broadcasted fund transfer plan and check whether the content of the fund transfer plan is correct. If it is correct, the receiver sends the confirmation result to the routing node , the routing node collects the confirmation result and signs it, and returns the signed fund transfer plan to the sender. At the same time, the routing node and the receiver send the funds involved in the transaction to their verification module, and go to step 5; if not If it is correct, the receiver will send the error information to the routing node. The routing node will collect the error information and attach its own signature, and then send the error information to the sender. After the sender checks and modifies the fund transfer plan, it will broadcast it again, and go to step 4.3. The content of the fund transfer scheme includes the amount of funds transferred and the handling fee of the routing node, the confirmation result is the result that the content of the scheme is considered correct, the confirmation result includes the confirmation result of the routing node itself, and the error information includes the routing node itself error messages found;第五步,接收方的验证模块采用智能合约的方式对发送方资金的有效性和可用性进行验证,验证的具体方法是:In the fifth step, the receiver's verification module uses smart contracts to verify the validity and availability of the sender's funds. The specific method of verification is:5.1在智能合约即部署在验证模块中的一段自动执行判断动作的程序中输入资金的判断条件:判断资金来源是否有效,即发送方是否有足够的资金进行转移;5.1 Judgment conditions for entering funds in the smart contract, which is a program that automatically executes judgment actions deployed in the verification module: determine whether the source of funds is valid, that is, whether the sender has enough funds to transfer;5.2遍历发送方所属区块链的每一个区块,查询发送方的交易信息即交易转移金额和交易资源内容,判断发送方是否存在足够资金用于本次交易,即发送方的转入资金总额减去转出资金总额是否大于本次交易需要转出的资金数额,若不存在足够资金,说明验证失败,资金转移方案作废,交易双方协调下一步操作,根据协调结果,或转4.3步,或转第七步终止本次交易;若存在足够资金,则说明验证成功,将验证成功的结果返回给发送方的跨链通信模块,转5.3步;5.2 Traverse each block of the sender's blockchain, query the sender's transaction information, that is, the transaction transfer amount and transaction resource content, and determine whether the sender has enough funds for this transaction, that is, the sender's total transferred funds Whether the total amount of funds transferred out minus the amount of funds to be transferred out is greater than the amount of funds that need to be transferred out in this transaction. If there is not enough funds, it means that the verification failed, and the fund transfer plan is invalidated. Go to step 7 to terminate this transaction; if there are enough funds, it means that the verification is successful, and return the result of successful verification to the cross-chain communication module of the sender, and go to step 5.3;5.3发送方的跨链通信模块根据资金转移方案中涉及的交易转移金额重新分配资金池中的资金,即将发送方的(节点IP地址,预存资金金额)改为(节点IP地址,现有资金金额)完成资金转移,(现有资金金额=预存资金金额-交易转移金额),并将交易信息发送给记账模块;5.3 The sender's cross-chain communication module redistributes the funds in the fund pool according to the transaction transfer amount involved in the fund transfer plan, that is, the sender's (node IP address, pre-stored fund amount) is changed to (node IP address, existing fund amount ) to complete the fund transfer, (existing fund amount = pre-stored fund amount - transaction transfer amount), and send the transaction information to the accounting module;第六步,接收方的记账模块接收来自跨链通信模块发送的交易信息,由发送方所在区块链、接收方所在区块链、MidChain获得记账权的用户节点生成新区块,分别放到各自的区块链中,方法是:In the sixth step, the accounting module of the receiver receives the transaction information sent from the cross-chain communication module, and a new block is generated by the user node of the blockchain where the sender is located, the blockchain where the receiver is located, and MidChain that has the accounting right, and put into into their respective blockchains by:6.1记账模块将交易信息进行哈希运算后,广播给发送方和接收方所在区块链、以及中间链上的每个用户节点;6.1 The accounting module will hash the transaction information and broadcast it to the blockchain where the sender and receiver are located, as well as each user node on the intermediate chain;6.2发送方所在链、接收所在链以及中间链上的所有用户节点争夺记账权,方法是采用PoW共识算法进行算力竞争,选出算力最强的1个用户节点;每条区块链最终有一个用户节点获得记账权,并在该用户节点所属区块链上生成一个新的区块,并将区块大小、交易计数器、区块头、交易信息一同放入新生成的区块中;6.2 All user nodes on the chain where the sender is located, the chain where the receiver is located, and the intermediate chain compete for the right to bookkeeping. The method is to use the PoW consensus algorithm to compete for computing power, and select the user node with the strongest computing power; each blockchain Finally, a user node obtains the bookkeeping right, and generates a new block on the blockchain to which the user node belongs, and puts the block size, transaction counter, block header, and transaction information into the newly generated block ;6.3发送方和接收方所在区块链以及中间链上的各用户节点将新生成的区块同步下载到各自的本地账本;6.3 The blockchains of the sender and receiver and each user node on the intermediate chain download the newly generated blocks to their respective local ledgers synchronously;第七步,本次云服务交易通信结束。Step 7: This cloud service transaction communication ends.2.如权利要求1所述的一种面向云际计算环境价值交换的跨链通信方法,其特征在于2.1.2步所述初始化中间链的第一个区块的方法是:2. A cross-chain communication method for inter-cloud computing environment value exchange as claimed in claim 1, characterized in that the method of initializing the first block of the intermediate chain in step 2.1.2 is:2.1.2.1将区块大小确定为整个区块所占字节大小;2.1.2.1 Determine the block size as the byte size occupied by the entire block;2.1.2.2将交易计数器初始化为0;2.1.2.2 Initialize the transaction counter to 0;2.1.2.3初始化中间链第一个区块的区块头:2.1.2.3 Initialize the block header of the first block of the intermediate chain:2.1.2.3.1将区块ID初始化为001;2.1.2.3.1 Initialize the block ID to 001;2.1.2.3.2将随机数初始化为0;2.1.2.3.2 Initialize the random number to 0;2.1.2.3.3将上一区块哈希值初始化为0;2.1.2.3.3 Initialize the hash value of the previous block to 0;2.1.2.3.4将难度值初始化为0;2.1.2.3.4 Initialize the difficulty value to 0;2.1.2.3.5将生成区块的时间戳确定为该区块生成时刻的时间;2.1.2.3.5 Determine the time stamp of the generated block as the time when the block is generated;2.1.2.3.6将Merkle根哈希值初始化为0;2.1.2.3.6 Initialize the Merkle root hash value to 0;2.1.2.4初始化区块中的交易信息:2.1.2.4 Initialize the transaction information in the block:2.1.2.4.1将交易记录索引号初始化为Mid-1-1;2.1.2.4.1 Initialize the transaction record index number as Mid-1-1;2.1.2.4.2将交易资源内容初始化为空;2.1.2.4.2 Initialize the transaction resource content as empty;2.1.2.4.3将交易转移金额初始化为0;2.1.2.4.3 Initialize the transaction transfer amount to 0;2.1.2.4.4将发送方地址确定为StartAddr;2.1.2.4.4 Determine the sender address as StartAddr;2.1.2.4.5将接收方地址确定为EndAddr;2.1.2.4.5 Determine the recipient address as EndAddr;2.1.2.4.6将生成交易的时间戳初始化为0。2.1.2.4.6 Initialize the timestamp of the generated transaction to 0.3.如权利要求1所述的一种面向云际计算环境价值交换的跨链通信方法,其特征在于3.1步所述采用PoW共识算法来确定候选节点范围的方法是:采用PoW共识算法进行算力竞争,选择算力最强的前五个用户节点作为侯选节点,所述算力最强是指用户节点通过运算最快得到一个随机数,使得该随机数与区块头内6个数据使用Merkle Proof方法合并在一起之后得到的数满足难度值设定,难度值=最大目标值÷当前目标值,最大目标值为固定的哈希值,当前目标值为当前区块即最新生成的这个区块的区块头哈希值。3. A cross-chain communication method for inter-cloud computing environment value exchange as claimed in claim 1, characterized in that the method of using the PoW consensus algorithm to determine the range of candidate nodes in step 3.1 is: using the PoW consensus algorithm to calculate Competitive power, select the top five user nodes with the strongest computing power as candidate nodes, the strongest computing power means that the user node obtains a random number the fastest through calculation, so that the random number is used with the 6 data in the block header The number obtained after the Merkle Proof method is merged together satisfies the difficulty value setting, difficulty value = maximum target value ÷ current target value, the maximum target value is a fixed hash value, and the current target value is the current block, which is the latest generated block The header hash of the block.4.如权利要求3所述的一种面向云际计算环境价值交换的跨链通信方法,其特征在于所述最大目标值为为0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF。4. A cross-chain communication method for inter-cloud computing environment value exchange as claimed in claim 3, characterized in that the maximum target value is 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5.如权利要求1所述的一种面向云际计算环境价值交换的跨链通信方法,其特征在于6.2步所述将区块大小、交易计数器、区块头、交易信息一同放入新生成的区块中的方法是:5. A cross-chain communication method for inter-cloud computing environment value exchange as claimed in claim 1, characterized in that in step 6.2, the block size, transaction counter, block header, and transaction information are put into the newly generated The method in the block is:6.2.1区块大小确定为整个区块所占的字节大小;6.2.1 The block size is determined as the byte size occupied by the entire block;6.2.2交易计数器确定为该区块中所包含的交易次数;6.2.2 The transaction counter is determined as the number of transactions contained in the block;6.2.3区块头中所包含的6个数据分别赋值:6.2.3 The 6 data contained in the block header are assigned respectively:6.2.3.1区块ID为00i,i为区块序号,随着区块的增加,i的值按n+1,n+2,n+3,…的规律递增,n为获得记账权的用户节点所属区块链原有区块数,n为正整数;6.2.3.1 The block ID is 00i, and i is the block number. As the block increases, the value of i increases according to the law of n+1, n+2, n+3,..., and n is the The original block number of the blockchain to which the user node belongs, n is a positive integer;6.2.3.2随机数即为获得记账权的用户节点在争夺记账权时运算获得的随机数值;6.2.3.2 The random number is the random value obtained by the user nodes who have obtained the bookkeeping right when they compete for the bookkeeping right;6.2.3.3上一区块哈希值为上一个区块的哈希值;6.2.3.3 The hash value of the previous block is the hash value of the previous block;6.2.3.4难度值通过公式难度值=最大目标值÷当前目标值确定;6.2.3.4 The difficulty value is determined by the formula difficulty value = maximum target value ÷ current target value;6.2.3.5生成区块的时间戳确定为该区块生成时刻的时间;6.2.3.5 The time stamp of the generated block is determined as the time when the block is generated;6.2.3.6 Merkle根哈希为交易信息通过Merkle Proof方法合并得到的哈希值;6.2.3.6 The Merkle root hash is the hash value obtained by merging transaction information through the Merkle Proof method;6.2.4交易信息所包含的6个数据分别赋值:6.2.4 The six data contained in the transaction information are assigned respectively:6.2.4.1将交易记录索引号赋值为Mid-(i-1);6.2.4.1 Assign the transaction record index number as Mid-(i-1);6.2.4.2将交易资源内容确定为具体交易的资源内容;6.2.4.2 Determine the resource content of the transaction as the resource content of the specific transaction;6.2.4.3将交易转移金额确定为具体交易所转移的金额数目;6.2.4.3 Determine the transaction transfer amount as the amount transferred by a specific transaction;6.2.4.4将发送方地址确定为StartAddr;6.2.4.4 Determine the sender address as StartAddr;6.2.4.5将接收方地址确定为EndAddr;6.2.4.5 Determine the recipient address as EndAddr;6.2.4.6将生成交易的时间戳确定为交易生成时刻的时间。6.2.4.6 Determine the time stamp of the generated transaction as the time when the transaction is generated.6.如权利要求1所述的一种面向云际计算环境价值交换的跨链通信方法,其特征在于6.1步所述哈希运算是一种将目标文本转换成具有相同长度的杂凑字符串的算法,采用SHA-256哈希算法。6. A cross-chain communication method for inter-cloud computing environment value exchange as claimed in claim 1, characterized in that the hash operation in step 6.1 is a method of converting the target text into a hash string with the same length Algorithm, using the SHA-256 hash algorithm.7.如权利要求1所述的一种面向云际计算环境价值交换的跨链通信方法,其特征在于所述发送方为购买资源并支付金额的一方,所述接收方为提供资源并接受金额的一方。7. A cross-chain communication method for inter-cloud computing environment value exchange as claimed in claim 1, characterized in that the sender is the party that purchases resources and pays the amount, and the receiver is the party that provides resources and accepts the amount party.
CN201711237256.4A2017-11-302017-11-30Inter-cloud computing environment value exchange-oriented cross-chain communication methodActiveCN108009811B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711237256.4ACN108009811B (en)2017-11-302017-11-30Inter-cloud computing environment value exchange-oriented cross-chain communication method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711237256.4ACN108009811B (en)2017-11-302017-11-30Inter-cloud computing environment value exchange-oriented cross-chain communication method

Publications (2)

Publication NumberPublication Date
CN108009811Atrue CN108009811A (en)2018-05-08
CN108009811B CN108009811B (en)2021-06-04

Family

ID=62055455

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711237256.4AActiveCN108009811B (en)2017-11-302017-11-30Inter-cloud computing environment value exchange-oriented cross-chain communication method

Country Status (1)

CountryLink
CN (1)CN108009811B (en)

Cited By (67)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108717634A (en)*2018-05-162018-10-30横琴密达科技有限责任公司A kind of limitation block chain method of commerce and system
CN108805704A (en)*2018-05-162018-11-13深圳市网心科技有限公司Block chain service implementation method, audiomonitor, storage medium and system
CN108876606A (en)*2018-05-292018-11-23阿里巴巴集团控股有限公司Assets transfer method and device, electronic equipment
CN108876370A (en)*2018-06-122018-11-23北京航空航天大学The architectural framework of the shared open data of transregional piece of chain under a kind of isomery multichain framework
CN108876618A (en)*2018-06-152018-11-23浙江华信区块链科技服务有限公司A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN108898368A (en)*2018-06-072018-11-27腾讯科技(深圳)有限公司 Resource transfer method and device, storage medium, electronic device
CN108964935A (en)*2018-05-292018-12-07张迅Message accounting and charging method
CN108985742A (en)*2018-07-192018-12-11深圳市网心科技有限公司Transaction processing method, device and block catenary system
CN109035016A (en)*2018-06-282018-12-18杭州复杂美科技有限公司A kind of multichain concurrent transaction method
CN109035012A (en)*2018-06-112018-12-18西安纸贵互联网科技有限公司A kind of across the chain processing method and computer readable storage medium of block catenary system
CN109087131A (en)*2018-07-182018-12-25青岛陶知电子科技有限公司A kind of garbage classification and reward on total mark system based on block chain framework
CN109241490A (en)*2018-07-262019-01-18思力科(深圳)电子科技有限公司A kind of X11 Dynamic Hashing Schemes and device towards block chain
CN109255056A (en)*2018-08-162019-01-22北京京东尚科信息技术有限公司Data referencing processing method, device, equipment and the storage medium of block chain
CN109272311A (en)*2018-09-292019-01-25亚洲数字科技有限公司A kind of across chain flogic system based on digital wallet
CN109345714A (en)*2018-08-312019-02-15华北电力大学(保定) A charging pile and a charging network operation method for an electric vehicle
CN109462505A (en)*2018-11-122019-03-12上海点融信息科技有限责任公司Realize the method and apparatus across chain communication between multiple block chain networks
CN109493050A (en)*2018-11-212019-03-19北京蓝石环球区块链科技有限公司Transfer process based on the more subchains of block chain main chain adduction row
CN109523380A (en)*2018-10-292019-03-26中链科技有限公司Across chain method of commerce and device
CN109583896A (en)*2018-11-302019-04-05元灵通智能科技(深圳)有限公司Transaction verification method, block chain node and storage medium
CN109639656A (en)*2018-12-032019-04-16北京瑞卓喜投科技发展有限公司A kind of block chain private data transmission method and private data Transmission system
CN109784881A (en)*2018-12-292019-05-21广州蓝石信息技术有限公司General across chain payment scheme based on decentralization gateway
CN109886661A (en)*2019-01-162019-06-14深圳壹账通智能科技有限公司Across chain digital cash exchanging method, device, computer system and storage medium
CN109978539A (en)*2019-03-012019-07-05海南新软软件有限公司A kind of process reminding method, the apparatus and system of the transfer of digital asset address
CN110245517A (en)*2019-05-292019-09-17杭州秘猿科技有限公司A kind of across chain method, apparatus, system and the electronic equipment of block chain
CN110264204A (en)*2019-06-062019-09-20杭州趣链科技有限公司A kind of across chain method of commerce of block chain based on intelligent contract sequencing
CN110278264A (en)*2019-06-202019-09-24深圳前海微众银行股份有限公司 A method, device and transaction system for cross-chain communication based on blockchain
CN110557334A (en)*2018-06-012019-12-10厦门本能管家科技有限公司cross-link network interconnection method and system
CN110599160A (en)*2018-06-122019-12-20韩国电子通信研究院Method and apparatus for selecting distributed consensus nodes based on random number attestation
CN110689435A (en)*2019-08-022020-01-14上海分布信息科技有限公司Data processing method and data processing system based on block chain
WO2020010972A1 (en)*2018-07-102020-01-16深圳市红砖坊技术有限公司Consensus method used for miner node in blockchain system and blockchain system
CN110706104A (en)*2019-09-122020-01-17杭州秘猿科技有限公司Method and system for constructing proprietary chain
WO2020024627A1 (en)*2018-08-022020-02-06刘卓Data processing method, node, blockchain network, and virtual data carrier
CN110866826A (en)*2018-08-282020-03-06傲为信息技术(江苏)有限公司 Transaction method and blockchain system based on parachain
CN110993044A (en)*2019-11-282020-04-10周口师范学院Lightweight dynamic autonomous cross-link interaction method for medical alliance link
CN111010441A (en)*2019-12-182020-04-14深圳市网心科技有限公司 A blockchain cross-chain method, system and electronic device
CN111107075A (en)*2019-12-132020-05-05中国工商银行股份有限公司Request response method and device, electronic equipment and computer-readable storage medium
CN111143378A (en)*2018-11-062020-05-12法国电力公司Method for processing data and device for implementing same
CN111199398A (en)*2018-11-162020-05-26上海派链信息科技有限公司Method, apparatus, computer-readable storage medium and computer program product for cross-blockchain asset management
CN111222876A (en)*2018-11-262020-06-02厦门本能管家科技有限公司Method and system for solving cross-chain coupling
WO2020114279A1 (en)*2018-12-052020-06-11腾讯科技(深圳)有限公司Debt certificate transferring method and apparatus, electronic device, and storage medium
CN111382119A (en)*2018-12-292020-07-07华为技术有限公司 Block data archiving method and related equipment
CN111401868A (en)*2020-03-192020-07-10南开大学Minimum-cost block-chain down-link transaction routing algorithm
TWI699725B (en)*2018-05-292020-07-21香港商阿里巴巴集團服務有限公司 Asset transfer method and device, electronic equipment
CN111538791A (en)*2020-05-072020-08-14深圳创客区块链技术有限公司Block chain multiple cross-chain mutual protection method, device and storage medium
CN111582845A (en)*2020-04-302020-08-25北京金山云网络技术有限公司Cross-chain transaction method and device of block chain and electronic equipment
CN111598553A (en)*2020-05-292020-08-28北京俩撇科技有限公司Method and device for creating block chain, data cross-chain and sales block chain and personal block chain
CN111597228A (en)*2020-05-132020-08-28山大地纬软件股份有限公司Multi-chain system and method for improving block chain expansibility
US10789598B2 (en)2018-05-292020-09-29Alibaba Group Holding LimitedBlockchain transaction reconciliation method and apparatus, and electronic device
CN112016923A (en)*2020-08-282020-12-01北京大学深圳研究生院Intra-network cross-domain identity management method and system based on block chain and computational power network
WO2020258847A1 (en)*2019-06-282020-12-30创新先进技术有限公司Method and apparatus for cross-chain transmission of authenticable message based on processing module
CN112287029A (en)*2020-11-172021-01-29北京物资学院 A blockchain multi-chain cross-chain system and its implementation mechanism
WO2021047678A1 (en)*2019-09-122021-03-18华为技术有限公司Computing power routing method and apparatus
CN112598523A (en)*2020-12-302021-04-02广东微聚科技有限公司Aggregation block chain system
CN112633868A (en)*2019-10-082021-04-09橙载(上海)信息技术有限公司Cross-chain asset transfer method based on intelligent contract implementation
CN112637127A (en)*2020-11-232021-04-09北京邮电大学Cross-block-chain communication method and device
CN112862612A (en)*2019-06-282021-05-28创新先进技术有限公司Method and device for sending resources in cross-link mode
WO2021155680A1 (en)*2020-02-032021-08-12腾讯科技(深圳)有限公司Cross-blockchain data processing method, device, apparatus, and computer storage medium
CN113709037A (en)*2021-08-172021-11-26电子科技大学Cross-chain transaction routing node selection method and device
US11216820B2 (en)2018-05-292022-01-04Advanced New Technologies Co., Ltd.Asset transfer reversal method and apparatus, and electronic device
US20220027900A1 (en)*2019-01-222022-01-27S2W Lab Inc.Cryptocurrency transaction analysis method and system
US11251966B2 (en)2019-06-282022-02-15Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
US11336465B2 (en)2019-06-282022-05-17Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
US11336451B2 (en)2019-06-282022-05-17Advanced New Technologies Co., Ltd.Cross-blockchain resource transmission
US11356282B2 (en)2019-06-282022-06-07Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
WO2022141059A1 (en)*2020-12-292022-07-07合肥达朴汇联科技有限公司Method and system for cross-chain exchange of blockchain information, electronic device, and storage medium
CN117834642A (en)*2024-03-042024-04-05中国人民解放军国防科技大学 A method, system and storage medium for distributed generation of massive QR codes
CN119515376A (en)*2024-10-302025-02-25杭州高新区(滨江)区块链与数据安全研究院 Path determination method, device, server and computer program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106503589A (en)*2016-10-262017-03-15北京瑞卓喜投科技发展有限公司The method of calibration of block chain Transaction Information correctness, apparatus and system
CN106790145A (en)*2016-12-282017-05-31上海优刻得信息科技有限公司A kind of high in the clouds Data Hosting system and high in the clouds Data Hosting method
CN107077674A (en)*2016-12-292017-08-18深圳前海达闼云端智能科技有限公司Transaction verification processing method and device and node equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106503589A (en)*2016-10-262017-03-15北京瑞卓喜投科技发展有限公司The method of calibration of block chain Transaction Information correctness, apparatus and system
CN106790145A (en)*2016-12-282017-05-31上海优刻得信息科技有限公司A kind of high in the clouds Data Hosting system and high in the clouds Data Hosting method
CN107077674A (en)*2016-12-292017-08-18深圳前海达闼云端智能科技有限公司Transaction verification processing method and device and node equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
史佩昌等: "云服务传递网络资源动态分配模型", 《计算机学报》*

Cited By (107)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108717634A (en)*2018-05-162018-10-30横琴密达科技有限责任公司A kind of limitation block chain method of commerce and system
CN108805704A (en)*2018-05-162018-11-13深圳市网心科技有限公司Block chain service implementation method, audiomonitor, storage medium and system
CN108876606A (en)*2018-05-292018-11-23阿里巴巴集团控股有限公司Assets transfer method and device, electronic equipment
US11216820B2 (en)2018-05-292022-01-04Advanced New Technologies Co., Ltd.Asset transfer reversal method and apparatus, and electronic device
TWI699725B (en)*2018-05-292020-07-21香港商阿里巴巴集團服務有限公司 Asset transfer method and device, electronic equipment
US11328303B2 (en)2018-05-292022-05-10Advanced New Technologies Co., Ltd.Asset transfer method and apparatus, and electronic device
CN108964935A (en)*2018-05-292018-12-07张迅Message accounting and charging method
US11449873B2 (en)2018-05-292022-09-20Advanced New Technologies Co., Ltd.Blockchain transaction reconciliation method and apparatus, and electronic device
US10789598B2 (en)2018-05-292020-09-29Alibaba Group Holding LimitedBlockchain transaction reconciliation method and apparatus, and electronic device
CN110557334A (en)*2018-06-012019-12-10厦门本能管家科技有限公司cross-link network interconnection method and system
CN110557334B (en)*2018-06-012021-12-28本无链科技(深圳)有限公司Cross-link network interconnection method and system
CN108898368A (en)*2018-06-072018-11-27腾讯科技(深圳)有限公司 Resource transfer method and device, storage medium, electronic device
CN109035012B (en)*2018-06-112020-11-17西安纸贵互联网科技有限公司Cross-chain processing method of block chain system and computer readable storage medium
CN109035012A (en)*2018-06-112018-12-18西安纸贵互联网科技有限公司A kind of across the chain processing method and computer readable storage medium of block catenary system
CN108876370B (en)*2018-06-122021-12-17北京航空航天大学System architecture for sharing open data by crossing block chains under heterogeneous multi-chain architecture
CN110599160B (en)*2018-06-122024-01-09韩国电子通信研究院Method and apparatus for selecting distributed consensus nodes based on random number attestation
CN110599160A (en)*2018-06-122019-12-20韩国电子通信研究院Method and apparatus for selecting distributed consensus nodes based on random number attestation
CN108876370A (en)*2018-06-122018-11-23北京航空航天大学The architectural framework of the shared open data of transregional piece of chain under a kind of isomery multichain framework
CN108876618A (en)*2018-06-152018-11-23浙江华信区块链科技服务有限公司A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN109035016B (en)*2018-06-282020-10-23杭州复杂美科技有限公司Multi-chain concurrent transaction method
CN109035016A (en)*2018-06-282018-12-18杭州复杂美科技有限公司A kind of multichain concurrent transaction method
US12355880B2 (en)2018-07-102025-07-08Shenzhen Red Brick Technology Co., Ltd.Consensus method used for miner node in blockchain system and blockchain system
WO2020010972A1 (en)*2018-07-102020-01-16深圳市红砖坊技术有限公司Consensus method used for miner node in blockchain system and blockchain system
CN109087131A (en)*2018-07-182018-12-25青岛陶知电子科技有限公司A kind of garbage classification and reward on total mark system based on block chain framework
CN108985742A (en)*2018-07-192018-12-11深圳市网心科技有限公司Transaction processing method, device and block catenary system
CN109241490A (en)*2018-07-262019-01-18思力科(深圳)电子科技有限公司A kind of X11 Dynamic Hashing Schemes and device towards block chain
CN109241490B (en)*2018-07-262023-05-09南京思利华信息科技有限公司Block chain-oriented X11 dynamic hash method and device
WO2020024627A1 (en)*2018-08-022020-02-06刘卓Data processing method, node, blockchain network, and virtual data carrier
CN109255056A (en)*2018-08-162019-01-22北京京东尚科信息技术有限公司Data referencing processing method, device, equipment and the storage medium of block chain
CN109255056B (en)*2018-08-162021-05-25北京京东尚科信息技术有限公司Data reference processing method, device, equipment and storage medium of block chain
CN110866825B (en)*2018-08-282022-10-11傲为有限公司Public link-based block chain information storage method and system
CN110866826B (en)*2018-08-282022-10-11傲为有限公司Transaction method based on parallel chain and block chain system
CN110866826A (en)*2018-08-282020-03-06傲为信息技术(江苏)有限公司 Transaction method and blockchain system based on parachain
CN110866823A (en)*2018-08-282020-03-06傲为信息技术(江苏)有限公司Public link-based transaction method and block chain system
CN110866825A (en)*2018-08-282020-03-06傲为信息技术(江苏)有限公司Public link-based block chain information storage method and system
CN109345714A (en)*2018-08-312019-02-15华北电力大学(保定) A charging pile and a charging network operation method for an electric vehicle
CN109272311A (en)*2018-09-292019-01-25亚洲数字科技有限公司A kind of across chain flogic system based on digital wallet
CN109523380A (en)*2018-10-292019-03-26中链科技有限公司Across chain method of commerce and device
CN111143378B (en)*2018-11-062023-11-17法国电力公司Method for processing data and device for implementing the method
CN111143378A (en)*2018-11-062020-05-12法国电力公司Method for processing data and device for implementing same
CN109462505B (en)*2018-11-122021-07-30上海点融信息科技有限责任公司Method and apparatus for implementing cross-link communication between multiple blockchain networks
CN109462505A (en)*2018-11-122019-03-12上海点融信息科技有限责任公司Realize the method and apparatus across chain communication between multiple block chain networks
CN111199398A (en)*2018-11-162020-05-26上海派链信息科技有限公司Method, apparatus, computer-readable storage medium and computer program product for cross-blockchain asset management
CN109493050B (en)*2018-11-212021-08-03北京蓝石环球区块链科技有限公司Transfer method based on block chain main chain and parallel multiple sub-chains
CN109493050A (en)*2018-11-212019-03-19北京蓝石环球区块链科技有限公司Transfer process based on the more subchains of block chain main chain adduction row
CN111222876B (en)*2018-11-262022-11-11本无链科技(深圳)有限公司Method and system for solving cross-chain coupling
CN111222876A (en)*2018-11-262020-06-02厦门本能管家科技有限公司Method and system for solving cross-chain coupling
CN109583896A (en)*2018-11-302019-04-05元灵通智能科技(深圳)有限公司Transaction verification method, block chain node and storage medium
CN109639656A (en)*2018-12-032019-04-16北京瑞卓喜投科技发展有限公司A kind of block chain private data transmission method and private data Transmission system
CN109639656B (en)*2018-12-032020-12-25北京瑞卓喜投科技发展有限公司Block chain private data transmission method and private data transmission system
WO2020114279A1 (en)*2018-12-052020-06-11腾讯科技(深圳)有限公司Debt certificate transferring method and apparatus, electronic device, and storage medium
US11978115B2 (en)2018-12-052024-05-07Tencent Technology (Shenzhen) Company LimitedMethod, device, and storage medium for blockchain data processing
CN109784881A (en)*2018-12-292019-05-21广州蓝石信息技术有限公司General across chain payment scheme based on decentralization gateway
CN111382119A (en)*2018-12-292020-07-07华为技术有限公司 Block data archiving method and related equipment
CN111382119B (en)*2018-12-292023-08-22华为技术有限公司 Block data archiving method and related equipment
CN109886661A (en)*2019-01-162019-06-14深圳壹账通智能科技有限公司Across chain digital cash exchanging method, device, computer system and storage medium
US20220027900A1 (en)*2019-01-222022-01-27S2W Lab Inc.Cryptocurrency transaction analysis method and system
CN109978539A (en)*2019-03-012019-07-05海南新软软件有限公司A kind of process reminding method, the apparatus and system of the transfer of digital asset address
CN110245517A (en)*2019-05-292019-09-17杭州秘猿科技有限公司A kind of across chain method, apparatus, system and the electronic equipment of block chain
CN114548993A (en)*2019-06-062022-05-27杭州趣链科技有限公司 A blockchain cross-chain transaction method based on smart contract sequencing
CN110264204A (en)*2019-06-062019-09-20杭州趣链科技有限公司A kind of across chain method of commerce of block chain based on intelligent contract sequencing
CN114548993B (en)*2019-06-062025-05-30杭州趣链科技有限公司 A blockchain cross-chain transaction method based on smart contract sequencing
WO2020253688A1 (en)*2019-06-202020-12-24深圳前海微众银行股份有限公司Blockchain-based cross-chain communication method, device, and transaction system
CN110278264A (en)*2019-06-202019-09-24深圳前海微众银行股份有限公司 A method, device and transaction system for cross-chain communication based on blockchain
CN110278264B (en)*2019-06-202023-02-21深圳前海微众银行股份有限公司Block chain-based cross-link communication method and device and transaction system
US11336451B2 (en)2019-06-282022-05-17Advanced New Technologies Co., Ltd.Cross-blockchain resource transmission
US11356282B2 (en)2019-06-282022-06-07Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
CN112862612A (en)*2019-06-282021-05-28创新先进技术有限公司Method and device for sending resources in cross-link mode
CN112862612B (en)*2019-06-282024-04-30创新先进技术有限公司Method and device for transmitting resources across chains
US11251966B2 (en)2019-06-282022-02-15Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
WO2020258847A1 (en)*2019-06-282020-12-30创新先进技术有限公司Method and apparatus for cross-chain transmission of authenticable message based on processing module
US11343103B2 (en)2019-06-282022-05-24Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
US11336465B2 (en)2019-06-282022-05-17Advanced New Technologies Co., Ltd.Sending cross-chain authenticatable messages
CN110689435A (en)*2019-08-022020-01-14上海分布信息科技有限公司Data processing method and data processing system based on block chain
CN110689435B (en)*2019-08-022022-05-27上海分布信息科技有限公司Data processing method and data processing system based on block chain
CN110706104A (en)*2019-09-122020-01-17杭州秘猿科技有限公司Method and system for constructing proprietary chain
WO2021047678A1 (en)*2019-09-122021-03-18华为技术有限公司Computing power routing method and apparatus
US12237997B2 (en)2019-09-122025-02-25Huawei Technologies Co., Ltd.Compute-aware routing method and apparatus
CN112491716B (en)*2019-09-122023-07-18华为技术有限公司 Computing power routing method and device
CN110706104B (en)*2019-09-122022-07-15杭州秘猿科技有限公司Proprietary chain construction method and system
CN112633868A (en)*2019-10-082021-04-09橙载(上海)信息技术有限公司Cross-chain asset transfer method based on intelligent contract implementation
CN112633868B (en)*2019-10-082023-04-14橙载(上海)信息技术有限公司Cross-chain asset transfer method based on intelligent contract implementation
CN110993044A (en)*2019-11-282020-04-10周口师范学院Lightweight dynamic autonomous cross-link interaction method for medical alliance link
CN110993044B (en)*2019-11-282023-03-28周口师范学院Lightweight dynamic autonomous cross-link interaction method for medical alliance link
CN111107075A (en)*2019-12-132020-05-05中国工商银行股份有限公司Request response method and device, electronic equipment and computer-readable storage medium
CN111010441A (en)*2019-12-182020-04-14深圳市网心科技有限公司 A blockchain cross-chain method, system and electronic device
WO2021155680A1 (en)*2020-02-032021-08-12腾讯科技(深圳)有限公司Cross-blockchain data processing method, device, apparatus, and computer storage medium
US12316746B2 (en)2020-02-032025-05-27Tencent Technology (Shenzhen) Company LimitedCross-blockchain data processing method and apparatus, device, and computer storage medium
CN111401868A (en)*2020-03-192020-07-10南开大学Minimum-cost block-chain down-link transaction routing algorithm
CN111401868B (en)*2020-03-192022-07-01南开大学Minimum-cost block chain down-link transaction routing algorithm
CN111582845A (en)*2020-04-302020-08-25北京金山云网络技术有限公司Cross-chain transaction method and device of block chain and electronic equipment
CN111538791B (en)*2020-05-072023-09-22深圳创客区块链技术有限公司Block chain multiple-cross-chain mutual protection method, device and storage medium
CN111538791A (en)*2020-05-072020-08-14深圳创客区块链技术有限公司Block chain multiple cross-chain mutual protection method, device and storage medium
CN111597228A (en)*2020-05-132020-08-28山大地纬软件股份有限公司Multi-chain system and method for improving block chain expansibility
CN111598553A (en)*2020-05-292020-08-28北京俩撇科技有限公司Method and device for creating block chain, data cross-chain and sales block chain and personal block chain
CN112016923A (en)*2020-08-282020-12-01北京大学深圳研究生院Intra-network cross-domain identity management method and system based on block chain and computational power network
CN112287029A (en)*2020-11-172021-01-29北京物资学院 A blockchain multi-chain cross-chain system and its implementation mechanism
CN112287029B (en)*2020-11-172023-05-16北京物资学院 A blockchain multi-chain cross-chain system and its implementation mechanism
CN112637127B (en)*2020-11-232022-05-13北京邮电大学 A method and device for cross-blockchain communication
CN112637127A (en)*2020-11-232021-04-09北京邮电大学Cross-block-chain communication method and device
WO2022141059A1 (en)*2020-12-292022-07-07合肥达朴汇联科技有限公司Method and system for cross-chain exchange of blockchain information, electronic device, and storage medium
CN112598523A (en)*2020-12-302021-04-02广东微聚科技有限公司Aggregation block chain system
CN113709037B (en)*2021-08-172022-06-14电子科技大学 A method and device for selecting routing nodes for cross-chain transactions
CN113709037A (en)*2021-08-172021-11-26电子科技大学Cross-chain transaction routing node selection method and device
CN117834642A (en)*2024-03-042024-04-05中国人民解放军国防科技大学 A method, system and storage medium for distributed generation of massive QR codes
CN117834642B (en)*2024-03-042024-05-17中国人民解放军国防科技大学 A method, system and storage medium for distributed generation of massive QR codes
CN119515376A (en)*2024-10-302025-02-25杭州高新区(滨江)区块链与数据安全研究院 Path determination method, device, server and computer program product

Also Published As

Publication numberPublication date
CN108009811B (en)2021-06-04

Similar Documents

PublicationPublication DateTitle
CN108009811A (en) A cross-chain communication method for inter-cloud computing environment value exchange
CN110443704B (en)Method and device for sending resources in cross-link mode
US12038937B2 (en)Computer-implemented system and method for managing transactions over a blockchain network
JP2024074969A (en) METHOD AND SYSTEM FOR MINING BLOCKCHAIN TRANSACTIONS PROVIDED BY VALIDATOR NODES
CN110659906B (en)Bill information processing method, related device and medium
CN115701078B (en)Cross-chain transaction processing method, device, electronic equipment and storage medium
WO2017192007A2 (en)Block chain for supporting plurality of one-way functions for verification of blocks
CN109493052B (en)Cross-chain contract system based on main chain and parallel multiple sub-chains
CN108876669B (en)Course notarization system and method applied to multi-platform education resource sharing
CN112231741B (en)Data processing method, device, medium and electronic equipment based on block chain system
CN107995003A (en)The charging and settlement method of international roaming communication, relevant apparatus and distributed system
CN114567643B (en)Cross-blockchain data transfer method, device and related equipment
WO2021063030A1 (en)Blockchain-enhanced open internet of things access architecture
CN112532753B (en)Data synchronization method, device, medium and electronic equipment of block chain system
CN110602252A (en)Block chain enhanced open Internet of things access architecture
CN113129002A (en)Data processing method and equipment
Yamamoto et al.Examination on interoperability of blockchains by using ZK-rollups
Liu et al.SharHSC: A Sharding-Based Hybrid State Channel to Realize Blockchain Scalability and Security
Hwang et al.Blockchain-based automatic indemnification mechanism based on proof of violation for cloud storage services
CN116186749A (en)Block chain-based service processing method and device, electronic equipment and readable medium
CN116186786A (en)Block chain-based service processing method and device, electronic equipment and readable medium
HK40071423A (en)Cross-blockchain data circulation method and apparatus, and related device
CN120781379A (en)Cross-blockchain data processing method, device, computer equipment and storage medium
HK40048721A (en)Data processing method and device
CN119599662A (en)Transaction processing method and related device based on blockchain

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp