CN112131602A - Method and device for quickly expanding trust relationship between nodes based on trusted computing and related products - Google Patents

Method and device for quickly expanding trust relationship between nodes based on trusted computing and related products Download PDF

Info

Publication number
CN112131602A
CN112131602A CN202011005557.6A CN202011005557A CN112131602A CN 112131602 A CN112131602 A CN 112131602A CN 202011005557 A CN202011005557 A CN 202011005557A CN 112131602 A CN112131602 A CN 112131602A
Authority
CN
China
Prior art keywords
block chain
trust
chain node
cluster
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011005557.6A
Other languages
Chinese (zh)
Other versions
CN112131602B (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.)
Beijing Octa Innovations Information Technology Co Ltd
Original Assignee
Beijing Octa Innovations Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Octa Innovations Information Technology Co Ltd filed Critical Beijing Octa Innovations Information Technology Co Ltd
Priority to CN202011005557.6A priority Critical patent/CN112131602B/en
Publication of CN112131602A publication Critical patent/CN112131602A/en
Application granted granted Critical
Publication of CN112131602B publication Critical patent/CN112131602B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/46Cluster building
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, a device and related products for quickly expanding trust relationship between nodes based on trusted computing, wherein the method comprises the following steps: clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node; and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among all block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among all block chain node clusters, so that the trust relationships among the nodes among the block chain nodes in the block chain system can be rapidly expanded, and the data safety of the whole block chain system is ensured.

Description

