WO2020042930A1 - Parallel-chain-based transaction method and blockchain system - Google Patents

Parallel-chain-based transaction method and blockchain system Download PDF

Info

Publication number
WO2020042930A1
WO2020042930A1 PCT/CN2019/101045 CN2019101045W WO2020042930A1 WO 2020042930 A1 WO2020042930 A1 WO 2020042930A1 CN 2019101045 W CN2019101045 W CN 2019101045W WO 2020042930 A1 WO2020042930 A1 WO 2020042930A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
chain
public
service
target
Prior art date
Application number
PCT/CN2019/101045
Other languages
French (fr)
Chinese (zh)
Inventor
白杰
吴先锋
李冬云
Original Assignee
白杰
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
Priority claimed from CN201811498007.5A external-priority patent/CN110866826B/en
Application filed by 白杰 filed Critical 白杰
Publication of WO2020042930A1 publication Critical patent/WO2020042930A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • This application relates to the field of blockchain technology, and in particular, to a parallel chain-based transaction method and a blockchain system.
  • Blockchain technology is a decentralized system idea that can create a relatively objective anti-repudiation digital environment through public consensus.
  • Blockchain technology can ensure that network information cannot be changed once it is released. For example, if a transaction occurs in the blockchain network, nodes in the blockchain network will record the content of the transaction in the generated block, and Block data is broadcast throughout the network, and other nodes in the network store the block data synchronously or asynchronously to form an unchangeable blockchain.
  • the transaction has a broad meaning and does not refer to "commodity sale” or “item exchange” in the traditional sense, but refers to the content or operation result of a certain type or data on the blockchain network, for example, on the network
  • a query request a for the performance of a certain type of communication equipment is initiated, and the query request a is a transaction for the blockchain node B that undertakes the query service.
  • the node B sends the performance table b of the communication device of the model obtained to the node A to the node A.
  • Information A, a and information B, b as transaction information will be written into the data block of the blockchain.
  • Existing blockchain-based transaction methods can only be limited to the same blockchain network, that is, transactions between nodes in the blockchain network, and each blockchain network uses a unique virtual Currency as a medium of transaction.
  • the Bitcoin-based transaction method is only applicable to the Bitcoin blockchain network, and bitcoin is used as a transaction virtual currency
  • the Ethereum-based transaction method is only applicable to the Ethereum blockchain network, and Ethereum is used as a transaction virtual currency.
  • more and more blockchain networks have been established, such as industry chains, alliance chains, and private chains to complete practical applications in specific fields.
  • the existing blockchain networks are basically independent of each other, and there is no unified and effective mechanism for communication and interaction between different chains.
  • Each type of blockchain can provide different capability sets due to its application scenarios.
  • the endogenous nature of the blockchain network determines that the capability sets provided by different chains cannot be interconnected, which results in an island effect of data and applications, limiting the area-based Application of blockchain transaction method.
  • This application provides a parallel chain-based transaction method and a blockchain system to solve the problem that traditional transaction methods do not support cross-chain transactions and limit the application of blockchain-based transaction methods.
  • this application provides a parallel chain-based transaction method, including:
  • the transaction initiation chain initiates a query transaction to the public chain by initiating a parallel chain
  • the public chain inquires the transaction target chain in the public chain network according to the query transaction, and sends the query result to the transaction initiation chain.
  • the query result includes the transaction mode, address information and transaction conditions of the transaction target chain;
  • the transaction initiation chain creates a service transaction based on the query results
  • the public chain forwards the service transaction to the transaction target chain according to the address information, and passes the service content returned by the transaction target chain to the initiating parallel chain;
  • the initiation parachain synchronizes the service content into a standardized form that conforms to the transaction initiation chain, and sends it to the transaction initiation chain.
  • the steps of initiating a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiating service transactions to the public chain further include:
  • Parachain nodes receive service transactions; verify and store service transactions, and generate complete blockchain data in the form of a transaction initiation chain specification;
  • Parachain nodes convert the format of service transactions to generate service transactions in the form of a public chain specification
  • Parachain nodes broadcast service transactions to public chain nodes.
  • the public chain queries the transaction target chain in the public chain network, and sends the query results to the initiating parallel chain including:
  • the public chain extracts the service type in the query transaction
  • the public chain traverses the blockchain network that matches the service type in the public chain network to determine the transaction target chain and obtain the address information corresponding to the transaction target chain;
  • the public chain initiates a trigger transaction to a transaction target chain that conforms to the service type
  • the transaction target chain generates transaction conditions according to the trigger transaction, and sends the transaction conditions to the public chain; the transaction conditions include the number of securities exchanges specified by the current transaction.
  • the steps of the transaction target chain according to the triggering transaction, generating the transaction conditions, and sending the transaction conditions to the public chain further include:
  • the target parallel chain receives the trigger transaction and simultaneously converts the trigger transaction into a standardized form that conforms to the target chain of the transaction;
  • the target parallel chain forwards the trigger transaction to the transaction target chain, and allocates the transaction target chain to the service node;
  • the service node generates transaction conditions according to the triggered transaction, and feeds back the transaction conditions to the target parachain;
  • the target parallel chain simultaneously converts the transaction conditions into a standardized form that complies with the public chain, and sends the converted transaction conditions to the public chain.
  • the public chain inquires the transaction target chain in the public chain network, and the steps of sending the query result to the transaction initiation chain further include:
  • the public chain judges whether the balance of STOs owned by the transaction node meets the number of STOs
  • the public chain cancels sending query results to the initiating parallel chain; and sends prompt information to the transaction nodes.
  • the method further includes:
  • the public chain inquires the transaction target chain in the public chain network again according to the query transaction;
  • the steps of initiating a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiating service transactions to the public chain include:
  • Trading nodes determine whether to accept trading conditions
  • the transaction node After the transaction node accepts the transaction conditions, the transaction node initiates a service transaction to the public chain by initiating a parallel chain.
  • the initiation of a parallel chain synchronously converts the service content into a standardized form that conforms to the transaction initiation chain, and the steps of sending to the transaction initiation chain include:
  • the initiating parallel chain sends notification information to the transaction nodes on the transaction initiating chain to notify the final transaction result.
  • the service transaction includes a transaction initiation chain that transfers a specified number of public chain tokens through the public chain network to the transaction target chain; the public chain forwards the service transaction to the target chain according to the address information, and returns the target chain
  • the steps for delivering the content of the service to the initiation of the parachain include:
  • the public chain locks the Zhengtong that will pay for the transaction initiation chain, and initiates a request transaction to the transaction target chain according to the service transaction;
  • the transaction target chain provides a return transaction to the public chain according to the requested transaction
  • the public chain verifies the return transaction. If the return transaction is consistent with the service transaction, the lock status of the transfer certificate pass is released;
  • the public chain transfers the payment of the transaction initiation chain to the transaction target chain, and transfers the service content to the transaction initiation chain.
  • this application also provides a parallel chain-based blockchain system, including: a transaction initiation chain, a parallel chain, a public chain, and a transaction target chain; the parallel chain is composed of some nodes in the public chain network; The transaction initiation chain and the transaction target chain are connected to the public chain through a parallel chain;
  • the transaction initiation chain is configured to: initiate a query transaction to the public chain by initiating a parallel chain; and create a service transaction based on the query result of the public chain;
  • the public chain is configured to: according to a query transaction, query a transaction target chain in the public chain network, and send a query result to the initiating parallel chain, the query result including address information and transaction conditions of the transaction target chain;
  • the initiating parallel chain is configured to: synchronously convert service transactions and initiate service transactions to the public chain; and convert service content and send to the transaction initiation chain;
  • the public chain is also configured to: forward service transactions to the target chain according to the address information, and pass the service content returned by the target chain to the initiating parallel chain;
  • the transaction target chain is configured to return service content to the public chain according to a service transaction.
  • the transaction node first initiates a query transaction to the public chain through a parallel chain bridge to enable the public chain to query Transaction target chain, and then return the query result to the transaction node through the parallel chain.
  • the transaction node accepts the transaction conditions, it then initiates a service transaction to the public chain through the parallel chain.
  • the parallel chain synchronizes the service transaction and passes it to the public chain, so that the public chain can continue to transfer the service transaction to the transaction target chain.
  • the transaction target then sends the corresponding service content to the public chain and the public chain to the parallel chain.
  • the parallel chain synchronizes the service content and sends it to the transaction node to enable the transaction node to obtain the transaction result.
  • the method transfers the transactions in the transaction initiation chain to the transaction target chain through the public chain through parallel chain bridging, realizes cross-chain transactions, and solves the problem that traditional transaction methods do not support cross-chain transactions.
  • FIG. 1 is a schematic flowchart of a parallel chain-based transaction method of the present application
  • FIG. 2 is a schematic diagram of a query transaction process of this application
  • FIG. 3 is a schematic flow chart of the number of token exchanges for verifying the transaction nodes of the public chain of this application;
  • FIG. 4 is a schematic flow chart of a transaction node's balance in the application that does not satisfy the amount of the token exchange;
  • FIG. 5 is a schematic flowchart of synchronous conversion of data of parallel chain node blocks in this application.
  • FIG. 6 is a schematic flowchart of a process of initiating a parallel chain return transaction in this application.
  • FIG. 7 is a schematic flowchart of generating a transaction condition by triggering a transaction target chain of a public chain of the present application
  • FIG. 8 is a schematic flowchart of a locked payment of a public chain of the present application.
  • FIG. 9 is a schematic flowchart of generating notification information for initiating a parallel chain application
  • FIG. 10 is a schematic structural diagram of a parallel blockchain-based transaction blockchain system of the present application.
  • a blockchain network refers to a peer-to-peer (P2P) network with a decentralized application architecture.
  • the blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification. That is, a trading platform that covers distributed technology, cryptography, P2P network architecture, and various consensus algorithms that may be applied.
  • Blockchain or blockchain information refers to the accounting information generated based on transaction information when a transaction occurs in the blockchain network, that is, multiple specific transactions form a block, and multiple blocks form an ordered block. chain.
  • Blockchain networks include nodes that establish peer-to-peer network connections with each other. Each node is configured with a corresponding consensus mechanism, such as a smart contract, and has sufficient computing power to perform transaction verification and accounting procedures. The nodes also have an interface specification that conforms to a certain unified standard to achieve access to more nodes or other types of blockchain networks through the interface specification.
  • the public chain network is used as a basic platform arranged on the entire network, and its node interfaces are connected to multiple blockchain networks, such as industry chains, alliance chains, and private chains based on public link interface specifications. Each blockchain network can serve as a development platform and provide corresponding services within its network.
  • the definition and specification of the public chain have standard interfaces and methods to facilitate network interconnection with other blockchains, such as the transaction initiation chain and the transaction target chain.
  • the public chain in this application has the ability to support cross-chain intermediation, as well as decentralized applications and smart contracting capabilities.
  • the transaction initiation chain and the transaction target chain refer to the block chain in the public chain network, that is, in this application, the public chain provides the basic platform, and the transaction initiation chain and the transaction target chain are the access networks, each with its own functions and service.
  • the transaction initiation chain and transaction target chain can be a blockchain network based on public chain network standards and interface specifications, that is, the transaction initiation chain and transaction target chain can directly communicate with and connect to the public chain network.
  • the transaction initiation chain and transaction target chain can also be independent networks, such as the existing blockchain network Bitcoin, Ethereum, etc., or industry chains and alliance chains developed by some industries, or even to achieve a certain service Private chains built on demand. These existing blockchains, industry chains, alliance chains, and private chains generally cannot directly trade with each other or even with the public chain network. Therefore, in this application, the public chain and other networks can be connected through parallel chains.
  • Parachains can be composed of some nodes in the public chain network, and through the parachains, the public chain can be bridged with other networks that cannot be directly traded.
  • each blockchain network corresponds to a parachain, and the parachain is set to have the complete function of the corresponding blockchain network, and can synchronize transactions in the blockchain network Transformation and transfer to the public chain network. Therefore, in the technical solution provided in this application, the parallel chain can be determined as a mirror image of the corresponding blockchain network, and for convenience of description, the corresponding blockchain network becomes the parent chain.
  • the parachain is composed of some nodes in the public chain network, and these nodes are also nodes in the parent chain to transfer transaction information.
  • the public chain can provide cross-chain relays in practical applications, completing transactions verification, data certification, asset transfer, and smart contract execution.
  • the public chain's unified external interface specifications enable other blockchain networks to quickly access the public chain network.
  • the public chain also provides the basic blockchain platform capabilities, which is to quickly complete the deployment and verification of the scheme, and to complete the distributed storage and accounting procedures in the public chain network.
  • the public chain can also provide public development functions, thereby completing the collaborative development and deployment of multiple parallel chain smart contracts at one time.
  • the public chain can also be used to store the information summary of the corresponding cross-chain transaction, that is, the transaction summary. Record the relevant content of cross-chain transactions through formatted transaction data.
  • the public chain in order to reduce the occupation of distributed storage space on the public chain, when the public chain records certain information, it can also record third-party blockchain information through a specific compression algorithm.
  • the block data formed and stored in the public chain can include the following: block identifiers (such as serial numbers, timestamps, block hash values, and previous block hash values), block ownership (that is, block producers) ), Other information of the block (such as random value, difficulty value and additional information, etc.), block weight, information summary (such as transaction tree, status tree, receipt tree, data tree, etc.), transaction costs, rewards, size, etc.
  • block identifiers such as serial numbers, timestamps, block hash values, and previous block hash values
  • block ownership that is, block producers
  • Other information of the block such as random value, difficulty value and additional information, etc.
  • block weight such as random value, difficulty value and additional information, etc.
  • information summary such as transaction tree, status tree, receipt tree, data tree, etc.
  • transaction costs such as rewards, size, etc.
  • FIG. 1 a schematic flowchart of a parallel chain-based transaction method of the present application is shown. It can be known from FIG. 1 that the transaction method provided in this application includes the following steps:
  • the transaction initiation chain initiates a query transaction to the public chain by initiating a parallel chain.
  • the operation of initiating a query transaction by the transaction initiation chain is completed by one or more nodes in the transaction initiation chain, that is, in this application, as a party of the transaction initiation chain, the transaction is initiated.
  • Nodes are called transaction nodes.
  • a transaction node can be a computer, server, or other terminal device with data processing and computing capabilities.
  • Transaction nodes can create a service transaction and a query transaction according to their service needs.
  • the query transaction should include the type of service information required by the exchange in order to determine the transaction target chain or service nodes in the transaction target chain that can provide the service.
  • the query transaction can also carry other additional query information, such as acceptable transaction conditions, the location range of the target chain, and so on.
  • the inquiry transaction basically does not involve the corresponding specific transaction, such as the transfer of the Zhengtong account and the transfer of transaction result data. Therefore, the nodes in the transaction initiation link can initiate two types of query transactions. One is to send data information only, that is, the service content required by the transaction node sends the query transaction to the public chain network by transmitting information data. The information data transmitted can be directly identified by the public chain, so in this case, the parallel chain only needs to forward the information data corresponding to the query exchange to the nodes in the public chain network.
  • This query transaction method has the simplest data transfer process and the highest transfer efficiency.
  • the second way for a transaction initiation chain node to initiate a query transaction is that the transaction node generates a transaction of a specified form in accordance with the blockchain transaction specification form of the transaction initiation chain. That is, the inquiry transaction is a special transaction, and the transaction form is the same as the ordinary transaction form in the transaction initiation chain, but it requires special agreement on specific transaction methods, such as transactions with query transaction smart contract information, or the number of STOs that are agreed to transfer. 0 transactions.
  • a transaction node generates a query transaction according to the actual transaction requirements. The specific performance is to create a query transaction and broadcast it.
  • the verification node generates block data containing the transaction and broadcasts the block data in the transaction initiation chain to form a complete transaction. Blockchain.
  • the nodes in the parachain After the block data is broadcast to the initiating parachain node, the nodes in the parachain on the one hand verify and store the block data to form a blockchain. On the other hand, the block data is also synchronously transformed to form transactions that conform to the specifications of the public chain, and broadcast to the nodes in the public chain network, and the public chain maintenance nodes package the transactions into the new block data.
  • the public chain maintenance nodes package the transactions into the new block data.
  • the transactions to be performed by the transaction node generally include two types, namely, the exchange of information and information services.
  • the exchange of securities exchange refers to the exchange of one type of securities exchange with another type of securities exchange, etc .
  • information service refers to the transaction initiation chain to transfer a certain amount of securities exchange to a transaction target chain, the transaction target chain to The transaction initiation chain sends the corresponding information data to the transaction process.
  • the exchange of SEC is used as an example.
  • the network B includes 100 nodes, which are denoted as B001. ⁇ B100.
  • node B25 in network B needs to use 100 STOs Tb to exchange for STOs of equal value.
  • node B25 is used as a transaction node, which creates query transactions and forms block data BC25 as needed.
  • the types of services included are: exchange of tokens.
  • Node B25 can broadcast the query transaction in network B first, that is, broadcast the block data BC25 to other nodes, such as B24 and B26.
  • the other nodes in the query store distributed data BC25 for distributed storage to complete bookkeeping.
  • the parachain node R01 When the block data BC25 is broadcast to the parachain node R01, the parachain node R01 first performs the same verification and storage process as the other nodes in the transaction initiation chain to generate a complete blockchain for bookkeeping; BC25 performs synchronous conversion, such as extracting transaction information, converting transaction format, or writing transaction information into new block data according to the block data template of the public chain to generate block data GBC25 that conforms to the specifications of the public chain.
  • Parallel chain node R01 broadcasts the block data GBC25 on the public chain to generate a blockchain that conforms to the public chain specification form.
  • the public chain inquires the transaction target chain in the public chain network according to the query transaction, and sends the query result to the transaction initiation chain.
  • the query result includes the transaction mode, address information, and transaction conditions of the transaction target chain.
  • the public chain after receiving a query transaction initiated by the transaction initiation chain, extracts service type information in the query transaction, and performs a query in the public chain network according to the service type information to find that it can provide the service.
  • the blockchain network of the type information corresponding service serves as the transaction target chain.
  • the network as a transaction target chain also includes multiple nodes, that is, multiple nodes constitute a transaction target chain. Therefore, the services that can be provided in the transaction target chain can be one or more nodes.
  • the results queried by the public chain can be the transaction target chain or the nodes that can provide services in the transaction target chain.
  • the result of the public chain query is a method of transaction target chain, in order to quickly determine the transaction target chain, and avoid the situation that the transaction target chain does not support public chain query.
  • the steps of the public chain inquiring the transaction target chain in the public chain network according to the query transaction, and sending the query result to the initiating parallel chain include:
  • S201 The public chain extracts the service type in the query transaction
  • the public chain traverses the blockchain network that conforms to the service type in the public chain network to determine the transaction target chain and obtain the address information corresponding to the transaction target chain;
  • S203 The public chain initiates a trigger transaction to a transaction target chain that conforms to the service type
  • the transaction target chain generates transaction conditions according to the triggered transaction, and sends the transaction conditions to the public chain; the transaction conditions include the number of securities exchanges specified by the current transaction.
  • querying the transaction target chain in the public chain network can be completed by a smart contract configured in the public chain, or it can be completed by a decentralized application in the public chain network.
  • the specific query process may be querying the information of the access to the blockchain network stored in the public chain network.
  • This query method requires that the public chain obtains the registered information of the accessed blockchain network through the communication of the access node when the blockchain network accesses.
  • the registered information may include: the types of services that can be provided, and the The types of exchanges that are exchanged, as well as the methods of conducting transactions and the conditions of transactions. Programs in the public chain store these registration information and corresponding network addresses and broadcast them on the entire network.
  • the query process can also be completed in the following form.
  • the public chain receives the query transaction, it broadcasts a transaction for service provision on the entire network.
  • the blockchain network connected to the public chain can respond accordingly to the transaction.
  • the response information can include transaction conditions and transaction methods.
  • the public chain chooses to reply to the earliest blockchain network as the transaction target chain, or judges the transaction conditions to determine the most suitable (such as the least number of STOs, or the best liquidity of STOs).
  • the public chain After querying the transaction target chain, the public chain can obtain the address information of the transaction target chain, the transaction method, and the transaction conditions as the query result. Obviously, the public chain can obtain the above information from the registration information stored in the public chain, or it can provide the information by one side of the transaction target chain by forwarding the query transaction to the transaction target chain. In order to increase the query efficiency, the present application preferably obtains the above information by means of registration information stored in the public chain. After the public chain obtains the transaction target chain information, it can send the obtained target chain information to the transaction initiation chain, so that the transaction initiation chain can determine whether to trade with it according to the transaction target chain information.
  • the target chain address is a registered address of the transaction target chain in the public chain network, or the node address of the interface provided when the transaction target is linked into the public chain.
  • the transaction method is the transaction time set by the transaction target chain, the block chain information format (template), and the type of stock exchange that supports the transaction.
  • the transaction conditions may include not only the specified number of STOs required to provide services, but also the qualification requirements for the transaction initiation chain, such as the number of STOs owned and the credit score of the transaction initiation chain.
  • the public chain P after receiving the inquiry transaction, the public chain P extracts the service content to exchange for Zentong Ta through Zentong Tb, and then looks for a blockchain network in the public chain network that can provide exchange for Zentong Ta.
  • A obtains the address information of network A and the transaction conditions required by network A.
  • transaction nodes are required to have at least 1,000 STOs Tb.
  • the transaction methods supported by Network A such as whether they can directly pass STO Exchange card pass Ta and so on.
  • the public chain packs this information and sends it to the transaction node B25 as the query result. It should be noted that, because the query result is transmitted between the public chain and the transaction initiation chain, in order to improve the transaction efficiency, the query result can be sent directly to the transaction node by means of data transfer.
  • the steps of the public chain inquiring the transaction target chain in the public chain network and sending the query result to the transaction initiation chain according to the query transaction further include:
  • S211 The number of STOs specified by the current transaction in the public chain extraction transaction conditions
  • S212 The public chain judges whether the balance of the SZT owned by the transaction node meets the number of SZT;
  • the transaction initiation chain can be verified through the public chain to determine whether the transaction initiation chain is capable of completing the service transaction through the balance of the securities pass. If the balance of STOs owned by the trading node meets the number of STOs, the query result is sent to the initiating parallel chain. Otherwise, it is judged that the transaction initiation chain does not have the number of securities pass to complete the transaction. At this time, the public chain can cancel sending query results to the initiating parallel chain and send prompt information to the transaction nodes, for example, "your SEC balance is insufficient to complete the transaction". In addition, in the case of insufficient balance, you can continue to look for other transaction target chains in the public chain to find a transaction target chain that matches the balance of the SEC. That is, as shown in FIG. 4, if the balance of STOs owned by the transaction initiation chain does not satisfy the number of STOs, the method further includes:
  • S215 The public chain inquires the transaction target chain in the public chain network again according to the query transaction;
  • S216 Compare one by one the number of the specified securities of the transaction target chain, and determine the transaction target chain with the smallest number of the specified transaction securities as the preferred transaction target chain;
  • S217 Send the address information and transaction conditions of the preferred transaction target chain to the initiating parallel chain.
  • the public chain node can determine the transaction target chain that the transaction conditions are the easiest to reach in all the blockchain networks connected to the public chain, such as the transaction conditions with the least number of STOs that need to be transferred to ensure the transaction initiation
  • the chain can successfully complete cross-chain transactions.
  • the transaction initiation chain creates a service transaction based on the query results.
  • the transaction initiation chain can analyze the query result and extract the transaction mode and transaction conditions in the query result.
  • the transaction initiation chain can determine whether to support the transaction method provided by the transaction target chain; and for the transaction conditions, it can automatically or manually determine whether the transaction conditions proposed by the transaction target chain can be accepted. If the transaction conditions can be accepted and the corresponding transaction methods are supported, the transaction initiation chain can initiate service transactions that meet the transaction conditions to the public chain in accordance with the specified transaction method.
  • S4 Initiate a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiate service transactions to the public chain.
  • the service transaction can be sent to the initiating parallel chain, so that the initiating parallel chain initiates a service transaction to the public chain.
  • the transaction initiation chain creates a transfer transaction, and forwards the transfer transaction to the public chain through a parallel chain node to trigger the execution of the contract.
  • the transfer transaction includes a specified transaction token payment amount paid to the transaction target chain.
  • the method of forwarding the transfer transaction (service transaction) in the parallel chain is basically the same as that in step S1, but because the actual transaction occurs in steps S3 and S, that is, a predetermined amount of Zhengtong is transferred, so
  • the parachain nodes can only complete synchronous conversion by transmitting transactions.
  • the steps of initiating a parallel chain to synchronously convert a service transaction into a standardized form conforming to the public chain, and initiating a service transaction to the public chain further include:
  • S401 Parachain nodes receive service transactions; and verify and store service transactions to generate complete blockchain data in a form that conforms to the transaction initiation chain specification;
  • the parachain node performs format conversion on the service transaction to generate a public chain service transaction conforming to the public chain specification form;
  • S403 The parachain node broadcasts the public chain service transaction to the public chain node.
  • the transaction node B25 verifies the transaction conditions and transaction methods in the returned query result. On the one hand, it is determined whether the transaction meets the requirements, that is, whether it can Satisfying the request of the STO exchange service of B25 can determine whether the transaction conditions can be accepted, for example, whether the STO exchange rate required by the transaction target chain A can be accepted.
  • the above verification process can be judged automatically by Node B25, or it can actively choose whether to accept the transaction conditions.
  • the verification of the returned query results may also include whether the transaction node B25 can perform transactions in accordance with the transaction method specified by the transaction target chain A.
  • the transaction node B25 accepts the transaction conditions and is able to conduct transactions in the transaction method specified by the transaction target chain A, the transaction node B25 initiates a formal service transaction, and the transaction node broadcasts the service transaction in the transaction initiation chain, that is, it contains a service
  • the transaction block data BF25, the block data BF25 contains 100 transfer Tb.
  • the service transaction is converted into a standardized form that conforms to the public chain, and the block data GBF25 is generated, and the service transaction after the broadcast conversion is performed in the public chain network
  • the nodes in the itinerary use the blockchain for bookkeeping, and receive 100 TBTs from the transaction node.
  • the steps of initiating a parallel chain to synchronously transform service transactions into a standardized form that complies with the public chain, and initiating service transactions to the public chain further include:
  • S411 Initiate the parallel chain to convert the transaction conditions into a standardized form that conforms to the transaction initiation chain, and send the converted transaction conditions to the transaction nodes in the transaction initiation chain;
  • S412 The transaction node determines whether to accept the transaction conditions
  • the maintenance nodes in the public chain network have engaged in the corresponding query and storage operations, and in the subsequent transaction process, they will also participate in other operations, such as transfer, value conversion, Bookkeeping, etc., therefore, when the transaction node B25 initiates a formal service transaction to the public chain, it is also necessary to transfer a specific number of public chain tokens to the public chain network as a reward for maintaining nodes in the public chain.
  • S5 The public chain forwards the service transaction to the transaction target chain according to the address information, and passes the service content returned by the transaction target chain to the initiating parallel chain.
  • the service transaction sent by the transaction initiation chain to the public chain may not be processed in the public chain, and only the public chain network will pass the service transaction to the transaction target chain.
  • the premise is that cross-chain transactions can be conducted directly between the public chain and the transaction target chain.
  • the main process includes that the public chain can extract the address information of the transaction target chain in the service transaction, obtain the position of the transaction target chain, and then send the service transaction to the transaction target chain according to the address of the transaction target chain.
  • the public chain can also perform simple verification on service transactions sent by the transaction initiation chain to avoid data transmission errors.
  • the maintenance node in the public chain network P verifies the 100 Zentong Tb transferred by the transaction node, and forms block data that conforms to the public chain transaction form for the service transaction. And broadcast the formed block data in the public chain network, and then transfer the 100 TST to the Tb account corresponding to network A.
  • the public chain needs to perform distributed storage in the public chain network when transmitting the service transaction, that is, to keep accounts in the public chain network. Therefore, when the service transaction is delivered by the public chain, it is also a transaction that occurs in the public chain network.
  • the types of Zhengtong in circulation are different, and different types of Zhengtong often cannot directly trade. Therefore, in the technical solution provided in this application, in the process of the public chain transmitting the service transaction to the transaction target chain, the Zentong of the transaction initiation chain payment can be locked, and then other public funds of equal value are transferred to the transaction target chain.
  • the chain certificate is used to trigger the transaction target chain to return the service content.
  • the public chain and the transaction target chain may not be able to directly trade.
  • the service transaction can be transmitted through the target parallel chain between the public chain and the transaction target chain. That is, in some embodiments of the present application, as shown in FIG. 7, if the transaction target chain is linked into the public chain through the target in parallel, the transaction target chain generates transaction conditions according to the trigger transaction, and sends the transaction conditions to the public chain.
  • the target parallel chain receives the trigger transaction and synchronously transforms the trigger transaction into a standard form conforming to the transaction target chain;
  • S502 The target parallel chain forwards the trigger transaction to the transaction target chain and allocates the transaction target chain to the service node;
  • S503 The service node generates transaction conditions according to the triggered transaction, and feeds back the transaction conditions to the target parachain;
  • the target parallel chain simultaneously converts the transaction conditions into a standardized form that complies with the public chain, and sends the converted transaction conditions to the public chain.
  • step S5 the specific transaction process of step S5 is that the nodes in the public chain generate block data P25 facing the transaction target chain according to the service transaction, and then use the public chain network China broadcasts block data P25 to form a blockchain.
  • the public chain node also broadcasts the block data P25 to the target node.
  • the target node After receiving the block data P25, the target node synchronously transforms the block data P25 in the same way as the above-mentioned conversion principle, and generates a form that meets the transaction target chain specification form.
  • Block data AP25 and then broadcast the block data AP25 in the transaction target chain to generate a complete blockchain in the transaction target chain.
  • the transaction target chain After receiving the service transaction forwarded by the public chain, the transaction target chain returns the corresponding service content to the public chain network according to the service transaction, so that the public chain network can transfer the service content to the transaction initiation chain.
  • the transaction target chain can first verify the transaction conditions to determine whether the service transaction meets the transaction conditions. For example, whether the number of STOs paid by the service exchange meets the number of STOs required by the transaction target chain, and whether the transaction initiation chain has the transaction qualification required by the transaction target chain. If the transaction target chain verifies that the transaction conditions are qualified, the corresponding service content is returned according to the received service transaction, that is, the corresponding service is provided for the transaction initiation chain.
  • the service content may include specific service content included in the return transaction, for example, a data retrieval report, or another specified number of Zhengtong exchanged.
  • the service node can directly return the result to the transaction node.
  • the service content of the exchange card exchange type the service content can be bridged from the transaction target to the public chain through the parallel conversion method described above, and then bridged from the public chain to the transaction initiation chain, and the transaction is finally completed.
  • the service content may also need to establish a connection between the transaction initiation chain and the transaction target chain to maintain long-term services.
  • the returned service contents may include corresponding network access information, verification codes, account numbers, etc.
  • the public chain does not need to directly participate in the subsequent data transfer process. Only when the service content is returned, the corresponding network access information, verification code, account number, and other information are passed to the transaction initiation chain. Distributed storage of the returned service content in the chain completes the accounting process.
  • the public chain After receiving the service content returned by the transaction target chain, the public chain passes the service content to the transaction initiation chain in a relay manner. After the public chain forwards the service content to the transaction initiation chain, it represents the completion of the transaction. For example, after the public chain network P transfers 100 securities pass Tb to the Tb account corresponding to network A, the public chain network extracts certificates of equal value from the Ta account corresponding to network A after the transaction target chain is verified If the exchange ratio is 2: 1, then 50 securities exchange Ta will be extracted and transferred to the account corresponding to network B to complete the final service transaction.
  • the service transaction includes a transaction initiation chain through a public chain network to transfer a specified number of public chain certificate transactions to a transaction target chain; the public chain provides services according to the address information.
  • the steps of forwarding the transaction to the target chain and passing the service content returned by the target chain to the initiating parallel chain include:
  • S511 The public chain locks the Zenith that will pay for the transaction initiation chain, and initiates a request transaction to the transaction target chain according to the service transaction;
  • the transaction target chain provides a return transaction to the public chain according to the requested transaction
  • S513 The public chain verifies the return transaction. If the return transaction is consistent with the service transaction, the lock state of the transfer certificate pass is released;
  • S514 The public chain transfers the payment of the transaction initiation chain to the transaction target chain, and transfers the service content to the transaction initiation chain.
  • the public chain first locks the transfer transaction, that is, temporarily locks the Zentong of the transaction initiation chain payment, and then initiates a request transaction to the transaction target chain according to the transfer transaction.
  • the request transaction is used to trigger the transaction target chain to return the transaction.
  • the public chain then verifies the content of the return transaction. If the return transaction is consistent with the transfer transaction, the locked state of the transfer transaction is released, so that the public chain initiates the transaction through the chain of payment of the transaction, and transfers it to the transaction target chain, and Transfer the service content to the transaction initiation chain. Locking the transfer transaction through the public chain can verify the content of the transaction in the public chain network to determine whether it has truly met the transaction specifications and protect the transaction rights of both parties in the transaction.
  • S6 The initiation of the parallel chain synchronizes the service content into a standardized form conforming to the transaction initiation chain, and sends it to the transaction initiation chain.
  • the public chain transfers the service content to the initiating parallel chain
  • the data information can be directly sent to the transaction node; if the service content is a return transfer transaction, the parallel chain is initiated Then transfer the transaction from the public chain specification to the form of the transaction initiation chain specification.
  • the transaction node receives the service content and can verify the service content to complete the cross-chain transaction.
  • initiating a parallel chain synchronously converts the service content into a standardized form conforming to the transaction initiation chain, and the steps of sending to the transaction initiation chain include:
  • S601 Initiate a parachain to extract transaction parameters in the service content
  • S602 Initiate a parallel chain to create notification information according to the extracted parameters
  • the initiating parallel chain sends notification information to the transaction nodes on the transaction initiating chain to notify the final transaction result.
  • the initiating parallel chain sends notification information to the transaction nodes to notify the transaction nodes of the final transaction results.
  • the transaction result can include whether the transaction was successful, specific transaction parameters, and blockchain information corresponding to the transaction information. Notification information can reduce the complexity of data accounting and further improve transaction efficiency.
  • this application also provides a parallel chain-based blockchain system.
  • the blockchain system further includes: a transaction initiation chain, a parallel chain, a public chain, and a transaction target chain;
  • the parallel chain is composed of some nodes in the public chain network; the transaction initiation chain and the transaction target chain are connected to the public chain through the parallel chain;
  • the transaction initiation chain is configured to: initiate a query transaction to the public chain by initiating a parallel chain; and create a service transaction based on the query result of the public chain;
  • the public chain is configured to: according to a query transaction, query a transaction target chain in a public chain network, and send a query result to the initiating parallel chain, the query result including address information and transaction conditions of the transaction target chain; the public chain It is also configured to: forward service transactions to the target chain according to the address information, and pass the service content returned by the target chain to the initiating parallel chain;
  • the initiating parallel chain is configured to: synchronously convert service transactions and initiate service transactions to the public chain; and convert service content and send to the transaction initiating chain;
  • the transaction target chain is configured to: The public chain returns the service content.
  • both the transaction initiation chain and the transaction target chain are connected to multiple blockchain networks of the public chain network, so any one of the multiple blockchain networks connected to the public chain network can be As a transaction initiation chain, as long as it has enough tokens to trigger a transaction.
  • each blockchain network can also be used as a transaction target chain, as long as it supports external transactions and can provide specific service content. That is, in the technical solution provided in this application, the transaction initiation chain and the transaction target chain are only for convenience of description, and do not limit the blockchain network.
  • the service content of the Zentong exchange is used as an example to describe the solution.
  • the transaction process is the same as the transaction process of the Zentong exchange, only at the transaction node.
  • the transaction target chain returns the specific transaction content according to the service transaction, such as the query result of the performance of a certain type of communication equipment.
  • the transaction node first initiates a query transaction to the public chain through a parallel chain bridge to enable the public chain to query Transaction target chain, and then return the query result to the transaction node through the parallel chain.
  • the transaction node accepts the transaction conditions, it then initiates a service transaction to the public chain through the parallel chain.
  • the parallel chain synchronizes the service transaction and passes it to the public chain, so that the public chain can continue to transfer the service transaction to the transaction target chain.
  • the transaction target then sends the corresponding service content to the public chain and passes it from the public chain to the parallel chain.
  • the parallel chain synchronizes the service content and sends it to the transaction node to enable the transaction node to obtain the transaction result.
  • the method transfers the transactions in the transaction initiation chain to the transaction target chain through the public chain through parallel chain bridging, realizes cross-chain transactions, and solves the problem that traditional transaction methods do not support cross-chain transactions.

