CN111932254B - Application method of block chain multi-chain parallel structure - Google Patents

Application method of block chain multi-chain parallel structure Download PDF

Info

Publication number
CN111932254B
CN111932254B CN202010803943.3A CN202010803943A CN111932254B CN 111932254 B CN111932254 B CN 111932254B CN 202010803943 A CN202010803943 A CN 202010803943A CN 111932254 B CN111932254 B CN 111932254B
Authority
CN
China
Prior art keywords
chain
transaction
transaction record
parallel structure
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010803943.3A
Other languages
Chinese (zh)
Other versions
CN111932254A (en
Inventor
俎维翰
李渊
刘铭
毕潇
郭兆鹏
费旻昊
刘鑫
赵斌
胡璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Mengge Information Technology Co ltd
Original Assignee
Hangzhou Mengge Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Mengge Information Technology Co ltd filed Critical Hangzhou Mengge Information Technology Co ltd
Priority to CN202010803943.3A priority Critical patent/CN111932254B/en
Publication of CN111932254A publication Critical patent/CN111932254A/en
Application granted granted Critical
Publication of CN111932254B publication Critical patent/CN111932254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses an application method of a block chain multi-chain parallel structure, which comprises the following steps: (a) Dividing the blockchain into a Token chain and a plurality of transaction chains according to a business scene, wherein the Token chain is a public chain, and the transaction chain is a sub-chain; (b) transaction record data: firstly, encrypting by using a buyer public key to generate a transaction record ciphertext, wherein the ciphertext is stored in a transaction chain of an autonomous domain; (c) Encrypting the transaction record ciphertext generated in the step (b) again by using a seller private key, and sending the encrypted transaction record ciphertext to a gateway; (d) Decrypting the encrypted transaction record ciphertext by using a vendor public key by using a system-level intelligent contract in the gateway, if the decryption can be performed, determining the authenticity of the transaction record, finishing the verification of the authenticity of the transaction record, and if the decryption can not be performed, returning to the step (b); (e) After verification is completed, the corresponding responsible nodes in the round robin are used for packaging the uplink.

Description

Application method of block chain multi-chain parallel structure
Technical Field
The invention relates to the field of blockchain, in particular to an application method of a blockchain multi-chain parallel structure.
Background
The block chain is a decentralized distributed database system which is maintained by all nodes in the block chain network in a common participation mode, and consists of a series of data blocks generated based on a cryptography method, wherein each data block is one block in the block chain.
In conventional blockchain platforms, there is typically only one blockchain, a single blockchain covers multiple traffic types, and multiple information needs to be recorded simultaneously. Taking electronic transactions as an example, electronic transactions of multiple business types are required to be performed through one blockchain. If massive transaction requests are initiated to this blockchain in a platform with extremely large transaction demands or at the same time, the blockchain architecture of a single backbone will have difficulty coping with so many transaction demands, which undoubtedly has a great impact on the blockchain performance.
Disclosure of Invention
The invention aims at overcoming the defects of the prior art and provides an application method of a block chain multi-chain parallel structure.
In order to solve the technical problems, the following technical scheme is adopted:
the application method of the block chain multi-chain parallel structure is characterized by comprising the following steps of: the method for applying the blockchain multi-chain parallel structure to the blockchain multi-chain parallel structure comprises a plurality of blockchain nodes and a plurality of blockchains stored in the blockchain nodes, wherein the blockchains comprise 1 public chain and n sub-chains, the public chain and the sub-chains belong to business logic and data partition processing, and the method for applying the blockchain multi-chain parallel structure comprises the following steps:
(a) Dividing the blockchain into a Token chain and a plurality of transaction chains according to a business scene, wherein the Token chain is a public chain, and the transaction chain is a sub-chain;
(b) Transaction record data: firstly, encrypting by using a buyer public key to generate a transaction record ciphertext, wherein the ciphertext is stored in a transaction chain of an autonomous domain;
(c) Encrypting the transaction record ciphertext generated in the step (b) again by using a seller private key, and sending the encrypted transaction record ciphertext to a gateway;
(d) Decrypting the encrypted transaction record ciphertext by using a vendor public key by using a system-level intelligent contract in the gateway, if the decryption can be performed, determining the authenticity of the transaction record, finishing the verification of the authenticity of the transaction record, and if the decryption can not be performed, returning to the step (b);
(e) After verification is completed, the corresponding responsible nodes in the round robin are used for packaging the uplink.
Further, the Token chain is used for recording Token rewards obtained by users, converting Gas, realizing Token transfer and recording, and supporting an intelligent contract system.
Further, the transaction chain is used for storing transaction information and credit values of corresponding commodities, and each commodity category comprises a separate transaction chain.
Further, the contents of the transaction record data include: seller address, buyer address, transaction record, and transaction status.
Further, the transaction record needs to be encrypted before being uploaded, and the transaction record stores commodity names and commodity prices.
Further, after a buyer and a seller complete a transaction, the transaction record is recorded in a transaction chain, then the corresponding buyer selects whether to share the commodity to the community, if so, a rewarding intelligent contract is triggered, and when the link shared by the buyer is triggered by another buyer and the purchasing behavior is completed, the previous buyer obtains the corresponding rewarding; if no sharing is performed or no purchasing behavior occurs after sharing, the rewarding smart contract will automatically fail after t days.
Further, the value range of t is 3-10.
Due to the adoption of the technical scheme, the method has the following beneficial effects:
the invention relates to an application method of a block chain multi-chain parallel structure, wherein different information is recorded in a multi-chain parallel structure in a chain dividing way, and no interaction exists among different chains, so that the expansion of the information recording is realized. The information recording performed in the method well solves the problem of huge information quantity caused by various commodity types, frequent transaction and large number of nodes in the electronic commerce industry, and simultaneously realizes the information synchronization between the nodes more efficiently.
Compared with a single-chain traditional mode, the multi-chain parallel structure divides different information into chain records, and no interaction exists between different chains, so that the expansion of the information records is realized. The information recording performed in the method well solves the problem of huge information quantity caused by various commodity types, frequent transaction and large number of nodes in the electronic commerce industry, and simultaneously realizes the information synchronization between the nodes more efficiently.
Drawings
The invention is further described below with reference to the accompanying drawings:
FIG. 1 is a flow chart of a method for applying the multi-chain parallel structure of the block chain of the embodiment 1 of the present invention;
FIG. 2 is a flowchart of the method of embodiment 2 of the present invention for recording bonus information in a Token chain.
Detailed Description
The present invention will be further described in detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present invention.
As shown in fig. 1-2, the method is applied to a blockchain multi-chain parallel structure, the blockchain multi-chain parallel structure comprises a plurality of blockchain nodes and a plurality of blockchains stored in the plurality of blockchain nodes, the plurality of blockchains comprise 1 public chain and n sub-chains, and the public chain and the sub-chain belong to business logic and data partition processing and are not the distinction of a physically isolated public chain and a physically isolated private chain. There is only one public chain, and there can be countless sub chains in theory. The core idea is to divide the whole block system into 1+N multi-chain structures, namely public chain+N sub-chains.
The application method of the block chain multi-chain parallel structure comprises the following steps:
(a) Dividing the blockchain into a Token chain and a plurality of transaction chains according to a business scene, wherein the Token chain is a public chain, and the transaction chain is a sub-chain;
specifically, the Token chain is used for recording Token rewards obtained by users, converting Gas, realizing Token transfer and recording, supporting an intelligent contract system and resembling the main chain of a Taifang.
Specifically, the transaction chain is used for storing transaction information and credit values of corresponding commodities, and each commodity category of the commodities comprises a separate transaction chain. Participants in the blockchain are free to choose to enter different transaction chains.
(b) Transaction record data: firstly, encrypting by using a buyer public key to generate a transaction record ciphertext, wherein the ciphertext is stored in a transaction chain of an autonomous domain; the contents of the transaction record data include: seller address, buyer address, transaction record, and transaction status. The transaction record needs to be encrypted before being uploaded, and the transaction record stores commodity names and commodity prices.
(c) Encrypting the transaction record ciphertext generated in the step (b) again by using a seller private key, and sending the encrypted transaction record ciphertext to a gateway;
(d) Decrypting the encrypted transaction record ciphertext by using a vendor public key by using a system-level intelligent contract in the gateway, if the decryption can be performed, determining the authenticity of the transaction record, finishing the verification of the authenticity of the transaction record, and if the decryption can not be performed, returning to the step (b);
(e) After verification is completed, the corresponding responsible nodes in the round robin are used for packaging the uplink.
The flow of information of the buyer obtaining the rewards is recorded on the Token chain and the cooperative working principle between the Token chain and the transaction chain are shown in the rewards intelligent closing example:
specifically, after a buyer and a seller complete a transaction, the transaction record is recorded in a transaction chain (see fig. 1 for a specific flow), then the corresponding buyer can choose whether to share the commodity into a community, if so, a reward smart contract is triggered, when the link shared by the buyer is triggered by another buyer and the purchase behavior is completed, the previous buyer obtains the corresponding reward (Token), and the value of the reward is hooked with the commodity value; if sharing is not performed or purchasing behavior does not occur after sharing, the rewarding intelligent contract automatically fails after t days, and the value of t ranges from 3 to 10. The two intelligent contracts are all intelligent contracts of a block chain system level and are stored in an creating block, and a user does not need to write and is automatically generated by the system.
The two processes can be seen that the multi-chain parallel structure divides different information into chain records, and no interaction exists between different chains, so that the expansion of the information records is realized. The information recording performed in the method well solves the problem of huge information quantity caused by various commodity types, frequent transaction and large number of nodes in the electronic commerce industry, and simultaneously realizes the information synchronization between the nodes more efficiently.
Compared with a single-chain traditional mode, the multi-chain parallel structure divides different information into chain records, and no interaction exists between different chains, so that the expansion of the information records is realized. The information recording performed in the method well solves the problem of huge information quantity caused by various commodity types, frequent transaction and large number of nodes in the electronic commerce industry, and simultaneously realizes the information synchronization between the nodes more efficiently.
The structure can be analogically transplanted to a plurality of application scenes and fields, and has strong adaptability and expansibility.
The above is only a specific embodiment of the present invention, but the technical features of the present invention are not limited thereto. Any simple changes, equivalent substitutions or modifications made on the basis of the present invention to solve the substantially same technical problems and achieve the substantially same technical effects are encompassed within the scope of the present invention.

Claims (7)

1. The application method of the block chain multi-chain parallel structure is characterized by comprising the following steps of: the method for applying the blockchain multi-chain parallel structure to the blockchain multi-chain parallel structure comprises a plurality of blockchain nodes and a plurality of blockchains stored in the blockchain nodes, wherein the blockchains comprise 1 public chain and n sub-chains, the public chain and the sub-chains belong to business logic and data partition processing, and the method for applying the blockchain multi-chain parallel structure comprises the following steps:
(a) Dividing the blockchain into a Token chain and a plurality of transaction chains according to a business scene, wherein the Token chain is a public chain, and the transaction chain is a sub-chain;
(b) Transaction record data: firstly, encrypting by using a buyer public key to generate a transaction record ciphertext, wherein the ciphertext is stored in a transaction chain of an autonomous domain;
(c) Encrypting the transaction record ciphertext generated in the step (b) again by using a seller private key, and sending the encrypted transaction record ciphertext to a gateway;
(d) Decrypting the encrypted transaction record ciphertext by using a vendor public key by using a system-level intelligent contract in the gateway, if the decryption can be performed, determining the authenticity of the transaction record, finishing the verification of the authenticity of the transaction record, and if the decryption can not be performed, returning to the step (b);
(e) After verification is completed, the corresponding responsible nodes in the round robin are used for packaging the uplink.
2. The method of claim 1, wherein the step of applying the blockchain multi-chain parallel structure is characterized by: the Token chain is used for recording Token rewards obtained by a user, converting Gas, realizing Token transfer and recording and supporting an intelligent contract system.
3. The method of claim 1, wherein the step of applying the blockchain multi-chain parallel structure is characterized by: the transaction chains are used for storing transaction information and credit values of corresponding commodities, and each commodity category of the commodities comprises a single transaction chain.
4. The method of claim 1, wherein the step of applying the blockchain multi-chain parallel structure is characterized by: the contents of the transaction record data include: seller address, buyer address, transaction record, and transaction status.
5. The method of claim 4, wherein the step of applying the blockchain multi-chain parallel structure is characterized by: the transaction record needs to be encrypted before being uploaded, and the transaction record stores commodity names and commodity prices.
6. The method of claim 3, wherein the step of applying the blockchain multi-chain parallel structure is: after a buyer and a seller complete a transaction, the transaction record is recorded in a transaction chain, then the corresponding buyer selects whether to share the commodity to a community, if so, a rewarding intelligent contract is triggered, and when the link shared by the buyer is triggered by another buyer and the purchasing behavior is completed, the previous buyer obtains the corresponding rewarding; if no sharing is performed or no purchasing behavior occurs after sharing, the rewarding smart contract will automatically fail after t days.
7. The method of claim 6, wherein the step of applying the blockchain multi-chain parallel structure is characterized by: the value range of t is 3-10.
CN202010803943.3A 2020-08-11 2020-08-11 Application method of block chain multi-chain parallel structure Active CN111932254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010803943.3A CN111932254B (en) 2020-08-11 2020-08-11 Application method of block chain multi-chain parallel structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010803943.3A CN111932254B (en) 2020-08-11 2020-08-11 Application method of block chain multi-chain parallel structure

Publications (2)

Publication Number Publication Date
CN111932254A CN111932254A (en) 2020-11-13
CN111932254B true CN111932254B (en) 2024-03-22

Family

ID=73312137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010803943.3A Active CN111932254B (en) 2020-08-11 2020-08-11 Application method of block chain multi-chain parallel structure

Country Status (1)

Country Link
CN (1) CN111932254B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108389047A (en) * 2018-02-12 2018-08-10 深圳沃链科技有限公司 The method and block chain network of fundamental chain and subchain transaction in block chain
CN108667632A (en) * 2018-04-19 2018-10-16 阿里巴巴集团控股有限公司 Based on the credit record sharing method and device of block chain, electronic equipment
CN108921556A (en) * 2018-07-02 2018-11-30 上海达家迎信息科技有限公司 A kind of verification method, device, equipment and the storage medium of block chain
CN109462588A (en) * 2018-11-13 2019-03-12 上海物融智能科技有限公司 A kind of decentralization data trade method and system based on block chain
WO2020042937A1 (en) * 2018-08-28 2020-03-05 白杰 Maintenance method for blockchain parachain, and blockchain parachain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108389047A (en) * 2018-02-12 2018-08-10 深圳沃链科技有限公司 The method and block chain network of fundamental chain and subchain transaction in block chain
CN108667632A (en) * 2018-04-19 2018-10-16 阿里巴巴集团控股有限公司 Based on the credit record sharing method and device of block chain, electronic equipment
CN108921556A (en) * 2018-07-02 2018-11-30 上海达家迎信息科技有限公司 A kind of verification method, device, equipment and the storage medium of block chain
WO2020042937A1 (en) * 2018-08-28 2020-03-05 白杰 Maintenance method for blockchain parachain, and blockchain parachain
CN109462588A (en) * 2018-11-13 2019-03-12 上海物融智能科技有限公司 A kind of decentralization data trade method and system based on block chain

Also Published As

Publication number Publication date
CN111932254A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
TWI719604B (en) Block chain-based resource allocation method and device
CN109886677B (en) Commodity purchasing method and device based on block chain
Ackoff et al. Advertising research at anheuser-busch, inc.(1963-68)
CN110163753A (en) Houseclearing based on block chain deposits card, application method and device
CN106570757B (en) Crowd funding method, device and system based on block chain
CN107169865A (en) Asset data processing system based on block chain technology
CN110060112A (en) Invoice creation method and device, electronic equipment based on block chain
CN110046480A (en) Works copyright distribution method and device based on block chain
CN110009337A (en) A kind of data processing method and device based on block chain
CN110046945A (en) Invoice creation method and device, electronic equipment based on block chain
CN111818095B (en) Tax refunding method and device based on block chain and electronic equipment
CN110032882A (en) Card method and apparatus are deposited based on block chain
CN110046300A (en) Content delivery method and device, electronic equipment
CN110162570A (en) The gradation acquisition methods and device of block chain data
US20200175622A1 (en) Processing ledger transactions in a blockchain
CN112862303B (en) Crowdsourcing quality evaluation system and method based on block chain
CN110033245A (en) A kind of Neighbour community sharing method and system based on block chain
CN108694664A (en) Checking method and device, the electronic equipment of operation system
CN111932254B (en) Application method of block chain multi-chain parallel structure
CN110443612A (en) A kind of dividing method of submitting an expense account, device and electronic equipment based on block chain
CN113657994A (en) Loan risk management control method and device based on alliance chain
CN109739932A (en) Date storage method, device, computer equipment and computer readable storage medium
CN110060082A (en) A kind of exchanging method of information popularization system and block chain token
CN111489247A (en) Data processing method and device based on block chain, electronic equipment and storage medium
CN110458676A (en) Equity transfer method and device and electronic equipment based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant