CN114979173B - User rights information processing method, device, equipment and storage medium based on block chain - Google Patents

User rights information processing method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN114979173B
CN114979173B CN202110430912.2A CN202110430912A CN114979173B CN 114979173 B CN114979173 B CN 114979173B CN 202110430912 A CN202110430912 A CN 202110430912A CN 114979173 B CN114979173 B CN 114979173B
Authority
CN
China
Prior art keywords
node
blockchain
block chain
sequence number
information
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
CN202110430912.2A
Other languages
Chinese (zh)
Other versions
CN114979173A (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.)
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Internet 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 China Mobile Communications Group Co Ltd, China Mobile Internet Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110430912.2A priority Critical patent/CN114979173B/en
Publication of CN114979173A publication Critical patent/CN114979173A/en
Application granted granted Critical
Publication of CN114979173B publication Critical patent/CN114979173B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/44Distributed routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

One embodiment of the present specification provides a blockchain-based user interest information processing method, apparatus, device, and storage medium to improve the efficiency of synchronizing user interest information among the blockchain nodes in a blockchain system. The method comprises the following steps: acquiring and storing user rights and interests information to be linked; judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node; if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node.

Description

User rights information processing method, device, equipment and storage medium based on block chain
Technical Field
The present disclosure relates to the field of mobile communications, and in particular, to a method, apparatus, device, and storage medium for processing user interest information based on blockchain.
Background
At present, the blockchain technology is vigorously developed, data is uploaded to a blockchain system for storage, and the anti-counterfeiting property and the authenticity of the data can be ensured by means of the advantage that the data in the blockchain system cannot be tampered. User interest information provided to the user by the interest information provider, such as purchasing members may view member-specific videos, etc., may also be uploaded to the blockchain system for storage. However, in the prior art, after any one block link point in the block chain system receives the user interest information, the user interest information is synchronized to other block link points in a broadcast manner. Because the broadcasting mode does not specify a specific data receiver, the data receiver completely depends on the data monitoring function of the data receiver to receive the data, so that the data receiver can not monitor the data to be received easily, and the data synchronization efficiency is low.
Disclosure of Invention
It is an object of one embodiment of the present specification to provide a blockchain-based user rights information processing method, apparatus, device, and storage medium to improve the efficiency of synchronizing user rights information among the various blockchain nodes in a blockchain system.
To solve the above technical problems, an embodiment of the present specification is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides a method for processing user interest information based on a blockchain, where each blockchain node in the blockchain system is assigned a sequence number, and a blockchain node with a minimum sequence number is a blockchain root node; the method is applied to a first blockchain node in a blockchain system, wherein the first blockchain node is a node except the blockchain root node; the method comprises the following steps:
acquiring and storing user rights and interests information to be linked;
judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
If yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
In a second aspect, one embodiment of the present disclosure provides a blockchain-based user interest information processing system, where each blockchain node in the blockchain system is assigned a sequence number, the system includes a first blockchain node and a blockchain root node, and the blockchain root node is a blockchain node with a minimum sequence number; the first blockchain node is a node other than the blockchain root node;
the first blockchain node is used for acquiring and storing user rights and interests information to be uplink; judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node; if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule; if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node;
The block chain root node is used for determining each block chain node for receiving the data synchronized by the block chain root node according to the pre-stored routing link information corresponding to the block chain root node, determining a third block chain node which is not routed with the user interest information in each block chain node, and transmitting the user interest information to the third block chain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
In a third aspect, an embodiment of the present disclosure provides a user interest information processing apparatus based on a blockchain, where each blockchain node in the blockchain system is assigned a sequence number, and a blockchain node with a minimum sequence number is a blockchain root node; the device is applied to a first blockchain node in a blockchain system, wherein the first blockchain node is a node except the blockchain root node; the device comprises:
the information acquisition unit is used for acquiring and storing user rights and interests information to be linked;
the link judging unit is used for judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
The first transmission unit is used for determining a second block chain node for receiving the data synchronized by the first block chain node according to the routing link information if the user interest information is not received, and transmitting the user interest information to the second block chain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
the second transmission unit is used for transmitting the user right information and the routing information of the user right information in the blockchain system to the blockchain root node if the user right information and the routing information of the user right information in the blockchain system are in the same type; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
In a fourth aspect, one embodiment of the present specification provides a blockchain-based user interest information processing device, including a memory and a processor, the memory having stored thereon computer-executable instructions that, when executed on the processor, are capable of implementing the steps of the method of the first aspect.
In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are capable of implementing the steps of the method described in the first aspect.
In this embodiment, when user rights and interests information is synchronized, the information can be synchronized to the blockchain node with the smallest sequence number in a source returning manner, so that the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast the user rights and interests information to all the blockchain link points, only needs to synchronize the user rights and interests information to part of the blockchain nodes according to the corresponding routing link information, and the synchronization speed and efficiency of the user rights and interests information of a single blockchain node are improved, thereby improving the efficiency of synchronizing the user rights and interests information among the blockchain nodes in the blockchain system.
Drawings
In order to more clearly illustrate the technical solution in one or more embodiments of the present description, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments described in the present description, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a diagram illustrating data synchronization of a blockchain system according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating data synchronization of a blockchain system according to another embodiment of the present disclosure;
FIG. 3 is a functional exploded view of a blockchain node provided in an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a method for processing blockchain-based user rights information according to an embodiment of the present disclosure;
FIG. 5 is a flowchart of user rights information distribution synchronization according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating user rights and interests information exchange according to an embodiment of the present disclosure;
FIG. 7 is a flowchart of user rights and interests information exchange according to another embodiment of the present disclosure;
FIG. 8 is a flow chart of a device joining a blockchain system according to an embodiment of the present disclosure;
FIG. 9 is a flow chart of a device joining a blockchain system according to another embodiment of the present disclosure;
FIG. 10 is a schematic flow chart of a block chain system patrol provided in an embodiment of the present disclosure;
FIG. 11 is a block chain based user interest information processing system according to one embodiment of the present disclosure;
FIG. 12 is a block chain based user interest information processing apparatus according to one embodiment of the present disclosure;
Fig. 13 is a schematic structural diagram of a blockchain-based user rights information processing device according to an embodiment of the present disclosure.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive faculty, are intended to be within the scope of the present disclosure.
In consideration of the disadvantage that after any one block link point in the block chain system in the prior art receives user interest information, the user interest information is synchronized to other block link points in a broadcasting mode, and because a specific data receiver is not specified in the broadcasting mode and data receiving is performed by completely relying on a data monitoring function of the data receiver, the data receiver can easily monitor data to be received, and has low data synchronization efficiency, an embodiment of the present disclosure provides a block chain-based user interest information processing method, device, equipment and storage medium, so as to improve efficiency of synchronizing user interest information among all block chain nodes in the block chain system.
FIG. 1 is a schematic diagram of data synchronization of a blockchain system according to an embodiment of the present disclosure, as shown in FIG. 1, where the blockchain system includes a plurality of blockchain nodes, which may also be referred to as a blockchain center, each of the blockchain nodes is assigned a sequence number, and the sequence numbers of the blockchain nodes are different from each other, for example, each of the blockchain nodes is assigned a sequence number from 1, and the sequence numbers are sequentially incremented natural numbers: 1. 2, 3 … n, n is the number of blockchain nodes. After sequence numbers are allocated, a data distribution degree m is set for the block chain system, wherein m is a positive integer greater than or equal to 1 and less than or equal to the number n of the block chain nodes, and when m=n, any block chain node synchronizes data to other block chain nodes through a broadcasting mode.
For any one blockchain node, the sequence numbers of other blockchain nodes of which the blockchain node needs to synchronize data can be calculated according to the sequence number and the data distribution degree m of the blockchain node, for example, for the blockchain node with the sequence number p, the blockchain node needs to synchronize data to the blockchain nodes with the sequence numbers (p-1) m+2 to p+m+1.
As shown in fig. 1, fig. 1 illustrates a blockchain system with a data distribution degree of 2, in which synchronous data is hierarchically synchronized, and when the data distribution degree is m and the hierarchy is F (F > =0), each layer has at most m ζ blockchain nodes, and for the blockchain node with a sequence number p, the blockchain node needs to synchronize data with the blockchain node with a downstream sequence number (p-1) x m+2 to a sequence number p x m+1.
In fig. 1, the blockchain node with sequence number 1 needs to synchronize data to the blockchain nodes with sequence numbers (1-1) 2+2 to 1×2+1, that is, the blockchain node with sequence number 1 needs to synchronize data to the blockchain nodes with sequence numbers 2 and 3, the blockchain node with sequence number 2 needs to synchronize data to the blockchain nodes with sequence numbers (2-1) 2+2 to 2×2+1, that is, the blockchain node with sequence number 2 needs to synchronize data to the blockchain nodes with sequence numbers 4 and 5, and the blockchain node with sequence number 3 needs to synchronize data to the blockchain nodes with sequence numbers (3-1) 2+2 to 3×2+1, that is, the blockchain node with sequence number 3 needs to synchronize data to the blockchain nodes with sequence numbers 6 and 7. For ease of illustration, in FIG. 1, each blockchain node is connected in a directional arrow manner to illustrate a blockchain system according to the data synchronization relationship between each blockchain node.
Based on the blockchain system in fig. 1, fig. 2 is a data synchronization schematic diagram of the blockchain system according to another embodiment of the present disclosure, as shown in fig. 2, fig. 2 illustrates the blockchain system with a data distribution degree of 2, corresponding to fig. 1, in fig. 2, the blockchain node with the number 1 synchronizes to the blockchain nodes with the numbers 2 and 3, the blockchain node with the number 2 synchronizes to the blockchain nodes with the numbers 4 and 5, and the blockchain node with the number 3 synchronizes to the blockchain nodes with the numbers 6 and 7, so as to analogize according to the above formula.
In the blockchain system shown in fig. 1 and fig. 2, each blockchain system calculates the serial number of a blockchain node needing data synchronization according to the data distribution degree and the serial number of the blockchain system, and performs data synchronization. For example, the blockchain node with the serial number 2 in fig. 1 and fig. 2 has the corresponding routing link information including: 1-2,2-4,2-5, the information indicating that the node obtained data from the blockchain node with sequence number 1, and synchronized the data to the blockchain nodes with sequence numbers 4 and 5.
For any one of the blockchain nodes p, for the data distribution degree m, if, after calculation according to the formulas (p-1) m+2 and p m+1, there is no blockchain node with the sequence number (p-1) m+2 to the sequence number p+1 in the blockchain system, it is indicated that the node is the lowest layer node in fig. 1, and only receives the data synchronized by the upper layer blockchain node, and there is no downstream node, in this case, after the node receives the data synchronized by the upper layer blockchain node, the node returns the data to the blockchain node with the minimum sequence number, specifically, returns the data to the blockchain node with the sequence number 1, and the sequence number of the blockchain node, the sequence number of the blockchain node for synchronizing the data for the blockchain node, and the sequence number 1 are recorded in the routing link information corresponding to the node. For example, the blockchain node with the number n in fig. 1 and fig. 2 has the corresponding routing link information including: x1-n, x2-n, n-1, the information indicating that the node obtained data from the blockchain nodes with sequence numbers x1 and x2 and sourced the data back to the blockchain node with sequence number 1.
Accordingly, for the blockchain node with the smallest sequence number, the sequence number of the blockchain node needed to be synchronized by the blockchain node, and the sequence number of the blockchain node returning the source data to the node are recorded in the routing link information corresponding to the node. For example, the blockchain node with the serial number 1 in fig. 1 and fig. 2 has the corresponding routing link information including: n-1, (n-1) -1,1-2,1-3, the information indicating that the node is to retrieve data from the blockchain node with sequence number n and sequence number n-1 back to source and synchronize the data to the blockchain node with sequence number 2 and sequence number 3.
In the above process, after a certain blockchain node receives data synchronized by an upper layer blockchain node, the data is returned to the blockchain node with the smallest sequence number, specifically, the data is returned to the blockchain node with the sequence number 1, the synchronized data is sent to the blockchain node with the sequence number 1 during the source returning, and the route information of the data in the blockchain system indicates which blockchain node the data is stored by, so that the blockchain node with the sequence number 1 determines the blockchain node which does not store the data in the blockchain nodes such as 2 and 3 which need to synchronize the data according to the route information, and sends the data to the blockchain node, thereby synchronizing the data to other nodes which do not store the data.
As shown in FIG. 1, for the lowest blockchain nodes, during data synchronization, these nodes source data back to the blockchain node with sequence number 1, while returning the routing information of the source data in the blockchain system. As shown in FIG. 2, during data synchronization, both the blockchain nodes with sequence number n and sequence number n-1 source data back to the blockchain node with sequence number 1, and at the same time, the routing information of the source data in the blockchain system is returned. In fig. 1 and 2, if a certain blockchain node returns source data to a blockchain node with the sequence number 1, the blockchain system updates the other blockchain nodes such as the blockchain node with the sequence number 2 with the sequence number 1 and adjusts the sequence numbers of the other blockchain nodes, and the blockchain node returns the source data to the updated blockchain node with the sequence number 1.
Taking fig. 1 and 2 as an example, in practical application, the first blockchain node that receives the data to be stored in the blockchain is not necessarily the blockchain node with the sequence number of 1, but can be any blockchain node, after the node receives the data and stores the data, the node synchronizes the data to other blockchain nodes according to the corresponding routing link information, in the synchronization process, the data is also sent back to the blockchain node with the sequence number of 1, and the routing information of the data is sent back, so that the blockchain node with the sequence number of 1 determines the blockchain node without storing the data in the blockchain nodes with the sequence numbers of 2 and 3, and synchronizes the data to the determined nodes, thereby, when a certain blockchain node repeatedly receives the data, each blockchain node is indicated to have received the data, the data synchronization is completed, and the repeatedly received blockchain node returns a notification message of synchronization completion to the blockchain node with the sequence number of 1. By sending the notification message, it can also be ensured that each blockchain node is set to be synchronized only once for the same data, and redundant synchronization of the data is avoided.
Therefore, in the blockchain system in fig. 1 and fig. 2, during data synchronization, the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast data to all blockchain nodes, only needs to synchronize the data to part of blockchain nodes according to corresponding routing link information, and the data synchronization speed and efficiency of a single blockchain node are improved, so that the efficiency of synchronizing data among the blockchain nodes in the blockchain system is improved. In the above blockchain system, the blockchain node with the smallest sequence number may be referred to as a blockchain root node. It will be appreciated that the blockchain system described above may store any data, and that any data stored may be synchronized in each blockchain node, and that the embodiments of the blockchain system described above that are used in the context of user interest information processing will be described in detail below, although the blockchain system described above may be used not only in the context of user interest information processing described below, but also in other contexts, and will not be described in detail herein. The user's equity information refers to equity defined by equity information provider, for example, a user may enjoy membership discount by purchasing membership card, and if the user wants to enjoy the equity, equity exchange is required, for example, purchase membership card and provide membership card number at checkout.
Fig. 3 is a functional exploded schematic diagram of a blockchain node according to an embodiment of the present disclosure, as shown in fig. 3, each blockchain node has an identity verification module, a benefit uploading module, a benefit verification module, a benefit encryption/decryption module, a blockverification module, a benefit distribution module, and a benefit exchange module when processing user benefit information.
In fig. 3, the identity verification module is configured to perform identity registration and identity verification on the rights information provider, and includes an identity registration component and an identity verification component. And the rights uploading module is used for uploading the user rights information defined by the rights information provider to the blockchain and comprises an external interface, an uploading specification component and a batch uploading component. The rights and interests verification module is used for checking whether the source, the content, the value and the validity period of the user rights and interests information defined by the rights and interests information provider are legal or not, and comprises a source checking component, a content checking component, a value checking component and a validity period checking component. Where the value refers to a price corresponding to the equity, such as a price of a membership card. The rights and interests encrypting and decrypting module is used for encrypting and decrypting the rights and interests information of the user and setting the password level, and comprises a rights and interests encrypting component, a rights and interests decrypting component and an encryption level setting component. And the block verification module is used for verifying the other block chain nodes when receiving the user interest information transmitted by the other block chain nodes, and comprises a block verification component. The rights distributing module is used for rights distribution, block storage, distribution mode control, operation log recording and the like, and comprises a rights distributing component, a block storage and log component, a distribution mode control component and a distribution route list component. The right exchange module is used for exchanging the right and deducting, and the right deduction unsuccessful rollback comprises a right deduction component and a right deduction rollback component.
Based on the above-provided blockchain system and the above-mentioned blockchain node functions, an embodiment of the present disclosure provides a blockchain-based user interest information processing method, and fig. 4 is a schematic flow chart of the blockchain-based user interest information processing method according to an embodiment of the present disclosure, where the method is applied to a first blockchain node in the blockchain system, and the first blockchain node is any node other than a blockchain root node, as shown in fig. 4, and the method includes:
step S402, obtaining and storing user rights and interests information to be linked;
step S404, judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
step S406, if not, determining a second block chain node for receiving the data synchronized by the first block chain node according to the routing link information, and transmitting user interest information to the second block chain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
step S408, if yes, transmitting the user interest information and the routing information of the user interest information in the blockchain system to the blockchain root node; the routing information is used for determining a third block chain node which is not routed with the user interest information in each block chain node after determining each block chain node for receiving the data synchronized by the block chain root node according to the pre-stored routing link information corresponding to the block chain root node, and transmitting the user interest information to the third block chain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
Therefore, in this embodiment, when user rights and interests information is synchronized, the information can be synchronized to the blockchain node with the smallest sequence number in a source returning manner, so that the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast the user rights and interests information to all the blockchain link points, only needs to synchronize the user rights and interests information to part of the blockchain nodes according to the corresponding routing link information, and the synchronization speed and efficiency of the user rights and interests information of the single blockchain node are improved, so that the efficiency of synchronizing the user rights and interests information among the blockchain nodes in the blockchain system is improved.
From the previous description of the blockchain system, the routing link information corresponding to the first blocklink point in fig. 4 may be generated as follows:
(a1) Acquiring a sequence number which is pre-allocated to the first block chain link point, acquiring a data distribution degree which is pre-set for a block chain system, and determining the sequence number of a block chain node for receiving the data synchronized by the first block chain node according to the sequence number of the first block chain node and the data distribution degree;
(a2) If the block chain node corresponding to the determined sequence number exists in the block chain system, determining the corresponding block chain node as a second block chain node, and acquiring the sequence number of the second block chain node; acquiring a sequence number of a fourth blockchain node; generating route link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the second block link node; determining that the blockchain node used for receiving the data synchronized by the fourth blockchain node comprises a first blockchain node according to the serial number of the fourth blockchain node and the data distribution degree;
(a3) If the block chain node corresponding to the determined sequence number does not exist in the block chain system, the sequence number of the fourth block chain node and the sequence number of the block chain node with the minimum sequence number are obtained; and generating the routing link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the block link node with the minimum sequence number.
As can be seen from the foregoing description, for the blockchain node with the sequence number p, when m is the data distribution degree, the blockchain node needs to synchronize data to the blockchain nodes with the sequence numbers (p-1) m+2 to p+m+1. Based on this, in the operation (a 1), a sequence number p allocated in advance to the first blockchain node is obtained, and a data distribution degree m set in advance for the blockchain system is obtained, and according to the sequence number p and the data distribution degree m of the first blockchain node, the sequence number of the blockchain node for receiving the data synchronized by the first blockchain node is determined, where the sequence number is (p-1) ×m+2 to p×m+1.
In the operation (a 2), it is determined whether there is a blockchain node with a sequence number of (p-1) m+2 to a sequence number of p+m+1 in the blockchain system, and if so, the existing blockchain node is determined to be a second blockchain node and the sequence number thereof is acquired. In act (a 2), a sequence number of a fourth blockchain node is also obtained, and it is determined that the blockchain node for receiving the data synchronized by the fourth blockchain node includes the first blockchain node based on the sequence number and the data distribution degree of the fourth blockchain node. In the operation (a 2), the routing link information corresponding to the first blockchain link point is generated according to the sequence number of the fourth blockchain node, the sequence number of the first blockchain node, and the sequence number of the second blockchain node. For example, the fourth blockchain node sequence number is s1, (p-1) m+2 and p m+1 are adjacent sequence numbers, and the routing link information includes s1-p, p- (p-1) m+2 and p-p m+1.
In the action (a 3), judging whether a blockchain node with the sequence number of (p-1) m+2 to the sequence number of p m+1 exists in the blockchain system, if the blockchain node does not exist, indicating that the first blockchain node does not distribute data to other blockchain nodes, but as described above, the data needs to be returned to the blockchain node with the minimum sequence number, the sequence number of the fourth blockchain node and the sequence number of the blockchain node with the minimum sequence number are obtained, and the routing link information corresponding to the first blockchain link point is generated according to the sequence number of the fourth blockchain node, the sequence number of the first blockchain node and the sequence number of the blockchain node with the minimum sequence number. For example, the fourth blockchain node has a sequence number s1 and the smallest blockchain node has a sequence number 1, and the routing link information includes s1-p, p-1.
In a specific example, the first blockchain node is blockchain node 4 in fig. 1 and 2, which receives data from blockchain node 2 and synchronizes the data to blockchain nodes 8 and 9, the routing link information corresponding to the first blockchain node includes: 2-4,4-8,4-9.
In another specific example, the first blockchain node is the blockchain node 4 in fig. 1 and 2, which receives data from the blockchain node 2, there are no nodes with sequence numbers 8 and 9 in the blockchain system, the blockchain node 4 sources the data back to the blockchain node 1, and the routing link information corresponding to the first blockchain node includes: 2-4,4-1.
Based on the routing link information corresponding to the link point of the first block, in the step S402, the user interest information to be uplink is obtained and stored, including: user interest information to be uplink is obtained from a fourth blockchain node or an interest information provider and stored.
In one case, the first blockchain node is not the first node to receive the user interest information uploaded by the interest information provider, and therefore, the first blockchain node obtains and stores the user interest information to be uploaded from the fourth blockchain node, thereby enabling the user interest information to be uploaded. In another case, the first blockchain node is the first node to receive the user rights information uploaded by the rights information provider, that is, the rights information provider submits the user rights information to the first blockchain node for information uplink, so that the first blockchain node obtains and stores the user rights information to be uplink from the rights information provider, and the user rights information is uplink.
In step S404, the first block link point determines whether the first block link node is an end node on the routing link where the first block link point is located according to the pre-stored routing link information corresponding to the first block link point. Specifically, if the route link information corresponding to the first block link point is recorded, the first block link node p transmits information to nodes except for the block link node with the smallest sequence number, the first block link node is not an end node on the route link where the first block link node is located, and if the route link information corresponding to the first block link point is recorded, the first block link node p transmits information to the block link node with the smallest sequence number, the first block link node is an end node on the route link where the first block link node is located.
In step S406, if the first blockchain node is not the end node on the routing link where the first blockchain node is located, the first blockchain node determines a second blockchain node for receiving the data synchronized by the first blockchain node according to the corresponding routing link information, and transmits the user benefit information to the second blockchain node. The numerical relationship between the sequence number of the first blockchain node and the sequence number of the second blockchain node conforms to a preset routing rule. For example, the routing link information corresponding to the first blockchain node p includes s1-p, p- (p-1) m+2, and p-p m+1, and the first blockchain node transmits the user interest information to the node with the sequence number (p-1) m+2 and the node with the sequence number p m+1. The preset routing rule comprises the following steps: when m is the data distribution degree, the blockchain node p needs to synchronize data to the blockchain nodes with the sequence numbers of (p-1) m+2 to p+1.
In step S408, if the first blockchain node is the end node on the routing link where the first blockchain node is located, the first blockchain node transmits the user benefit information and the routing information of the user benefit information in the blockchain system to the blockchain root node according to the corresponding routing link information, where the blockchain root node is the blockchain node with the minimum sequence number. For example, the routing link information corresponding to the first blockchain node p includes s1-p, p-1, and then the first blockchain node transmits the user benefit information to the node with the sequence number of 1.
The routing information of the user interest information in the blockchain system is used to indicate which blockchain nodes have received and stored the user interest information, i.e. which blockchain nodes have been routed with the user interest information. The routing information is specifically a list in which serial numbers of blockchain nodes to which the user interest information is routed are recorded.
After receiving the user interest information and the routing information corresponding to the user interest information, the blockchain root node determines each blockchain node for receiving the data synchronized by the blockchain root node according to the pre-stored routing link information corresponding to the blockchain root node, determines a third blockchain node which is not routed with the user interest information in each determined blockchain node according to the routing information corresponding to the user interest information, and transmits the user interest information to the third blockchain node, so that the user interest information is transmitted to the nodes which do not store the information. It can be appreciated that the numerical relationship between the sequence number of the third blockchain node and the sequence number of the blockchain root node conforms to the predetermined routing rule.
For example, when the blockchain node 1 receives the user interest information and the routing information corresponding to the user interest information, each blockchain node for receiving the data synchronized by the blockchain node 1 is determined to be the blockchain nodes 2 and 3 according to the corresponding routing link information, and the blockchain node 3 is determined to be the third blockchain node not to be routed with the user interest information according to the routing information corresponding to the user interest information, the blockchain node 1 transmits the user interest information to the blockchain node 3, so that the user interest information is transmitted to the nodes not storing the information.
Through the flow in fig. 4, user interest information can be synchronized to each blockchain node in a blockchain system through a ring distribution mode, each blockchain node does not need to synchronize data to all nodes, distribution workload of a single blockchain node is transferred to other blockchain nodes, data distribution pressure of the single blockchain node is reduced, hardware requirements on the single blockchain node are reduced, distribution efficiency shows exponential growth, and the system is more efficient and sequential distribution is more beneficial to improving safety of the system. In this embodiment, each blockchain node may be configured to receive the user rights information only once, or may receive the user rights information multiple times, which may be configured as needed. In this embodiment, the data distribution degree may be configured as required, so as to flexibly control the data distribution efficiency.
Fig. 5 is a schematic flow chart of user rights information distribution synchronization according to an embodiment of the present disclosure, as shown in fig. 5, the flow includes:
1. the rights information provider uploads the user rights information to any blockchain node p after defining the user rights information;
2. the blockchain node p receives the user rights information through the rights uploading module, verifies the identity of the rights information provider through the identity verification module, and comprises the following steps: verifying whether the rights information provider is personally authenticated, and the like.
3. After the identity of the rights and interests information provider is verified by the blockchain node p, the uploaded user rights and interests information is verified by a rights and interests verification module, which comprises the following steps: the source, content, value and expiration date of the user's rights and interests information are verified.
4. After the user rights and interests information is verified by the block chain node p, the rights and interests information of the user is encrypted and stored through the rights and interests encryption and decryption module, and a notification message for receiving the rights and interests information uploading request is returned to the rights and interests information provider.
5. The block chain node p asynchronously transmits the user interest information to the block chain node n through the interest distribution module according to the corresponding routing link information;
6. the blockchain node n verifies the blockchain node p through a block verification module, and judges whether the blockchain node p is a node which allows data transmission to the blockchain node n, namely, verifies whether a distribution formula set by the data distribution degree m is consistent with the distribution formula of p and n, wherein the blockchain node needs to synchronize data to the blockchain node with the sequence number of (p-1) m+2 to the sequence number of p+m+1 when m is the data distribution degree;
7. after the block chain node n passes the verification of the block chain node p, storing user interest information, and asynchronously synchronizing the user interest information to other block chain link points through an interest distribution module according to the corresponding routing link information, wherein the block chain node n is assumed to need to return the user interest information to the block chain node 1;
8. The block chain node 1 asynchronously distributes user interest information to other block chain link points through the interest distribution module according to the corresponding routing link information;
9. after more than half of the blockchain nodes store the user rights information, the blockchain node p informs the rights information provider that the user rights information is successfully uploaded.
Based on the block chain system, after the user interest information is successfully uplink, a user interest exchange link can be realized, for example, after the user purchases a membership card, the user exchanges and watches a membership designated video. Based on this, fig. 6 is a schematic diagram of a process for exchanging user rights and interests information according to an embodiment of the present disclosure, and as shown in fig. 6, the process is performed by the first block link point, including:
step S602, obtaining and storing a right exchange completion message to be uplink;
step S604, if the first blockchain node is not the last node, transmitting a benefit exchange completion message to the second blockchain node;
step S606, if the first block chain node is the end node, transmitting the right exchange completion message and the route information of the right exchange completion message in the block chain system to the block chain root node;
The method comprises the steps that after each block chain link point for receiving data synchronized by the block chain root node is determined according to route link information corresponding to the pre-stored block chain root node, a fifth block chain node which is not subjected to route benefit exchange completion information is determined in each block chain node by the block chain root node, and the benefit exchange completion information is transmitted to the fifth block chain link point; the numerical relation between the serial number of the fifth blockchain node and the serial number of the blockchain root node accords with a preset routing rule.
In the step S602, the first blockchain obtains and stores the rights exchange completion message to be uplink, including: and acquiring and storing the right exchange completion message to be uplink from the fourth blockchain node, or generating and storing the right exchange completion message to be uplink.
In one case, the first blockchain node is not the node for the user to perform the equity redemption, and therefore, the first blockchain node obtains and stores the equity redemption completion message from the fourth blockchain node, thereby enabling the equity redemption completion message to be uplink. In another case, the first blockchain node is a node for performing rights and interests exchange for the user, that is, the user performs rights and interests exchange on the first blockchain node, and after the rights and interests exchange is completed, the first blockchain node generates and stores a rights and interests exchange completion message to be uplink, so that the rights and interests exchange completion message is uplink.
If the first blockchain node is not the end node in step S604, the benefit exchange completion message is transmitted to the second blockchain node according to the corresponding routing link information, which is similar to the previous uploading of the user benefit message, and is not repeated here.
In the step S606, if the first blockchain node is the end node, the rights exchange completion message and the routing information of the rights exchange completion message in the blockchain system are transmitted to the blockchain root node according to the corresponding routing link information.
The routing information of the equity redemption completion message in the blockchain system is used to indicate which blockchain points received and stored equity redemption completion messages, i.e., which blockchain nodes have been routed. The routing information is specifically a list, and the list is used for recording serial numbers of the blockchain nodes routed with the rights exchange completion message.
After receiving the equity exchange completion message and the routing information corresponding to the equity exchange completion message, the blockchain root node determines each blockchain node for receiving the data synchronized by the blockchain root node according to the pre-stored routing link information corresponding to the blockchain root node, determines a fifth blockchain node which is not routed with the equity exchange completion message in each determined blockchain node according to the routing information corresponding to the equity exchange completion message, and transmits the equity exchange completion message to the fifth blockchain node, thereby transmitting the equity exchange completion message to the nodes which do not store the information. It can be appreciated that the numerical relationship between the serial number of the fifth blockchain node and the serial number of the blockchain root node conforms to the predetermined routing rule. This process is similar to the previous upload of the user interest message and is not repeated here.
The uplink process of the equity exchange completion message and the uplink process of the user equity information all involve the distribution of data among all block chain nodes, the equity exchange completion message can be synchronized to all block chain nodes in a block chain system through a ring distribution mode through the flow in fig. 6, each block chain node does not need to synchronize data to all nodes, the distribution workload of a single block chain node is transferred to other block chain nodes, the data distribution pressure of the single block chain node is reduced, the hardware requirement on the single block chain node is reduced, the distribution efficiency presents exponential growth, the distribution efficiency is more efficient, and the sequential distribution is more beneficial to improving the safety of the system. In this embodiment, each blockchain node may be configured to receive the equity redemption completion message only once, or may receive the equity redemption completion message multiple times, which may be configured as needed. In this embodiment, the data distribution degree may be configured as required, so as to flexibly control the data distribution efficiency.
Fig. 7 is a schematic diagram of a process for exchanging user rights and interests information according to another embodiment of the present disclosure, as shown in fig. 7, where the process includes:
1. the user submits a equity redemption application to the blockchain node p, which carries payment credentials for the user's equity, which are provided by a third party payment clearing house.
2. The block chain node p performs identity authentication on the user;
3. the blockchain node p is communicated with a third party payment settlement center to verify payment credentials;
4. the blockchain node P verifies the rights and interests validity;
5. after the authentication, payment credentials and rights and interests validity verification are passed, the blockchain node p performs rights and interests deduction, and the process does not allow modification and rollback in response to the recorded user exchange request of the user;
6. the block chain node P asynchronously distributes the right exchange completion message to the block chain node n according to the corresponding routing link information;
7. the blockchain node n verifies the blockchain node p to determine whether the blockchain node p is a node allowing data to be transmitted to the blockchain node n, namely, verifies whether a distribution formula set by the data distribution degree m is met between p and n, namely, the blockchain node with the sequence number p needs to synchronize data to the blockchain node with the sequence number (p-1) m+2 to the sequence number p+m+1 when m is the data distribution degree;
8. after the block chain node n passes the verification of the block chain node p, carrying out the equity deduction, storing equity exchange completion information and asynchronously exchanging equity exchange completion information to other block chain link points according to the corresponding route link information, wherein the block chain node n is assumed to need to return the equity exchange completion information to the block chain node 1;
9. The block chain node 1 receives the right exchange completion message, carries out right deduction, and asynchronously distributes the right exchange completion message to other block chain link points according to the corresponding route link information;
10. after more than half of the blockchain nodes store the rights exchange completion message, the blockchain node p informs the user that the rights exchange is successful.
As can be seen from the foregoing description, the first blockchain node can synchronize data to the plurality of second blockchain nodes according to the corresponding routing link information, and therefore, according to an embodiment of the present disclosure, a process of adding a device to a blockchain system is further provided, and fig. 8 is a schematic flow diagram of adding a device to a blockchain system provided in an embodiment of the present disclosure, applied to the first blockchain node, as shown in fig. 8, the flow includes:
step S802, acquiring a joining request of equipment to be joined into a blockchain system;
step S804, if the first block chain node is not the last node, traversing each second block chain node;
step S806, if the fault node is obtained through traversing in each second block chain node, synchronizing the data of the fault node to the equipment which is requested to be added so as to enable the equipment to be added into the block chain system and replace the fault node;
Step S808, if the failure node is not obtained through traversal, transmitting a joining request to each second block chain node so that each second block chain node traverses the failure node according to the corresponding routing link information;
step S810, if the first block chain node is the end node, transmitting the joining request and the route information of the joining request in the block chain system to the block chain root node;
the method comprises the steps that after each block link point for receiving data synchronized by the block chain root node is determined according to route link information corresponding to the pre-stored block chain root node, the block chain root node determines nodes which are not subjected to route adding requests in each block chain node, and transmits the adding requests to the nodes which are not subjected to route adding requests, so that the nodes which are not subjected to route adding requests traverse fault nodes according to the corresponding route link information.
In step S802, the first blockchain node obtains a join request from the fourth blockchain node for a device to join the blockchain system, or obtains a join request from the device to join the blockchain system.
In step S804, if the first blockchain node is not the last node, each second blockchain node is traversed. In step S806, if the failed node is obtained by traversing each second blockchain node, the data of the failed node is synchronized with the device requesting to join, so that the device joins the blockchain system and replaces the failed node. And specifically traversing, accessing each second block chain node, if the access result is normal, determining that the second block chain node is normal, and if the access is failed, determining that the second block chain node is failed.
In step S808, if the first blockchain node is not the last node and the failed node is not obtained by traversing in the second blockchain nodes, the join request is transmitted to the second blockchain nodes, so that the second blockchain nodes traverse the downstream blockchain nodes according to the corresponding routing link information to determine the failed node.
In step S810, if the first blockchain node is the end node, the joining request and the routing information of the joining request in the blockchain system are transmitted to the blockchain root node. The routing information is used to indicate which nodes received the join request. After each block link point for receiving the data synchronized by the block chain root node is determined according to the pre-stored route link information corresponding to the block chain root node, determining the node which does not receive the joining request in the determined nodes, namely determining the node which is not routed with the joining request, transmitting the joining request to the node which is not routed with the joining request according to the route information, so that the node which is not routed with the joining request traverses the fault node according to the mode of the first block chain node after receiving the joining request.
In this embodiment, for any blockchain node, when receiving a join request, it means that the blockchain node is a normal node, it traverses the downstream node determined according to the corresponding routing link information, and if the downstream nodes are all normal, it sends the join request to the downstream node, so that the downstream node traverses the failure node in the corresponding downstream node. If the bottommost node receives the joining request, the bottommost node is a normal node, the bottommost node returns the joining request to the blockchain root node, if the root node receives the joining request, the root node is a normal node, the root node can determine the corresponding downstream nodes which do not receive the joining request, and the joining request is transmitted to the downstream nodes, so that the downstream nodes traverse the fault node again.
After traversing the failed node, the data of the failed node is synchronized to the device by the blockchain node that received the join request from the device requesting the join (i.e., the blockchain node that first received the join request), thereby joining the device to the blockchain system. If the failed node is not traversed, the blockchain root node sends a traversing failure message to the blockchain node which receives the joining request, and the blockchain node which receives the joining request joins the device as newly added device into the blockchain system, so as to allocate a sequence number for the device, wherein the sequence number is the largest sequence number in the blockchain system.
Fig. 9 is a schematic flow chart of a device joining a blockchain system according to another embodiment of the present disclosure, as shown in fig. 9, the flow chart includes:
1. the device sends a joining request to a block chain node p; the blockchain node p is the blockchain node of the penultimate layer;
2. traversing each downstream block chain node by the block chain node p according to the corresponding route link information;
3. if the traversal finds out the fault node, the block chain node p synchronizes the data of the fault node to the equipment which requests to be added;
4. after synchronization is completed, the device requesting to join confirms joining the blockchain system.
5. If the blockchain node p does not traverse all the downstream blockchain nodes to obtain a fault node, the blockchain node p returns a joining request to the blockchain root node because the blockchain node p is the blockchain node of the penultimate layer;
6. the block chain root node sends a joining request to the corresponding downstream node which does not receive the joining request according to the corresponding routing link information so as to enable the downstream node to traverse the fault node; in the traversal process of the downstream nodes, if the nodes do not traverse to the fault node, the joining request can be transmitted to the downstream nodes, so that the layer-by-layer traversal is realized;
7. If the fault node is found through traversing in the whole block chain system, the block chain node p replaces the fault node by using equipment requesting to join, and synchronizes the data of the fault node to the equipment requesting to join;
8. if no fault node is found in the whole blockchain system, the blockchain node p sets the serial number of the device requesting to be added as the maximum serial number, and adds the device requesting to be added into the blockchain system.
In the embodiment, the annular data distribution synchronization system is utilized to traverse the fault node in the blockchain system, and after the fault node is obtained through traversing, the equipment which is requested to be added is utilized to replace the fault node, so that the effect of updating the blockchain system is achieved.
FIG. 10 is a schematic flow chart of a block chain system patrol for a first block chain node according to an embodiment of the present disclosure, as shown in FIG. 10, the flow includes:
step S1002, acquiring node inspection information from a fourth block chain node, and returning inspection response information to the fourth block chain node according to the node inspection information; the system comprises a block chain system, a node routing inspection information and a node routing inspection information, wherein the node routing inspection information is generated by a block chain root node and sent out according to corresponding routing link information, each block chain node in the block chain system is provided with corresponding routing link information, and the block chain node which receives the node routing inspection information transmits the node routing inspection information according to the corresponding routing link information;
Step S1004, if the first block chain node is not the end node, forwarding node inspection information to a second block chain node according to the corresponding routing link information, wherein the node inspection information is used for inspecting the second block chain node;
step S1006, if the first block chain node is the end node, transmitting the node routing information and the routing information of the node routing information in the block chain system to the block chain root node; the routing information is used for determining the block chain nodes which are inspected by the block chain root node.
In this embodiment, the blockchain root node generates node routing inspection information and sends the node routing inspection information according to the corresponding routing link information, each blockchain node in the blockchain system has the corresponding routing link information, and the blockchain node receiving the node routing inspection information transmits the node routing inspection information according to the corresponding routing link information. Thus, in step S1004, the first blockchain node receives node patrol information from the fourth blockchain node. In step S1006, if the first blockchain node is not the end node, the node routing inspection information is forwarded to the second blockchain node according to the corresponding routing link information, where the node routing inspection information is used for inspecting the second blockchain node. The second blockchain node may feed back patrol answer information to the first blockchain node. In step S1008, if the first blockchain node is the end node, the node routing information and the routing information of the node routing information in the blockchain system are transmitted to the blockchain root node. The routing information of the node routing information in the blockchain system records the serial numbers of the block chain nodes which are routed and inspected, so that the blockchain root node determines the block chain nodes which are routed and inspected according to the routing information after receiving the routing information of the node routing information in the blockchain system.
In this embodiment, the blockchain root node may be periodically patrol, and from the blockchain node with the smallest sequence number, by patrol all the blockchain nodes, it is checked whether there are missing blockchain nodes, if there are missing blockchain nodes, the number is renumbered, the stability of the sequence number is maintained, and the stable operation of the blockchain system is maintained.
In this embodiment, multiple sets of routing link information may be stored in each blockchain node, for example, a sequence number of a blockchain node in a blockchain system changes a previous set of routing link information and a sequence number changes a subsequent set of routing link information, so as to simultaneously operate multiple sets of distribution routes, prevent distribution interruption caused by changing the sequence number of a blockchain node, and not allow nodes in non-routing link information to access, so that the system is safer. The lowermost block link point sources the data back to the block chain root node, and is also helpful for the block chain root node to judge whether the data distribution is successful.
In this embodiment, in the processing of the user equity information, for the equity information provider, the blockchain system provides the equity information provider with the ability to access registration, equity upload, and settlement reconciliation. After the rights information provider obtains the authorization qualification of the rights uploading, the rights can be uploaded at any blockchain node of the blockchain system, and the uploaded rights need to meet the regulations and definitions of the blockchain system. The rights information provider can provide settlement and reconciliation requirements at any time of any blockchain node, and can complete all matters of the service life cycle of rights distribution after one subscription access. The blockchain system can register, verify and manage the rights and interests information provider and provide the batch uploading function of the rights and interests information, and each user rights and interests information is uniquely identified, so that counterfeiting and multiple exchange are prevented. The blockchain system provides a unified equity exchange entrance, payment of payment equity and equity exchange are separated, and the equity information provider only needs to unify and perform fund settlement reconciliation with a third-party payment settlement system, so that a transaction flow link is short.
For the rights information provider, a unified rights uploading interface is provided, and lengthy business negotiations and complex development and docking processes are not needed, so that the rapid online and popularization are facilitated; the checking settlement flow is simplified, the equity information provider only needs to check with a third party settlement center regularly, and does not need to check with a plurality of cooperators, so that labor cost is saved. The equity exchange flow has no intermediate link system, is directly oriented to users, directly feeds back exchange results, and avoids a series of after-sale customer service problems such as complaints, refunds, supplements and the like caused by the problems of insufficient inventory and the like. The rights service provided by the rights is responsible for the rights information provider, all information of the rights circulation can be searched in a traceable way in the blockchain system, and the information is transparent to the user and the rights information provider.
For the user side, the third party payment center issues payment credentials after the user pays the amount. By virtue of the payment credentials, the user can redeem equity value equity products at any blockchain center. The blockchain system issues a rights blockchain to the user after successful exchange of the rights product, and the user can obtain the rights service from the rights information provider specified by the rights blockchain. The user exchanges rights from the unified rights distribution system, and the safety and reliability are ensured.
FIG. 11 is a schematic diagram of a block chain based user interest information processing system according to an embodiment of the present disclosure, as shown in FIG. 11, the system includes the first block chain node 111 and the block chain root node 112;
the first blockchain node 111 is configured to obtain and store user rights and interests information to be uplink; judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node; if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule; if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node;
the blockchain root node 112 is configured to determine each blockchain node for receiving data synchronized by the blockchain root node according to pre-stored routing link information corresponding to the blockchain root node, determine a third blockchain node that is not routed with the user interest information in each blockchain node, and transmit the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
In this embodiment, when user rights and interests information is synchronized, the information can be synchronized to the blockchain node with the smallest sequence number in a source returning manner, so that the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast the user rights and interests information to all the blockchain link points, only needs to synchronize the user rights and interests information to part of the blockchain nodes according to the corresponding routing link information, and the synchronization speed and efficiency of the user rights and interests information of a single blockchain node are improved, thereby improving the efficiency of synchronizing the user rights and interests information among the blockchain nodes in the blockchain system.
The processing system of fig. 11 is capable of implementing the foregoing various method processes implemented by the first blockchain node and blockchain root node and achieving the same effects and functions, and is not repeated here.
FIG. 12 is a schematic diagram of a block chain based user interest information processing apparatus according to an embodiment of the present disclosure, where the apparatus is applied to a first block chain node in a block chain system, as shown in FIG. 12, and the apparatus includes:
an information obtaining unit 1201, configured to obtain and store user rights and interests information to be linked;
A link judging unit 1202, configured to judge whether the first blockchain node is an end node on a routing link where the first blockchain node is located according to prestored routing link information corresponding to the first blockchain node;
a first transmitting unit 1203, configured to determine, according to the routing link information, a second blockchain node for receiving the data synchronized by the first blockchain node, and transmit the user interest information to the second blockchain node, if not; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
a second transmission unit 1204, configured to, if yes, transmit the user rights information and routing information of the user rights information in a blockchain system to the blockchain root node; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
Optionally, the apparatus further includes an information generating module configured to: acquiring a sequence number pre-allocated to the first block chain link point, acquiring a data distribution degree pre-set for the block chain system, and determining a sequence number of a block chain node for receiving data synchronized by the first block chain node according to the sequence number of the first block chain node and the data distribution degree; if the block chain node corresponding to the determined sequence number exists in the block chain system, determining the corresponding block chain node as a second block chain node, and acquiring the sequence number of the second block chain node; acquiring a sequence number of a fourth blockchain node; generating routing link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the second block link node; determining that a block chain link point for receiving data synchronized by the fourth block chain node comprises the first block chain node according to the sequence number of the fourth block chain node and the data distribution degree; if the blockchain node corresponding to the determined sequence number does not exist in the blockchain system, the sequence number of the fourth blockchain node and the sequence number of the blockchain node with the minimum sequence number are obtained; and generating the routing link information corresponding to the first block chain link point according to the sequence number of the fourth block chain node, the sequence number of the first block chain node and the sequence number of the block chain node with the minimum sequence number.
Alternatively, the information acquisition unit 1201 is specifically configured to: and obtaining and storing the user interest information to be uplink from the fourth blockchain node or the interest information provider.
Optionally, the device further comprises a patrol module for: acquiring node inspection information from the fourth block chain node, and returning inspection response information to the fourth block chain node according to the node inspection information; the node inspection information is generated by the block chain root node and sent out according to the corresponding routing link information, each block chain node in the block chain system is provided with the corresponding routing link information, and the block chain node receiving the node inspection information transmits the node inspection information according to the corresponding routing link information; if the first blockchain node is not the tail node, forwarding the node inspection information to the second blockchain node according to the corresponding routing link information, wherein the node inspection information is used for inspecting the second blockchain node; if the first blockchain node is the tail node, transmitting the node routing inspection information and the routing information of the node routing inspection information in a blockchain system to the blockchain root node; the routing information is used for determining the block chain nodes which are inspected by the block chain root node.
Optionally, the apparatus further includes a completion message synchronization module configured to: acquiring and storing a right exchange completion message to be uplink; if the first blockchain node is not the end node, transmitting the right exchange completion message to the second blockchain node; if the first blockchain node is the end node, transmitting the right exchange completion message and the routing information of the right exchange completion message in a blockchain system to the blockchain root node; the routing information is used for determining a fifth blockchain node which is not routed with the benefit exchange completion message in all the blockchain nodes after determining all the blockchain nodes for receiving the data synchronized by the blockchain root node according to the pre-stored routing link information corresponding to the blockchain root node, and transmitting the benefit exchange completion message to the fifth blockchain node; the numerical relation between the serial number of the fifth blockchain node and the serial number of the blockchain root node accords with a preset routing rule.
Optionally, the number of the second blockchain nodes is a plurality, and the apparatus further includes a device adding module configured to: acquiring a joining request of equipment to be joined into a blockchain system; if the first blockchain node is not the tail node, traversing each second blockchain node, and if the second blockchain node is traversed to obtain a fault node, synchronizing the data of the fault node to the equipment so that the equipment joins a blockchain system and replaces the fault node; if the first blockchain node is not the end node and a fault node is not obtained through traversal, transmitting the joining request to each second blockchain node so that each second blockchain node traverses the fault node according to the corresponding routing link information; if the first blockchain node is the end node, transmitting the joining request and the routing information of the joining request in a blockchain system to the blockchain root node; the routing information is used for determining each blockchain node for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, determining the nodes which are not routed with the joining request in the blockchain nodes, and transmitting the joining request to the nodes which are not routed with the joining request so as to enable the nodes which are not routed with the joining request to traverse the fault node according to the corresponding routing link information.
In this embodiment, when user rights and interests information is synchronized, the information can be synchronized to the blockchain node with the smallest sequence number in a source returning manner, so that the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast the user rights and interests information to all the blockchain link points, only needs to synchronize the user rights and interests information to part of the blockchain nodes according to the corresponding routing link information, and the synchronization speed and efficiency of the user rights and interests information of a single blockchain node are improved, thereby improving the efficiency of synchronizing the user rights and interests information among the blockchain nodes in the blockchain system.
The processing means in fig. 12 is capable of implementing the foregoing respective method processes implemented by the first blockchain node and blockchain root node, and achieving the same effects and functions, and will not be repeated here.
An embodiment of the present disclosure further provides a blockchain-based user rights information processing device, which may be the first blockchain node, and fig. 13 is a schematic structural diagram of the blockchain-based user rights information processing device provided in an embodiment of the present disclosure, as shown in fig. 13, where the device includes: memory 1301, processor 1302, bus 1303, and communication interface 1304. The memory 1301, the processor 1302, and the communication interface 1304 communicate over a bus 1303, and the communication interface 1304 can include input-output interfaces including, but not limited to, a keyboard, a mouse, a display, a microphone, a loudspeaker, and the like.
In fig. 13, the memory 1301 has stored thereon computer executable instructions executable on the processor 1302, which when executed on the processor 1302 implement the following:
acquiring and storing user rights and interests information to be linked;
judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
Optionally, when the computer executable instructions are executed on the processor 1302, the routing link information corresponding to the first block link point is generated by: acquiring a sequence number pre-allocated to the first block chain link point, acquiring a data distribution degree pre-set for the block chain system, and determining a sequence number of a block chain node for receiving data synchronized by the first block chain node according to the sequence number of the first block chain node and the data distribution degree; if the block chain node corresponding to the determined sequence number exists in the block chain system, determining the corresponding block chain node as a second block chain node, and acquiring the sequence number of the second block chain node; acquiring a sequence number of a fourth blockchain node; generating routing link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the second block link node; determining that a block chain link point for receiving data synchronized by the fourth block chain node comprises the first block chain node according to the sequence number of the fourth block chain node and the data distribution degree; if the blockchain node corresponding to the determined sequence number does not exist in the blockchain system, the sequence number of the fourth blockchain node and the sequence number of the blockchain node with the minimum sequence number are obtained; and generating the routing link information corresponding to the first block chain link point according to the sequence number of the fourth block chain node, the sequence number of the first block chain node and the sequence number of the block chain node with the minimum sequence number.
Optionally, the computer executable instructions, when executed on the processor 1302, obtain and store user interest information to be linked, including: and obtaining and storing the user interest information to be uplink from the fourth blockchain node or the interest information provider.
Optionally, the computer executable instructions, when executed on the processor 1302, further comprise: acquiring node inspection information from the fourth block chain node, and returning inspection response information to the fourth block chain node according to the node inspection information; the node inspection information is generated by the block chain root node and sent out according to the corresponding routing link information, each block chain node in the block chain system is provided with the corresponding routing link information, and the block chain node receiving the node inspection information transmits the node inspection information according to the corresponding routing link information; if the first blockchain node is not the tail node, forwarding the node inspection information to the second blockchain node according to the corresponding routing link information, wherein the node inspection information is used for inspecting the second blockchain node; if the first blockchain node is the tail node, transmitting the node routing inspection information and the routing information of the node routing inspection information in a blockchain system to the blockchain root node; the routing information is used for determining the block chain nodes which are inspected by the block chain root node.
Optionally, the computer executable instructions, when executed on the processor 1302, further comprise: acquiring and storing a right exchange completion message to be uplink; if the first blockchain node is not the end node, transmitting the right exchange completion message to the second blockchain node; if the first blockchain node is the end node, transmitting the right exchange completion message and the routing information of the right exchange completion message in a blockchain system to the blockchain root node; the routing information is used for determining a fifth blockchain node which is not routed with the benefit exchange completion message in all the blockchain nodes after determining all the blockchain nodes for receiving the data synchronized by the blockchain root node according to the pre-stored routing link information corresponding to the blockchain root node, and transmitting the benefit exchange completion message to the fifth blockchain node; the numerical relation between the serial number of the fifth blockchain node and the serial number of the blockchain root node accords with a preset routing rule.
Optionally, the computer executable instructions, when executed on the processor 1302, number the second blockchain node a plurality, further comprise: acquiring a joining request of equipment to be joined into a blockchain system; if the first blockchain node is not the tail node, traversing each second blockchain node, and if the second blockchain node is traversed to obtain a fault node, synchronizing the data of the fault node to the equipment so that the equipment joins a blockchain system and replaces the fault node; if the first blockchain node is not the end node and a fault node is not obtained through traversal, transmitting the joining request to each second blockchain node so that each second blockchain node traverses the fault node according to the corresponding routing link information; if the first blockchain node is the end node, transmitting the joining request and the routing information of the joining request in a blockchain system to the blockchain root node; the routing information is used for determining each blockchain node for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, determining the nodes which are not routed with the joining request in the blockchain nodes, and transmitting the joining request to the nodes which are not routed with the joining request so as to enable the nodes which are not routed with the joining request to traverse the fault node according to the corresponding routing link information.
In this embodiment, when user rights and interests information is synchronized, the information can be synchronized to the blockchain node with the smallest sequence number in a source returning manner, so that the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast the user rights and interests information to all the blockchain link points, only needs to synchronize the user rights and interests information to part of the blockchain nodes according to the corresponding routing link information, and the synchronization speed and efficiency of the user rights and interests information of a single blockchain node are improved, thereby improving the efficiency of synchronizing the user rights and interests information among the blockchain nodes in the blockchain system.
The processing device in fig. 13 is capable of implementing the foregoing respective method processes implemented by the first blockchain node and blockchain root node, and achieves the same effects and functions, which are not repeated here.
Further, another embodiment of the present specification also provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following:
acquiring and storing user rights and interests information to be linked;
Judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule.
In this embodiment, when user rights and interests information is synchronized, the information can be synchronized to the blockchain node with the smallest sequence number in a source returning manner, so that the whole blockchain system can form a closed-loop data synchronization system, each blockchain node does not need to broadcast the user rights and interests information to all the blockchain link points, only needs to synchronize the user rights and interests information to part of the blockchain nodes according to the corresponding routing link information, and the synchronization speed and efficiency of the user rights and interests information of a single blockchain node are improved, thereby improving the efficiency of synchronizing the user rights and interests information among the blockchain nodes in the blockchain system.
The storage medium is capable of implementing the foregoing various method processes implemented by the first blockchain node and blockchain root node, and achieving the same effects and functions, and will not be repeated here.
The computer readable storage medium includes Read-Only Memory (ROM), random access Memory (Random Access Memory RAM), magnetic disk or optical disk, etc.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of the present specification, should be included in the scope of the present claims.

Claims (9)

1. A user interest information processing method based on a block chain is characterized in that each block chain node in the block chain system is allocated with a sequence number, and the block chain node with the minimum sequence number is a block chain root node; the method is applied to a first blockchain node in a blockchain system, wherein the first blockchain node is a node except the blockchain root node; the method comprises the following steps:
acquiring and storing user rights and interests information to be linked;
judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule;
The routing link information corresponding to the first block link point is generated by the following modes:
acquiring a sequence number pre-allocated to the first block chain link point, acquiring a data distribution degree pre-set for the block chain system, and determining a sequence number of a block chain node for receiving data synchronized by the first block chain node according to the sequence number of the first block chain node and the data distribution degree;
if the block chain node corresponding to the determined sequence number exists in the block chain system, determining the corresponding block chain node as a second block chain node, and acquiring the sequence number of the second block chain node; acquiring a sequence number of a fourth blockchain node; generating routing link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the second block link node; determining that a block chain link point for receiving data synchronized by the fourth block chain node comprises the first block chain node according to the sequence number of the fourth block chain node and the data distribution degree;
if the blockchain node corresponding to the determined sequence number does not exist in the blockchain system, the sequence number of the fourth blockchain node and the sequence number of the blockchain node with the minimum sequence number are obtained; and generating the routing link information corresponding to the first block chain link point according to the sequence number of the fourth block chain node, the sequence number of the first block chain node and the sequence number of the block chain node with the minimum sequence number.
2. The method of claim 1, wherein obtaining and storing user rights information to be linked comprises:
and obtaining and storing the user interest information to be uplink from the fourth blockchain node or the interest information provider.
3. The method according to claim 1, wherein the method further comprises:
acquiring node inspection information from the fourth block chain node, and returning inspection response information to the fourth block chain node according to the node inspection information; the node inspection information is generated by the block chain root node and sent out according to the corresponding routing link information, each block chain node in the block chain system is provided with the corresponding routing link information, and the block chain node receiving the node inspection information transmits the node inspection information according to the corresponding routing link information;
if the first blockchain node is not the tail node, forwarding the node inspection information to the second blockchain node according to the corresponding routing link information, wherein the node inspection information is used for inspecting the second blockchain node;
if the first blockchain node is the tail node, transmitting the node routing inspection information and the routing information of the node routing inspection information in a blockchain system to the blockchain root node; the routing information is used for determining the block chain nodes which are inspected by the block chain root node.
4. A method according to any one of claims 1-3, wherein the method further comprises:
acquiring and storing a right exchange completion message to be uplink;
if the first blockchain node is not the end node, transmitting the right exchange completion message to the second blockchain node;
if the first blockchain node is the end node, transmitting the right exchange completion message and the routing information of the right exchange completion message in a blockchain system to the blockchain root node;
the routing information is used for determining a fifth blockchain node which is not routed with the benefit exchange completion message in all the blockchain nodes after determining all the blockchain nodes for receiving the data synchronized by the blockchain root node according to the pre-stored routing link information corresponding to the blockchain root node, and transmitting the benefit exchange completion message to the fifth blockchain node; the numerical relation between the serial number of the fifth blockchain node and the serial number of the blockchain root node accords with a preset routing rule.
5. The method of any of claims 1-3, wherein the number of second blockchain nodes is a plurality, the method further comprising:
Acquiring a joining request of equipment to be joined into a blockchain system;
if the first blockchain node is not the tail node, traversing each second blockchain node, and if the second blockchain node is traversed to obtain a fault node, synchronizing the data of the fault node to the equipment so that the equipment joins a blockchain system and replaces the fault node;
if the first blockchain node is not the end node and a fault node is not obtained through traversal, transmitting the joining request to each second blockchain node so that each second blockchain node traverses the fault node according to the corresponding routing link information;
if the first blockchain node is the end node, transmitting the joining request and the routing information of the joining request in a blockchain system to the blockchain root node;
the routing information is used for determining each blockchain node for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, determining the nodes which are not routed with the joining request in the blockchain nodes, and transmitting the joining request to the nodes which are not routed with the joining request so as to enable the nodes which are not routed with the joining request to traverse the fault node according to the corresponding routing link information.
6. A blockchain-based user interest information processing system, wherein each blockchain node in the blockchain system is assigned a sequence number, the system comprises a first blockchain node and a blockchain root node, and the blockchain root node is the blockchain node with the minimum sequence number; the first blockchain node is a node other than the blockchain root node;
the first blockchain node is used for acquiring and storing user rights and interests information to be uplink; judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node; if not, determining a second blockchain node for receiving the data synchronized by the first blockchain node according to the routing link information, and transmitting the user interest information to the second blockchain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule; if yes, transmitting the user right information and the routing information of the user right information in a blockchain system to the blockchain root node;
The block chain root node is used for determining each block chain node for receiving the data synchronized by the block chain root node according to the pre-stored routing link information corresponding to the block chain root node, determining a third block chain node which is not routed with the user interest information in each block chain node, and transmitting the user interest information to the third block chain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule;
the routing link information corresponding to the first block link point is generated by the following modes:
acquiring a sequence number pre-allocated to the first block chain link point, acquiring a data distribution degree pre-set for the block chain system, and determining a sequence number of a block chain node for receiving data synchronized by the first block chain node according to the sequence number of the first block chain node and the data distribution degree;
if the block chain node corresponding to the determined sequence number exists in the block chain system, determining the corresponding block chain node as a second block chain node, and acquiring the sequence number of the second block chain node; acquiring a sequence number of a fourth blockchain node; generating routing link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the second block link node; determining that a block chain link point for receiving data synchronized by the fourth block chain node comprises the first block chain node according to the sequence number of the fourth block chain node and the data distribution degree;
If the blockchain node corresponding to the determined sequence number does not exist in the blockchain system, the sequence number of the fourth blockchain node and the sequence number of the blockchain node with the minimum sequence number are obtained; and generating the routing link information corresponding to the first block chain link point according to the sequence number of the fourth block chain node, the sequence number of the first block chain node and the sequence number of the block chain node with the minimum sequence number.
7. The user interest information processing device based on the block chain is characterized in that each block chain node in the block chain system is allocated with a sequence number, and the block chain node with the minimum sequence number is a block chain root node; the device is applied to a first blockchain node in a blockchain system, wherein the first blockchain node is a node except the blockchain root node; the device comprises:
the information acquisition unit is used for acquiring and storing user rights and interests information to be linked;
the link judging unit is used for judging whether the first block chain node is an end node on a routing link where the first block chain node is located according to the pre-stored routing link information corresponding to the first block chain node;
the first transmission unit is used for determining a second block chain node for receiving the data synchronized by the first block chain node according to the routing link information if the user interest information is not received, and transmitting the user interest information to the second block chain node; the numerical relation between the sequence number of the first block chain node and the sequence number of the second block chain node accords with a preset routing rule;
The second transmission unit is used for transmitting the user right information and the routing information of the user right information in the blockchain system to the blockchain root node if the user right information and the routing information of the user right information in the blockchain system are in the same type; the routing information is used for determining a third blockchain node which is not routed with the user interest information in each blockchain node after determining each blockchain node used for receiving the data synchronized by the blockchain root node according to the prestored routing link information corresponding to the blockchain root node, and transmitting the user interest information to the third blockchain node; the numerical relation between the sequence number of the third blockchain node and the sequence number of the blockchain root node accords with a preset routing rule;
the device also comprises an information generation module for: acquiring a sequence number pre-allocated to the first block chain link point, acquiring a data distribution degree pre-set for the block chain system, and determining a sequence number of a block chain node for receiving data synchronized by the first block chain node according to the sequence number of the first block chain node and the data distribution degree; if the block chain node corresponding to the determined sequence number exists in the block chain system, determining the corresponding block chain node as a second block chain node, and acquiring the sequence number of the second block chain node; acquiring a sequence number of a fourth blockchain node; generating routing link information corresponding to the first block link point according to the sequence number of the fourth block link node, the sequence number of the first block link node and the sequence number of the second block link node; determining that a block chain link point for receiving data synchronized by the fourth block chain node comprises the first block chain node according to the sequence number of the fourth block chain node and the data distribution degree; if the blockchain node corresponding to the determined sequence number does not exist in the blockchain system, the sequence number of the fourth blockchain node and the sequence number of the blockchain node with the minimum sequence number are obtained; and generating the routing link information corresponding to the first block chain link point according to the sequence number of the fourth block chain node, the sequence number of the first block chain node and the sequence number of the block chain node with the minimum sequence number.
8. A blockchain-based user benefit information processing device comprising a memory and a processor, the memory having stored thereon computer executable instructions that when run on the processor are capable of implementing the steps of the method of any of the preceding claims 1-5.
9. A computer readable storage medium having stored therein computer executable instructions which, when executed by a processor, are capable of carrying out the steps of the method of any one of the preceding claims 1-5.
CN202110430912.2A 2021-04-21 2021-04-21 User rights information processing method, device, equipment and storage medium based on block chain Active CN114979173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110430912.2A CN114979173B (en) 2021-04-21 2021-04-21 User rights information processing method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110430912.2A CN114979173B (en) 2021-04-21 2021-04-21 User rights information processing method, device, equipment and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN114979173A CN114979173A (en) 2022-08-30
CN114979173B true CN114979173B (en) 2023-07-14