Landscapes

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

Abstract

Provided in the present application are a parallel-chain-based transaction method and a blockchain system. In practical application, a transaction node firstly initiates a query transaction to a common chain through the bridging of a parallel chain, so that the common chain queries a transaction target chain and then returns the query result to the transaction node; after accepting a transaction condition, the transaction node initiates a service transaction to the common chain via the parallel chain, and the parallel chain synchronously transforms the service transaction and transmits same to the common chain, so that the common chain continues to transmit the service transaction to the transaction target chain; and then, the transaction target chain sends corresponding service content to the common chain, and the common chain transmits the service content to the transaction node, so that the transaction node obtains a transaction result. According to the method, a transaction in a transaction initiation chain is transmitted to a transaction target chain through the bridging of a parallel chain by a common chain, thereby realizing cross-chain transacting and solving the problem of a traditional transaction method not supporting cross-chain transacting.

Description

基于平行链的交易方法及区块链***Parallel chain-based transaction method and blockchain system
本申请要求在2018年8月28日提交中国专利局、申请号为201810986825.3、发明名称为“区块链标准应用模型及其应用方法”,以及,在2018年12月7日提交中国专利局、申请号为201811498007.5、发明名称为“基于平行链的交易方法及区块链***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the submission of the China Patent Office on August 28, 2018, application number 201810986825.3, and the invention name as "Blockchain Standard Application Model and Application Method", and on December 7, 2018, the China Patent Office, The priority of the Chinese patent application with application number 201811498007.5 and the invention name "parallel chain-based transaction method and blockchain system" is incorporated herein by reference in its entirety.
技术领域Technical field
本申请涉及区块链技术领域,尤其涉及一种基于平行链的交易方法及区块链***。This application relates to the field of blockchain technology, and in particular, to a parallel chain-based transaction method and a blockchain system.
背景技术Background technique
区块链技术是一种去中心化的***思想,能通过公众共识的方式,创建一个相对客观的抗抵赖数字环境。区块链技术可以保证网络信息一经发布即不可更改,例如,区块链网络中发生一笔交易,区块链网络中的节点会在生成的区块中记载该笔交易的内容,并将区块数据进行全网广播,网络中的其他节点以同步或异步的方式存储该区块数据,形成不可更改的区块链。Blockchain technology is a decentralized system idea that can create a relatively objective anti-repudiation digital environment through public consensus. Blockchain technology can ensure that network information cannot be changed once it is released. For example, if a transaction occurs in the blockchain network, nodes in the blockchain network will record the content of the transaction in the generated block, and Block data is broadcast throughout the network, and other nodes in the network store the block data synchronously or asynchronously to form an unchangeable blockchain.
其中,所述交易具有广义性,不是指传统意义上的“商品买卖”、“物品交换”,而是指区块链网络上的某种或某个数据操作内容或操作结果,例如,在网络上某个区块链节点A发起一个某型号通信设备性能的查询请求a,所述查询请求a对于承担查询服务的区块链节点B来说就是一笔交易。同理。节点B将查询得到的该型号通信设备的性能表b发送给节点A也是一笔交易。信息A、a和信息B、b作为交易信息会被写入区块链的数据区块中。Among them, the transaction has a broad meaning and does not refer to "commodity sale" or "item exchange" in the traditional sense, but refers to the content or operation result of a certain type or data on the blockchain network, for example, on the network On a certain blockchain node A, a query request a for the performance of a certain type of communication equipment is initiated, and the query request a is a transaction for the blockchain node B that undertakes the query service. Similarly. It is also a transaction that the node B sends the performance table b of the communication device of the model obtained to the node A to the node A. Information A, a and information B, b as transaction information will be written into the data block of the blockchain.
现有基于区块链的交易方法,仅可局限于同一个区块链网络内,即多为区块链网络中节点与节点之间的交易,并且每种区块链网络以独有的虚拟货币作为交易媒介。例如基于比特币的交易方法仅适用于比特币区块链网络,以比特币(bitcoin)作为交易虚拟货币;基于以太坊的交易方法只适用于以太坊区块链网络,以以太币作为交易虚拟货币。随着区块链网络技术是发展,越来越多的区块链网络被建立,例如行业链、联盟链以及私链,以完成特定领域内的实际应用。Existing blockchain-based transaction methods can only be limited to the same blockchain network, that is, transactions between nodes in the blockchain network, and each blockchain network uses a unique virtual Currency as a medium of transaction. For example, the Bitcoin-based transaction method is only applicable to the Bitcoin blockchain network, and bitcoin is used as a transaction virtual currency; the Ethereum-based transaction method is only applicable to the Ethereum blockchain network, and Ethereum is used as a transaction virtual currency. With the development of blockchain network technology, more and more blockchain networks have been established, such as industry chains, alliance chains, and private chains to complete practical applications in specific fields.
可见,现有的区块链网络之间基本是相互独立的,不同链之间没有统一有效的机制来通讯和交互。而每种区块链因其应用场景,可提供不同的能力集,区块链网络的内生性决定了不同链提供的能力集之间无法进行对接,即造成数据和应用孤岛效应,限制基于区块链交易方法的应用。It can be seen that the existing blockchain networks are basically independent of each other, and there is no unified and effective mechanism for communication and interaction between different chains. Each type of blockchain can provide different capability sets due to its application scenarios. The endogenous nature of the blockchain network determines that the capability sets provided by different chains cannot be interconnected, which results in an island effect of data and applications, limiting the area-based Application of blockchain transaction method.
发明内容Summary of the Invention
本申请提供了一种基于平行链的交易方法及区块链***,以解决传统交易方法不支持跨链交易,限制基于区块链交易方法应用的问题。This application provides a parallel chain-based transaction method and a blockchain system to solve the problem that traditional transaction methods do not support cross-chain transactions and limit the application of blockchain-based transaction methods.
一方面,本申请提供一种基于平行链的交易方法,包括:In one aspect, this application provides a parallel chain-based transaction method, including:
交易发起链通过发起平行链,向公链发起查询交易;The transaction initiation chain initiates a query transaction to the public chain by initiating a parallel chain;
公链根据查询交易,在公链网络中查询交易目标链,以及向交易发起链发送查询结果,所述查询结果包括交易目标链的交易方式,地址信息和交易条件;The public chain inquires the transaction target chain in the public chain network according to the query transaction, and sends the query result to the transaction initiation chain. The query result includes the transaction mode, address information and transaction conditions of the transaction target chain;
交易发起链根据查询结果创建服务交易;The transaction initiation chain creates a service transaction based on the query results;
发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易;Initiate a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiate service transactions to the public chain;
公链根据地址信息将服务交易转发至交易目标链,以及将交易目标链返回的服务内容传递至发起平行链;The public chain forwards the service transaction to the transaction target chain according to the address information, and passes the service content returned by the transaction target chain to the initiating parallel chain;
发起平行链将服务内容同步转化为符合交易发起链的规范形式,以及发送至交易发起链。The initiation parachain synchronizes the service content into a standardized form that conforms to the transaction initiation chain, and sends it to the transaction initiation chain.
可选的,发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易的步骤还包括:Optionally, the steps of initiating a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiating service transactions to the public chain further include:
平行链节点接收服务交易;以及对服务交易验证和存储,生成符合交易发起链规范形式的完整区块链数据;Parachain nodes receive service transactions; verify and store service transactions, and generate complete blockchain data in the form of a transaction initiation chain specification;
平行链节点对服务交易进行格式转化,生成符合公链规范形式的服务交易;Parachain nodes convert the format of service transactions to generate service transactions in the form of a public chain specification;
平行链节点向公链节点广播服务交易。Parachain nodes broadcast service transactions to public chain nodes.
可选的,公链根据查询交易,在公链网络中查询交易目标链,以及向发起平行链发送查询结果的步骤包括:Optionally, according to the query transaction, the public chain queries the transaction target chain in the public chain network, and sends the query results to the initiating parallel chain including:
公链提取查询交易中的服务类型;The public chain extracts the service type in the query transaction;
公链根据服务类型,在公链网络中,遍历符合服务类型的区块链网络,确定交易目标链并获取交易目标链对应的地址信息;According to the service type, the public chain traverses the blockchain network that matches the service type in the public chain network to determine the transaction target chain and obtain the address information corresponding to the transaction target chain;
公链向符合服务类型的交易目标链发起触发交易;The public chain initiates a trigger transaction to a transaction target chain that conforms to the service type;
交易目标链根据触发交易,生成交易条件,以及将交易条件发送至公链;所述交易条件包括当前交易指定的证通数量。The transaction target chain generates transaction conditions according to the trigger transaction, and sends the transaction conditions to the public chain; the transaction conditions include the number of securities exchanges specified by the current transaction.
可选的,如果交易目标链通过目标平行链接入公链,交易目标链根据触发交易,生成交易条件,以及将交易条件发送至公链的步骤还包括:Optionally, if the transaction target chain is connected to the public chain through the target parallel link, the steps of the transaction target chain according to the triggering transaction, generating the transaction conditions, and sending the transaction conditions to the public chain further include:
目标平行链接收触发交易并将触发交易同步转化为符合交易目标链的规范形式;The target parallel chain receives the trigger transaction and simultaneously converts the trigger transaction into a standardized form that conforms to the target chain of the transaction;
目标平行链将触发交易转发至交易目标链,并由交易目标链分配至服务节点;The target parallel chain forwards the trigger transaction to the transaction target chain, and allocates the transaction target chain to the service node;
服务节点根据触发交易生成交易条件,以及将交易条件反馈给目标平行链;The service node generates transaction conditions according to the triggered transaction, and feeds back the transaction conditions to the target parachain;
目标平行链将交易条件同步转化为符合公链的规范形式,以及将转换后的交易条件发送至公链。The target parallel chain simultaneously converts the transaction conditions into a standardized form that complies with the public chain, and sends the converted transaction conditions to the public chain.
可选的,公链根据查询交易,在公链网络中查询交易目标链,以及向交易发起链发送查询结果的步骤还包括:Optionally, according to the query transaction, the public chain inquires the transaction target chain in the public chain network, and the steps of sending the query result to the transaction initiation chain further include:
公链提取交易条件中当前交易指定的证通数量;The number of STOs specified by the current transaction in the public chain extraction transaction conditions;
公链判断交易节点拥有的证通余额是否满足证通数量;The public chain judges whether the balance of STOs owned by the transaction node meets the number of STOs;
如果交易节点拥有的证通余额满足证通数量,向发起平行链发送查询结果;If the balance of STOs owned by the trading node meets the number of STOs, send the query result to the initiating parallel chain;
如果交易发起链拥有的证通余额不满足证通数量,公链取消向发起平行链发送查询结果;以及向交易节点发送提示信息。If the balance of STOs owned by the transaction initiation chain does not satisfy the number of STOs, the public chain cancels sending query results to the initiating parallel chain; and sends prompt information to the transaction nodes.
可选的,如果交易发起链拥有的证通余额不满足证通数量,所述方法还包括:Optionally, if the balance of STOs owned by the transaction initiation chain does not satisfy the number of STOs, the method further includes:
公链根据查询交易再次在公链网络中查询交易目标链;The public chain inquires the transaction target chain in the public chain network again according to the query transaction;
逐一对比查询到的交易目标链所指定的证通数量,确定指定交易证通数量最小的交易 目标链为优选交易目标链;Compare one by one the number of STOs specified by the query transaction target chain, and determine the transaction target chain with the smallest number of designated STOs as the preferred transaction target chain;
向发起平行链发送优选交易目标链的地址信息和交易条件。Send the address information and transaction conditions of the preferred transaction target chain to the initiating parallel chain.
可选的,发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易的步骤包括:Optionally, the steps of initiating a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiating service transactions to the public chain include:
发起平行链将交易条件转换为符合交易发起链的规范形式,以及将转化后的交易条件,发送至交易发起链中的交易节点;Initiate the parallel chain to convert the transaction conditions into a standardized form that conforms to the transaction initiation chain, and send the converted transaction conditions to the transaction nodes in the transaction initiation chain;
交易节点确定是否接受交易条件;Trading nodes determine whether to accept trading conditions;
在交易节点接受交易条件后,交易节点通过发起平行链向公链发起服务交易。After the transaction node accepts the transaction conditions, the transaction node initiates a service transaction to the public chain by initiating a parallel chain.
可选的,发起平行链将服务内容同步转化为符合交易发起链的规范形式,以及发送至交易发起链的步骤包括:Optionally, the initiation of a parallel chain synchronously converts the service content into a standardized form that conforms to the transaction initiation chain, and the steps of sending to the transaction initiation chain include:
发起平行链提取服务内容中的交易参数;Initiate the parachain to extract the transaction parameters in the service content;
发起平行链根据提取的参数创建通知信息;Initiate a parachain to create notification information based on the extracted parameters;
发起平行链将通知信息发送给交易发起链上的交易节点,通知最终交易结果。The initiating parallel chain sends notification information to the transaction nodes on the transaction initiating chain to notify the final transaction result.
可选的,所述服务交易包括交易发起链通过公链网络,向交易目标链转账交易条件指定数量的公链证通;公链根据地址信息将服务交易转发至目标链,以及将目标链返回的服务内容传递至发起平行链的步骤包括:Optionally, the service transaction includes a transaction initiation chain that transfers a specified number of public chain tokens through the public chain network to the transaction target chain; the public chain forwards the service transaction to the target chain according to the address information, and returns the target chain The steps for delivering the content of the service to the initiation of the parachain include:
公链对将交易发起链支付的证通进行锁定,以及根据服务交易,向交易目标链发起请求交易;The public chain locks the Zhengtong that will pay for the transaction initiation chain, and initiates a request transaction to the transaction target chain according to the service transaction;
交易目标链根据请求交易,向公链提供返回交易;The transaction target chain provides a return transaction to the public chain according to the requested transaction;
公链验证返回交易,如果返回交易与服务交易一致,解除转账证通的锁定状态;The public chain verifies the return transaction. If the return transaction is consistent with the service transaction, the lock status of the transfer certificate pass is released;
公链将交易发起链支付的证通,转账至交易目标链,以及将服务内容传递至交易发起链。The public chain transfers the payment of the transaction initiation chain to the transaction target chain, and transfers the service content to the transaction initiation chain.
另一方面,本申请还提供一种基于平行链的区块链***,包括:交易发起链、平行链、公链以及交易目标链;所述平行链由公链网络中的部分节点组成;所述交易发起链和交易目标链通过平行链连接公链;On the other hand, this application also provides a parallel chain-based blockchain system, including: a transaction initiation chain, a parallel chain, a public chain, and a transaction target chain; the parallel chain is composed of some nodes in the public chain network; The transaction initiation chain and the transaction target chain are connected to the public chain through a parallel chain;
所述交易发起链被配置为:通过发起平行链,向公链发起查询交易;以及根据公链的查询结果创建服务交易;The transaction initiation chain is configured to: initiate a query transaction to the public chain by initiating a parallel chain; and create a service transaction based on the query result of the public chain;
所述公链被配置为:根据查询交易,在公链网络中查询交易目标链,以及向发起平行链发送查询结果,所述查询结果包括交易目标链的地址信息和交易条件;The public chain is configured to: according to a query transaction, query a transaction target chain in the public chain network, and send a query result to the initiating parallel chain, the query result including address information and transaction conditions of the transaction target chain;
所述发起平行链被配置为:同步转化服务交易,并向公链发起服务交易;以及,将服务内容进行转化,并发送至交易发起链;The initiating parallel chain is configured to: synchronously convert service transactions and initiate service transactions to the public chain; and convert service content and send to the transaction initiation chain;
所述公链还被配置为:根据地址信息将服务交易转发至目标链,以及将目标链返回的服务内容传递至发起平行链;The public chain is also configured to: forward service transactions to the target chain according to the address information, and pass the service content returned by the target chain to the initiating parallel chain;
所述交易目标链被配置为:根据服务交易向公链返回服务内容。The transaction target chain is configured to return service content to the public chain according to a service transaction.
由以上技术方案可知,本申请提供一种基于平行链的交易方法及区块链***,所述方法在实际应用中,交易节点先通过平行链桥接向公链发起查询交易,以使公链查询交易目标链,再将查询到结果通过平行链返回给交易节点。交易节点在接受交易条件后,再通过平行链向公链发起服务交易,平行链对服务交易进行同步转化,传递给公链,以使公链将服务交易继续传递给交易目标链。交易目标再将对应的服务内容发送给公链,以及由公链 传递至平行链,平行链将服务内容进行同步转化,并发送给交易节点,以使交易节点获得交易的结果。所述方法通过平行链桥接,将交易发起链中的交易通过公链传递给交易目标链,实现跨链交易,解决传统交易方法不支持跨链交易的问题。It can be known from the above technical solutions that the present application provides a parallel chain-based transaction method and a blockchain system. In practical applications, the transaction node first initiates a query transaction to the public chain through a parallel chain bridge to enable the public chain to query Transaction target chain, and then return the query result to the transaction node through the parallel chain. After the transaction node accepts the transaction conditions, it then initiates a service transaction to the public chain through the parallel chain. The parallel chain synchronizes the service transaction and passes it to the public chain, so that the public chain can continue to transfer the service transaction to the transaction target chain. The transaction target then sends the corresponding service content to the public chain and the public chain to the parallel chain. The parallel chain synchronizes the service content and sends it to the transaction node to enable the transaction node to obtain the transaction result. The method transfers the transactions in the transaction initiation chain to the transaction target chain through the public chain through parallel chain bridging, realizes cross-chain transactions, and solves the problem that traditional transaction methods do not support cross-chain transactions.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solution of the present application more clearly, the drawings needed to be used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, without any creative effort, Other drawings can be obtained from these drawings.
图1为本申请一种基于平行链的交易方法流程示意图;FIG. 1 is a schematic flowchart of a parallel chain-based transaction method of the present application;
图2为本申请查询交易流程示意图;FIG. 2 is a schematic diagram of a query transaction process of this application;
图3为本申请公链验证交易节点证通数量流程示意图;FIG. 3 is a schematic flow chart of the number of token exchanges for verifying the transaction nodes of the public chain of this application;
图4为本申请交易节点证通余额不满足证通数量的流程示意图;FIG. 4 is a schematic flow chart of a transaction node's balance in the application that does not satisfy the amount of the token exchange;
图5为本申请平行链节点区块数据同步转化的流程示意图;FIG. 5 is a schematic flowchart of synchronous conversion of data of parallel chain node blocks in this application;
图6为本申请发起平行链返回交易条件的流程示意图;FIG. 6 is a schematic flowchart of a process of initiating a parallel chain return transaction in this application;
图7为本申请公链触发交易目标链生成交易条件的流程示意图;FIG. 7 is a schematic flowchart of generating a transaction condition by triggering a transaction target chain of a public chain of the present application;
图8为本申请公链锁定支付的流程示意图;FIG. 8 is a schematic flowchart of a locked payment of a public chain of the present application;
图9为本申请发起平行链生成通知信息的流程示意图;FIG. 9 is a schematic flowchart of generating notification information for initiating a parallel chain application;
图10为本申请一种基于平行链的交易区块链***的结构示意图。FIG. 10 is a schematic structural diagram of a parallel blockchain-based transaction blockchain system of the present application.
具体实施方式detailed description
下面将详细地对实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下实施例中描述的实施方式并不代表与本申请相一致的所有实施方式。仅是与权利要求书中所详述的、本申请的一些方面相一致的***和方法的示例。The embodiments will be described in detail below, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following examples do not represent all implementations consistent with this application. These are merely examples of systems and methods consistent with some aspects of the application as detailed in the claims.
在本申请提供的技术方案中,区块链网络是指具有去中心化应用架构的点对点(P2P)网络,所述区块链网络能够进行分布式存储、公共共识、数字加密、交易记账以及验证。即涵盖了分布式技术、密码学、P2P网络架构以及各种可能被应用的共识算法的交易平台。区块链或区块链信息是指在区块链网络中发生交易时,根据交易信息生成的记账信息,即多笔具体的交易组成一个区块,多个区块形成一条有序区块链。区块链网络中,包括相互建立点对点网络连接的节点,每一个节点都配置有相应的共识机制,如智能合约,并且具有足够的运算能力,以进行交易验证和记账程序。节点上还具有符合某种统一标准的接口规范,以实现通过接口规范接入更多的节点或者其他类型的区块链网络。In the technical solution provided in this application, a blockchain network refers to a peer-to-peer (P2P) network with a decentralized application architecture. The blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification. That is, a trading platform that covers distributed technology, cryptography, P2P network architecture, and various consensus algorithms that may be applied. Blockchain or blockchain information refers to the accounting information generated based on transaction information when a transaction occurs in the blockchain network, that is, multiple specific transactions form a block, and multiple blocks form an ordered block. chain. Blockchain networks include nodes that establish peer-to-peer network connections with each other. Each node is configured with a corresponding consensus mechanism, such as a smart contract, and has sufficient computing power to perform transaction verification and accounting procedures. The nodes also have an interface specification that conforms to a certain unified standard to achieve access to more nodes or other types of blockchain networks through the interface specification.
在本申请中,所提及的公链、交易发起链、交易目标链以及平行链,均是指符合区块链技术的不同区块链网络。本申请中除另有说明外,公链、交易发起链、交易目标链以及平行链均是指相应的网络,即公链网络、交易发起链网络、交易目标链网络以及平行链网络。本申请提供的技术方案中,公链网络作为布置在全网的基础平台,其节点接口接入多个区块链网络,如基于公链接口规范搭建的行业链、联盟链以及私有链。每个区块链网络可以作为一个开发平台,并为其网络内部提供相应的服务。其中,公链定义和规范有标准的接口和方式,以便于其他区块链,如交易发起链和交易目标链,进行网络对接。本申请中公链具有支持跨链中介的能力,还具有去中心化的应用和智能合约化能力。In this application, the public chain, transaction initiation chain, transaction target chain, and parallel chain mentioned all refer to different blockchain networks that conform to the blockchain technology. Unless otherwise stated in this application, the public chain, the transaction initiation chain, the transaction target chain, and the parallel chain all refer to the corresponding networks, namely the public chain network, the transaction initiation chain network, the transaction target chain network, and the parallel chain network. In the technical solution provided in this application, the public chain network is used as a basic platform arranged on the entire network, and its node interfaces are connected to multiple blockchain networks, such as industry chains, alliance chains, and private chains based on public link interface specifications. Each blockchain network can serve as a development platform and provide corresponding services within its network. Among them, the definition and specification of the public chain have standard interfaces and methods to facilitate network interconnection with other blockchains, such as the transaction initiation chain and the transaction target chain. The public chain in this application has the ability to support cross-chain intermediation, as well as decentralized applications and smart contracting capabilities.
交易发起链和交易目标链是指接入公链网络中的区块链,即在本申请中,公链提供基础平台,交易发起链和交易目标链作为接入的网络,具有各自的功能和服务。交易发起链和交易目标链可以是基于公链网络标准和接口规范搭建的区块链网络,即交易发起链和交易目标链可以直接与公链网络之间进行通信和服务对接。交易发起链和交易目标链也可以是各自独立的网络,如现有的区块链网络比特币、以太坊等,或者,某些行业开发的行业链和联盟链,甚至是为了达到某种服务需求而搭建的私有链。这些现有区块链、行业链、联盟链以及私有链,一般不能直接相互交易甚至不能与公链网络之间相互交易,因此,本申请中可通过平行链来连接公链与其他网络。The transaction initiation chain and the transaction target chain refer to the block chain in the public chain network, that is, in this application, the public chain provides the basic platform, and the transaction initiation chain and the transaction target chain are the access networks, each with its own functions and service. The transaction initiation chain and transaction target chain can be a blockchain network based on public chain network standards and interface specifications, that is, the transaction initiation chain and transaction target chain can directly communicate with and connect to the public chain network. The transaction initiation chain and transaction target chain can also be independent networks, such as the existing blockchain network Bitcoin, Ethereum, etc., or industry chains and alliance chains developed by some industries, or even to achieve a certain service Private chains built on demand. These existing blockchains, industry chains, alliance chains, and private chains generally cannot directly trade with each other or even with the public chain network. Therefore, in this application, the public chain and other networks can be connected through parallel chains.
平行链可以由公链网络中的部分节点组成,通过平行链可以对公链与其他不能直接交易的网络之间进行桥接。本申请中,对于不能直接交易的网络,每一个区块链网络都对应一个平行链,平行链被设置为具有对应区块链网络的完整功能,并且能够对区块链网络中的交易进行同步转化,并传递到公链网络中。因此,在本申请提供的技术方案中,平行链可以确定为对应区块链网络的镜像,而为了便于描述,对应区块链网络成为母链。在本申请中,平行链由公链网络中的部分节点组成,并且这些节点也是母链中的节点,以进行交易信息的传递。Parachains can be composed of some nodes in the public chain network, and through the parachains, the public chain can be bridged with other networks that cannot be directly traded. In this application, for networks that cannot be directly traded, each blockchain network corresponds to a parachain, and the parachain is set to have the complete function of the corresponding blockchain network, and can synchronize transactions in the blockchain network Transformation and transfer to the public chain network. Therefore, in the technical solution provided in this application, the parallel chain can be determined as a mirror image of the corresponding blockchain network, and for convenience of description, the corresponding blockchain network becomes the parent chain. In this application, the parachain is composed of some nodes in the public chain network, and these nodes are also nodes in the parent chain to transfer transaction information.
基于上述组成部分,公链在实际应用中可提供跨链中继,完成交易验证,数据证明,资产转移和智能合约执行等工作。公链统一对外的接口规范,可使其他区块链网络能够快速接入公链网络。公链还提供基础的区块链平台能力,即快速完成方案部署和验证,完成在公链网络中的分布式存储和记账程序。另外,作为基础平台,公链还可以提供公共开发功能,从而一次性完成多个平行链智能合约协同开发和部署。Based on the above components, the public chain can provide cross-chain relays in practical applications, completing transactions verification, data certification, asset transfer, and smart contract execution. The public chain's unified external interface specifications enable other blockchain networks to quickly access the public chain network. The public chain also provides the basic blockchain platform capabilities, which is to quickly complete the deployment and verification of the scheme, and to complete the distributed storage and accounting procedures in the public chain network. In addition, as a basic platform, the public chain can also provide public development functions, thereby completing the collaborative development and deployment of multiple parallel chain smart contracts at one time.
公链除了记录自己的区块链信息外,还可以用于存储相应跨链交易的信息摘要,即交易摘要。通过格式化的交易数据记录跨链交易的相关内容。同时,为了减少对公链上分布式存储空间的占用,公链在记录某些信息时,还可以通过特定的压缩算法记录第三方区块链信息。示例地,在公链中形成和存储的区块数据可以包括以下内容:区块标识(如序号、时间戳、区块hash值以及前区块hash值)、区块归属(即区块生成者)、区块其他信息(如随机值、难度值以及附加信息等)、区块权重、信息摘要(如交易树、状态树、收据树以及数据树等)、交易费用、奖励、大小等。In addition to recording its own blockchain information, the public chain can also be used to store the information summary of the corresponding cross-chain transaction, that is, the transaction summary. Record the relevant content of cross-chain transactions through formatted transaction data. At the same time, in order to reduce the occupation of distributed storage space on the public chain, when the public chain records certain information, it can also record third-party blockchain information through a specific compression algorithm. By way of example, the block data formed and stored in the public chain can include the following: block identifiers (such as serial numbers, timestamps, block hash values, and previous block hash values), block ownership (that is, block producers) ), Other information of the block (such as random value, difficulty value and additional information, etc.), block weight, information summary (such as transaction tree, status tree, receipt tree, data tree, etc.), transaction costs, rewards, size, etc.
参见图1,为本申请一种基于平行链的交易方法流程示意图。由图1可知,本申请提供的交易方法包括以下步骤:Referring to FIG. 1, a schematic flowchart of a parallel chain-based transaction method of the present application is shown. It can be known from FIG. 1 that the transaction method provided in this application includes the following steps:
S1:交易发起链通过发起平行链,向公链发起查询交易。S1: The transaction initiation chain initiates a query transaction to the public chain by initiating a parallel chain.
本申请提供的技术方案中,所述交易发起链发起查询交易的操作,是通过交易发起链中的一个或多个节点来完成,即在本申请中,作为交易发起链一方中,发起交易的节点称为交易节点。交易节点作为一个网络节点,可以是计算机、服务器等具有数据处理和运算能力的终端设备。交易节点根据自己的服务需求,可以创建一个服务交易,以及一个查询交易。其中,查询交易,应包括交易所需要的服务类型信息,以便确定能够提供该服务的交易目标链或交易目标链中的服务节点。另外,查询交易中还可以带有其他附加查询信息,例如,可接受的交易条件、目标链所处的位置范围等。In the technical solution provided in this application, the operation of initiating a query transaction by the transaction initiation chain is completed by one or more nodes in the transaction initiation chain, that is, in this application, as a party of the transaction initiation chain, the transaction is initiated. Nodes are called transaction nodes. As a network node, a transaction node can be a computer, server, or other terminal device with data processing and computing capabilities. Transaction nodes can create a service transaction and a query transaction according to their service needs. The query transaction should include the type of service information required by the exchange in order to determine the transaction target chain or service nodes in the transaction target chain that can provide the service. In addition, the query transaction can also carry other additional query information, such as acceptable transaction conditions, the location range of the target chain, and so on.
由于本申请中,查询交易基本不涉及相应的具体交易,如证通转账、交易结果数据传递等。因此,交易发起连中的节点可以发起两种类型的查询交易,其一为仅发送数据信息, 即将交易节点所需要的服务内容通过传递信息数据的方式,将查询交易发送给公链网络,所传递的信息数据能够被公链直接识别,因此在这种情况下,平行链仅需将查询交易所对应的信息数据转发给公链网络中的节点即可。这种查询交易的方式,数据传递过程最简单,也具有最高的传递效率。Because in this application, the inquiry transaction basically does not involve the corresponding specific transaction, such as the transfer of the Zhengtong account and the transfer of transaction result data. Therefore, the nodes in the transaction initiation link can initiate two types of query transactions. One is to send data information only, that is, the service content required by the transaction node sends the query transaction to the public chain network by transmitting information data. The information data transmitted can be directly identified by the public chain, so in this case, the parallel chain only needs to forward the information data corresponding to the query exchange to the nodes in the public chain network. This query transaction method has the simplest data transfer process and the highest transfer efficiency.
交易发起链节点发起查询交易的第二种方式为,交易节点按照交易发起链的区块链交易规范形式,生成一个指定形式的交易。即查询交易是一种特殊交易,其交易形式与交易发起链中的普通交易形式相同,但需要特殊约定具体的交易方式,例如带有查询交易智能合约信息的交易,或者约定转账的证通数量为0的交易。交易节点根据实际交易需求生成查询交易,具体表现为创建一个包含查询交易并进行广播,由验证节点生成包含该交易的区块数据,并将该区块数据在交易发起链中进行广播以形成完整的区块链。区块数据再广播至发起平行链节点后,平行链中的节点一方面对区块数据进行验证存储,形成区块链。另一方面还对区块数据进行同步转化,以形成符合公链规范形式的交易,并向公链网络中的节点广播,再由公链维护节点打包交易进入新的区块数据。通过这种方式发起查询交易,可以在交易发起链和公链之间进行跨链交易,并且可以在交易发起后,附带一定数量的证通作为公链的查询奖励,因此可以调动公链中更多的节点参与查询交易过程,增加交易验证和结果查询的效率。The second way for a transaction initiation chain node to initiate a query transaction is that the transaction node generates a transaction of a specified form in accordance with the blockchain transaction specification form of the transaction initiation chain. That is, the inquiry transaction is a special transaction, and the transaction form is the same as the ordinary transaction form in the transaction initiation chain, but it requires special agreement on specific transaction methods, such as transactions with query transaction smart contract information, or the number of STOs that are agreed to transfer. 0 transactions. A transaction node generates a query transaction according to the actual transaction requirements. The specific performance is to create a query transaction and broadcast it. The verification node generates block data containing the transaction and broadcasts the block data in the transaction initiation chain to form a complete transaction. Blockchain. After the block data is broadcast to the initiating parachain node, the nodes in the parachain on the one hand verify and store the block data to form a blockchain. On the other hand, the block data is also synchronously transformed to form transactions that conform to the specifications of the public chain, and broadcast to the nodes in the public chain network, and the public chain maintenance nodes package the transactions into the new block data. By initiating a query transaction in this way, cross-chain transactions can be conducted between the transaction initiation chain and the public chain, and after the transaction is initiated, a certain number of Zhengtong can be attached as the query reward of the public chain, so the public chain can be mobilized. Many nodes participate in the query transaction process, increasing the efficiency of transaction verification and result query.
另外,在本申请提供的技术方案中,交易节点所要进行的交易一般包括两种类型,即证通兑换和信息服务。其中,证通兑换是指用一种类型的证通兑换等价值的另一种类型的证通;信息服务是指交易发起链向某一交易目标链转账一定数量的证通,交易目标链向交易发起链发送相应的信息数据的交易过程。In addition, in the technical solution provided by this application, the transactions to be performed by the transaction node generally include two types, namely, the exchange of information and information services. Among them, the exchange of securities exchange refers to the exchange of one type of securities exchange with another type of securities exchange, etc .; information service refers to the transaction initiation chain to transfer a certain amount of securities exchange to a transaction target chain, the transaction target chain to The transaction initiation chain sends the corresponding information data to the transaction process.
本申请实施例先以证通兑换为例,接入公链网络P的区块链网络有5个,分别为区块链网络A~E,其中,网络B包含100个节点,分别记为B001~B100。在实际应用中,网络B中的节点B25需要使用100个证通Tb,兑换等价值的证通Ta,则节点B25作为交易节点,其根据需要创建查询交易并形成区块数据BC25,查询交易中包含的服务类型为:证通兑换,节点B25可将查询交易先在网络B中进行广播,即通过节点间的相互传递,将区块数据BC25广播至其他节点,如B24和B26,网络B中的其他节点对查询交易的区块数据BC25进行分布式存储,完成记账。In the embodiment of the present application, firstly, the exchange of SEC is used as an example. There are five blockchain networks connected to the public chain network P, which are the blockchain networks A to E. Among them, the network B includes 100 nodes, which are denoted as B001. ~ B100. In practical applications, node B25 in network B needs to use 100 STOs Tb to exchange for STOs of equal value. Then, node B25 is used as a transaction node, which creates query transactions and forms block data BC25 as needed. The types of services included are: exchange of tokens. Node B25 can broadcast the query transaction in network B first, that is, broadcast the block data BC25 to other nodes, such as B24 and B26. The other nodes in the query store distributed data BC25 for distributed storage to complete bookkeeping.
当区块数据BC25被广播至平行链节点R01,平行链节点R01先进行与交易发起链中其他节点形式相同的验证和存储过程,生成用于记账的完整区块链;再对区块数据BC25进行同步转化,如提取交易信息、转化交易格式、或者根据公链的区块数据模板将交易信息写入新的区块数据中,生成符合公链规范形式的区块数据GBC25。平行链节点R01再将区块数据GBC25在公链中进行广播,以生成符合公链规范形式的区块链。When the block data BC25 is broadcast to the parachain node R01, the parachain node R01 first performs the same verification and storage process as the other nodes in the transaction initiation chain to generate a complete blockchain for bookkeeping; BC25 performs synchronous conversion, such as extracting transaction information, converting transaction format, or writing transaction information into new block data according to the block data template of the public chain to generate block data GBC25 that conforms to the specifications of the public chain. Parallel chain node R01 broadcasts the block data GBC25 on the public chain to generate a blockchain that conforms to the public chain specification form.
S2:公链根据查询交易,在公链网络中查询交易目标链,以及向交易发起链发送查询结果,所述查询结果包括交易目标链的交易方式,地址信息和交易条件。S2: The public chain inquires the transaction target chain in the public chain network according to the query transaction, and sends the query result to the transaction initiation chain. The query result includes the transaction mode, address information, and transaction conditions of the transaction target chain.
本申请提供的技术方案中,公链在接收到交易发起链发起的查询交易后,提取查询交易中的服务类型信息,并根据服务类型信息在公链网络中进行查询,找到能够提供所述服务类型信息对应服务的区块链网络作为交易目标链。同样,作为交易目标链的网络中也包含多个节点,即多个节点组成交易目标链。因此,交易目标链中所能够提供的服务的可以是一个或多个节点。在本申请提供的技术方案中,公链查询到的结果,可以是交易目标链, 也可以是交易目标链中能够提供服务的节点。在本申请提供的技术方案中,优选公链查询到的结果是交易目标链的方式,以便快速确定交易目标链,避免交易目标链不支持公链查询的情况。In the technical solution provided in this application, after receiving a query transaction initiated by the transaction initiation chain, the public chain extracts service type information in the query transaction, and performs a query in the public chain network according to the service type information to find that it can provide the service. The blockchain network of the type information corresponding service serves as the transaction target chain. Similarly, the network as a transaction target chain also includes multiple nodes, that is, multiple nodes constitute a transaction target chain. Therefore, the services that can be provided in the transaction target chain can be one or more nodes. In the technical solution provided in the present application, the results queried by the public chain can be the transaction target chain or the nodes that can provide services in the transaction target chain. In the technical solution provided by the present application, it is preferred that the result of the public chain query is a method of transaction target chain, in order to quickly determine the transaction target chain, and avoid the situation that the transaction target chain does not support public chain query.
进一步地,如图2所示,公链根据查询交易,在公链网络中查询交易目标链,以及向发起平行链发送查询结果的步骤包括:Further, as shown in FIG. 2, the steps of the public chain inquiring the transaction target chain in the public chain network according to the query transaction, and sending the query result to the initiating parallel chain include:
S201:公链提取查询交易中的服务类型;S201: The public chain extracts the service type in the query transaction;
S202:公链根据服务类型,在公链网络中,遍历符合服务类型的区块链网络,确定交易目标链并获取交易目标链对应的地址信息;S202: According to the service type, the public chain traverses the blockchain network that conforms to the service type in the public chain network to determine the transaction target chain and obtain the address information corresponding to the transaction target chain;
S203:公链向符合服务类型的交易目标链发起触发交易;S203: The public chain initiates a trigger transaction to a transaction target chain that conforms to the service type;
S204:交易目标链根据触发交易,生成交易条件,以及将交易条件发送至公链;所述交易条件包括当前交易指定的证通数量。S204: The transaction target chain generates transaction conditions according to the triggered transaction, and sends the transaction conditions to the public chain; the transaction conditions include the number of securities exchanges specified by the current transaction.
本实施例中,在公链网络中进行交易目标链的查询,可以由公链中配置的智能合约完成,也可以由公链网络中的去中心化应用完成。具体查询过程,可以是在公链网络中存储的接入区块链网络的信息中查询。这样的查询方式,需要公链在有区块链网络接入时,通过接入节点通信,获取接入的区块链网络登记的信息,登记的信息可以包括:能够提供的服务类型,能够进行兑换的证通类型,以及进行交易的方式、交易的条件等。公链中的程序对这些登记信息与对应的网络地址进行对应存储,并在全网进行广播。In this embodiment, querying the transaction target chain in the public chain network can be completed by a smart contract configured in the public chain, or it can be completed by a decentralized application in the public chain network. The specific query process may be querying the information of the access to the blockchain network stored in the public chain network. This query method requires that the public chain obtains the registered information of the accessed blockchain network through the communication of the access node when the blockchain network accesses. The registered information may include: the types of services that can be provided, and the The types of exchanges that are exchanged, as well as the methods of conducting transactions and the conditions of transactions. Programs in the public chain store these registration information and corresponding network addresses and broadcast them on the entire network.
查询过程还可以通过以下形式完成,即公链在接收到查询交易后,在全网广播一次用于服务提供的交易。接入公链的区块链网络在接收到服务提供的交易后,可以针对该交易进行相应的回复,回复的信息中,可以包括交易条件和交易方式。公链选择回复最早的区块链网络作为交易目标链,或者对交易条件进行判断确定最适宜的(如需要证通数量最少的,或者交易证通流通性最好的)交易目标链。The query process can also be completed in the following form. After the public chain receives the query transaction, it broadcasts a transaction for service provision on the entire network. After receiving the transaction provided by the service, the blockchain network connected to the public chain can respond accordingly to the transaction. The response information can include transaction conditions and transaction methods. The public chain chooses to reply to the earliest blockchain network as the transaction target chain, or judges the transaction conditions to determine the most suitable (such as the least number of STOs, or the best liquidity of STOs).
公链在查询到交易目标链以后,可以获取交易目标链的地址信息以及交易方式、交易条件等信息,作为查询结果。显然,公链可以从公链存储的登记信息中获取上述信息,也可以通过将查询交易转发给交易目标链的方式,由交易目标链一方提供该信息。为了增加查询效率,本申请优选通过公链存储的登记信息的方式获取上述信息。公链在获取到所述交易目标链信息后,可以将得到的目标链信息发送给交易发起链,以使交易发起链根据交易目标链信息确定是否与其进行交易。After querying the transaction target chain, the public chain can obtain the address information of the transaction target chain, the transaction method, and the transaction conditions as the query result. Obviously, the public chain can obtain the above information from the registration information stored in the public chain, or it can provide the information by one side of the transaction target chain by forwarding the query transaction to the transaction target chain. In order to increase the query efficiency, the present application preferably obtains the above information by means of registration information stored in the public chain. After the public chain obtains the transaction target chain information, it can send the obtained target chain information to the transaction initiation chain, so that the transaction initiation chain can determine whether to trade with it according to the transaction target chain information.
本申请提供的技术方案中,所述目标链地址,为交易目标链在公链网络中的登记地址,或者,交易目标链接入公链时,提供接口的节点地址。交易方式为交易目标链设定的交易时间、区块链信息格式(模板)、支持交易的证通类型等。交易条件不仅可以包括提供服务所需要收取的指定证通数量,而且可以包括对于交易发起链的资质要求,例如所拥有的证通数量要求,交易发起链的信誉评分等。In the technical solution provided in the present application, the target chain address is a registered address of the transaction target chain in the public chain network, or the node address of the interface provided when the transaction target is linked into the public chain. The transaction method is the transaction time set by the transaction target chain, the block chain information format (template), and the type of stock exchange that supports the transaction. The transaction conditions may include not only the specified number of STOs required to provide services, but also the qualification requirements for the transaction initiation chain, such as the number of STOs owned and the credit score of the transaction initiation chain.
以上述证通兑换交易为例,公链P在接收到查询交易后,提取服务内容为通过证通Tb兑换证通Ta,则在公链网络中查找能够提供兑换证通Ta的区块链网络A作为交易目标链,再获取网络A的地址信息,以及网络A所要求的交易条件,例如要求交易节点至少拥有1000个证通Tb,网络A支持的交易方式,如是否可以通过证通Tb直接兑换证通Ta等。公链将这些信息进行打包,作为查询结果发送给交易节点B25。需要说明的是,由于此处公链与交易发起链之间的传递的是查询结果,因此,为了提高交易效率,可以通过数据传递的方 式直接将查询结果发送给交易节点。Taking the above-mentioned Zentong exchange transaction as an example, after receiving the inquiry transaction, the public chain P extracts the service content to exchange for Zentong Ta through Zentong Tb, and then looks for a blockchain network in the public chain network that can provide exchange for Zentong Ta. As a transaction target chain, A then obtains the address information of network A and the transaction conditions required by network A. For example, transaction nodes are required to have at least 1,000 STOs Tb. The transaction methods supported by Network A, such as whether they can directly pass STO Exchange card pass Ta and so on. The public chain packs this information and sends it to the transaction node B25 as the query result. It should be noted that, because the query result is transmitted between the public chain and the transaction initiation chain, in order to improve the transaction efficiency, the query result can be sent directly to the transaction node by means of data transfer.
在本申请的部分实施例中,如图3所示,公链根据查询交易,在公链网络中查询交易目标链,以及向交易发起链发送查询结果的步骤还包括:In some embodiments of the present application, as shown in FIG. 3, the steps of the public chain inquiring the transaction target chain in the public chain network and sending the query result to the transaction initiation chain according to the query transaction further include:
S211:公链提取交易条件中当前交易指定的证通数量;S211: The number of STOs specified by the current transaction in the public chain extraction transaction conditions;
S212:公链判断交易节点拥有的证通余额是否满足证通数量;S212: The public chain judges whether the balance of the SZT owned by the transaction node meets the number of SZT;
S213:如果交易节点拥有的证通余额满足证通数量,向发起平行链发送查询结果;S213: If the balance of the SZT owned by the trading node meets the number of SZT, send the query result to the initiating parallel chain;
S214:如果交易发起链拥有的证通余额不满足证通数量,公链取消向发起平行链发送查询结果;以及向交易节点发送提示信息。S214: If the balance of the SZT owned by the transaction initiation chain does not satisfy the number of SZT, the public chain cancels sending the query result to the initiating parallel chain; and sends a prompt message to the transaction node.
由以上步骤可知,本实施例可以通过公链对交易发起链进行资质验证,以通过证通余额确定交易发起链是否有能力完成服务交易。如果交易节点拥有的证通余额满足证通数量,再向发起平行链发送查询结果。否则,判断交易发起链不具有完成交易的证通数量。此时公链可以取消向发起平行链发送查询结果,并向交易节点发送提示信息,例如,“您的证通余额不足,无法完成交易”等。另外,对于余额数量不足的情况,还可以继续在公链中查找其他交易目标链,以找到符合证通余额的交易目标链。即,如图4所示,如果交易发起链拥有的证通余额不满足证通数量,所述方法还包括:It can be known from the above steps that in this embodiment, the transaction initiation chain can be verified through the public chain to determine whether the transaction initiation chain is capable of completing the service transaction through the balance of the securities pass. If the balance of STOs owned by the trading node meets the number of STOs, the query result is sent to the initiating parallel chain. Otherwise, it is judged that the transaction initiation chain does not have the number of securities pass to complete the transaction. At this time, the public chain can cancel sending query results to the initiating parallel chain and send prompt information to the transaction nodes, for example, "your SEC balance is insufficient to complete the transaction". In addition, in the case of insufficient balance, you can continue to look for other transaction target chains in the public chain to find a transaction target chain that matches the balance of the SEC. That is, as shown in FIG. 4, if the balance of STOs owned by the transaction initiation chain does not satisfy the number of STOs, the method further includes:
S215:公链根据查询交易再次在公链网络中查询交易目标链;S215: The public chain inquires the transaction target chain in the public chain network again according to the query transaction;
S216:逐一对比查询到的交易目标链所指定的证通数量,确定指定交易证通数量最小的交易目标链为优选交易目标链;S216: Compare one by one the number of the specified securities of the transaction target chain, and determine the transaction target chain with the smallest number of the specified transaction securities as the preferred transaction target chain;
S217:向发起平行链发送优选交易目标链的地址信息和交易条件。S217: Send the address information and transaction conditions of the preferred transaction target chain to the initiating parallel chain.
本实施例中,当公链中接入的区块链网络较多时,可能出现对于同一个查询交易有多个区块链可以完成该交易。因此,可以通过公链节点根据服务类型在所有接入公链的区块链网络中,确定交易条件最容易达到的交易目标链,例如需要转账的证通数量最少的交易条件,从而保证交易发起链能够顺利完成跨链交易。In this embodiment, when there are many blockchain networks connected in the public chain, there may be multiple blockchains for the same query transaction to complete the transaction. Therefore, according to the type of service, the public chain node can determine the transaction target chain that the transaction conditions are the easiest to reach in all the blockchain networks connected to the public chain, such as the transaction conditions with the least number of STOs that need to be transferred to ensure the transaction initiation The chain can successfully complete cross-chain transactions.
S3:交易发起链根据查询结果创建服务交易。S3: The transaction initiation chain creates a service transaction based on the query results.
本申请提供的技术方案中,交易发起链在接收到公链返回的查询结果后,可以对查询结果进行分析,提取查询结果中的交易方式和交易条件。其中,针对交易方式,交易发起链可以确定是否支持交易目标链提供的交易方式;而对于交易条件,可以自动或手动判断交易目标链所提出的交易条件是否能够被接受。如果能够接受交易条件,并且支持相应的交易方式,交易发起链可以按照指定交易方式,向公链发起满***易条件的服务交易。In the technical solution provided in this application, after receiving the query result returned by the public chain, the transaction initiation chain can analyze the query result and extract the transaction mode and transaction conditions in the query result. Among them, with regard to the transaction method, the transaction initiation chain can determine whether to support the transaction method provided by the transaction target chain; and for the transaction conditions, it can automatically or manually determine whether the transaction conditions proposed by the transaction target chain can be accepted. If the transaction conditions can be accepted and the corresponding transaction methods are supported, the transaction initiation chain can initiate service transactions that meet the transaction conditions to the public chain in accordance with the specified transaction method.
S4:发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易。S4: Initiate a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiate service transactions to the public chain.
交易发起链创建服务交易后,可将服务交易发送给发起平行链,以致通过发起平行链向公链发起服务交易。具体包括:交易发起链创建转账交易,并通过平行链节点将转账交易转发给公链,以触发合约执行,所述转账交易中包括向所述交易目标链支付的指定交易证通数量。在步骤S3和S4中,平行链转发转账交易(服务交易)的方式,与步骤S1中的方式基本相同,但由于在步骤S3和中发生了实际交易,即转账了预定数量的证通,因此,步骤S3和S4中,平行链节点只能以传递交易的方式完成同步转化。After the transaction initiation chain creates a service transaction, the service transaction can be sent to the initiating parallel chain, so that the initiating parallel chain initiates a service transaction to the public chain. Specifically, the transaction initiation chain creates a transfer transaction, and forwards the transfer transaction to the public chain through a parallel chain node to trigger the execution of the contract. The transfer transaction includes a specified transaction token payment amount paid to the transaction target chain. In steps S3 and S4, the method of forwarding the transfer transaction (service transaction) in the parallel chain is basically the same as that in step S1, but because the actual transaction occurs in steps S3 and S, that is, a predetermined amount of Zhengtong is transferred, so In steps S3 and S4, the parachain nodes can only complete synchronous conversion by transmitting transactions.
即,如图5所示,在本申请的部分实施例中,发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易的步骤还包括:That is, as shown in FIG. 5, in some embodiments of the present application, the steps of initiating a parallel chain to synchronously convert a service transaction into a standardized form conforming to the public chain, and initiating a service transaction to the public chain further include:
S401:平行链节点接收服务交易;以及对服务交易验证和存储,生成符合交易发起链规范形式的完整区块链数据;S401: Parachain nodes receive service transactions; and verify and store service transactions to generate complete blockchain data in a form that conforms to the transaction initiation chain specification;
S402:平行链节点对服务交易进行格式转化,生成符合公链规范形式的公链服务交易;S402: The parachain node performs format conversion on the service transaction to generate a public chain service transaction conforming to the public chain specification form;
S403:平行链节点向公链节点广播公链服务交易。S403: The parachain node broadcasts the public chain service transaction to the public chain node.
示例地,在公链网络P中的维护节点将查询结果返回给交易节点B25后,交易节点B25对返回的查询结果中交易条件和交易方式进行验证,一方面,确定交易是否符合要求即是否能够满足B25的证通兑换服务请求,另一方面可以确定交易条件是否能够被接受,例如,交易目标链A所要求的证通兑换比率是否可以被接受。上述验证过程可以通过节点B25自动判断,也可以主动选择是否接受该交易条件。此外,对返回查询结果的验证还可以包括,交易节点B25是否能够按照交易目标链A指定的交易方式进行交易。For example, after the maintenance node in the public chain network P returns the query result to the transaction node B25, the transaction node B25 verifies the transaction conditions and transaction methods in the returned query result. On the one hand, it is determined whether the transaction meets the requirements, that is, whether it can Satisfying the request of the STO exchange service of B25 can determine whether the transaction conditions can be accepted, for example, whether the STO exchange rate required by the transaction target chain A can be accepted. The above verification process can be judged automatically by Node B25, or it can actively choose whether to accept the transaction conditions. In addition, the verification of the returned query results may also include whether the transaction node B25 can perform transactions in accordance with the transaction method specified by the transaction target chain A.
如果交易节点B25接受该交易条件,并且能够按照交易目标链A指定的交易方式进行交易,则交易节点B25发起正式的服务交易,交易节点将服务交易在交易发起链中进行广播,即创建包含服务交易的区块数据BF25,区块数据BF25中包含转账100个证通Tb。以及在平行链节点R01,接收到服务交易后再对服务交易进行转化,转化为符合公链的规范形式,生成区块数据GBF25,以及在公链网络中进行广播转化后的服务交易,公链中的节点在接收到服务交易后行程用于记账的区块链,以及接收交易节点转账的100个证通Tb。If the transaction node B25 accepts the transaction conditions and is able to conduct transactions in the transaction method specified by the transaction target chain A, the transaction node B25 initiates a formal service transaction, and the transaction node broadcasts the service transaction in the transaction initiation chain, that is, it contains a service The transaction block data BF25, the block data BF25 contains 100 transfer Tb. And at the parallel chain node R01, after receiving the service transaction, the service transaction is converted into a standardized form that conforms to the public chain, and the block data GBF25 is generated, and the service transaction after the broadcast conversion is performed in the public chain network After receiving the service transaction, the nodes in the itinerary use the blockchain for bookkeeping, and receive 100 TBTs from the transaction node.
进一步地,如图6所示,发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易的步骤还包括:Further, as shown in FIG. 6, the steps of initiating a parallel chain to synchronously transform service transactions into a standardized form that complies with the public chain, and initiating service transactions to the public chain further include:
S411:发起平行链将交易条件转换为符合交易发起链的规范形式,以及将转化后的交易条件,发送至交易发起链中的交易节点;S411: Initiate the parallel chain to convert the transaction conditions into a standardized form that conforms to the transaction initiation chain, and send the converted transaction conditions to the transaction nodes in the transaction initiation chain;
S412:交易节点确定是否接受交易条件;S412: The transaction node determines whether to accept the transaction conditions;
S413:在交易节点接受交易条件后,交易节点通过发起平行链向公链发起服务交易。S413: After the transaction node accepts the transaction conditions, the transaction node initiates a service transaction to the public chain by initiating a parallel chain.
本实施例中,对于部分现有的区块链网络,由于其应用的特殊性,可能无法直接与公链之间完成信息传递。因此,对于交易条件,也可以以交易的形式再由公链经平行链桥接发送给交易节点。以使交易节点确定是否接受交易条件。In this embodiment, for some existing blockchain networks, due to the particularity of its application, it may not be possible to complete the information transfer directly with the public chain. Therefore, for the transaction conditions, it can also be sent to the transaction node by the public chain via the parallel chain bridge in the form of a transaction. So that the trading node determines whether to accept the trading conditions.
需要说明的是,由于在此次跨链交易中,公链网络中的维护节点从事了相应的查询和存储操作,以及在后续的交易过程中,还会参与其他操作,如传递、价值转化、记账等,因此,在交易节点B25向公链发起正式的服务交易时,还需要向公链网络中转账特定数量公链证通以作为公链中维护节点的奖励。It should be noted that, in this cross-chain transaction, the maintenance nodes in the public chain network have engaged in the corresponding query and storage operations, and in the subsequent transaction process, they will also participate in other operations, such as transfer, value conversion, Bookkeeping, etc., therefore, when the transaction node B25 initiates a formal service transaction to the public chain, it is also necessary to transfer a specific number of public chain tokens to the public chain network as a reward for maintaining nodes in the public chain.
S5:公链根据地址信息将服务交易转发至交易目标链,以及将交易目标链返回的服务内容传递至发起平行链。S5: The public chain forwards the service transaction to the transaction target chain according to the address information, and passes the service content returned by the transaction target chain to the initiating parallel chain.
本申请提供的技术方案中,交易发起链向公链发送的服务交易在公链中可以不做任何处理,仅由公链网络将服务交易传递至交易目标链。但其前提是,公链和交易目标链之间要能够直接进行跨链交易。主要过程包括,公链可以对服务交易中的交易目标链的地址信息进行提取,获取交易目标链的位置,再根据交易目标链的地址将服务交易发送至交易目标链。另外,公链也可以对交易发起链发送的服务交易进行简单的验证,以避免出现数据传递的错误。In the technical solution provided in this application, the service transaction sent by the transaction initiation chain to the public chain may not be processed in the public chain, and only the public chain network will pass the service transaction to the transaction target chain. But the premise is that cross-chain transactions can be conducted directly between the public chain and the transaction target chain. The main process includes that the public chain can extract the address information of the transaction target chain in the service transaction, obtain the position of the transaction target chain, and then send the service transaction to the transaction target chain according to the address of the transaction target chain. In addition, the public chain can also perform simple verification on service transactions sent by the transaction initiation chain to avoid data transmission errors.
例如,公链网络P中的维护节点在接收到交易节点B25发起的服务交易后,对交易节点转账的100个证通Tb进行验证,并针对服务交易形成符合公链交易形式的区块数据, 并对形成的区块数据在公链网络中进行广播,再将这100个证通Tb转移至网络A所对应的Tb账户中。For example, after receiving the service transaction initiated by the transaction node B25, the maintenance node in the public chain network P verifies the 100 Zentong Tb transferred by the transaction node, and forms block data that conforms to the public chain transaction form for the service transaction. And broadcast the formed block data in the public chain network, and then transfer the 100 TST to the Tb account corresponding to network A.
由于服务交易的传递依赖于公链完成,因此为了达到抗抵赖交易效果,可以公链在传递所述服务交易时,需要在公链网络内进行分布式存储,即在公链网络中记账。因此在公链传递所述服务交易时,也是一种发生在公链网络中的交易。在实际应用中,针对不同区块链网络,流通的证通类型也不同,而不同类型的证通往往不能直接进行交易。因此在本申请提供的技术方案中,公链传递所述服务交易至所述交易目标链的过程中,可以先将交易发起链支付的证通进行锁定,再向交易目标链转移等价值的公链证通,以触发交易目标链返回服务内容。Because the transfer of service transactions depends on the completion of the public chain, in order to achieve the effect of non-repudiation transactions, the public chain needs to perform distributed storage in the public chain network when transmitting the service transaction, that is, to keep accounts in the public chain network. Therefore, when the service transaction is delivered by the public chain, it is also a transaction that occurs in the public chain network. In practical applications, for different blockchain networks, the types of Zhengtong in circulation are different, and different types of Zhengtong often cannot directly trade. Therefore, in the technical solution provided in this application, in the process of the public chain transmitting the service transaction to the transaction target chain, the Zentong of the transaction initiation chain payment can be locked, and then other public funds of equal value are transferred to the transaction target chain. The chain certificate is used to trigger the transaction target chain to return the service content.
在实际应用中,公链与交易目标链也可能不能直接发生交易,对于这种应用场景,可以通过公链与交易目标链之间的目标平行链传递该服务交易。即在本申请的部分实施例中,如图7所示,如果交易目标链通过目标平行链接入公链,交易目标链根据触发交易,生成交易条件,以及将交易条件发送至公链的步骤还包括:In practical applications, the public chain and the transaction target chain may not be able to directly trade. For this application scenario, the service transaction can be transmitted through the target parallel chain between the public chain and the transaction target chain. That is, in some embodiments of the present application, as shown in FIG. 7, if the transaction target chain is linked into the public chain through the target in parallel, the transaction target chain generates transaction conditions according to the trigger transaction, and sends the transaction conditions to the public chain. include:
S501:目标平行链接收触发交易并将触发交易同步转化为符合交易目标链的规范形式;S501: The target parallel chain receives the trigger transaction and synchronously transforms the trigger transaction into a standard form conforming to the transaction target chain;
S502:目标平行链将触发交易转发至交易目标链,并由交易目标链分配至服务节点;S502: The target parallel chain forwards the trigger transaction to the transaction target chain and allocates the transaction target chain to the service node;
S503:服务节点根据触发交易生成交易条件,以及将交易条件反馈给目标平行链;S503: The service node generates transaction conditions according to the triggered transaction, and feeds back the transaction conditions to the target parachain;
S504:目标平行链将交易条件同步转化为符合公链的规范形式,以及将转换后的交易条件发送至公链。S504: The target parallel chain simultaneously converts the transaction conditions into a standardized form that complies with the public chain, and sends the converted transaction conditions to the public chain.
由以上步骤可知,在公链与交易目标链不能直接进行交易时,步骤S5的具体交易过程为,公链中的节点根据服务交易生成面向交易目标链的区块数据P25,并在公链网络中广播区块数据P25,以形成区块链。公链节点还向目标节点广播区块数据P25,目标节点在接收到区块数据P25后,通过与上述转化原理相同的方式,对区块数据P25进行同步转化,生成符合交易目标链规范形式的区块数据AP25,再将区块数据AP25在交易目标链内进行广播,以在交易目标链中生成完整的区块链。It can be known from the above steps that when the public chain and the transaction target chain cannot directly conduct transactions, the specific transaction process of step S5 is that the nodes in the public chain generate block data P25 facing the transaction target chain according to the service transaction, and then use the public chain network China broadcasts block data P25 to form a blockchain. The public chain node also broadcasts the block data P25 to the target node. After receiving the block data P25, the target node synchronously transforms the block data P25 in the same way as the above-mentioned conversion principle, and generates a form that meets the transaction target chain specification form. Block data AP25, and then broadcast the block data AP25 in the transaction target chain to generate a complete blockchain in the transaction target chain.
交易目标链在接收到公链转发的服务交易后,根据服务交易返回相应的服务内容,给公链网络,以使公链网络将服务内容传递给交易发起链。交易目标链在接收到公链传递的服务交易后,可先针对交易条件进行验证,确定服务交易是否满***易条件。例如,服务交易所支付的证通数量是否符合交易目标链需要的证通数量,交易发起链是否具有交易目标链要求的交易资质等。如果交易目标链验证交易条件合格,则根据接收到的服务交易返回相应的服务内容,即为所述交易发起链提供对应的服务。After receiving the service transaction forwarded by the public chain, the transaction target chain returns the corresponding service content to the public chain network according to the service transaction, so that the public chain network can transfer the service content to the transaction initiation chain. After receiving the service transaction transmitted by the public chain, the transaction target chain can first verify the transaction conditions to determine whether the service transaction meets the transaction conditions. For example, whether the number of STOs paid by the service exchange meets the number of STOs required by the transaction target chain, and whether the transaction initiation chain has the transaction qualification required by the transaction target chain. If the transaction target chain verifies that the transaction conditions are qualified, the corresponding service content is returned according to the received service transaction, that is, the corresponding service is provided for the transaction initiation chain.
本申请提供的技术方案中,服务内容可以是返回交易中包含具体的服务内容,例如,数据检索报告,或者兑换的另一种指定数量的证通等。其中,对于数据检索报告类型的服务内容,可以直接由服务节点将结果返回至交易节点。而对于兑换证通类型的服务内容,可以通过上述平行链同步转化的方式先将服务内容从交易目标连桥接到公链,再从公链桥接到交易发起链,最终完成交易。In the technical solution provided in this application, the service content may include specific service content included in the return transaction, for example, a data retrieval report, or another specified number of Zhengtong exchanged. Among them, for the service content of the data retrieval report type, the service node can directly return the result to the transaction node. For the service content of the exchange card exchange type, the service content can be bridged from the transaction target to the public chain through the parallel conversion method described above, and then bridged from the public chain to the transaction initiation chain, and the transaction is finally completed.
实际应用中,服务内容还可能需要交易发起链和交易目标链之间建立连接,以维持长期服务。而对于需要长期维持的服务内容,在返回的服务内容中可以包含相应的网络接入信息,验证码,账号等。对于需要长期维持的服务内容,公链可以不必直接参与后续的数据传递过程,只在返回服务内容时,将相应的网络接入信息,验证码,账号等信息传递给 交易发起链,并且在公链中对返回的服务内容进行分布式存储,完成记账程序。In practical applications, the service content may also need to establish a connection between the transaction initiation chain and the transaction target chain to maintain long-term services. For service contents that need to be maintained for a long time, the returned service contents may include corresponding network access information, verification codes, account numbers, etc. For the service content that needs to be maintained for a long time, the public chain does not need to directly participate in the subsequent data transfer process. Only when the service content is returned, the corresponding network access information, verification code, account number, and other information are passed to the transaction initiation chain. Distributed storage of the returned service content in the chain completes the accounting process.
公链在接收到交易目标链返回的服务内容后,以中继的方式将服务内容传递至交易发起链。在公链将服务内容转发到交易发起链后,即代表交易完成。例如,在公链网络P将100个证通Tb转移至网络A所对应的Tb账户中以后,公链网络在交易目标链验证通过后,从网络A所对应的Ta账户中提取等价值的证通Ta,如兑换比率为2:1,则提取50个证通Ta转账至网络B所对应的账户中,完成最终的服务交易。After receiving the service content returned by the transaction target chain, the public chain passes the service content to the transaction initiation chain in a relay manner. After the public chain forwards the service content to the transaction initiation chain, it represents the completion of the transaction. For example, after the public chain network P transfers 100 securities pass Tb to the Tb account corresponding to network A, the public chain network extracts certificates of equal value from the Ta account corresponding to network A after the transaction target chain is verified If the exchange ratio is 2: 1, then 50 securities exchange Ta will be extracted and transferred to the account corresponding to network B to complete the final service transaction.
在本申请的部分实施例中,如图8所示,所述服务交易包括交易发起链通过公链网络,向交易目标链转账交易条件指定数量的公链证通;公链根据地址信息将服务交易转发至目标链,以及将目标链返回的服务内容传递至发起平行链的步骤包括:In some embodiments of the present application, as shown in FIG. 8, the service transaction includes a transaction initiation chain through a public chain network to transfer a specified number of public chain certificate transactions to a transaction target chain; the public chain provides services according to the address information. The steps of forwarding the transaction to the target chain and passing the service content returned by the target chain to the initiating parallel chain include:
S511:公链对将交易发起链支付的证通进行锁定,以及根据服务交易,向交易目标链发起请求交易;S511: The public chain locks the Zenith that will pay for the transaction initiation chain, and initiates a request transaction to the transaction target chain according to the service transaction;
S512:交易目标链根据请求交易,向公链提供返回交易;S512: The transaction target chain provides a return transaction to the public chain according to the requested transaction;
S513:公链验证返回交易,如果返回交易与服务交易一致,解除转账证通的锁定状态;S513: The public chain verifies the return transaction. If the return transaction is consistent with the service transaction, the lock state of the transfer certificate pass is released;
S514:公链将交易发起链支付的证通,转账至交易目标链,以及将服务内容传递至交易发起链。S514: The public chain transfers the payment of the transaction initiation chain to the transaction target chain, and transfers the service content to the transaction initiation chain.
本实施例中,公链先对转账交易进行锁定,即暂时锁定交易发起链支付的证通,再根据转账交易向交易目标链发起请求交易,其中,请求交易用于触发交易目标链返回交易,公链再对返回交易的内容进行验证,如果返回交易与转账交易一致,则解除对转账交易的锁定状态,以使所述公链将交易发起链支付的证通,转账至交易目标链,并且将服务内容转至交易发起链。通过公链对转账交易进行锁定,可以在公链网络中对交易内容进行验证,确定是否达真正符合交易规范,保障交易双方的交易权益。In this embodiment, the public chain first locks the transfer transaction, that is, temporarily locks the Zentong of the transaction initiation chain payment, and then initiates a request transaction to the transaction target chain according to the transfer transaction. The request transaction is used to trigger the transaction target chain to return the transaction. The public chain then verifies the content of the return transaction. If the return transaction is consistent with the transfer transaction, the locked state of the transfer transaction is released, so that the public chain initiates the transaction through the chain of payment of the transaction, and transfers it to the transaction target chain, and Transfer the service content to the transaction initiation chain. Locking the transfer transaction through the public chain can verify the content of the transaction in the public chain network to determine whether it has truly met the transaction specifications and protect the transaction rights of both parties in the transaction.
S6:发起平行链将服务内容同步转化为符合交易发起链的规范形式,以及发送至交易发起链。S6: The initiation of the parallel chain synchronizes the service content into a standardized form conforming to the transaction initiation chain, and sends it to the transaction initiation chain.
本申请提供的技术方案中,公链向发起平行链传递服务内容后,如果服务内容是数据信息,则可直接将数据信息发送给交易节点;如果服务内容是返回的转账交易,则发起平行链再将转账交易从公链规范转化为交易发起链规范的形式。交易节点接收到服务内容,可以再对服务内容进行验证,以完成跨链交易。In the technical solution provided in this application, after the public chain transfers the service content to the initiating parallel chain, if the service content is data information, the data information can be directly sent to the transaction node; if the service content is a return transfer transaction, the parallel chain is initiated Then transfer the transaction from the public chain specification to the form of the transaction initiation chain specification. The transaction node receives the service content and can verify the service content to complete the cross-chain transaction.
进一步地,如图9所示,当服务内容包含交易参数时,发起平行链将服务内容同步转化为符合交易发起链的规范形式,以及发送至交易发起链的步骤包括:Further, as shown in FIG. 9, when the service content includes transaction parameters, initiating a parallel chain synchronously converts the service content into a standardized form conforming to the transaction initiation chain, and the steps of sending to the transaction initiation chain include:
S601:发起平行链提取服务内容中的交易参数;S601: Initiate a parachain to extract transaction parameters in the service content;
S602:发起平行链根据提取的参数创建通知信息;S602: Initiate a parallel chain to create notification information according to the extracted parameters;
S603:发起平行链将通知信息发送给交易发起链上的交易节点,通知最终交易结果。S603: The initiating parallel chain sends notification information to the transaction nodes on the transaction initiating chain to notify the final transaction result.
发起平行链通过发送通知信息给交易节点,以通知交易节点最终的交易结果。交易结果可以包括交易是否成功、具体的交易参数以及交易信息所对应的区块链信息等。通知信息可以减少数据的记账复杂程度,进一步提高交易效率。The initiating parallel chain sends notification information to the transaction nodes to notify the transaction nodes of the final transaction results. The transaction result can include whether the transaction was successful, specific transaction parameters, and blockchain information corresponding to the transaction information. Notification information can reduce the complexity of data accounting and further improve transaction efficiency.
基于上述交易方法,本申请还提供一种基于平行链的区块链***,如图10所示,所述区块链***还包括:交易发起链、平行链、公链以及交易目标链;所述平行链由公链网络中的部分节点组成;所述交易发起链和交易目标链通过平行链连接公链;Based on the above transaction method, this application also provides a parallel chain-based blockchain system. As shown in FIG. 10, the blockchain system further includes: a transaction initiation chain, a parallel chain, a public chain, and a transaction target chain; The parallel chain is composed of some nodes in the public chain network; the transaction initiation chain and the transaction target chain are connected to the public chain through the parallel chain;
所述交易发起链被配置为:通过发起平行链,向公链发起查询交易;以及根据公链的 查询结果创建服务交易;The transaction initiation chain is configured to: initiate a query transaction to the public chain by initiating a parallel chain; and create a service transaction based on the query result of the public chain;
所述公链被配置为:根据查询交易,在公链网络中查询交易目标链,以及向发起平行链发送查询结果,所述查询结果包括交易目标链的地址信息和交易条件;所述公链还被配置为:根据地址信息将服务交易转发至目标链,以及将目标链返回的服务内容传递至发起平行链;The public chain is configured to: according to a query transaction, query a transaction target chain in a public chain network, and send a query result to the initiating parallel chain, the query result including address information and transaction conditions of the transaction target chain; the public chain It is also configured to: forward service transactions to the target chain according to the address information, and pass the service content returned by the target chain to the initiating parallel chain;
所述发起平行链被配置为:同步转化服务交易,并向公链发起服务交易;以及,将服务内容进行转化,并发送至交易发起链;所述交易目标链被配置为:根据服务交易向公链返回服务内容。The initiating parallel chain is configured to: synchronously convert service transactions and initiate service transactions to the public chain; and convert service content and send to the transaction initiating chain; the transaction target chain is configured to: The public chain returns the service content.
本申请提供的区块链***中,交易发起链和交易目标链均是接入公链网络多个区块链网络,因此接入公链网络的多个区块链网络中的任意一个都可以作为交易发起链,只要其拥有足够触发交易的证通数量。同样,每一个区块链网络也都可以作为交易目标链,只要其支持对外进行交易,并且能够提供具体的服务内容。即在本申请提供的技术方案中,所述交易发起链和交易目标链只是为了便于描述,并不对区块链网络进行限定。In the blockchain system provided by this application, both the transaction initiation chain and the transaction target chain are connected to multiple blockchain networks of the public chain network, so any one of the multiple blockchain networks connected to the public chain network can be As a transaction initiation chain, as long as it has enough tokens to trigger a transaction. Similarly, each blockchain network can also be used as a transaction target chain, as long as it supports external transactions and can provide specific service content. That is, in the technical solution provided in this application, the transaction initiation chain and the transaction target chain are only for convenience of description, and do not limit the blockchain network.
需要说明的是,本申请实施例中以证通兑换的服务内容作为示例,进行方案的描述,显然对于不同形式服务内容,其交易过程与证通兑换的交易过程是相同的,仅在交易节点发起服务交易时,交易节点向公链(或交易目标链)转账指定数量的证通后,交易目标链根据服务交易返回具体的交易内容,如返回某型号通信设备性能的查询结果。It should be noted that, in the embodiment of the present application, the service content of the Zentong exchange is used as an example to describe the solution. Obviously, for different forms of service content, the transaction process is the same as the transaction process of the Zentong exchange, only at the transaction node. When initiating a service transaction, after the transaction node transfers a specified amount of Zhengtong to the public chain (or transaction target chain), the transaction target chain returns the specific transaction content according to the service transaction, such as the query result of the performance of a certain type of communication equipment.
由以上技术方案可知,本申请提供一种基于平行链的交易方法及区块链***,所述方法在实际应用中,交易节点先通过平行链桥接向公链发起查询交易,以使公链查询交易目标链,再将查询到结果通过平行链返回给交易节点。交易节点在接受交易条件后,再通过平行链向公链发起服务交易,平行链对服务交易进行同步转化,传递给公链,以使公链将服务交易继续传递给交易目标链。交易目标再将对应的服务内容发送给公链,以及由公链传递至平行链,平行链将服务内容进行同步转化,并发送给交易节点,以使交易节点获得交易的结果。所述方法通过平行链桥接,将交易发起链中的交易通过公链传递给交易目标链,实现跨链交易,解决传统交易方法不支持跨链交易的问题。It can be known from the above technical solutions that the present application provides a parallel chain-based transaction method and a blockchain system. In practical applications, the transaction node first initiates a query transaction to the public chain through a parallel chain bridge to enable the public chain to query Transaction target chain, and then return the query result to the transaction node through the parallel chain. After the transaction node accepts the transaction conditions, it then initiates a service transaction to the public chain through the parallel chain. The parallel chain synchronizes the service transaction and passes it to the public chain, so that the public chain can continue to transfer the service transaction to the transaction target chain. The transaction target then sends the corresponding service content to the public chain and passes it from the public chain to the parallel chain. The parallel chain synchronizes the service content and sends it to the transaction node to enable the transaction node to obtain the transaction result. The method transfers the transactions in the transaction initiation chain to the transaction target chain through the public chain through parallel chain bridging, realizes cross-chain transactions, and solves the problem that traditional transaction methods do not support cross-chain transactions.
本申请提供的实施例之间的相似部分相互参见即可,以上提供的具体实施方式只是本申请总的构思下的几个示例,并不构成本申请保护范围的限定。对于本领域的技术人员而言,在不付出创造性劳动的前提下依据本申请方案所扩展出的任何其他实施方式都属于本申请的保护范围。Similar parts between the embodiments provided in this application can be referred to each other. The specific implementations provided above are just a few examples under the general concept of this application, and do not constitute a limitation of the protection scope of this application. For those skilled in the art, any other implementations extended according to the scheme of the present application under the premise of no creative labor belong to the protection scope of the present application.

Claims (10)

  1. 一种基于平行链的交易方法,其特征在于,包括:A parachain-based transaction method is characterized in that it includes:
    交易发起链通过发起平行链,向公链发起查询交易;The transaction initiation chain initiates a query transaction to the public chain by initiating a parallel chain;
    公链根据查询交易,在公链网络中查询交易目标链,以及向交易发起链发送查询结果,所述查询结果包括交易目标链的交易方式,地址信息和交易条件;The public chain inquires the transaction target chain in the public chain network according to the query transaction, and sends the query result to the transaction initiation chain. The query result includes the transaction mode, address information and transaction conditions of the transaction target chain;
    交易发起链根据查询结果创建服务交易;The transaction initiation chain creates a service transaction based on the query results;
    发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易;Initiate a parallel chain to simultaneously convert service transactions into a standardized form that complies with the public chain, and initiate service transactions to the public chain;
    公链根据地址信息将服务交易转发至交易目标链,以及将交易目标链返回的服务内容传递至发起平行链;The public chain forwards the service transaction to the transaction target chain according to the address information, and passes the service content returned by the transaction target chain to the initiating parallel chain;
    发起平行链将服务内容同步转化为符合交易发起链的规范形式,以及发送至交易发起链。The initiation parachain synchronizes the service content into a standardized form that conforms to the transaction initiation chain, and sends it to the transaction initiation chain.
  2. 根据权利要求1所述的交易方法,其特征在于,发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易的步骤还包括:The transaction method according to claim 1, wherein the steps of initiating a parallel chain to synchronously convert service transactions into a standardized form that complies with the public chain, and initiating a service transaction to the public chain further include:
    平行链节点接收服务交易;以及对服务交易验证和存储,生成符合交易发起链规范形式的完整区块链数据;Parachain nodes receive service transactions; verify and store service transactions, and generate complete blockchain data in the form of a transaction initiation chain specification;
    平行链节点对服务进行格式转化,生成符合公链规范形式的服务交易;Parachain nodes convert the format of services to generate service transactions that conform to the specifications of the public chain;
    平行链节点向公链节点广播服务交易。Parachain nodes broadcast service transactions to public chain nodes.
  3. 根据权利要求1所述的交易方法,其特征在于,公链根据查询交易,在公链网络中查询交易目标链,以及向发起平行链发送查询结果的步骤包括:The transaction method according to claim 1, wherein the steps of the public chain querying the transaction target chain in the public chain network according to the query transaction, and sending the query result to the initiating parallel chain include:
    公链提取查询交易中的服务类型;The public chain extracts the service type in the query transaction;
    公链根据服务类型,在公链网络中,遍历符合服务类型的区块链网络,确定交易目标链并获取交易目标链对应的地址信息;According to the service type, the public chain traverses the blockchain network that matches the service type in the public chain network to determine the transaction target chain and obtain the address information corresponding to the transaction target chain;
    公链向符合服务类型的交易目标链发起触发交易;The public chain initiates a trigger transaction to a transaction target chain that conforms to the service type;
    交易目标链根据触发交易,生成交易条件,以及将交易条件发送至公链;所述交易条件包括当前交易指定的证通数量。The transaction target chain generates transaction conditions according to the trigger transaction, and sends the transaction conditions to the public chain; the transaction conditions include the number of securities exchanges specified by the current transaction.
  4. 根据权利要求3所述的交易方法,其特征在于,如果交易目标链通过目标平行链接入公链,交易目标链根据触发交易,生成交易条件,以及将交易条件发送至公链的步骤还包括:The transaction method according to claim 3, wherein if the transaction target chain is linked into the public chain through the target in parallel, the steps of the transaction target chain generate transaction conditions according to the trigger transaction, and the steps of sending the transaction conditions to the public chain further include:
    目标平行链接收触发交易并将触发交易同步转化为符合交易目标链的规范形式;The target parallel chain receives the trigger transaction and simultaneously converts the trigger transaction into a standardized form that conforms to the target chain of the transaction;
    目标平行链将触发交易转发至交易目标链,并由交易目标链分配至服务节点;The target parallel chain forwards the trigger transaction to the transaction target chain, and allocates the transaction target chain to the service node;
    服务节点根据触发交易生成交易条件,以及将交易条件反馈给目标平行链;The service node generates transaction conditions according to the triggered transaction, and feeds back the transaction conditions to the target parachain;
    目标平行链将交易条件同步转化为符合公链的规范形式,以及将转换后的交易条件发送至公链。The target parallel chain simultaneously converts the transaction conditions into a standardized form that complies with the public chain, and sends the converted transaction conditions to the public chain.
  5. 根据权利要求1所述的交易方法,其特征在于,公链根据查询交易,在公链网 络中查询交易目标链,以及向交易发起链发送查询结果的步骤还包括:The transaction method according to claim 1, wherein the steps of the public chain inquiring the transaction target chain in the public chain network according to the query transaction, and sending the query result to the transaction initiation chain further comprise:
    公链提取交易条件中当前交易指定的证通数量;The number of STOs specified by the current transaction in the public chain extraction transaction conditions;
    公链判断交易节点拥有的证通余额是否满足证通数量;The public chain judges whether the balance of STOs owned by the transaction node meets the number of STOs;
    如果交易节点拥有的证通余额满足证通数量,向发起平行链发送查询结果;If the balance of STOs owned by the trading node meets the number of STOs, send the query result to the initiating parallel chain;
    如果交易发起链拥有的证通余额不满足证通数量,公链取消向发起平行链发送查询结果;以及向交易节点发送提示信息。If the balance of STOs owned by the transaction initiation chain does not satisfy the number of STOs, the public chain cancels sending query results to the initiating parallel chain; and sends prompt information to the transaction nodes.
  6. 根据权利要求5所述的交易方法,其特征在于,如果交易发起链拥有的证通余额不满足证通数量,所述方法还包括:The transaction method according to claim 5, characterized in that if the balance of the STO in the transaction initiation chain does not satisfy the number of STOs, the method further comprises:
    公链根据查询交易再次在公链网络中查询交易目标链;The public chain inquires the transaction target chain in the public chain network again according to the query transaction;
    逐一对比查询到的交易目标链所指定的证通数量,确定指定交易证通数量最小的交易目标链为优选交易目标链;Compare one by one the number of STOs specified by the query transaction target chain, and determine the transaction target chain with the smallest number of designated STOs as the preferred transaction target chain;
    向发起平行链发送优选交易目标链的地址信息和交易条件。Send the address information and transaction conditions of the preferred transaction target chain to the initiating parallel chain.
  7. 根据权利要求1所述的交易方法,其特征在于,发起平行链将服务交易同步转化为符合公链的规范形式,以及向公链发起服务交易的步骤包括:The transaction method according to claim 1, wherein the steps of initiating a parallel chain to synchronously convert service transactions into a standardized form conforming to a public chain, and initiating a service transaction to the public chain include:
    发起平行链将交易条件转换为符合交易发起链的规范形式,以及将转化后的交易条件,发送至交易发起链中的交易节点;Initiate the parallel chain to convert the transaction conditions into a standardized form that conforms to the transaction initiation chain, and send the converted transaction conditions to the transaction nodes in the transaction initiation chain;
    交易节点确定是否接受交易条件;Trading nodes determine whether to accept trading conditions;
    在交易节点接受交易条件后,交易节点通过发起平行链向公链发起服务交易。After the transaction node accepts the transaction conditions, the transaction node initiates a service transaction to the public chain by initiating a parallel chain.
  8. 根据权利要求1所述的交易方法,其特征在于,根据权利要求1所述的交易方法,其特征在于,发起平行链将服务内容同步转化为符合交易发起链的规范形式,以及发送至交易发起链的步骤包括:The transaction method according to claim 1, wherein the transaction method according to claim 1 is characterized in that the initiation of the parallel chain synchronously converts the service content into a standardized form that conforms to the transaction initiation chain, and sends to the transaction initiation The steps of the chain include:
    发起平行链提取服务内容中的交易参数;Initiate the parachain to extract the transaction parameters in the service content;
    发起平行链根据提取的参数创建通知信息;Initiate a parachain to create notification information based on the extracted parameters;
    发起平行链将通知信息发送给交易发起链上的交易节点,通知最终交易结果。The initiating parallel chain sends notification information to the transaction nodes on the transaction initiating chain to notify the final transaction result.
  9. 根据权利要求1所述的交易方法,其特征在于,所述服务交易包括交易发起链通过公链网络,向交易目标链转账交易条件指定数量的公链证通;公链根据地址信息将服务交易转发至目标链,以及将目标链返回的服务内容传递至发起平行链的步骤包括:The transaction method according to claim 1, characterized in that the service transaction comprises a transaction initiation chain through a public chain network and transfers a specified number of public chain certificate transactions to the transaction target chain; the public chain exchanges the service transaction according to the address information The steps of forwarding to the target chain and passing the service content returned by the target chain to the initiating parachain include:
    公链对将交易发起链支付的证通进行锁定,以及根据服务交易,向交易目标链发起请求交易;The public chain locks the Zhengtong that will pay for the transaction initiation chain, and initiates a request transaction to the transaction target chain according to the service transaction;
    交易目标链根据请求交易,向公链提供返回交易结果;The transaction target chain provides the returned transaction results to the public chain according to the requested transaction;
    公链验证返回交易,如果返回交易与服务交易一致,解除转账证通的锁定状态;The public chain verifies the return transaction. If the return transaction is consistent with the service transaction, the lock status of the transfer certificate pass is released;
    公链将交易发起链支付的证通,转账至交易目标链,以及将服务内容传递至交易发起链。The public chain transfers the payment of the transaction initiation chain to the transaction target chain, and transfers the service content to the transaction initiation chain.
  10. 一种基于平行链的区块链***,其特征在于,包括:交易发起链、平行链、公链以及交易目标链;所述平行链由公链网络中的部分节点组成;所述交易发起链和交易目标链通过平行链连接公链;A blockchain system based on a parallel chain is characterized in that it includes: a transaction initiation chain, a parallel chain, a public chain, and a transaction target chain; the parallel chain is composed of some nodes in a public chain network; and the transaction initiation chain Connect the public chain with the transaction target chain through a parallel chain;
    所述交易发起链被配置为:通过发起平行链,向公链发起查询交易;以及根据公链的查询结果创建服务交易;The transaction initiation chain is configured to: initiate a query transaction to the public chain by initiating a parallel chain; and create a service transaction based on the query result of the public chain;
    所述公链被配置为:根据查询交易,在公链网络中查询交易目标链,以及向发起平行链发送查询结果,所述查询结果包括交易目标链的地址信息和交易条件;The public chain is configured to: according to a query transaction, query a transaction target chain in the public chain network, and send a query result to the initiating parallel chain, the query result including address information and transaction conditions of the transaction target chain;
    所述发起平行链被配置为:同步转化服务交易,并向公链发起服务交易;以及,将服务内容进行转化,并发送至交易发起链;The initiating parallel chain is configured to: synchronously convert service transactions and initiate service transactions to the public chain; and convert service content and send to the transaction initiation chain;
    所述公链还被配置为:根据地址信息将服务交易转发至目标链,以及将目标链返回的服务内容传递至发起平行链;The public chain is also configured to: forward service transactions to the target chain according to the address information, and pass the service content returned by the target chain to the initiating parallel chain;
    所述交易目标链被配置为:根据服务交易向公链返回服务内容。The transaction target chain is configured to return service content to the public chain according to a service transaction.
