CN111932254A - 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
CN111932254A
CN111932254A CN202010803943.3A CN202010803943A CN111932254A CN 111932254 A CN111932254 A CN 111932254A CN 202010803943 A CN202010803943 A CN 202010803943A CN 111932254 A CN111932254 A CN 111932254A
Authority
CN
China
Prior art keywords
chain
transaction
transaction record
ciphertext
buyer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010803943.3A
Other languages
Chinese (zh)
Other versions
CN111932254B (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

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
    • 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 block chain into a Token chain and a plurality of transaction chains according to a service scene, wherein the Token chain is a public chain, and the transaction chains are sub-chains; (b) transaction record data: firstly, the public key of the buyer is used for encryption to generate a transaction record ciphertext, and the ciphertext is stored in a transaction chain of the autonomous domain; (c) encrypting the transaction record ciphertext generated in the step (b) by using the seller private key again, and sending the encrypted transaction record ciphertext to a gateway; (d) the system-level intelligent contract in the gateway decrypts the secondarily encrypted transaction record ciphertext by using the seller public key, if the transaction record ciphertext can be decrypted, the authenticity of the transaction record is determined, the authenticity of the transaction record is verified, and if the transaction record ciphertext cannot be decrypted, the step (b) is returned; (e) and encapsulating uplink by the responsible node in the corresponding round robin after the verification is completed.

Description

Application method of block chain multi-chain parallel structure
Technical Field
The invention relates to the field of block chains, in particular to an application method of a block chain multi-chain parallel structure.
Background
The block chain is a decentralized distributed database system which is jointly maintained by all nodes in a block chain network 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 a conventional blockchain platform, there is usually only one blockchain, and a single blockchain covers multiple service types and needs to record multiple information simultaneously. Taking electronic transactions as an example, electronic transactions of multiple service types need to be performed through one block chain. If a large amount of transaction requests are issued to the blockchain in a platform with a large transaction demand or within the same time, the blockchain structure form of a single main chain will hardly deal with so many transaction demands, which will certainly have a great influence on the performance of the blockchain.
Disclosure of Invention
The invention aims to provide an application method of a block chain multi-chain parallel structure aiming at the defects of the prior art.
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 in that: the application method of the block chain multi-chain parallel structure comprises the following steps:
(a) dividing the block chain into a Token chain and a plurality of transaction chains according to a service scene, wherein the Token chain is a public chain, and the transaction chains are sub-chains;
(b) transaction record data: firstly, the public key of the buyer is used for encryption to generate a transaction record ciphertext, and the ciphertext is stored in a transaction chain of the autonomous domain;
(c) encrypting the transaction record ciphertext generated in the step (b) by using the seller private key again, and sending the encrypted transaction record ciphertext to a gateway;
(d) the system-level intelligent contract in the gateway decrypts the secondarily encrypted transaction record ciphertext by using the seller public key, if the transaction record ciphertext can be decrypted, the authenticity of the transaction record is determined, the authenticity of the transaction record is verified, and if the transaction record ciphertext cannot be decrypted, the step (b) is returned;
(e) and encapsulating uplink by the responsible node in the corresponding round robin after the verification is completed.
Further, the Token chain is used for recording Token rewards obtained by the user, 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 class of the commodities 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 uplink, and the content of the transaction record stores the commodity name and the commodity price.
Further, after the buyer and the 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 sharing is carried out, an intelligent reward contract is triggered, and when a link shared by the buyer is triggered by another buyer and the purchasing behavior is completed, the previous buyer obtains a corresponding reward; if no sharing is performed or no purchasing action occurs after sharing, the reward 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 the multi-chain parallel structure records different information in a chain-dividing manner, and the different chains have no interaction, so that the capacity expansion of information recording is realized. The information recording in the mode well solves the problem of huge information quantity caused by various commodity types, frequent transactions and large node number in the E-commerce industry, and simultaneously, the information synchronization among the nodes is more efficiently realized.
Compared with a single-chain traditional mode, the multi-chain parallel structure records different information in different chains, and the different chains have no interaction, so that the capacity expansion of information recording is realized. The information recording in the mode well solves the problem of huge information quantity caused by various commodity types, frequent transactions and large node number in the E-commerce industry, and meanwhile, the information synchronization among the nodes is more efficiently realized.
Drawings
The invention will be further described with reference to the accompanying drawings in which:
FIG. 1 is a flow chart illustrating a method for applying a block chain multi-chain parallel structure according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of recording bonus information in Token chain according to embodiment 2 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood, however, that the description herein of specific embodiments is only intended to illustrate the invention and not to limit the scope of the invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
As shown in fig. 1 to fig. 2, the method is applied to a blockchain multi-chain parallel structure, where the blockchain multi-chain parallel structure includes a plurality of blockchain nodes and a plurality of blockchains stored in the plurality of blockchain nodes, where the plurality of blockchains includes 1 public chain and n sublinks, and the public chain and the sublinks belong to service logic and data partition processing, and are not physically separated public and private chain partitions. The public chain is only one, and the sub-chain can have a plurality of sub-chains theoretically. The core idea is to divide the whole block system into a 1+ N multi-chain structure, i.e. a common chain + N sub-chains.
The application method of the block chain multi-chain parallel structure comprises the following steps:
(a) dividing the block chain into a Token chain and a plurality of transaction chains according to a service scene, wherein the Token chain is a public chain, and the transaction chains are sub-chains;
specifically, 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, and is similar to a main chain of a bitcoin and an Ethern.
Specifically, the transaction chain is used for storing transaction information and credit values of corresponding commodities, and each class of the commodities comprises a separate transaction chain. Participants in the blockchain may freely choose to enter different transaction chains.
(b) Transaction record data: firstly, the public key of the buyer is used for encryption to generate a transaction record ciphertext, and the ciphertext is stored in a transaction chain of the 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 uplink, and the content of the transaction record stores the commodity name and the commodity price.
(c) Encrypting the transaction record ciphertext generated in the step (b) by using the seller private key again, and sending the encrypted transaction record ciphertext to a gateway;
(d) the system-level intelligent contract in the gateway decrypts the secondarily encrypted transaction record ciphertext by using the seller public key, if the transaction record ciphertext can be decrypted, the authenticity of the transaction record is determined, the authenticity of the transaction record is verified, and if the transaction record ciphertext cannot be decrypted, the step (b) is returned;
(e) and encapsulating uplink by the responsible node in the corresponding round robin after the verification is completed.
The flow of information that the buyer obtains the reward is recorded on the Token chain and the cooperative working principle between the Token chain and the transaction chain are shown by the reward intelligent contract example:
specifically, after the buyer and the 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 select whether to share the commodity to the community, if sharing is performed, an intelligent reward 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 a corresponding reward (namely Token), and the reward amount is hooked with the commodity value; and if the sharing is not carried out or the purchasing behavior does not occur after the sharing, the reward intelligent contract will automatically lose effectiveness after t days, wherein the value range of t is 3-10. The two intelligent contracts are block chain system-level intelligent contracts and are stored in the founding blocks, and users do not need to write and are automatically generated by the system.
The two processes show that the multi-chain parallel structure records different information in different chains, and the different chains have no interaction, thereby realizing the capacity expansion of information recording. The information recording in the mode well solves the problem of huge information quantity caused by various commodity types, frequent transactions and large node number in the E-commerce industry, and meanwhile, the information synchronization among the nodes is more efficiently realized.
Compared with a single-chain traditional mode, the multi-chain parallel structure records different information in different chains, and the different chains have no interaction, so that the capacity expansion of information recording is realized. The information recording in the mode well solves the problem of huge information quantity caused by various commodity types, frequent transactions and large node number in the E-commerce industry, and meanwhile, the information synchronization among the nodes is more efficiently realized.
The structure can be transplanted to a plurality of application scenes and fields in an analogy manner, 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 same technical problems and achieve the same technical effects are all covered in the protection scope of the present invention.

Claims (7)

1. The application method of the block chain multi-chain parallel structure is characterized in that: the application method of the block chain multi-chain parallel structure comprises the following steps:
(a) dividing the block chain into a Token chain and a plurality of transaction chains according to a service scene, wherein the Token chain is a public chain, and the transaction chains are sub-chains;
(b) transaction record data: firstly, the public key of the buyer is used for encryption to generate a transaction record ciphertext, and the ciphertext is stored in a transaction chain of the autonomous domain;
(c) encrypting the transaction record ciphertext generated in the step (b) by using the seller private key again, and sending the encrypted transaction record ciphertext to a gateway;
(d) the system-level intelligent contract in the gateway decrypts the secondarily encrypted transaction record ciphertext by using the seller public key, if the transaction record ciphertext can be decrypted, the authenticity of the transaction record is determined, the authenticity of the transaction record is verified, and if the transaction record ciphertext cannot be decrypted, the step (b) is returned;
(e) and encapsulating uplink by the responsible node in the corresponding round robin after the verification is completed.
2. The method of claim 1, wherein: the Token chain is used for recording Token rewards obtained by the user, converting Gas, realizing Token transfer and recording and supporting an intelligent contract system.
3. The method of claim 1, wherein: the transaction chain is used for storing transaction information and credit values of corresponding commodities, and each commodity class comprises a separate transaction chain.
4. The method of claim 1, wherein: 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 transaction record needs to be encrypted before uplink, and the content of the transaction record stores the commodity name and the commodity price.
6. The method of claim 1, wherein: after the buyer and the 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 sharing is carried out, an intelligent reward contract is triggered, and when a link shared by the buyer is triggered by another buyer and the purchasing behavior is completed, the previous buyer obtains a corresponding reward; if no sharing is performed or no purchasing action occurs after sharing, the reward smart contract will automatically fail after t days.
7. The method of claim 1, wherein: 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 true CN111932254A (en) 2020-11-13
CN111932254B 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
CN111932254B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN110868440B (en) Block chain male chain
TWI719604B (en) Block chain-based resource allocation method and device
CN110471984B (en) Service processing method and device based on block chain and electronic equipment
CN109886677B (en) Commodity purchasing method and device based on block chain
TWI733091B (en) Remittance method and device based on blockchain
CN107169865A (en) Asset data processing system based on block chain technology
CN111539731A (en) Block chain-based federal learning method and device and electronic equipment
CN112650978B (en) Infringement detection method and device based on block chain and electronic equipment
US20200175583A1 (en) Blockchain-based leasing
CN110046480A (en) Works copyright distribution method and device based on block chain
CN110473030B (en) Block chain-based electronic bill number claiming method and device and electronic equipment
WO2021204044A1 (en) Correction of blockchain data
TW202026926A (en) Blockchain-based recordkeeping method and apparatus
CN111818095B (en) Tax refunding method and device based on block chain and electronic equipment
TW202046212A (en) Blockchain-based leasing method and apparatus
WO2021220062A1 (en) Blockchain transaction
CN110930152B (en) Data processing method based on block chain and related equipment
CN111680327B (en) Block chain-based client information integration method, device, equipment and storage medium
CN112561510A (en) Payment system, method, device, equipment and storage medium
CN110598480A (en) Data right confirming method and device
CN111726318A (en) Sensitive data transaction method and system based on block chain
CN114138468B (en) Self-adaptive distribution method and device for packaging task amount and storage medium
CN109739932A (en) Date storage method, device, computer equipment and computer readable storage medium
CN113657994A (en) Loan risk management control method and device based on alliance chain
CN111932254A (en) Application method of block chain multi-chain parallel structure

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