CN111724260B - Multi-scene configuration data storage method and system based on configuration block - Google Patents

Multi-scene configuration data storage method and system based on configuration block Download PDF

Info

Publication number
CN111724260B
CN111724260B CN202010557727.5A CN202010557727A CN111724260B CN 111724260 B CN111724260 B CN 111724260B CN 202010557727 A CN202010557727 A CN 202010557727A CN 111724260 B CN111724260 B CN 111724260B
Authority
CN
China
Prior art keywords
scene
main body
transaction
block
configuration
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
CN202010557727.5A
Other languages
Chinese (zh)
Other versions
CN111724260A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN202010557727.5A priority Critical patent/CN111724260B/en
Publication of CN111724260A publication Critical patent/CN111724260A/en
Application granted granted Critical
Publication of CN111724260B publication Critical patent/CN111724260B/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention relates to a multi-scene configuration data storage method and a system based on a configuration block, which comprises the following steps: acquiring a scene user list corresponding to a first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates; creating a first scene transaction corresponding to the scene user list by adopting the first main body; sending the first scene transaction to a first scene main body according to the scene user list; the first scene main body is all main bodies participating in the first scene except the first main body; storing the first scene transactions in a first configuration block of the first body and a first configuration block of the first scene body, respectively. The method and the system can overcome the problems of resource waste and node redundancy in the prior art.

Description

Multi-scene configuration data storage method and system based on configuration block
Technical Field
The invention relates to the technical field of block chains, in particular to a multi-scene configuration data storage method and system based on a configuration block.
Background
The existing storage mode of the federation chain for the participating federation nodes is stored in a common block, and the design mode results in that the modification of the participating nodes of a single federation chain only affects the federation chain. In actual services, one node may participate in multiple federation chains, and each federation chain only processes services of a single scene. Therefore, the process of node federation chain can only process federation chain configuration in one scenario. Under the premise, when one node participates in a plurality of scenes, a plurality of processes are started to process a plurality of alliance chains, and waste of system resources and redundancy of the node are brought.
Disclosure of Invention
The invention aims to provide a multi-scenario configuration data storage method and system based on a configuration block, and solves the problems of resource waste and node redundancy in the prior art.
In order to achieve the purpose, the invention provides the following scheme:
a multi-scene configuration data storage method based on configuration blocks comprises the following steps:
acquiring a scene user list corresponding to a first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates;
creating a first scene transaction corresponding to the scene user list by adopting the first main body;
sending the first scene transaction to a first scene main body according to the scene user list; the first scene main body is all main bodies participating in the first scene except the first main body;
storing the first scene transactions in a first configuration block of the first body and a first configuration block of the first scene body, respectively.
Optionally, the method for storing multi-scenario configuration data based on the configuration block further includes:
acquiring a second scene transaction sent by a second main body;
storing the second scene transactions in a second configuration block of the second body and a second configuration block of a second scene body, respectively; the second scene subjects are all subjects participating in the second scene except the second subject.
Optionally, the first allocation block and the second allocation block each include a block head and a block body; the block header comprises a block height and a block type; the block body of the first configuration block is used for storing the first scene transaction; the block body of the second configuration block is used for storing the second scene transaction.
Optionally, the first scenario transaction and the second scenario transaction each include a scenario ID, a scenario name, a scenario user list, a consensus policy, and a scenario user right.
A multi-scenario configuration data storage system based on configuration blocks, comprising:
the scene user list acquisition module is used for acquiring a scene user list corresponding to the first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates;
the scene transaction creating module is used for creating a first scene transaction corresponding to the scene user list by adopting the first main body;
the sending module is used for sending the first scene transaction to a first scene main body according to the scene user list; the first scene main body is all main bodies participating in the first scene except the first main body;
the first storage module is used for respectively storing the first scene transaction in the first configuration block of the first main body and the first configuration block of the first scene main body.
Optionally, the configuration block-based multi-scenario configuration data storage system further includes:
the scene transaction acquisition module is used for acquiring a second scene transaction sent by a second main body;
the second storage module is used for respectively storing the second scene transaction in a second configuration block of the second main body and a second configuration block of the second scene main body; the second scene subjects are all subjects participating in the second scene except the second subject.
Optionally, the first allocation block and the second allocation block each include a block head and a block body; the block header comprises a block height and a block type; the block body of the first configuration block is used for storing the first scene transaction; the block body of the second configuration block is used for storing the second scene transaction.
Optionally, the first scenario transaction and the second scenario transaction each include a scenario ID, a scenario name, a scenario user list, a consensus policy, and a scenario user right.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention provides a multi-scene configuration data storage method and a multi-scene configuration data storage system based on configuration blocks, which adopt a single process to create scene transactions and adopt the configuration blocks to store the scene transactions, so that the scene transactions participated by a scene main body can be processed by the single process in sequence, the storage of a plurality of scene transactions is supported on a process maintenance alliance chain, and the problems of resource waste and node redundancy in the prior art are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a method for storing multi-scenario configuration data based on configuration blocks according to an embodiment of the present invention;
FIG. 2 is a block diagram of an embodiment of a configuration block;
FIG. 3 is a schematic view of a multi-scenario configuration data storage process of a configuration block among a plurality of agents according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data storage system configured in multiple scenarios based on configuration blocks according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a multi-scenario configuration data storage method and system based on a configuration block, and solves the problems of resource waste and node redundancy in the prior art.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a flowchart of a method for storing multi-scenario configuration data based on configuration blocks according to an embodiment of the present invention, and as shown in fig. 1, the method for storing multi-scenario configuration data based on configuration blocks according to the present invention includes:
s101, acquiring a scene user list corresponding to a first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates. The scene user list includes all subjects participating in the scene. Specifically, the scene user list includes a subject ID and a subject address of each subject.
S102, adopting the first main body to create a first scene transaction corresponding to the scene user list. The first scene transaction is the transaction information of all subjects participating in the first scene in the scene user list.
S103, sending the first scene transaction to a first scene main body according to the scene user list; the first scene subject is all subjects participating in the first scene except the first subject.
S104, storing the first scene transaction in the first configuration block of the first main body and the first configuration block of the first scene main body respectively.
Specifically, after receiving the scene user list, the main body (node) establishes a special type of block to store scene transaction, namely scene configuration transaction, and the block is named as a configuration block; configuring a block in a block header by using a block type field as an identifier (if the block type field is a common block, the block is indicated as a block for storing common scene transactions); and the block body stores the scene transaction information.
The multi-scenario configuration data storage method based on the configuration block further comprises the following steps:
and acquiring a second scene transaction sent by a second main body.
Storing the second scene transactions in a second configuration block of the second body and a second configuration block of a second scene body, respectively; the second scene subjects are all subjects participating in the second scene except the second subject.
The first allocation block and the second allocation block comprise block heads and block bodies; the block header comprises a block height and a block type; the block body of the first configuration block is used for storing the first scene transaction; the block of the second allocation block is used for storing the second scenario transaction, as shown in fig. 2.
The first scenario transaction and the second scenario transaction each include a scenario ID, a scenario name, a scenario user list, a consensus policy, and a scenario user permission. Specifically, the scene ID is a unique identifier of a scene transaction; the scene name defines the text identification of the scene; the scene user list defines a main body participating in a scene, wherein the main body comprises a main body ID and a node address; the main body ID is used for uniquely identifying the main body, and the node address is used for finding the computer node corresponding to the main body; the consensus strategy defines a consensus mechanism adopted by scene transaction, and all nodes participating in the scene uniformly adopt the consensus mechanism in the configuration information to carry out distributed consensus. The scene user right is used for modifying the scene user list, and specifically, the scene user right defines which scene users have management right for the scene, and the management right refers to modifying the scene user list.
In order to achieve the above object, the present invention further provides a specific example, as shown in fig. 3, the general tile in fig. 3 stores transaction data of a scene, and the configuration tile stores configuration data of a scene. The main bodies participating in the scene are a main body A, a main body B and a main body C, and the specific process of the multi-scene configuration data storage method based on the configuration blocks is as follows:
step 1, acquiring a scene user list of a scene 1 corresponding to a main body A; the scene user list includes a subject a participating in the scene 1 and a subject B participating in the scene 1.
And 2, the main body A creates a scene transaction AB according to the scene user list. And the scene transaction AB is the transaction information of the main body A and the main body B participating in the scene 1.
And 3, the main body A sends the scene transaction AB to the main body B according to the scene user list.
Step 4, the main body a stores the scene transaction AB in the configuration block a 01.
Step 5, the main body B acquires the scene trade AB sent by the main body a, and stores the scene trade AB in the configuration block B01.
Since the main body a also participates in the scenario 2, and the scenario transaction AC corresponding to the scenario 2 is created by the main body C by using the above method, the main body a can also receive the scenario transaction AC sent by the main body C, and store the scenario transaction AC in the configuration block a 03.
Similarly, if the body a further participates in the scene 3, and at the same time, the body B and the body C also participate in the scene 3, the body a can also create a scene transaction ABC according to the scene user list corresponding to the scene 3, and send the scene transaction ABC to the body B and the body C, respectively, and then store the scene transaction ABC in the configuration block a 03.
The present invention also provides a multi-scenario configuration data storage system based on configuration blocks, as shown in fig. 4, the system includes:
a scene user list obtaining module 1, configured to obtain a scene user list corresponding to a first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates.
And the scene transaction creating module 2 is used for creating a first scene transaction corresponding to the scene user list by adopting the first main body.
A sending module 3, configured to send the first scenario transaction to a first scenario body according to the scenario user list; the first scene subject is all subjects participating in the first scene except the first subject.
A first storage module 4, configured to store the first scenario transaction in the first configuration block of the first main body and the first configuration block of the first scenario main body, respectively.
Preferably, the configuration block-based multi-scenario configuration data storage system further includes:
and the scene transaction acquisition module is used for acquiring a second scene transaction sent by the second scene main body.
The second storage module is used for respectively storing the second scene transaction in a second configuration block of the second main body and a second configuration block of the second scene main body; the second scene subjects are all subjects participating in the second scene except the second subject.
Preferably, the first allocation block and the second allocation block each include a block head and a block body; the block header comprises a block height and a block type; the block body of the first configuration block is used for storing the first scene transaction; the block body of the second configuration block is used for storing the second scene transaction.
Preferably, the first scenario transaction and the second scenario transaction each include a scenario ID, a scenario name, a scenario user list, a consensus policy, and a scenario user authority.
The invention adopts the single alliance chain process of the main node to process and store the transactions of each scene participated in by the main node, thereby solving the system load problem of the single node.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (6)

1. A multi-scene configuration data storage method based on configuration blocks is characterized by comprising the following steps:
acquiring a scene user list corresponding to a first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates;
creating a first scene transaction corresponding to the scene user list by adopting the first main body;
sending the first scene transaction to a first scene main body according to the scene user list; the first scene main body is all main bodies participating in the first scene except the first main body;
storing the first scene transactions in a first configuration block of the first body and a first configuration block of the first scene body, respectively;
further comprising:
acquiring a second scene transaction sent by a second main body;
storing the second scene transactions in a second configuration block of the second body and a second configuration block of a second scene body, respectively; the second scene main bodies are all main bodies participating in a second scene except the second main body;
the first main body also participates in a second scene, receives a second scene transaction sent by the second main body, and stores the second scene transaction in a second configuration block of the first main body;
the first main body and the second main body also participate in a third scene, the first main body creates a third scene transaction according to a user list corresponding to the third scene, and the third scene transaction is stored in a third configuration block of the first main body.
2. The method of claim 1, wherein the first allocation block and the second allocation block each comprise a block header and a block body; the block header comprises a block height and a block type; the block body of the first configuration block is used for storing the first scene transaction; the block body of the second configuration block is used for storing the second scene transaction.
3. The method of claim 1, wherein the first scenario transaction and the second scenario transaction each comprise a scenario ID, a scenario name, a scenario user list, a consensus policy, and a scenario user authority.
4. A multi-scenario configuration data storage system based on configuration blocks, comprising:
the scene user list acquisition module is used for acquiring a scene user list corresponding to the first main body; the scene user list includes all subjects participating in a first scene; the first scene is a scene in which the first subject participates;
the scene transaction creating module is used for creating a first scene transaction corresponding to the scene user list by adopting the first main body;
the sending module is used for sending the first scene transaction to a first scene main body according to the scene user list; the first scene main body is all main bodies participating in the first scene except the first main body;
a first storage module, configured to store the first scenario transaction in a first configuration block of the first main body and a first configuration block of the first scenario main body, respectively;
the scene transaction acquisition module is used for acquiring a second scene transaction sent by a second main body;
the second storage module is used for respectively storing the second scene transaction in a second configuration block of the second main body and a second configuration block of the second scene main body; the second scene main bodies are all main bodies participating in a second scene except the second main body;
the first main body also participates in a second scene, receives a second scene transaction sent by the second main body, and stores the second scene transaction in a second configuration block of the first main body;
the first main body and the second main body also participate in a third scene, the first main body creates a third scene transaction according to a user list corresponding to the third scene, and the third scene transaction is stored in a third configuration block of the first main body.
5. The configuration-tile-based multi-scenario configuration data storage system of claim 4, wherein the first configuration tile and the second configuration tile each comprise a tile header and a tile body; the block header comprises a block height and a block type; the block body of the first configuration block is used for storing the first scene transaction; the block body of the second configuration block is used for storing the second scene transaction.
6. The configuration tile based multi-scenario configuration data storage system of claim 4, wherein the first scenario transaction and the second scenario transaction each comprise a scenario ID, a scenario name, a scenario user list, a consensus policy and a scenario user permission.
CN202010557727.5A 2020-06-18 2020-06-18 Multi-scene configuration data storage method and system based on configuration block Active CN111724260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010557727.5A CN111724260B (en) 2020-06-18 2020-06-18 Multi-scene configuration data storage method and system based on configuration block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010557727.5A CN111724260B (en) 2020-06-18 2020-06-18 Multi-scene configuration data storage method and system based on configuration block