PCT/CN2019/101045 2018-08-28 2019-08-16 Parallel-chain-based transaction method and blockchain system WO2020042930A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810986825.3 2018-08-28
CN201810986825 2018-08-28
CN201811498007.5 2018-12-07
CN201811498007.5A CN110866826B (en) 2018-08-28 2018-12-07 Transaction method based on parallel chain and block chain system

Publications (1)

Publication Number Publication Date
WO2020042930A1 true WO2020042930A1 (en) 2020-03-05

Family

ID=69645022

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101045 WO2020042930A1 (en) 2018-08-28 2019-08-16 Parallel-chain-based transaction method and blockchain system

Country Status (1)

Country Link
WO (1) WO2020042930A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432026A (en) * 2020-04-14 2020-07-17 杭州复杂美科技有限公司 Parallel chain transaction execution method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372940A (en) * 2016-08-31 2017-02-01 江苏通付盾科技有限公司 Identity authentication method based on block chain network, server and terminal device
CN107085810A (en) * 2017-04-19 2017-08-22 朱皞罡 Across the chain operating method and block chain management system of a kind of block chain
CN107248076A (en) * 2017-06-24 2017-10-13 北京天德科技有限公司 A kind of core algorithm of the double-chain block chain the Internet model merchandised across chain
US20170352219A1 (en) * 2015-08-06 2017-12-07 Blockchain Technologies Corporation System and method for securely receiving and counting votes in an election
CN107742210A (en) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 Across the chain fund transfer system and method for a kind of different blocks interchain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170352219A1 (en) * 2015-08-06 2017-12-07 Blockchain Technologies Corporation System and method for securely receiving and counting votes in an election
CN106372940A (en) * 2016-08-31 2017-02-01 江苏通付盾科技有限公司 Identity authentication method based on block chain network, server and terminal device
CN107085810A (en) * 2017-04-19 2017-08-22 朱皞罡 Across the chain operating method and block chain management system of a kind of block chain
CN107248076A (en) * 2017-06-24 2017-10-13 北京天德科技有限公司 A kind of core algorithm of the double-chain block chain the Internet model merchandised across chain
CN107742210A (en) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 Across the chain fund transfer system and method for a kind of different blocks interchain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BAI, J. ET. AL.: "Blockchain Apllications Model Publication and Deployment Technologies Research", INFORMATION AND NETWORK SECURITY, vol. 37, no. 8, 10 August 2018 (2018-08-10), pages 13 - 18, ISSN: 2096-5133 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432026A (en) * 2020-04-14 2020-07-17 杭州复杂美科技有限公司 Parallel chain transaction execution method, device and storage medium
CN111432026B (en) * 2020-04-14 2022-10-28 杭州复杂美科技有限公司 Parallel chain transaction execution method, device and storage medium

Similar Documents

Publication Publication Date Title
CN110866826B (en) Transaction method based on parallel chain and block chain system
US20220231869A1 (en) Cross-blockchain mutual data storage
US20210150521A1 (en) Blockchain-based privacy transaction and blockchain-based privacy transaction application methods and apparatuses
WO2020125299A1 (en) Method and device for data processing based on blockchain
CN112330326A (en) Business processing method and device applied to bank transaction block chain system
TW202040457A (en) Computer-implemented systems and methods for implementing transfers over a blockchain network
WO2020173500A1 (en) Public chain-based sub-chain business system
EP3889870A1 (en) Background architecture method and system for aggregation payment, computer device, and storage medium
CN111770102A (en) Block chain cross-chain method and device, computer equipment and storage medium
WO2020042934A1 (en) Non-repudiation cross-chain transaction method and blockchain system
EP3885956A1 (en) Transaction processing method and device
WO2021077975A1 (en) Third-party settlement control method and apparatus, electronic device and storage medium
CN110377635B (en) Block chain architecture-based RMB cross-border payment inquiry and retrieval method and device
WO2021220062A1 (en) Blockchain transaction
CN113255014B (en) Data processing method based on block chain and related equipment
KR20200114324A (en) Block chain based money transfer processing system using cryptocurrency
CN114567643A (en) Cross-block-chain data transfer method, device and related equipment
WO2018210097A1 (en) Method and device for execution transaction mode by classification
WO2020042930A1 (en) Parallel-chain-based transaction method and blockchain system
WO2021258737A1 (en) Value transmission method and value transmission cluster system based on e-mail
WO2022183913A1 (en) Blockchain-based real right interaction
WO2020042931A1 (en) Public chain-based transaction method and blockchain system
NL2026362B1 (en) Parallel chain-based transaction method and blockchain system
GB2530471A (en) Financial switching engine and messaging
NL2026376B1 (en) Public chain-based transaction method and blockchain system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19853497

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19853497

Country of ref document: EP

Kind code of ref document: A1