Family

ID=82974288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110430912.2A Active CN114979173B (en) 2021-04-21 2021-04-21 User rights information processing method, device, equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN114979173B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190055666A (en) * 2017-11-15 2019-05-23 한전케이디엔주식회사 Method for storing smart grid heterogeneous data security using block chain
CN109936620A (en) * 2019-01-21 2019-06-25 中国联合网络通信集团有限公司 Storage method and device, system and storage medium based on block chain
CN110838063A (en) * 2019-09-30 2020-02-25 远光软件股份有限公司 Transaction processing method based on block chain, electronic device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190055666A (en) * 2017-11-15 2019-05-23 한전케이디엔주식회사 Method for storing smart grid heterogeneous data security using block chain
CN109936620A (en) * 2019-01-21 2019-06-25 中国联合网络通信集团有限公司 Storage method and device, system and storage medium based on block chain
CN110838063A (en) * 2019-09-30 2020-02-25 远光软件股份有限公司 Transaction processing method based on block chain, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
去中心化的分布式存储模型;郝琨;信俊昌;黄达;王国仁;;计算机工程与应用(第24期);全文 *

Also Published As

Publication number Publication date
CN114979173A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN109462588B (en) Decentralized data transaction method and system based on block chain
CN112492006B (en) Node management method and device based on block chain
JP7166453B2 (en) Zero-knowledge proof payment using blockchain
US20220261804A1 (en) Deploying a cloud-based system using a distributed ledger
CN110619520B (en) Block chain system and routing method applied to routing nodes of block chain system
US11151582B2 (en) Smart logistics management using blockchain
CN111192146B (en) Correction method and device for block chain data
CN114567643B (en) Cross-blockchain data transfer method, device and related equipment
CN111753014B (en) Identity authentication method and device based on block chain
CN114240433A (en) Data processing method and system based on block chain
CN113837760B (en) Data processing method, data processing device, computer equipment and storage medium
CN113689216A (en) Cross-chain transaction processing method and device, equipment, storage medium and program product
CN114780982A (en) Flow business circulation method, device and system
CN108846671B (en) Online secure transaction method and system based on block chain
CN114979173B (en) User rights information processing method, device, equipment and storage medium based on block chain
Peters et al. IT Security for measuring instruments: Confidential checking of software functionality
CN112291321A (en) Service processing method, device and system
CN113225191B (en) Generation method and device of consensus node, storage medium and processor
CN117675216A (en) Data processing method and related equipment
CN117221337A (en) Block chain consensus method, device, medium and electronic equipment
CN116186786A (en) Block chain-based service processing method and device, electronic equipment and readable medium
CN116263925A (en) Accounting method and device based on blockchain
Wang et al. BAC: A block alliance consensus mechanism for the mine consortium blockchain
CN111127039A (en) Block chain-based computer accessory fidelity method, equipment and storage medium
CN115361390B (en) Method for joining a blockchain network, computer storage medium and electronic device

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