Publications (2)

Publication Number Publication Date
CN111724260A CN111724260A (en) 2020-09-29
CN111724260B true CN111724260B (en) 2022-08-05

Family

ID=72567428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010557727.5A Active CN111724260B (en) 2020-06-18 2020-06-18 Multi-scene configuration data storage method and system based on configuration block

Country Status (1)

Country Link
CN (1) CN111724260B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109711192A (en) * 2018-12-24 2019-05-03 众安信息技术服务有限公司 Method of commerce and system between block catenary system construction method, node
CN110532809A (en) * 2019-08-21 2019-12-03 杭州趣链科技有限公司 A kind of block chain multistage endorsement method based on configuration block
CN110648137A (en) * 2019-04-26 2020-01-03 腾讯科技(深圳)有限公司 Block processing method, node and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10795882B2 (en) * 2019-04-30 2020-10-06 Alibaba Group Holding Limited Blockchain-based data compression and searching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109711192A (en) * 2018-12-24 2019-05-03 众安信息技术服务有限公司 Method of commerce and system between block catenary system construction method, node
CN110648137A (en) * 2019-04-26 2020-01-03 腾讯科技(深圳)有限公司 Block processing method, node and system
CN110532809A (en) * 2019-08-21 2019-12-03 杭州趣链科技有限公司 A kind of block chain multistage endorsement method based on configuration block

Also Published As

Publication number Publication date
CN111724260A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN107332876B (en) Method and device for synchronizing block chain state
CN103460203B (en) cluster unique identifier
CN111245886B (en) Multi-party collaboration system, method and storage medium based on block chain
CN111091429A (en) Electronic bill identification distribution method and device and electronic bill generation system
CN111400112B (en) Writing method and device of storage system of distributed cluster and readable storage medium
CN110557416B (en) Multi-node collaborative blocking method and system
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN107423942B (en) Service transfer method and device
CN101771723A (en) Data synchronization method
CN105933393A (en) Intra-local area network data synchronization method, device and user terminal
CN106209943A (en) The system of selection of communication node and device
CN103731465A (en) Distributed system and transaction treatment method thereof
CN110134503A (en) Timed task processing method, device and storage medium under a kind of cluster environment
CN107870982A (en) Data processing method, system and computer-readable recording medium
CN102088458A (en) Method, terminal and system for holding cascade conference
CN111724260B (en) Multi-scene configuration data storage method and system based on configuration block
US20210096962A1 (en) Data backup method, device and system
CN110888892B (en) Block synchronization method, device and storage medium
CN107609197A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN104079663A (en) Distributed type real-time synchronizing network system and data annunciating method thereof
CN104699527A (en) Critical resource management method and device in cloud storage system
CN116260827A (en) Election method, election system and related device of leader in cluster
CN104852858B (en) A kind of flow forwarding method and equipment
CN114172792A (en) Method and device for realizing sequence number generation method for ensuring high availability of service
CN113518126A (en) Cross fault-tolerant method for alliance 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