Method and device for quickly expanding trust relationship between nodes based on trusted computing and related products
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for performing fast extension of trust relationships between nodes based on trusted computing, and a related product.
Background
The blockchain system is essentially an integrated application mode of technologies such as a distributed data storage system, point-to-point transmission, a consensus mechanism and an encryption algorithm, and can realize trust and value transfer which cannot be realized by the traditional internet on the internet. It is based on cryptographic principles rather than credit features, enabling any agreed party to trade directly without the involvement of third party intermediaries. On the other hand, there is almost no single point of failure in the blockchain, and the data on the chain is stored on numerous machine nodes around the world, so that the data is "stable", "trusted", and "non-tamperproof", which gives the data on the network a value that can be trusted.
However, how to rapidly expand the trust relationship between nodes in the blockchain system to ensure the data security of the whole blockchain system becomes a technical problem to be solved urgently.
Disclosure of Invention
Based on the above problems, embodiments of the present application provide a method, an apparatus, and a related product for performing fast extension of trust relationship between nodes based on trusted computing.
The embodiment of the application discloses the following technical scheme:
1. a method for quickly expanding trust relationship between nodes based on trusted computing is characterized by comprising the following steps:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
2. The method according to claim 1, wherein the clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters comprises: and clustering the block chain link points in the big data trust system according to the physical distance or the logical distance between the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
3. The method according to claim 1, wherein the clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters comprises: and clustering the block chain link points in the big data trust system according to the functional roles of the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
4. The method according to any one of claims 1 to 3, wherein the transferring of the inter-node trust relationship between each block chain node inside the block chain node cluster and the transferring of the inter-cluster trust relationship between each block chain node cluster by taking the block chain node cluster as a unit comprises: and taking the block chain node cluster as a unit, transmitting the trust relationship between the nodes among all block chain nodes in the block chain node cluster according to a set trust transmission mechanism between the nodes, and transmitting the trust relationship between the clusters among all block chain node clusters according to the set trust transmission mechanism between the clusters.
5. The method according to claim 4, wherein the inter-node trust transfer mechanism transfers the inter-node trust relationship between each block chain node in the block chain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster in a random mode.
6. The method according to claim 4, wherein the inter-node trust transfer mechanism enables the transfer of the inter-node trust relationship between each blockchain node in the blockchain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster trust relationship transfer between each block chain node cluster according to a conflict-free copying mode.
7. The method according to claim 4, characterized in that the inter-node trust transfer mechanism transfers the inter-node trust relationship between each block chain node in the block chain node cluster according to a master-selection replication mode; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster according to the selected master burst replication mode.
8. An apparatus for performing fast extension of trust relationship between nodes based on trusted computing, comprising:
the clustering module is used for clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters, and each block chain node cluster at least comprises one block chain node;
and the transmission module is used for transmitting the trust relationship between the nodes among the block chain nodes in the block chain node cluster as a unit and transmitting the trust relationship between the clusters among the block chain nodes.
9. The apparatus of claim 8, wherein the clustering module comprises: the distance counting unit is used for counting the physical distance or the logical distance between the block link points in any system;
and the clustering unit is used for clustering the block chain link points in the big data trust system by the physical distance or the logical distance to obtain a plurality of block chain node clusters.
10. The apparatus of claim 8, wherein the clustering module comprises
The role determining unit is used for counting the functional roles of the block link points in any system;
and the clustering unit is used for clustering the block chain link points in the big data trust system according to the functional roles of the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
11. The apparatus of any one of claims 8-10, wherein the transfer module comprises:
the inter-node transmission unit is used for transmitting the trust relationship between the nodes among all the block chain nodes inside the inter-node transmission unit by taking the block chain node cluster as a unit according to a set inter-node trust transmission mechanism;
and the inter-cluster transmission unit is used for transmitting the inter-cluster trust relationship among each block chain node cluster according to a set inter-cluster trust transmission mechanism.
12. The apparatus according to claim 11, wherein the inter-node trust transfer mechanism enables the inter-node transfer unit to transfer the inter-node trust relationship between each blockchain node inside the blockchain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster transfer unit to transfer the inter-cluster trust relationship between each block chain node cluster in a random mode.
13. The apparatus according to claim 11, wherein the inter-node trust transfer mechanism enables the inter-node transfer unit to transfer the inter-node trust relationship between each blockchain node within the blockchain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster transfer unit to transfer the inter-cluster trust relationship among each block chain node cluster according to a conflict-free copying mode.
14. The apparatus according to claim 11, wherein the inter-node trust transfer mechanism enables the inter-node transfer unit to transfer the inter-node trust relationship between each block chain node in the block chain node cluster according to a master-selected replication method; and/or the inter-cluster trust transfer mechanism enables the inter-cluster transfer unit to transfer the inter-cluster trust relationship between each block chain node cluster according to the selected master burst replication mode.
15. An electronic device, comprising: a memory having computer-executable instructions stored thereon and a processor for executing the computer-executable instructions to perform the steps of:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
16. The electronic device according to claim 15, wherein the processor is specifically configured to perform clustering processing on the block link points in the big data trust system according to a physical distance or a logical distance between the block link points in the big data trust system to obtain a plurality of block link node clusters.
17. The electronic device according to claim 15, wherein the processor is specifically configured to cluster the block link nodes in the big data trust system to obtain a plurality of block link node clusters, and the cluster processing includes: and clustering the block chain link points in the big data trust system according to the functional roles of the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
18. The electronic device according to any one of claims 15 to 17, wherein the processor is configured to, in units of the block chain node clusters, perform transfer of inter-node trust relationships between block chain nodes inside the processor according to a set inter-node trust transfer mechanism, and perform transfer of inter-cluster trust relationships between block chain node clusters according to a set inter-cluster trust transfer mechanism.
19. The electronic device according to claim 18, wherein the processor is specifically configured to use an inter-node trust transfer mechanism to transfer an inter-node trust relationship between each blockchain node within the blockchain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster in a random mode.
20. The electronic device according to claim 18, wherein the processor is specifically configured to use an inter-node trust transfer mechanism to transfer the inter-node trust relationship between each blockchain node within the blockchain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster trust relationship transfer between each block chain node cluster according to a conflict-free copying mode.
21. The electronic device according to claim 18, wherein the processor is specifically configured to use an inter-node trust transfer mechanism to transfer the inter-node trust relationship between each blockchain node within the blockchain node cluster according to a master-selected replication method; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster according to the selected master burst replication mode.
22. A computer storage medium having computer-executable instructions stored thereon that, when executed, perform the steps of:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
23. A big data trust system is characterized by comprising a plurality of block chain nodes, wherein the block chain nodes are clustered to obtain a plurality of block chain node clusters, and each block chain node cluster at least comprises one block chain node; and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
In the technical scheme of the embodiment of the application, a plurality of block chain node clusters are obtained by clustering block chain link points in a big data trust system, and each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among all block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among all block chain node clusters, so that the trust relationships among the nodes among the block chain nodes in the block chain system can be rapidly expanded, and the data safety of the whole block chain system is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of a big data trust system in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for performing rapid expansion of trust relationships between nodes based on trusted computing in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus for performing fast extension of trust relationship between nodes based on trusted computing in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a clustering module in the embodiment of the present application;
FIG. 5 is a schematic structural diagram of a clustering module in the embodiment of the present application;
FIG. 6 is a schematic structural diagram of a transfer module according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the present application.
Detailed Description
It is not necessary for any particular embodiment of the invention to achieve all of the above advantages at the same time.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic structural diagram of a big data trust system in an embodiment of the present application; as shown in fig. 1, the big data trust system includes a plurality of block chain nodes, the plurality of block chain nodes are clustered to obtain a plurality of block chain node clusters, and each block chain node cluster includes at least one block chain node; and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
In this embodiment, a large amount of data is stored in the big data trust system, and the data may be determined according to the requirements of an application scenario. For example, for a bank, the data may be associated with financial data, user data, etc. of the bank's operation.
In this embodiment, the block link point may be a computer or a server connected via the internet or any electronic terminal.
In the embodiment, a trust mechanism is established among all the block chain nodes in the big data trust system through the trust relationship among the nodes, so that the safety of the data stored in the big data trust system is ensured.
In the technical scheme of the embodiment of the application, a plurality of block chain node clusters are obtained by clustering block chain link points in a big data trust system, and each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among all block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among all block chain node clusters, so that the trust relationships among the nodes among the block chain nodes in the block chain system can be rapidly expanded, and the data safety of the whole block chain system is ensured.
FIG. 2 is a schematic flow chart of a method for performing rapid expansion of trust relationships between nodes based on trusted computing in an embodiment of the present application; as shown in fig. 2, it includes:
s201, clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
in this embodiment, when clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters in step S201, the block chain link points in the big data trust system may be clustered according to a physical distance or a logical distance between the block chain link points in the big data trust system to obtain the plurality of block chain node clusters.
In this embodiment, the physical distance between the block chain nodes is defined based on how far the block chain nodes are actually located. And the logical distance between the block chain nodes is defined based on the sequence of the block chain nodes when actually processing the service.
In this embodiment, "clustering" may also be referred to as "grouping".
Or, alternatively, when the block chain link points in the big data trust system are clustered to obtain a plurality of block chain node clusters in step S201, the block chain link points in the big data trust system may be clustered to obtain a plurality of block chain node clusters according to the functional roles of the block chain link points in the big data trust system.
In this embodiment, the functional roles of the block chain nodes are, for example, a common node and a common node, and the functional roles of the block chain nodes can determine functions of the block chain link points which are performed in the past when the service is processed, for example, if a certain block chain link point is used as a common node in the past when the service is processed or is used as a common node in most cases, the common node can be directly located by the functional role of the block chain link point; if a certain block chain node is used as a common node in past service processing or is mostly used as a common node, the common node can be directly positioned in the function role of the block chain node.
In this embodiment, each blockchain node is dynamically recorded in a usual function role and forms a function role list, so as to rapidly perform statistics on the function roles. Therefore, one blockchain node can be selected or authorized in the big data trust system to dynamically record the function roles of all blockchain nodes and form a function role list. Or the function role of each block chain node can be broadcasted in the big data trust system in real time and received by other block chain nodes, the received function role of a certain block chain node is authenticated by other block chain nodes, and the authentication is recorded locally at the other block chain nodes after passing. When the scheme of the embodiment of the application needs to be executed again, each blockchain node acquires the function role list of other blockchain nodes from the local part of the blockchain node and carries out voting and authentication again on the function roles, so that the dynamic monitoring of the function roles of the blockchain nodes and the dynamic processing of clustering are realized, the clustering can be dynamically adjusted according to the real-time running condition of the big data trust system, and the accuracy of trust relationship transmission under different running conditions is ensured.
Further, in order to avoid resource conflicts among the block chain nodes classified into the same cluster, in one embodiment, a transaction set is extracted from the block chain nodes, the transaction set is traversed, and metadata of an intelligent contract function is obtained according to an intelligent contract function and an intelligent contract address called by each transaction to determine a resource set occupied by the transaction; constructing a resource dependence undirected graph according to a resource set, wherein a block chain link point is a resource, and if an intelligent contract function in one transaction accesses two resources, namely two block chain nodes, the two block chain link points directly have one edge; when grouping is carried out, two block chain link points with one edge are considered to have resource conflict, and the two block chain link points are not grouped in the same block chain node cluster.
Alternatively, in this embodiment, the clustering of the block link points may be performed according to the number of the consensus nodes configured in the big data trust system, where the number is generally configured in advance according to an application scenario.
Specifically, when clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters in step S201, the method includes: determining the number of consensus nodes configured in the big data trust system, and determining the credible root measurement of each block chain node in the big data trust system; arranging the credible root metrics in a descending order to obtain a credible root metric ordering queue; carrying out interval division on the credible root measurement sequencing queue, so that the number of divided intervals is equal to the number of common identification nodes; taking the first block chain link point of each interval as an initial node of each cluster, and obtaining a plurality of initial nodes in total, wherein the number of the initial nodes is equal to that of the common nodes; other non-initial nodes send detection information to the initial nodes, and physical distances between the non-initial nodes and the initial nodes are determined; and other non-initial nodes select the initial node closest to the non-initial nodes and add the initial node to the group where the closest initial node is located, so that the block chain link points in the big data trust system are clustered to obtain a plurality of block chain node clusters.
Further, in order to avoid clustering failure in the grouping process, a time interval of joining and a node change threshold value may be set, and if, in the time interval, for one of the blockchain node families, the difference between the number of joining any one of the blockchain node families and the number of leaving any one of the blockchain node families is greater than the node change threshold value, the blockchain node families are grouped again.
S202, with the block chain node clusters as units, transmitting trust relationships among the nodes among the block chain nodes in the block chain node clusters, and transmitting trust relationships among the clusters among the block chain node clusters.
In this embodiment, in step S202, taking the block chain node cluster as a unit, when the inter-node trust relationship is transferred between each block chain node inside the block chain node cluster, and the inter-cluster trust relationship is transferred between each block chain node cluster, the method specifically includes: and taking the block chain node cluster as a unit, transmitting the trust relationship between the nodes among all block chain nodes in the block chain node cluster according to a set trust transmission mechanism between the nodes, and transmitting the trust relationship between the clusters among all block chain node clusters according to the set trust transmission mechanism between the clusters.
In this embodiment, when the inter-node trust relationship is transferred between each block link point in the block chain node cluster according to a set inter-node trust transfer mechanism, the block link point to be verified broadcasts the root of trust metric in the block chain node cluster, the other block link points receiving the root of trust metric authenticate the received root of trust metric, if the authentication is passed, it indicates that the other block link points of the block link point to be verified are trusted, and records the trust relationship locally to the other block link points, and when any block link node in the other block link nodes is used as the next block link point to be verified, the root of trust metric is broadcasted to other block link points, and so on, until each block link point in the block chain node cluster completes entering the respective root of trust metric and the trust relationship in the block chain node cluster And (6) broadcasting the line.
In this embodiment, when the inter-cluster trust relationship is transferred between each block chain node cluster according to a set inter-cluster trust transfer mechanism, the last verified block chain node of any block chain node cluster stores all trust relationships inside the block chain node cluster, and sends the trust relationship to one block chain node in another block chain node cluster in a broadcast manner, so as to quickly expand or transfer the trust relationship from one block chain node cluster to another block chain node cluster.
Optionally, in this embodiment, in step S202, the inter-node trust transfer mechanism enables the inter-node trust relationship to be transferred between each block chain node in the block chain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster in a random mode.
Specifically, in a random mode for transmitting trust relationships among nodes, in a big data trust system, at intervals of a preset time period, one block chain link point randomly transmits trust relationships to other block chain link points, and other block chain nodes transmit respective trust relationships to the block chain link point, so that the trust relationships are quickly transmitted, and meanwhile, the difference of the trust relationships stored in each block chain node is eliminated through the random mode.
Similarly, in a random manner for transferring trust relationships among clusters, in a big data trust system, one of the block chain node clusters transfers trust relationships to other block chain node clusters at random intervals, and the other block chain node clusters transfer respective trust relationships to the block chain node cluster, so that the trust relationships are transferred quickly, and meanwhile, the difference of the trust relationships stored in each block chain node cluster is eliminated through the random manner.
Alternatively, in an embodiment, in step S202, the inter-node trust transfer mechanism transfers the inter-node trust relationship between each block chain node in the block chain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster trust relationship transfer between each block chain node cluster according to a conflict-free copying mode.
Specifically, when the trust relationship between nodes or clusters is transferred in a collision-free replication manner, the trust relationship between all the block chain nodes is transferred between the nodes or clusters by data with a fixed structure.
Alternatively, in an embodiment, in step S202, the inter-node trust transfer mechanism transfers the inter-node trust relationship between each block chain node in the block chain node cluster according to a master-selected replication method; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster according to the selected master burst replication mode.
Specifically, when a master copy mode is selected to transmit the trust relationship between the nodes, a leader node is selected in a block chain node cluster through voting, other block chain nodes in the same block chain node cluster broadcast the trust relationship to the leader node, the leader node verifies the trust relationship, and the verified trust relationship is directly copied by the other block chain nodes, so that the rapid transmission of the trust relationship in the same block chain node cluster is rapidly realized.
Similarly, when the master-selecting replication mode is used for transmitting the trust relationship between the clusters, a leader node cluster is selected from the block chain node clusters through voting, other block chain node clusters broadcast the trust relationship to the leader node, the leader node cluster verifies the trust relationship, and the verified trust relationship is directly replicated by the other block chain node clusters, so that the rapid transmission of the trust relationship in the different block chain node clusters is rapidly realized.
Fig. 3 is a schematic structural diagram of an apparatus for performing fast extension of trust relationship between nodes based on trusted computing in the embodiment of the present application. As shown in fig. 3, it includes:
the clustering module 301 is configured to perform clustering processing on block link nodes in the big data trust system to obtain a plurality of block link node clusters, where each block link node cluster at least includes one block link node;
a transferring module 302, configured to transfer the inter-node trust relationship between each block chain node inside the block chain node cluster as a unit, and transfer the inter-cluster trust relationship between each block chain node cluster.
FIG. 4 is a schematic structural diagram of a clustering module in the embodiment of the present application; as shown in fig. 4, it includes:
a distance counting unit 311A, configured to count physical distances or logical distances between block link points in any system;
and the clustering unit 321A is configured to perform clustering processing on the block link points in the big data trust system by using the physical distance or the logical distance to obtain a plurality of block link node clusters.
In this embodiment, the physical distance between the block chain nodes is defined based on how far the block chain nodes are actually located. And the logical distance between the block chain nodes is defined based on the sequence of the block chain nodes when actually processing the service.
In this embodiment, "clustering" may also be referred to as "grouping".
FIG. 5 is a schematic structural diagram of a clustering module in the embodiment of the present application; as shown in fig. 5, it includes:
a role determination unit 311B, configured to count functional roles of block link points in any system;
the clustering unit 321B is configured to perform clustering processing on the block link points in the big data trust system according to the functional roles of the block link points in the big data trust system to obtain a plurality of block link node clusters.
In this embodiment, the functional roles of the block chain nodes are, for example, a common node and a common node, and the functional roles of the block chain nodes can determine functions of the block chain link points which are performed in the past when the service is processed, for example, if a certain block chain link point is used as a common node in the past when the service is processed or is used as a common node in most cases, the common node can be directly located by the functional role of the block chain link point; if a certain block chain node is used as a common node in past service processing or is mostly used as a common node, the common node can be directly positioned in the function role of the block chain node.
In this embodiment, each blockchain node is dynamically recorded in a usual function role and forms a function role list, so as to rapidly perform statistics on the function roles. Therefore, one blockchain node can be selected or authorized in the big data trust system to dynamically record the function roles of all blockchain nodes and form a function role list. Or the function role of each block chain node can be broadcasted in the big data trust system in real time and received by other block chain nodes, the received function role of a certain block chain node is authenticated by other block chain nodes, and the authentication is recorded locally at the other block chain nodes after passing. When the scheme of the embodiment of the application needs to be executed again, each blockchain node acquires the function role list of other blockchain nodes from the local part of the blockchain node and carries out voting and authentication again on the function roles, so that the dynamic monitoring of the function roles of the blockchain nodes and the dynamic processing of clustering are realized, the clustering can be dynamically adjusted according to the real-time running condition of the big data trust system, and the accuracy of trust relationship transmission under different running conditions is ensured.
Further, in order to avoid resource conflicts among the block chain nodes classified into the same cluster, in one embodiment, a transaction set is extracted from the block chain nodes, the transaction set is traversed, and metadata of an intelligent contract function is obtained according to an intelligent contract function and an intelligent contract address called by each transaction to determine a resource set occupied by the transaction; constructing a resource dependence undirected graph according to a resource set, wherein a block chain link point is a resource, and if an intelligent contract function in one transaction accesses two resources, namely two block chain nodes, the two block chain link points directly have one edge; when grouping is carried out, two block chain link points with one edge are considered to have resource conflict, and the two block chain link points are not grouped in the same block chain node cluster.
Alternatively, the clustering module may further include:
the parameter determining unit is used for determining the number of the consensus nodes configured in the big data trust system and determining the credibility root measurement of each block chain node in the big data trust system;
the sorting unit is used for sorting the credible root metrics in a descending order to obtain a credible root metric sorting queue; carrying out interval division on the credible root measurement sequencing queue, so that the number of divided intervals is equal to the number of common identification nodes;
the node distribution unit is used for taking the first block chain link point of each interval as the initial node of each cluster to obtain a plurality of initial nodes in total, and the number of the initial nodes is equal to that of the common nodes;
a detection unit, configured to enable other non-initial nodes to send detection information to the plurality of initial nodes, and determine physical distances to the plurality of initial nodes;
and the clustering unit is used for enabling other non-initial nodes to select the initial node closest to the non-initial nodes and adding the initial node to the group where the closest initial node is located, so that the block chain link points in the big data trust system are clustered finally to obtain a plurality of block chain node clusters.
Further, in order to avoid clustering failure in the grouping process, a time interval of joining and a node change threshold value may be set, and if, in the time interval, for one of the blockchain node families, the difference between the number of joining any one of the blockchain node families and the number of leaving any one of the blockchain node families is greater than the node change threshold value, the blockchain node families are grouped again.
FIG. 6 is a schematic structural diagram of a transfer module according to an embodiment of the present application; as shown in fig. 6, it includes:
an inter-node transfer unit 312, configured to transfer, by using the block chain node cluster as a unit, an inter-node trust relationship between each block chain node inside the block chain node cluster according to a set inter-node trust transfer mechanism;
and an inter-cluster transfer unit 322, configured to perform inter-cluster trust relationship transfer between each block chain node cluster according to a set inter-cluster trust transfer mechanism.
Optionally, in an embodiment, the inter-node trust transfer mechanism enables the inter-node transfer unit to transfer the inter-node trust relationship between each block chain node in the block chain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster transfer unit to transfer the inter-cluster trust relationship between each block chain node cluster in a random mode.
Optionally, in an embodiment, the inter-node trust transfer mechanism enables the inter-node transfer unit to transfer the inter-node trust relationship between each block chain node in the block chain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster transfer unit to transfer the inter-cluster trust relationship among each block chain node cluster according to a conflict-free copying mode.
Optionally, in an embodiment, the inter-node trust transfer mechanism enables the inter-node transfer unit to transfer the inter-node trust relationship between each block chain node in the block chain node cluster according to a master-selection replication method; and/or the inter-cluster trust transfer mechanism enables the inter-cluster transfer unit to transfer the inter-cluster trust relationship between each block chain node cluster according to the selected master burst replication mode.
FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application; as shown in fig. 7, it includes: a memory 701 having computer-executable instructions stored thereon, and a processor 702 for executing the computer-executable instructions to perform the steps of:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
Optionally, in an embodiment, the processor is specifically configured to perform clustering processing on the block link points in the big data trust system according to a physical distance or a logical distance between the block link points in the big data trust system to obtain a plurality of block chain node clusters.
Optionally, in an embodiment, the processor is specifically configured to perform clustering on the block link nodes in the big data trust system to obtain a plurality of block link node clusters, and the method includes: and clustering the block chain link points in the big data trust system according to the functional roles of the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
Optionally, in an embodiment, the processor specifically uses the block chain node cluster as a unit, and performs transfer of trust relationship between nodes among block chain nodes inside the processor according to a set inter-node trust transfer mechanism, and performs transfer of trust relationship between clusters among block chain node clusters according to a set inter-cluster trust transfer mechanism.
Optionally, in an embodiment, the processor specifically uses an inter-node trust transfer mechanism to transfer the inter-node trust relationship between each block chain node in the block chain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster in a random mode.
Optionally, in an embodiment, the processor specifically uses an inter-node trust transfer mechanism to transfer the inter-node trust relationship between each block chain node in the block chain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster trust relationship transfer between each block chain node cluster according to a conflict-free copying mode.
Optionally, in an embodiment, the processor specifically uses an inter-node trust transfer mechanism to transfer the inter-node trust relationship between each block chain node in the block chain node cluster according to a master-selection replication method; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster according to the selected master burst replication mode.
An embodiment of the present application further provides a computer storage medium, where computer-executable instructions are stored on the computer storage medium, and when executed, the computer-executable instructions implement the following steps:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
FIG. 8 is a diagram of a hardware structure of an electronic device according to an embodiment of the present application; as shown in fig. 8, the hardware structure of the electronic device may include: a processor 801, a communication interface 802, a computer-readable medium 803, and a communication bus 804;
the processor 801, the communication interface 802 and the computer-readable medium 803 complete communication with each other through the communication bus 804;
optionally, the communication interface 802 may be an interface of a communication module, such as an interface of a GSM module;
the processor 801 may be specifically configured to run an executable program stored in the memory, so as to perform all or part of the processing steps of any of the above-described method embodiments.
The Processor 801 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the modules illustrated as separate components may or may not be physically separate, and the components suggested as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for quickly expanding trust relationship between nodes based on trusted computing is characterized by comprising the following steps:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
2. The method according to claim 1, wherein the clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters comprises: and clustering the block chain link points in the big data trust system according to the physical distance or the logical distance between the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
3. The method according to claim 1, wherein the clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters comprises: and clustering the block chain link points in the big data trust system according to the functional roles of the block chain link points in the big data trust system to obtain a plurality of block chain node clusters.
4. The method according to any one of claims 1 to 3, wherein the transferring of the inter-node trust relationship between each block chain node inside the block chain node cluster and the transferring of the inter-cluster trust relationship between each block chain node cluster by taking the block chain node cluster as a unit comprises: and taking the block chain node cluster as a unit, transmitting the trust relationship between the nodes among all block chain nodes in the block chain node cluster according to a set trust transmission mechanism between the nodes, and transmitting the trust relationship between the clusters among all block chain node clusters according to the set trust transmission mechanism between the clusters.
5. The method according to claim 4, wherein the inter-node trust transfer mechanism transfers the inter-node trust relationship between each block chain node in the block chain node cluster in a random manner; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster in a random mode.
6. The method according to claim 4, wherein the inter-node trust transfer mechanism enables the transfer of the inter-node trust relationship between each blockchain node in the blockchain node cluster in a conflict-free replication manner; and/or the inter-cluster trust transfer mechanism enables the inter-cluster trust relationship transfer between each block chain node cluster according to a conflict-free copying mode.
7. The method according to claim 4, characterized in that the inter-node trust transfer mechanism transfers the inter-node trust relationship between each block chain node in the block chain node cluster according to a master-selection replication mode; and/or the inter-cluster trust transfer mechanism transfers the inter-cluster trust relationship among each block chain node cluster according to the selected master burst replication mode.
8. An apparatus for performing fast extension of trust relationship between nodes based on trusted computing, comprising:
the clustering module is used for clustering block chain link points in the big data trust system to obtain a plurality of block chain node clusters, and each block chain node cluster at least comprises one block chain node;
and the transmission module is used for transmitting the trust relationship between the nodes among the block chain nodes in the block chain node cluster as a unit and transmitting the trust relationship between the clusters among the block chain nodes.
9. An electronic device, comprising: a memory having computer-executable instructions stored thereon and a processor for executing the computer-executable instructions to perform the steps of:
clustering block chain link points in a big data trust system to obtain a plurality of block chain node clusters, wherein each block chain node cluster at least comprises one block chain node;
and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
10. A big data trust system is characterized by comprising a plurality of block chain nodes, wherein the block chain nodes are clustered to obtain a plurality of block chain node clusters, and each block chain node cluster at least comprises one block chain node; and taking the block chain node cluster as a unit, transmitting trust relationships among the nodes among the block chain nodes in the block chain node cluster, and transmitting trust relationships among the clusters among the block chain node clusters.
CN202011005557.6A 2020-09-22 2020-09-22 Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing Active CN112131602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011005557.6A CN112131602B (en) 2020-09-22 2020-09-22 Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011005557.6A CN112131602B (en) 2020-09-22 2020-09-22 Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing

Publications (2)

Publication Number Publication Date
CN112131602A true CN112131602A (en) 2020-12-25
CN112131602B CN112131602B (en) 2024-02-20

Family

ID=73842483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011005557.6A Active CN112131602B (en) 2020-09-22 2020-09-22 Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing

Country Status (1)

Country Link
CN (1) CN112131602B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114473A (en) * 2021-04-02 2021-07-13 西南石油大学 Credit evaluation system based on agricultural block chain Internet of things perception layer node

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188563A (en) * 2019-06-02 2019-08-30 四川虹微技术有限公司 A kind of trust data update method and device
WO2020147673A1 (en) * 2019-01-17 2020-07-23 华为技术有限公司 Blockchain ledger storage method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020147673A1 (en) * 2019-01-17 2020-07-23 华为技术有限公司 Blockchain ledger storage method and device
CN110188563A (en) * 2019-06-02 2019-08-30 四川虹微技术有限公司 A kind of trust data update method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114473A (en) * 2021-04-02 2021-07-13 西南石油大学 Credit evaluation system based on agricultural block chain Internet of things perception layer node
CN113114473B (en) * 2021-04-02 2022-03-01 西南石油大学 Credit evaluation system based on agricultural block chain Internet of things perception layer node

Also Published As

Publication number Publication date
CN112131602B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
EP4053711A1 (en) Consensus method for blockchain, and consensus node, electronic device and storage medium
CN108512939B (en) Block chain consensus method, device and related equipment
CN110708171A (en) Block chain consensus voting method, device, equipment and storage medium
US20210158353A1 (en) Methods, systems, apparatuses, and devices for processing request in consortium blockchain
CN112134883B (en) Method, device and related product for carrying out rapid authentication on trust relationship between nodes based on trusted computing
WO2018095171A1 (en) Payment method and device
EP3816924B1 (en) Method for accepting blockchain evidence storage transaction and system
CN112347184A (en) Bifurcation processing method and block link point
CN112187475A (en) Method and device for performing multi-center accounting based on trusted computing and related products
CN112131602A (en) Method and device for quickly expanding trust relationship between nodes based on trusted computing and related products
CN112202765B (en) Block chain common identification block method, block chain system, electronic device and storage medium
CN117251889B (en) Block chain consensus method, related device and medium
CN112667753B (en) Method for mining physical node path and computer equipment
CN112417052A (en) Data synchronization method, device, equipment and storage medium in block chain network
CN112184439A (en) Decentralized transaction method and device based on node sequencing and related products
CN112258184A (en) Method and device for freezing area block chain network, electronic equipment and readable storage medium
CN112804305B (en) Credible networking method and system of internet node and related product
CN112688960B (en) Method, system and related product for calculating connection strength in internet node authentication
CN113542439B (en) Distributed data storage access method and device
CN113949508B (en) Process data processing method and device based on random number consensus mechanism
CN112202875B (en) Method and device for safety detection based on block chain node weight and related products
CN112788121B (en) Method and system for calculating global reputation value in internet node and related product
CN112272208B (en) Secure multiparty computing method, electronic device and storage medium
WO2024007856A1 (en) Data processing method and apparatus, device, medium, and product
CN115632788A (en) Dynamic access method and device for nodes in alliance chain and electronic equipment

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