WO2022127122A1 - Dynamic configuration method and apparatus for node permissions in blockchain network - Google Patents

Dynamic configuration method and apparatus for node permissions in blockchain network Download PDF

Info

Publication number
WO2022127122A1
WO2022127122A1 PCT/CN2021/109384 CN2021109384W WO2022127122A1 WO 2022127122 A1 WO2022127122 A1 WO 2022127122A1 CN 2021109384 W CN2021109384 W CN 2021109384W WO 2022127122 A1 WO2022127122 A1 WO 2022127122A1
Authority
WO
WIPO (PCT)
Prior art keywords
state tree
node
nodes
tree
state
Prior art date
Application number
PCT/CN2021/109384
Other languages
French (fr)
Chinese (zh)
Inventor
代健武
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2022127122A1 publication Critical patent/WO2022127122A1/en

Links

Classifications

    • 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
    • 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

Definitions

  • the present application relates to the field of blockchain technology, and in particular, to a method, device, computer equipment and storage medium for dynamically configuring node authority in a blockchain network.
  • each node on the blockchain network often requires manual participation in the main management, including the management of decision-making transactions such as node deletion and node addition.
  • decision-making transactions such as node deletion and node addition.
  • node users it is often difficult for people to trust their fairness, rationality and security when setting up administrators.
  • its subjectivization and centralization are often difficult to achieve true fairness, and different human administrators with different experience, experience, gender, etc. may give different results for the same situation.
  • a method, apparatus, computer device and storage medium for dynamic configuration of node authority is necessary to solve the problem that technicians need to manually write a large amount of code when performing dynamic configuration of node permissions in the blockchain network, and the workload is large, thereby reducing the efficiency of testing, and to provide a blockchain network.
  • a first aspect provides a method for dynamically configuring node permissions in a blockchain network, including:
  • the constructing the first state tree of the reference node includes:
  • the first related information is stored in the first state tree.
  • the step of constructing the second state tree of each other node other than the reference node in the current blockchain includes:
  • the second state tree of each of the other nodes is constructed based on the second related information of each of the other nodes.
  • the constructing a third state tree based on each of the second state tree and the first state tree includes:
  • configuring permissions for each node respectively includes:
  • the permissions are dynamically configured for each node according to the state of the pre-divided time period.
  • the method further includes:
  • the time for the next permission configuration is calculated.
  • the time for calculating the next permission configuration based on the credit rating scores of all nodes in the current blockchain includes:
  • the length of the next dynamic configuration time is calculated, wherein the size of the evenness is described by the size of the standard deviation of the credit rating scores.
  • a second aspect provides a device for dynamically configuring node permissions in a blockchain network, including:
  • a first state tree construction unit configured to randomly select a node from all the nodes of the current blockchain as a reference node, and construct a first state tree of the reference node;
  • the second state tree construction unit is used to respectively construct the second state tree of each other node other than the reference node in the current blockchain;
  • a third state tree construction unit configured to construct a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the second state tree and the first state tree The relevance of the state tree;
  • a credit rating unit configured to respectively configure a credit rating score for each of the other nodes based on the third state tree and the preset credit rating score of the reference node;
  • the authority configuration unit is used to configure authority for each of the nodes respectively based on the credit rating score of each of the nodes in the current blockchain.
  • a third aspect provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor causes the processor to execute the above-mentioned Steps of a dynamic configuration method for node permissions in a blockchain network.
  • a fourth aspect provides a storage medium storing computer-readable instructions.
  • the one or more processors When the computer-readable instructions are executed by one or more processors, the one or more processors cause the one or more processors to execute the above-mentioned nodes in the blockchain network.
  • the steps of the dynamic configuration method of permissions are executed by one or more processors.
  • the method, device, computer equipment and storage medium for dynamic configuration of node authority in the above-mentioned blockchain network first, randomly select a node from all nodes in the current blockchain as a reference node, and construct the first state of the reference node Then, respectively constructing the second state tree of each other node except the reference node in the current blockchain; and respectively constructing the second state tree of each other node except the reference node in the current blockchain; Then, based on the third state tree and the preset credit rating score of the reference node, respectively configure a credit rating score for each of the other nodes; finally, based on the credit rating score of each of the nodes in the current blockchain, Configure permissions for each of the nodes separately. This realizes the automatic and non-manual dynamic setting of reasonable permissions for each node, thereby solving the problems of centralization and subjectivity in the current blockchain management.
  • FIG. 1 is a block diagram of the internal structure of a computer device in one embodiment
  • FIG. 2 is a flowchart of a method for dynamically configuring node permissions in a blockchain network in one embodiment
  • FIG. 3 is another flowchart of a method for dynamically configuring node permissions in a blockchain network in one embodiment
  • FIG. 4 is a structural block diagram of an apparatus for dynamically configuring node authority in a blockchain network in one embodiment.
  • a dynamic configuration script for node permissions in a first blockchain network may be referred to as a dynamic configuration script for node permissions in a second blockchain network
  • the dynamic configuration script of the node authority in the second blockchain network may be referred to as the dynamic configuration script of the node authority in the second blockchain network.
  • a computer device and a node (eg, server) of the blockchain are included.
  • the computer device is a configuration device, for example, a computer device such as a computer, and a dynamic configuration tool with node permissions is installed on the computer device.
  • a dynamic configuration request for node permissions in the blockchain network can be sent to the computer device, and the computer device receives the dynamic configuration request for node permissions in the blockchain network, dynamically configures the nodes of the blockchain, and obtains Dynamic configuration results of node permissions in a blockchain network.
  • the computer device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto.
  • the computer equipment and the terminal may be connected through Bluetooth, USB (Universal Serial Bus, Universal Serial Bus) or other communication connection methods, which are not limited in this application.
  • FIG. 1 is a schematic diagram of the internal structure of a computer device in one embodiment.
  • the computer device includes a processor, non-volatile storage medium, memory, and a network interface connected by a system bus.
  • the non-volatile storage medium of the computer device stores an operating system, a database and computer-readable instructions
  • the database may store a sequence of control information.
  • the processor can realize a A dynamic configuration method for node permissions in a blockchain network.
  • the processor of the computer device is used to provide computing and control capabilities and support the operation of the entire computer device.
  • Computer-readable instructions may be stored in the memory of the computer device, and when the computer-readable instructions are executed by the processor, the processor may execute a method for dynamically configuring node authority in a blockchain network.
  • the network interface of the computer equipment is used for communication with the terminal connection.
  • a method for dynamically configuring node permissions in a blockchain network is proposed, which may specifically include the following steps:
  • Step 201 Randomly select a node from all nodes in the current blockchain as a reference node, and construct a first state tree of the reference node.
  • the construction of the first state tree is to store the relevant information (ie, the first relevant information) of the reference node based on the state tree.
  • the degree value stores the first related information of the reference node sequentially from top to bottom.
  • the construction of the first state tree of the reference node in the above step 201 may include:
  • Step 201a Obtain the first related information of the reference node and the importance level value of the first related information.
  • the relevant information of the benchmark node may include but not limited to the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, how many transaction endorsements are the same as the final result, the size of the computing power, and the storage space shared by the blockchain network. Size, how many blocks are output to help other blocks synchronize, time to join the current blockchain network, historical credit score records, the number of nodes that communicate with the node, the activity of the node, the load rate of the node, etc. Wait.
  • the important value of the first relevant information can be set based on experience or the business performed (such as stock trading business).
  • the relevant information of the benchmark node includes the number of transaction submissions, the number of executed transaction queries, the number of transaction endorsements, the number of times of joining the current blockchain network
  • the order of the important values of the first related information may be that the related information of the reference node includes the number of transaction submissions>the number of transaction endorsements>the time of joining the current blockchain network>the number of executed transaction queries.
  • Step 201b based on the importance value of the first related information, store the first related information in the first state tree.
  • top and bottom refer to the node positions in the state tree, that is, the top is the parent node, and the bottom is the child node. in a state tree.
  • related information with high importance and high importance (high importance value) in the first state tree can often be the parent node of related information with relatively low importance and low importance (low importance value), and the information with the lowest importance is basically distributed. on leaf nodes.
  • the current blockchain may include, but is not limited to, a consortium chain, a public chain, or a private chain, and the like.
  • Step 202 Construct the second state tree of each other node except the reference node in the current blockchain, respectively.
  • each node in other nodes other than the reference node in the current blockchain corresponds to a second state tree, that is, all nodes in the current blockchain correspond to a state tree, that is, the number of all state trees
  • the sum of (all second state trees and one first state tree) is the sum of the number of nodes in the current blockchain.
  • the construction of the second state tree is to store the related information (ie, the second related information) of other nodes based on the state tree.
  • the second state tree of each other node is constructed with reference to the structure of the first root node, that is, the structure of each second state tree is exactly the same as that of the second state tree.
  • the second state tree is also used to store the second related information of the reference node in order from top to bottom according to the importance value of the second related information of other nodes.
  • the relevant information (i.e. the second relevant information) of other nodes also includes but is not limited to the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, and the number of transactions.
  • the endorsement is the same as the final result, the size of the computing power, the size of the storage space shared by the blockchain network, how many blocks are output to help other blocks synchronize, the time of joining the current blockchain network, the historical credit evaluation score record, and the The number of nodes that the node communicates with, the activity of the node, the load rate of the node, and so on.
  • any second state tree is the same as the construction process of the first state tree, that is, first, the importance of any other node-related information is sorted; then, the nodes are related in descending order of importance.
  • the information is stored in the second state tree from top to bottom, so that the second state tree of the ordered tree structure can be generated.
  • the second state tree of each other node other than the reference node in the current blockchain is respectively constructed, which may include:
  • Step 202a Obtain resource idle values of other nodes.
  • nodes refer to all nodes other than the reference node in the current blockchain.
  • the resources of the nodes are the network resources of the blockchain, which can include computing resources and storage resources.
  • the resource idle value refers to the unused computing resources and storage resources.
  • Step 202b Based on the resource idle values of other nodes, generate access sequence tables of all other nodes according to preset rules.
  • the preset rule is to generate an access sequence table of nodes in descending order of resource idle value, that is, a node with a large resource idle value in the access sequence table is ranked first, and a node with a small resource idle value is ranked at the back.
  • the related information (ie the second related information) of the other node is obtained, and before accessing each other node, the resource idle value of the other node is obtained first.
  • the step of obtaining the idle value of node resources may be performed once before accessing all other nodes, and then an access sequence table may be obtained.
  • at least two sequential access sequence tables will be generated.
  • Step 202c Access other nodes one by one based on the access sequence table to obtain second related information of each other node.
  • relevant information (second relevant information) of other nodes is obtained, that is, the type of the second relevant information of other nodes and the first relevant information of the reference node.
  • the types of relevant information are the same.
  • the relevant information of the benchmark node is the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, how many transaction endorsements are the same as the final result, and the computing power size
  • the related information (second related information) of other nodes is also the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, how many transaction endorsements are the same as the final result, and the size of the computing power.
  • Step 202d constructing a second state tree of each other node based on the second related information of each other node.
  • the corresponding nodes are accessed one by one according to the order of the nodes in the access sequence table to obtain the node-related information, and the nodes with more redundant resources are preferentially accessed, which helps to provide the corresponding access process faster.
  • Historical records provide the longest possible preparation time for nodes with relatively insufficient resources, thereby increasing the speed of access to all other nodes.
  • Step 203 Build a third state tree based on each of the second state trees and the first state tree, where the third state tree is used to describe the degree of association between the second state tree and the first state tree.
  • the third state tree is used to describe the degree of association between the first state tree and the second state tree, and essentially describes the degree of association between each other node and the reference node.
  • the degree of association is specifically the third state tree corresponding to the second state tree, or each other node other than the reference node of the blockchain corresponds to a third state tree one by one.
  • the third state tree also has the same structure as the first state tree and the second state tree.
  • the calculation process of the degree of association between the first state tree and the second state tree may include, but is not limited to: performing the same-level amplification process on the first element and the second element respectively, and the same-level amplification process may include, for example, cubic calculation, exponential power Calculation, etc., and then compare the amplified results, for example, it can be a difference comparison or a quotient comparison, so as to obtain the degree of correlation between the first element and the second element. After all elements are all calculated above, it can be completed. Complements to all values on the third state tree.
  • a third state tree is constructed, which may include:
  • Step 203a constructing a basic tree without data, wherein the basic tree, the first state tree and the second state tree have the same structure.
  • the same structure of the basic tree, the first state tree and the second state tree means that the number of branches of the state tree and the relationship between the parent node and the child node are the same.
  • Step 203b traverse the first state tree and the second state tree respectively, and perform the same-level magnification processing on the first element on the first state tree and the second element on the second state tree, wherein the first element is in the first state tree.
  • the position on the state tree is the same as the position of the second element on the second state tree.
  • the first state tree and the second state tree are traversed respectively, and the first element on the first state tree and the second element on the second state tree at the same position are respectively subjected to the same-level amplification process.
  • the same-level amplification method may include, but is not limited to, performing cubic calculation, exponential power calculation, etc., and compare the two, and the comparison method may include, but is not limited to, performing division or subtraction calculation processing.
  • Step 203c Compare the enlarged first element with the enlarged second element to obtain the degree of association between the first element and the second element.
  • the comparison method may include but not limited to performing division or subtraction calculation processing, for example, it may be a difference comparison or a quotient comparison, so as to obtain the degree of association between the first element and the second element, Then, data for filling the corresponding position elements of the basic tree is obtained.
  • Step 203d Fill the basic tree with the degree of association between the first element and the second element to obtain a third state tree.
  • the addition of all the values on the third state tree can be completed.
  • the two are compared, and the comparison method may include, but is not limited to, dividing or subtracting, so as to obtain data for filling corresponding position elements of the basic tree.
  • A represents the first element
  • B represents the second element
  • the element used to fill the corresponding position of the basic tree C e A ⁇ e B and so on.
  • the value filled in the corresponding positions of the first state tree and the second state tree on the basic tree is the degree of association between the first element and the second element.
  • the position of the first element in the first state tree is the same as the position of the second element in the second state tree
  • the position of the association degree in the third state tree is the same as that of the first element in the first state tree. It is in the same position in the state tree.
  • Step 204 Based on the third state tree and the preset credit rating score of the reference node, configure a credit rating score for each other node, respectively.
  • the other nodes refer to nodes other than the reference node in the current blockchain, and the reference node has a pre-configured credit rating score according to the relevant information stored in the first state tree.
  • Each other node also has a credit rating score, the difference is that the configuration credit rating score of each other node is obtained based on the third state tree and the preset credit rating score of the benchmark node.
  • the third state tree reflects the comparison result of the second element (second related information) of the second state tree (other nodes) and the first element (first related information) of the first state tree (reference node).
  • the configuration credit rating score of other nodes can be: on the basis of the score of the benchmark node, the credit rating score is calculated for other nodes according to the set rules, specific example 1: the number of transactions of other nodes (a certain element, that is, the second element) is based on the score of the benchmark node when the number of transactions of the benchmark node (an element of the second state tree, that is, the first element) is 50 times more than the comparison result of the first element and the second element) Add 5 points as the credit rating score of the target node; specific example 2: When the storage capacity is 1G less than that of the base node, reduce 1 point based on the score of the benchmark node and use it as the credit rating score of the target node.
  • the credit rating score of the reference node can be used as a benchmark, and the third state tree corresponding to each other node can be used as a comparison standard, and further credit rating scores can be configured for other nodes based on the credit rating score of the benchmark node. Therefore, the present embodiment can determine the credit rating scores of other nodes on the basis of the reference node.
  • Step 205 Based on the credit rating scores of each node of the current blockchain, configure permissions for each node respectively.
  • the authority is dynamically configured for each node according to the state of the pre-divided time period.
  • the specified time period may include when the blockchain network is not busy, such as but not limited to the time period when the node transaction rate is the least, the time period when the entire blockchain is transporting the least blocks, etc.
  • the authority of the node may include, but is not limited to, the read authority of the ledger, the write authority of the ledger, the block transmission authority, the block storage authority, the transaction endorsement authority, the transaction submission authority, etc.; wherein, the ledger, for example, can be It is Hyperledger (Fabric).
  • the above steps 201 to 205 may be dynamically executed processes.
  • Step 201 may be returned to restart a new round of dynamic permission configuration after a preset time period after the current process ends.
  • the number of permission configurations and the level of permission configuration can be determined according to the credit rating score. For example, for a node whose credit rating score exceeds the first set value, almost or even all permissions can be assigned to it. It can include high-level permissions, and for nodes with low credit rating scores, the number of permissions that may be obtained is not large, and the level of permissions generally obtained will be relatively low; and the permissions provided by this embodiment are fully automated, objective, and decentralized.
  • the method further includes: step 206 : Calculate the time for the next permission configuration based on the credit rating scores of all nodes in the current blockchain .
  • the time (length of time) for the next permission configuration is calculated. For example, when the uniformity value is small, the next dynamic configuration is performed after the first duration, and when the uniformity value is large, the next dynamic configuration of permissions is performed after the second duration, where the first duration ⁇ the second duration, the first duration For example, it may be 3 days, and the second duration may be, for example, 7 days or 10 days.
  • the evenness calculation method is preferably standard deviation result calculation, that is, the size of the evenness is described by the size of the standard deviation.
  • S represents the standard deviation
  • X1...Xn represents the credit rating score of each node
  • n represents the current blockchain network. The total number.
  • a device for dynamically configuring node permissions in a blockchain network may include:
  • the first state tree construction unit 411 is used to randomly select a node from all the nodes of the current blockchain as the reference node, and construct the first state tree of the reference node;
  • the second state tree construction unit 412 is used to respectively construct the second state tree of each other node except the reference node in the current blockchain;
  • the third state tree construction unit 413 is configured to construct a third state tree based on each second state tree and the first state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree;
  • a credit rating unit 414 configured to configure a credit rating score for each other node based on the third state tree and the preset credit rating score of the reference node;
  • the authority configuration unit 415 is configured to respectively configure authority for each node based on the credit rating score of each node in the current blockchain.
  • a computer device in one embodiment, includes a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, the following steps are implemented: One of the nodes in the chain is randomly selected as the reference node, and the first state tree of the reference node is constructed; the second state tree of each other node except the reference node in the current blockchain is respectively constructed; based on each second state tree and The first state tree is used to construct a third state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree; Other nodes are configured with credit rating scores; based on the credit rating scores of each node in the current blockchain, permissions are configured for each node respectively.
  • the construction of the first state tree of the reference node by the processor includes: acquiring first related information of the reference node, and an importance level value of the first related information; based on the importance level value of the first related information , and store the first related information in the first state tree.
  • constructing the second state tree of each other node except the reference node in the current blockchain includes: acquiring the resource idle value of other nodes; based on the resource idle value of other nodes, according to The preset rules generate the access sequence table of all other nodes; access other nodes one by one based on the access sequence table to obtain the second related information of each other node; based on the second related information of each other node, construct the first related information of each other node. Two-state tree.
  • the processing performed by the processor to construct the third state tree based on each of the second state tree and the first state tree includes: constructing a base tree without data, wherein the base tree, the first state tree and the second state tree
  • the structure of the state tree is the same; the first state tree and the second state tree are traversed respectively, and the first element on the first state tree and the second element on the second state tree are respectively amplified at the same level.
  • the position on the first state tree is the same as the position of the second element on the second state tree; compare the enlarged first element and the enlarged second element, and obtain the difference between the first element and the second element
  • the degree of association between the first element and the second element is filled into the basic tree to obtain the third state tree.
  • what the processor executes to dynamically configure permissions for each node, respectively includes: dynamically configuring permissions for each node according to the state of a pre-divided time period.
  • the processor when the processor executes the computer-readable instructions, the processor further performs the following steps: calculating the time for the next permission configuration based on the credit rating scores of all nodes in the current blockchain.
  • a storage medium that stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps: One of the nodes in the chain is randomly selected as the reference node, and the first state tree of the reference node is constructed; the second state tree of each other node except the reference node in the current blockchain is respectively constructed; based on each second state tree and The first state tree is used to construct a third state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree; Other nodes are configured with credit rating scores; based on the credit rating scores of each node in the current blockchain, permissions are configured for each node respectively.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

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

Abstract

The present application relates to a dynamic configuration method and apparatus for node permissions in a blockchain network, a computer device and a storage medium. The method comprises: randomly selecting a node from among all nodes of a current blockchain as a reference node, and constructing a first state tree of the reference node; constructing a second state tree for each of the other nodes except for the reference node in the current blockchain; constructing a third state tree on the basis of each second state tree and the first state tree, wherein the third state tree is used to describe the correlation degree between the second state trees and the first state tree; setting credit rating scores for the other nodes on the basis of the third state tree and a preset credit rating score of the reference node; and setting permissions for each node on the basis of the credit rating scores of each node of the current blockchain. The method above can effectively solve the subjective and centralized problems in existing blockchain technical solutions of difficulties in reasonably allocating permissions for each node and manual management means.

Description

区块链网络中节点权限的动态配置方法、装置Dynamic configuration method and device for node authority in blockchain network
本申请要求于2020年12月15日提交中国专利局、申请号为202011473967.3,申请名称为“区块链网络中节点权限的动态配置方法、装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 15, 2020 with the application number 202011473967.3 and the application title is "Method and Device for Dynamically Configuring Node Rights in Blockchain Networks", the entire contents of which are approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及区块链技术领域,特别是涉及区块链网络中节点权限的动态配置方法、装置、计算机设备和存储介质。The present application relates to the field of blockchain technology, and in particular, to a method, device, computer equipment and storage medium for dynamically configuring node authority in a blockchain network.
背景技术Background technique
目前,区块链上的各节点功能权限往往是一样的,这对于为区块链网络做出更多贡献的节点来说是不够公平的。而且区块链网络中的各个节点往往需要人工参与主要管理,包括节点的删除、节点的添加等决策性事务的管理。但对于节点用户来说,在设置管理员的情况下往往难以让人信任其公平性、合理性及安全性。而且事实上来讲,其主观化和中心化往往难以做到真正的公平,而且不同经验、阅历、性别等不同人工管理员对同一情况给出的结果也很可能是不同的。At present, the functional rights of each node on the blockchain are often the same, which is not fair enough for nodes that make more contributions to the blockchain network. Moreover, each node in the blockchain network often requires manual participation in the main management, including the management of decision-making transactions such as node deletion and node addition. However, for node users, it is often difficult for people to trust their fairness, rationality and security when setting up administrators. And in fact, its subjectivization and centralization are often difficult to achieve true fairness, and different human administrators with different experience, experience, gender, etc. may give different results for the same situation.
因此,亟需一种可实现节点权限分配以及能够克服当前区块链管理中存在的中心化和主观化问题的方案。Therefore, there is an urgent need for a solution that can realize node authority distribution and overcome the problems of centralization and subjectivity in current blockchain management.
技术问题technical problem
基于此,有必要针对在进行区块链网络中节点权限的动态配置时,技术人员需要人工编写大量的代码,工作量大,从而降低了测试的效率的问题,提供一种区块链网络中节点权限的动态配置方法、装置、计算机设备和存储介质。Based on this, it is necessary to solve the problem that technicians need to manually write a large amount of code when performing dynamic configuration of node permissions in the blockchain network, and the workload is large, thereby reducing the efficiency of testing, and to provide a blockchain network. A method, apparatus, computer device and storage medium for dynamic configuration of node authority.
技术解决方案technical solutions
第一方面提供了一种区块链网络中节点权限的动态配置方法,包括:A first aspect provides a method for dynamically configuring node permissions in a blockchain network, including:
从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;Randomly select a node from all nodes in the current blockchain as a reference node, and construct a first state tree of the reference node;
分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;respectively constructing the second state tree of each other node except the reference node in the current blockchain;
基于各所述第二状态树和所述第一状态树,构建第三状态树,其中所述第三状态树用于描述所述第二状态树和第一状态树的关联度;constructing a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree;
基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;Based on the third state tree and the preset credit rating score of the reference node, configure a credit rating score for each of the other nodes, respectively;
基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。Based on the credit rating scores of each of the nodes in the current blockchain, permissions are configured for each of the nodes respectively.
在其中一个实施例中,所述构建所述基准节点的第一状态树,包括:In one of the embodiments, the constructing the first state tree of the reference node includes:
获取所述基准节点的第一相关信息,以及所述第一相关信息的重要程度值;acquiring first related information of the reference node, and an importance value of the first related information;
基于所述第一相关信息的重要程度值,将所述第一相关信息存储于所述第一状态树。Based on the importance level value of the first related information, the first related information is stored in the first state tree.
在其中一个实施例中,所述分别构建当前区块链中所述基准节点外的各其他节点的第二状态树,包括:In one of the embodiments, the step of constructing the second state tree of each other node other than the reference node in the current blockchain includes:
获取所述其他节点的资源空闲值;Obtain the resource idle value of the other node;
基于所述其他节点的资源空闲值,按照预设规则生成所有的所述其他节点的访问顺序表;Based on the resource idle values of the other nodes, generating an access sequence table of all the other nodes according to a preset rule;
基于所述访问顺序表对所述其他节点进行逐个访问,得到各所述其他节点的第二相关信息;Access the other nodes one by one based on the access sequence table to obtain second related information of each of the other nodes;
基于各所述其他节点的所述第二相关信息,构建各所述其他节点的所述第二状态树。The second state tree of each of the other nodes is constructed based on the second related information of each of the other nodes.
在其中一个实施例中,所述基于各所述第二状态树和所述第一状态树,构建第三状态树,包括:In one of the embodiments, the constructing a third state tree based on each of the second state tree and the first state tree includes:
生成无数据的基本树,其中,所述基本树、所述第一状态树和所述第二状态树的结构相同;generating a base tree without data, wherein the base tree, the first state tree and the second state tree have the same structure;
分别遍历所述第一状态树和所述第二状态树,对所述第一状态树上的第一元素和所述第二状态树上的第二元素分别进行同级放大处理,其中,所述第一元素在第一状态树上的所处的位置和所述第二元素在第二状态树上所处的位置相同;Traverse the first state tree and the second state tree respectively, and perform the same-level magnification processing on the first element on the first state tree and the second element on the second state tree, wherein the The position of the first element on the first state tree is the same as the position of the second element on the second state tree;
比较放大后所述第一元素和放大后的所述第二元素,得到所述第一元素和所述第二元素之间的关联度;Comparing the enlarged first element and the enlarged second element to obtain the degree of association between the first element and the second element;
将所述第一元素和所述第二元素之间的关联度填充至所述基本树,得到所述第三状态树。Filling the basic tree with the degree of association between the first element and the second element to obtain the third state tree.
在其中一个实施例中,所述分别为各节点配置权限,包括:In one of the embodiments, configuring permissions for each node respectively includes:
根据预先划分的时间段的状态为各节点动态地配置权限。The permissions are dynamically configured for each node according to the state of the pre-divided time period.
在其中一个实施例中,在所述基于当前区块链网络的各节点的信用评级分数,分别为各节点配置权限之后,还包括:In one embodiment, after configuring permissions for each node based on the credit rating score of each node in the current blockchain network, the method further includes:
基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间。Based on the credit rating scores of all nodes in the current blockchain, the time for the next permission configuration is calculated.
在其中一个实施例中,所述基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间,包括:In one embodiment, the time for calculating the next permission configuration based on the credit rating scores of all nodes in the current blockchain includes:
基于当前区块链所有的节点的信用评级分数的均匀度,计算下一次动态配置时间的长短,其中,通过所述信用评级分数的标准差的大小描述均匀度的大小。Based on the evenness of the credit rating scores of all nodes in the current blockchain, the length of the next dynamic configuration time is calculated, wherein the size of the evenness is described by the size of the standard deviation of the credit rating scores.
第二方面提供了一种区块链网络中节点权限的动态配置装置,包括:A second aspect provides a device for dynamically configuring node permissions in a blockchain network, including:
第一状态树构建单元,用于从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;a first state tree construction unit, configured to randomly select a node from all the nodes of the current blockchain as a reference node, and construct a first state tree of the reference node;
第二状态树构建单元,用于分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;The second state tree construction unit is used to respectively construct the second state tree of each other node other than the reference node in the current blockchain;
第三状态树构建单元,用于基于各所述第二状态树和所述第一状态树,构建第三状态树,其中所述第三状态树用于描述所述第二状态树和第一状态树的关联度;A third state tree construction unit, configured to construct a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the second state tree and the first state tree The relevance of the state tree;
信用评级单元,用于基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;a credit rating unit, configured to respectively configure a credit rating score for each of the other nodes based on the third state tree and the preset credit rating score of the reference node;
权限配置单元,用于基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。The authority configuration unit is used to configure authority for each of the nodes respectively based on the credit rating score of each of the nodes in the current blockchain.
第三方面提供了一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行上述所述区块链网络中节点权限的动态配置方法的步骤。A third aspect provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor causes the processor to execute the above-mentioned Steps of a dynamic configuration method for node permissions in a blockchain network.
第四方面提供了一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述所述区块链网络中节点权限的动态配置方法的步骤。A fourth aspect provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors cause the one or more processors to execute the above-mentioned nodes in the blockchain network. The steps of the dynamic configuration method of permissions.
有益效果beneficial effect
上述区块链网络中节点权限的动态配置方法、装置、计算机设备和存储介质,首先,从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;然后,分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;以及,分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;再然后,基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;最后,基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。从而实现了自动、非人工地为各节点动态设置合理的权限,进而解决了当前区块链管理中存在的中心化和主观化的问题。The method, device, computer equipment and storage medium for dynamic configuration of node authority in the above-mentioned blockchain network, first, randomly select a node from all nodes in the current blockchain as a reference node, and construct the first state of the reference node Then, respectively constructing the second state tree of each other node except the reference node in the current blockchain; and respectively constructing the second state tree of each other node except the reference node in the current blockchain; Then, based on the third state tree and the preset credit rating score of the reference node, respectively configure a credit rating score for each of the other nodes; finally, based on the credit rating score of each of the nodes in the current blockchain, Configure permissions for each of the nodes separately. This realizes the automatic and non-manual dynamic setting of reasonable permissions for each node, thereby solving the problems of centralization and subjectivity in the current blockchain management.
附图说明Description of drawings
图1为一个实施例中计算机设备的内部结构框图;1 is a block diagram of the internal structure of a computer device in one embodiment;
图2为一个实施例中区块链网络中节点权限的动态配置方法的流程图;2 is a flowchart of a method for dynamically configuring node permissions in a blockchain network in one embodiment;
图3为一个实施例中区块链网络中节点权限的动态配置方法的另一流程图;3 is another flowchart of a method for dynamically configuring node permissions in a blockchain network in one embodiment;
图4为一个实施例中区块链网络中节点权限的动态配置装置的结构框图。FIG. 4 is a structural block diagram of an apparatus for dynamically configuring node authority in a blockchain network in one embodiment.
本发明的实施方式Embodiments of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一区块链网络中节点权限的动态配置脚本称为第二区块链网络中节点权限的动态配置脚本,且类似地,可将第二区块链网络中节点权限的动态配置脚本称为第二区块链网络中节点权限的动态配置脚本。It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a dynamic configuration script for node permissions in a first blockchain network may be referred to as a dynamic configuration script for node permissions in a second blockchain network, and similarly, The dynamic configuration script of the node authority in the second blockchain network may be referred to as the dynamic configuration script of the node authority in the second blockchain network.
在一个实施例中提供的区块链网络中节点权限的动态配置方法的实施环境中,包括计算机设备以及区块链的节点(如服务器)。计算机设备为配置设备,例如为电脑等计算机设备,计算机设备上安装有节点权限的动态配置工具。当需要配置时,可以向计算机设备发出区块链网络中节点权限的动态配置请求,计算机设备接收该区块链网络中节点权限的动态配置请求,对区块链的节点进行动态配置,并获取区块链网络中节点权限的动态配置结果。In an implementation environment of a method for dynamically configuring node permissions in a blockchain network provided in one embodiment, a computer device and a node (eg, server) of the blockchain are included. The computer device is a configuration device, for example, a computer device such as a computer, and a dynamic configuration tool with node permissions is installed on the computer device. When configuration is required, a dynamic configuration request for node permissions in the blockchain network can be sent to the computer device, and the computer device receives the dynamic configuration request for node permissions in the blockchain network, dynamically configures the nodes of the blockchain, and obtains Dynamic configuration results of node permissions in a blockchain network.
需要说明的是,计算机设备可为智能手机、平板电脑、笔记本电脑、台式计算机等,但并不局限于此。计算机设备以及终端可以通过蓝牙、USB(Universal Serial Bus,通用串行总线)或者其他通讯连接方式进行连接,本申请在此不做限制。It should be noted that the computer device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto. The computer equipment and the terminal may be connected through Bluetooth, USB (Universal Serial Bus, Universal Serial Bus) or other communication connection methods, which are not limited in this application.
图1为一个实施例中计算机设备的内部结构示意图。该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、存储器和网络接口。其中,该计算机设备的非易失性存储介质存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器执行时,可使得处理器实现一种区块链网络中节点权限的动态配置方法。该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。该计算机设备的存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种区块链网络中节点权限的动态配置方法。该计算机设备的网络接口用于与终端连接通信。本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。FIG. 1 is a schematic diagram of the internal structure of a computer device in one embodiment. The computer device includes a processor, non-volatile storage medium, memory, and a network interface connected by a system bus. Wherein, the non-volatile storage medium of the computer device stores an operating system, a database and computer-readable instructions, and the database may store a sequence of control information. When the computer-readable instructions are executed by the processor, the processor can realize a A dynamic configuration method for node permissions in a blockchain network. The processor of the computer device is used to provide computing and control capabilities and support the operation of the entire computer device. Computer-readable instructions may be stored in the memory of the computer device, and when the computer-readable instructions are executed by the processor, the processor may execute a method for dynamically configuring node authority in a blockchain network. The network interface of the computer equipment is used for communication with the terminal connection. Those skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
如图2所示,在一个实施例中,提出了一种区块链网络中节点权限的动态配置方法,该方法具体可以包括以下步骤:As shown in Figure 2, in one embodiment, a method for dynamically configuring node permissions in a blockchain network is proposed, which may specifically include the following steps:
步骤201、从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建基准节点的第一状态树。Step 201: Randomly select a node from all nodes in the current blockchain as a reference node, and construct a first state tree of the reference node.
其中,当前区块链的所有的节点可以是Q1、Q2、……Qn,n表示节点数量,随机选择的节点例如可以是Qi,i=1,2,3,……n。Among them, all the nodes of the current blockchain can be Q1, Q2, ... Qn, n represents the number of nodes, and the randomly selected node can be Qi, i=1, 2, 3, ... n, for example.
该步骤中,构建第一状态树,就是基于状态树的方式将基准节点的相关信息(即第一相关信息)进行存储,例如,第一状态树用于按照基准节点的第一相关信息的重要程度值由上至下依次地存储基准节点的第一相关信息。In this step, the construction of the first state tree is to store the relevant information (ie, the first relevant information) of the reference node based on the state tree. The degree value stores the first related information of the reference node sequentially from top to bottom.
在一些实施方式中,上述步骤201中构建基准节点的第一状态树,可以包括:In some embodiments, the construction of the first state tree of the reference node in the above step 201 may include:
步骤201a、获取基准节点的第一相关信息,以及第一相关信息的重要程度值。Step 201a: Obtain the first related information of the reference node and the importance level value of the first related information.
其中,基准节点地相关信息可以包括但不限于交易提交次数、执行交易查询的次数、交易背书次数、有多少次交易背书与最终结果相同、算力的大小、为区块链网络分担的存储空间大小、输出了多少区块帮助其他区块同步、加入当前区块链网络的时间、历史信用评价分数记录、与该节点相通信的节点的数量、该节点的活跃度、该节点的负荷率等等。Among them, the relevant information of the benchmark node may include but not limited to the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, how many transaction endorsements are the same as the final result, the size of the computing power, and the storage space shared by the blockchain network. Size, how many blocks are output to help other blocks synchronize, time to join the current blockchain network, historical credit score records, the number of nodes that communicate with the node, the activity of the node, the load rate of the node, etc. Wait.
第一相关信息的重要值可以根据经验或者执行的业务(如股票交易业务)设定,例如,基准节点的相关信息包括交易提交次数、执行交易查询次数、交易背书次数、加入当前区块链网络的时间,第一相关信息的重要值的排序可以是,基准节点的相关信息包括交易提交次数>交易背书次数>加入当前区块链网络的时间>执行交易查询次数。The important value of the first relevant information can be set based on experience or the business performed (such as stock trading business). For example, the relevant information of the benchmark node includes the number of transaction submissions, the number of executed transaction queries, the number of transaction endorsements, the number of times of joining the current blockchain network The order of the important values of the first related information may be that the related information of the reference node includes the number of transaction submissions>the number of transaction endorsements>the time of joining the current blockchain network>the number of executed transaction queries.
步骤201b、基于第一相关信息的重要程度值,将第一相关信息存储于第一状态树。Step 201b, based on the importance value of the first related information, store the first related information in the first state tree.
其中,上、下是指状态树中的节点位置,即上为父节点,下为子节点,也就是说,按照重要程度由高到低的顺序将基准节点相关信息由上到下地存储于第一状态树中。具体地,第一状态树中的高重要性高(重要值高)的相关信息往往可以是相对低重要性低(重要值低)的相关信息的父结点,重要性最低的信息基本都分布在叶子结点上。Among them, top and bottom refer to the node positions in the state tree, that is, the top is the parent node, and the bottom is the child node. in a state tree. Specifically, related information with high importance and high importance (high importance value) in the first state tree can often be the parent node of related information with relatively low importance and low importance (low importance value), and the information with the lowest importance is basically distributed. on leaf nodes.
进一步地,在一些实施例中,当前区块链可以包括但不限于联盟链或公链或私链等。Further, in some embodiments, the current blockchain may include, but is not limited to, a consortium chain, a public chain, or a private chain, and the like.
步骤202、分别构建当前区块链中基准节点外的各其他节点的第二状态树。Step 202: Construct the second state tree of each other node except the reference node in the current blockchain, respectively.
其中,当前区块链中基准节点外的其他节点中的每个一节点对应一个第二状态树,也就是说,当前区块链中所有的节点分别对应一个状态树,即所有的状态树数量(所有的第二状态树和一个第一状态树)总和即为当前区块链的节点数量总和。Among them, each node in other nodes other than the reference node in the current blockchain corresponds to a second state tree, that is, all nodes in the current blockchain correspond to a state tree, that is, the number of all state trees The sum of (all second state trees and one first state tree) is the sum of the number of nodes in the current blockchain.
在该步骤中,构建第二状态树,就是基于状态树的方式将其他节点的相关信息(即第二相关信息)进行存储。各其他节点的第二状态树是参照第一根节点的结构构建的,即每个第二状态树的结构都和第二状态树的结构完全相同。例如,第二状态树同样用于按照其他节点的第二相关信息的重要程度值由上至下依次地存储基准节点的第二相关信息。In this step, the construction of the second state tree is to store the related information (ie, the second related information) of other nodes based on the state tree. The second state tree of each other node is constructed with reference to the structure of the first root node, that is, the structure of each second state tree is exactly the same as that of the second state tree. For example, the second state tree is also used to store the second related information of the reference node in order from top to bottom according to the importance value of the second related information of other nodes.
当然,其他节点(即当前区块链除基准节点以外的节点)的相关信息(即第二相关信息)也是包括但不限于交易提交次数、执行交易查询的次数、交易背书次数、有多少次交易背书与最终结果相同、算力的大小、为区块链网络分担的存储空间大小、输出了多少区块帮助其他区块同步、加入当前区块链网络的时间、历史信用评价分数记录、与该节点相通信的节点的数量、该节点的活跃度、该节点的负荷率等等。Of course, the relevant information (i.e. the second relevant information) of other nodes (i.e. nodes other than the reference node in the current blockchain) also includes but is not limited to the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, and the number of transactions. The endorsement is the same as the final result, the size of the computing power, the size of the storage space shared by the blockchain network, how many blocks are output to help other blocks synchronize, the time of joining the current blockchain network, the historical credit evaluation score record, and the The number of nodes that the node communicates with, the activity of the node, the load rate of the node, and so on.
当然,任意第二状态树的构建过程和第一状态树的构建过程相同,即首先,对任意其他节点相关信息的重要程度进行排序;然后,按照重要程度由高到低的顺序将该节点相关信息由上到下地存储于第二状态树中,即可生成有序树结构的第二状态树。Of course, the construction process of any second state tree is the same as the construction process of the first state tree, that is, first, the importance of any other node-related information is sorted; then, the nodes are related in descending order of importance. The information is stored in the second state tree from top to bottom, so that the second state tree of the ordered tree structure can be generated.
在一些实施方式中,上述步骤202中,分别构建当前区块链中基准节点外的各其他节点的第二状态树,可以包括:In some embodiments, in the above step 202, the second state tree of each other node other than the reference node in the current blockchain is respectively constructed, which may include:
步骤202a、获取其他节点的资源空闲值。Step 202a: Obtain resource idle values of other nodes.
其中,其他节点是指当前区块链中基准节点外的所有的节点。节点的资源是区块链的网络资源,可以包括计算资源和存储资源,资源空闲值是指未使用的计算资源和存储资源。Among them, other nodes refer to all nodes other than the reference node in the current blockchain. The resources of the nodes are the network resources of the blockchain, which can include computing resources and storage resources. The resource idle value refers to the unused computing resources and storage resources.
步骤202b、基于其他节点的资源空闲值,按照预设规则生成所有的其他节点的访问顺序表。Step 202b: Based on the resource idle values of other nodes, generate access sequence tables of all other nodes according to preset rules.
其中,预设规则是按照资源空闲值由大到小的顺序生成节点的访问顺序表,即该访问顺序表中资源空闲值大的节点排在前面、资源空闲值小的节点排在后面。The preset rule is to generate an access sequence table of nodes in descending order of resource idle value, that is, a node with a large resource idle value in the access sequence table is ranked first, and a node with a small resource idle value is ranked at the back.
可以理解的是,通过对各其他节点进行访问,得到该其他节点的相关信息(即第二相关信息),在对各其他节点进行访问前首先获取其他节点的资源空闲值。该步骤中,可以在访问所有的其他节点之前进行一次节点资源空闲值的获取步骤,然后,得到一个访问顺序表。当然也可以是以预定的时间间隔获取一次未被访问的其他节点的资源空闲值,然后,根据当前获得的其他节点的资源空闲值结果再生成一个访问顺序表也是可以的,在对对各其他节点进行访问,得到该其他节点的第二相关信息的过程中,会生成至少两个顺序访问顺序表。It can be understood that, by accessing each other node, the related information (ie the second related information) of the other node is obtained, and before accessing each other node, the resource idle value of the other node is obtained first. In this step, the step of obtaining the idle value of node resources may be performed once before accessing all other nodes, and then an access sequence table may be obtained. Of course, it is also possible to obtain the resource idle value of other nodes that have not been visited at a predetermined time interval, and then, it is also possible to generate an access sequence table according to the currently obtained resource idle value of other nodes. During the process of accessing the node and obtaining the second related information of the other node, at least two sequential access sequence tables will be generated.
步骤202c、基于访问顺序表对其他节点进行逐个访问,得到各其他节点的第二相关信息。Step 202c: Access other nodes one by one based on the access sequence table to obtain second related information of each other node.
可以理解的是,参照基准节点的相关信息(第一相关信息),得到其他节点的相关信息(第二相关信息),也就是说,其他节点的第二相关信息的种类和基准节点的第一相关信息的种类是相同的,例如,如果基准节点的相关信息(第一相关信息)是交易提交次数、执行交易查询的次数、交易背书次数、有多少次交易背书与最终结果相同、算力的大小,那么其他节点的相关信息(第二相关信息)也是交易提交次数、执行交易查询的次数、交易背书次数、有多少次交易背书与最终结果相同、算力的大小。It can be understood that, by referring to the relevant information (first relevant information) of the reference node, relevant information (second relevant information) of other nodes is obtained, that is, the type of the second relevant information of other nodes and the first relevant information of the reference node. The types of relevant information are the same. For example, if the relevant information of the benchmark node (the first relevant information) is the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, how many transaction endorsements are the same as the final result, and the computing power size, then the related information (second related information) of other nodes is also the number of transaction submissions, the number of transaction queries performed, the number of transaction endorsements, how many transaction endorsements are the same as the final result, and the size of the computing power.
步骤202d、基于各其他节点的第二相关信息,构建各其他节点的第二状态树。Step 202d, constructing a second state tree of each other node based on the second related information of each other node.
该实施例中,按照访问顺序表中节点的顺序依次、逐个地对相应的节点进行访问而得到节点相关信息,优先访问富余资源较多的节点,有助于为访问过程更快地提供相应的历史记录,为相对资源不充足的节点提供尽可能长的准备时间,从而提高了对所有的其他节点访问的速度。In this embodiment, the corresponding nodes are accessed one by one according to the order of the nodes in the access sequence table to obtain the node-related information, and the nodes with more redundant resources are preferentially accessed, which helps to provide the corresponding access process faster. Historical records provide the longest possible preparation time for nodes with relatively insufficient resources, thereby increasing the speed of access to all other nodes.
步骤203、基于各第二状态树和第一状态树,构建第三状态树,其中第三状态树用于描述第二状态树和第一状态树的关联度。Step 203: Build a third state tree based on each of the second state trees and the first state tree, where the third state tree is used to describe the degree of association between the second state tree and the first state tree.
可以理解的是,第三状态树用于描述第一状态树与第二状态树之间的关联度,实质上描述的是各其他节点与基准节点的关联度。关联度具体为第二状态树对应的第三状态树,或者说区块链基准节点外的其他各个节点分别一一对应一个第三状态树。第三状态树与第一状态树、第二状态树之间也具有相同的结构。It can be understood that the third state tree is used to describe the degree of association between the first state tree and the second state tree, and essentially describes the degree of association between each other node and the reference node. The degree of association is specifically the third state tree corresponding to the second state tree, or each other node other than the reference node of the blockchain corresponds to a third state tree one by one. The third state tree also has the same structure as the first state tree and the second state tree.
进一步地,处在相同位置的第一状态树上的第一元素和第二状态树上的第二元素,在这里第一状态树和第二状态树上的一个元素是指节点的一条相关信息,即基准节点的第一相关信息(相关信息)的条数可以是m条,则第一状态树具有m个元素。第一状态树与第二状态树之间的关联度计算过程可包括但不限于:分别对第一元素和第二元素进行同级放大处理,同级放大处理例如可以包括进行立方计算、指数幂计算等,然后对放大后的结果进行比较,例如可以是做差比较或做商比较,从而得到第一元素和第二元素之间的关联度,在所有元素全部进行上述计算后,即可完成对第三状态树上所有数值的补充。Further, the first element on the first state tree and the second element on the second state tree at the same position, where an element on the first state tree and the second state tree refers to a piece of related information of the node , that is, the number of pieces of first related information (related information) of the reference node may be m, and the first state tree has m elements. The calculation process of the degree of association between the first state tree and the second state tree may include, but is not limited to: performing the same-level amplification process on the first element and the second element respectively, and the same-level amplification process may include, for example, cubic calculation, exponential power Calculation, etc., and then compare the amplified results, for example, it can be a difference comparison or a quotient comparison, so as to obtain the degree of correlation between the first element and the second element. After all elements are all calculated above, it can be completed. Complements to all values on the third state tree.
在一些实施方式中,上述步骤203中,基于各第二状态树和第一状态树,构建第三状态树,可以包括:In some embodiments, in the above step 203, based on each second state tree and the first state tree, a third state tree is constructed, which may include:
步骤203a、构建无数据的基本树,其中,基本树、第一状态树和第二状态树的结构相同。Step 203a, constructing a basic tree without data, wherein the basic tree, the first state tree and the second state tree have the same structure.
可以理解的是,基本树、第一状态树和第二状态树的结构相同是指状态树的分支数量、父节点和子节点的关系相同。It can be understood that the same structure of the basic tree, the first state tree and the second state tree means that the number of branches of the state tree and the relationship between the parent node and the child node are the same.
步骤203b、分别遍历第一状态树和第二状态树,对第一状态树上的第一元素和第二状态树上的第二元素分别进行同级放大处理,其中,第一元素在第一状态树上的所处的位置和第二元素在第二状态树上所处的位置相同。Step 203b, traverse the first state tree and the second state tree respectively, and perform the same-level magnification processing on the first element on the first state tree and the second element on the second state tree, wherein the first element is in the first state tree. The position on the state tree is the same as the position of the second element on the second state tree.
其中,分别遍历第一状态树和第二状态树,对于处在相同位置的第一状态树上的第一元素和第二状态树上的第二元素,分别对其进行同级放大处理,本实施例中同级放大的方式可以包括但不限于进行立方计算、指数幂计算等,将二者进行比较处理,比较方式可包括但不限于进行除法或减法计算处理。Among them, the first state tree and the second state tree are traversed respectively, and the first element on the first state tree and the second element on the second state tree at the same position are respectively subjected to the same-level amplification process. In the embodiment, the same-level amplification method may include, but is not limited to, performing cubic calculation, exponential power calculation, etc., and compare the two, and the comparison method may include, but is not limited to, performing division or subtraction calculation processing.
步骤203c、对放大后第一元素和放大后的第二元素进行比较,得到第一元素和第二元素之间的关联度。Step 203c: Compare the enlarged first element with the enlarged second element to obtain the degree of association between the first element and the second element.
其中,对放大后的结果进行比较,比较方式可包括但不限于进行除法或减法计算处理,例如可以是做差比较或做商比较,从而得到第一元素和第二元素之间的关联度,进而得到用于填充基本树相应位置元素的数据。Among them, comparing the amplified results, the comparison method may include but not limited to performing division or subtraction calculation processing, for example, it may be a difference comparison or a quotient comparison, so as to obtain the degree of association between the first element and the second element, Then, data for filling the corresponding position elements of the basic tree is obtained.
步骤203d、将第一元素和第二元素之间的关联度填充至基本树,得到第三状态树。Step 203d: Fill the basic tree with the degree of association between the first element and the second element to obtain a third state tree.
可以理解的是,在所有元素全部进行上述计算后,即可完成对第三状态树上所有数值的补充。将二者进行比较处理,比较方式可包括但不限于进行除法或减法计算处理,进而得到用于填充基本树相应位置元素的数据。例如,A表示第一元素,B表示第二元素,本申请用于填充基本树相应位置的元素C=A 3÷B 3;再比如,用于填充基本树相应位置的元素C=e A-e B等等。当然了,基本树上与第一状态树,第二状态树对应位置处填充的数值是第一元素和第二元素的关联度。即,第一元素在第一状态树中所处的位置和第二元素在第二状态树中所处的位置相同,关联度在第三状态树中所处的位置和第一元素在第一状态树中所处的位置相同。 It can be understood that, after all the above-mentioned calculations are performed on all elements, the addition of all the values on the third state tree can be completed. The two are compared, and the comparison method may include, but is not limited to, dividing or subtracting, so as to obtain data for filling corresponding position elements of the basic tree. For example, A represents the first element, B represents the second element, the element used to fill the corresponding position of the basic tree in this application is C=A 3 ÷ B 3 ; for another example, the element used to fill the corresponding position of the basic tree C=e A − e B and so on. Of course, the value filled in the corresponding positions of the first state tree and the second state tree on the basic tree is the degree of association between the first element and the second element. That is, the position of the first element in the first state tree is the same as the position of the second element in the second state tree, and the position of the association degree in the third state tree is the same as that of the first element in the first state tree. It is in the same position in the state tree.
步骤204、基于第三状态树和基准节点的预设信用评级分数,分别为各其他节点配置信用评级分数。Step 204: Based on the third state tree and the preset credit rating score of the reference node, configure a credit rating score for each other node, respectively.
其中,其他节点是指当前区块链中基准节点外的节点,基准节点具有根据其在第一状态树上存储的相关信息预先配置有信用评级分数。每个其他节点也有一个信用评级分数,不同之处在于,各其他节点配置信用评级分数是基于第三状态树和基准节点的预设信用评级分数得到的。第三状态树反应的是第二状态树(其他节点)的第二元素(第二相关信息)与第一状态树(基准节点)的第一元素(第一相关信息)的比较结果。其他节点配置信用评级分数例如可以是:在基准节点所具有的分数基础上,按照设定的规则为其他节点计算信用评级分数,具体示例1:其他节点的交易次数(第二状态树的某一元素,即第二元素)比基准节点的交易次数(第二状态树的某一元素,即第一元素)多50次第一元素和第二元素的比较结果)时在基准节点的分数基础上增加5分,作为目标节点的信用评级分数;具体示例2:承担存储量比基础节点少1G时则在基准节点的分数基础上减少1分,作为目标节点的信用评级分数。The other nodes refer to nodes other than the reference node in the current blockchain, and the reference node has a pre-configured credit rating score according to the relevant information stored in the first state tree. Each other node also has a credit rating score, the difference is that the configuration credit rating score of each other node is obtained based on the third state tree and the preset credit rating score of the benchmark node. The third state tree reflects the comparison result of the second element (second related information) of the second state tree (other nodes) and the first element (first related information) of the first state tree (reference node). For example, the configuration credit rating score of other nodes can be: on the basis of the score of the benchmark node, the credit rating score is calculated for other nodes according to the set rules, specific example 1: the number of transactions of other nodes (a certain element, that is, the second element) is based on the score of the benchmark node when the number of transactions of the benchmark node (an element of the second state tree, that is, the first element) is 50 times more than the comparison result of the first element and the second element) Add 5 points as the credit rating score of the target node; specific example 2: When the storage capacity is 1G less than that of the base node, reduce 1 point based on the score of the benchmark node and use it as the credit rating score of the target node.
本实施例能够以基准节点的信用评级分数作为基准,以其他各节点对应的第三状态树作为比较标准,进而可在基准节点的信用评级分数基础上为其他节点配置信用评级分数。由此本实施例可以在基准节点的基础上判断出各其他节点的信用评级分数。In this embodiment, the credit rating score of the reference node can be used as a benchmark, and the third state tree corresponding to each other node can be used as a comparison standard, and further credit rating scores can be configured for other nodes based on the credit rating score of the benchmark node. Therefore, the present embodiment can determine the credit rating scores of other nodes on the basis of the reference node.
步骤205、基于当前区块链各节点的信用评级分数,分别为各节点配置权限。Step 205: Based on the credit rating scores of each node of the current blockchain, configure permissions for each node respectively.
该步骤中,根据预先划分的时间段的状态为各节点动态地配置权限。In this step, the authority is dynamically configured for each node according to the state of the pre-divided time period.
其中,指定的时间段可包括区块链网络不忙碌的时候,例如可包括但不限于节点交易发生率最少的时间段、整个区块链在运输的区块最少的时间段等。The specified time period may include when the blockchain network is not busy, such as but not limited to the time period when the node transaction rate is the least, the time period when the entire blockchain is transporting the least blocks, etc.
在一些实施例中,节点的权限可包括但不限于账本的读取权限、账本的写入权限、区块传输权限、区块存储权限、交易背书权限、交易提交权限等;其中,账本例如可以是超级账本(Fabric)。In some embodiments, the authority of the node may include, but is not limited to, the read authority of the ledger, the write authority of the ledger, the block transmission authority, the block storage authority, the transaction endorsement authority, the transaction submission authority, etc.; wherein, the ledger, for example, can be It is Hyperledger (Fabric).
在本实施例中,上述步骤201至205可以是动态执行的过程。可在当前流程结束的预设时长之后可返回步骤201重新开始新一轮的权限动态配置。其中的权限配置方案可根据信用评级分数高低确定权限配置的数量和权限配置的级别,例如,对于信用评级分数超过第一设定值的节点,可为其分配几乎甚至所有的权限,这当中完全可以包括高级别权限,而对于信用评级分数较低的节点,可能得到的权限数量不多,一般得到的权限级别也会比较低;而且本实施例提供的权限完全自动化、客观化、去中心化,不会存在人为主观化的问题、值得用户信赖、自动化配置方案随着区块链的持续工作而一直运行,会随着各节点工作状态的变化和奉献度等条件可提升或降低节点的权限。In this embodiment, the above steps 201 to 205 may be dynamically executed processes. Step 201 may be returned to restart a new round of dynamic permission configuration after a preset time period after the current process ends. In the permission configuration scheme, the number of permission configurations and the level of permission configuration can be determined according to the credit rating score. For example, for a node whose credit rating score exceeds the first set value, almost or even all permissions can be assigned to it. It can include high-level permissions, and for nodes with low credit rating scores, the number of permissions that may be obtained is not large, and the level of permissions generally obtained will be relatively low; and the permissions provided by this embodiment are fully automated, objective, and decentralized. , there will be no problem of human subjectivity, it is trustworthy for users, and the automatic configuration scheme runs continuously with the continuous work of the blockchain, and the authority of the node can be increased or decreased with the change of the working status of each node and the degree of dedication and other conditions .
在本申请实施例的一些变更实施方式中,如图3所示,在上述步骤205之后,还包括:步骤206、基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间。In some modified implementations of the embodiments of the present application, as shown in FIG. 3 , after the above step 205 , the method further includes: step 206 : Calculate the time for the next permission configuration based on the credit rating scores of all nodes in the current blockchain .
其中,基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间(时间的长短)。例如在均匀度值较小时则在第一时长后进行下一次动态配置,在均匀度值较大时则在第二时长后进行下一次权限动态配置,第一时长<第二时长,第一时长例如可以为3天,第二时长例如可以为7天或10天等。Among them, based on the credit rating scores of all nodes in the current blockchain, the time (length of time) for the next permission configuration is calculated. For example, when the uniformity value is small, the next dynamic configuration is performed after the first duration, and when the uniformity value is large, the next dynamic configuration of permissions is performed after the second duration, where the first duration < the second duration, the first duration For example, it may be 3 days, and the second duration may be, for example, 7 days or 10 days.
进一步地,在一些实施例中,均匀度计算方式优选为标准差结果计算,即通过标准差的大小描述均匀度的大小。Further, in some embodiments, the evenness calculation method is preferably standard deviation result calculation, that is, the size of the evenness is described by the size of the standard deviation.
S 2=[(X1-X) 2+(X2-X) 2……+(Xn-X) 2]/n S 2 =[(X1-X) 2 +(X2-X) 2 …+(Xn-X) 2 ]/n
其中,S表示标准差,X1……Xn表示各节点信用评级分数,X=(X1+ X2+……+ Xn)/n表示所有节点信用评级分数的均值,n表示当前区块链网络上所有节点的总数量。Among them, S represents the standard deviation, X1...Xn represents the credit rating score of each node, X=(X1+ X2+...+ Xn)/n represents the average value of the credit rating scores of all nodes, and n represents the current blockchain network. The total number.
如图4所示,在一个实施例中,提供了一种区块链网络中节点权限的动态配置装置,该区块链网络中节点权限的动态配置装置可以包括:As shown in FIG. 4 , in one embodiment, a device for dynamically configuring node permissions in a blockchain network is provided, and the device for dynamically configuring node permissions in the blockchain network may include:
第一状态树构建单元411,用于从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建基准节点的第一状态树;The first state tree construction unit 411 is used to randomly select a node from all the nodes of the current blockchain as the reference node, and construct the first state tree of the reference node;
第二状态树构建单元412,用于分别构建当前区块链中基准节点外的各其他节点的第二状态树;The second state tree construction unit 412 is used to respectively construct the second state tree of each other node except the reference node in the current blockchain;
第三状态树构建单元413,用于基于各第二状态树和第一状态树,构建第三状态树,其中第三状态树用于描述第二状态树和第一状态树的关联度;The third state tree construction unit 413 is configured to construct a third state tree based on each second state tree and the first state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree;
信用评级单元414,用于基于第三状态树和基准节点的预设信用评级分数,分别为各其他节点配置信用评级分数;A credit rating unit 414, configured to configure a credit rating score for each other node based on the third state tree and the preset credit rating score of the reference node;
权限配置单元415,用于基于当前区块链各节点的信用评级分数,分别为各节点配置权限。The authority configuration unit 415 is configured to respectively configure authority for each node based on the credit rating score of each node in the current blockchain.
在一个实施例中,提出了一种计算机设备,计算机设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建基准节点的第一状态树;分别构建当前区块链中基准节点外的各其他节点的第二状态树;基于各第二状态树和第一状态树,构建第三状态树,其中第三状态树用于描述第二状态树和第一状态树的关联度;基于第三状态树和基准节点的预设信用评级分数,分别为各其他节点配置信用评级分数;基于当前区块链各节点的信用评级分数,分别为各节点配置权限。In one embodiment, a computer device is proposed. The computer device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the following steps are implemented: One of the nodes in the chain is randomly selected as the reference node, and the first state tree of the reference node is constructed; the second state tree of each other node except the reference node in the current blockchain is respectively constructed; based on each second state tree and The first state tree is used to construct a third state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree; Other nodes are configured with credit rating scores; based on the credit rating scores of each node in the current blockchain, permissions are configured for each node respectively.
在一个实施例中,处理器所执行的构建基准节点的第一状态树,包括:获取基准节点的第一相关信息,以及第一相关信息的重要程度值;基于第一相关信息的重要程度值,将第一相关信息存储于第一状态树。In one embodiment, the construction of the first state tree of the reference node by the processor includes: acquiring first related information of the reference node, and an importance level value of the first related information; based on the importance level value of the first related information , and store the first related information in the first state tree.
在一个实施例中,处理器所执行的分别构建当前区块链中基准节点外的各其他节点的第二状态树,包括:获取其他节点的资源空闲值;基于其他节点的资源空闲值,按照预设规则生成所有的其他节点的访问顺序表;基于访问顺序表对其他节点进行逐个访问,得到各其他节点的第二相关信息;基于各其他节点的第二相关信息,构建各其他节点的第二状态树。In one embodiment, constructing the second state tree of each other node except the reference node in the current blockchain, executed by the processor, includes: acquiring the resource idle value of other nodes; based on the resource idle value of other nodes, according to The preset rules generate the access sequence table of all other nodes; access other nodes one by one based on the access sequence table to obtain the second related information of each other node; based on the second related information of each other node, construct the first related information of each other node. Two-state tree.
在一个实施例中,处理器所执行的基于各第二状态树和第一状态树,构建第三状态树,包括:构建无数据的基本树,其中,基本树、第一状态树和第二状态树的结构相同;分别遍历第一状态树和第二状态树,对第一状态树上的第一元素和第二状态树上的第二元素分别进行同级放大处理,其中,第一元素在第一状态树上的所处的位置和第二元素在第二状态树上所处的位置相同;比较放大后第一元素和放大后的第二元素,得到第一元素和第二元素之间的关联度;将第一元素和第二元素之间的关联度填充至基本树,得到第三状态树。In one embodiment, the processing performed by the processor to construct the third state tree based on each of the second state tree and the first state tree includes: constructing a base tree without data, wherein the base tree, the first state tree and the second state tree The structure of the state tree is the same; the first state tree and the second state tree are traversed respectively, and the first element on the first state tree and the second element on the second state tree are respectively amplified at the same level. The position on the first state tree is the same as the position of the second element on the second state tree; compare the enlarged first element and the enlarged second element, and obtain the difference between the first element and the second element The degree of association between the first element and the second element is filled into the basic tree to obtain the third state tree.
在一个实施例中,处理器所执行的分别为各节点动态地配置权限,包括:根据预先划分的时间段的状态为各节点动态地配置权限。In one embodiment, what the processor executes to dynamically configure permissions for each node, respectively, includes: dynamically configuring permissions for each node according to the state of a pre-divided time period.
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间。In one embodiment, when the processor executes the computer-readable instructions, the processor further performs the following steps: calculating the time for the next permission configuration based on the credit rating scores of all nodes in the current blockchain.
在一个实施例中,提出了一种存储有计算机可读指令的存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建基准节点的第一状态树;分别构建当前区块链中基准节点外的各其他节点的第二状态树;基于各第二状态树和第一状态树,构建第三状态树,其中第三状态树用于描述第二状态树和第一状态树的关联度;基于第三状态树和基准节点的预设信用评级分数,分别为各其他节点配置信用评级分数;基于当前区块链各节点的信用评级分数,分别为各节点配置权限。In one embodiment, a storage medium is provided that stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps: One of the nodes in the chain is randomly selected as the reference node, and the first state tree of the reference node is constructed; the second state tree of each other node except the reference node in the current blockchain is respectively constructed; based on each second state tree and The first state tree is used to construct a third state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree; Other nodes are configured with credit rating scores; based on the credit rating scores of each node in the current blockchain, permissions are configured for each node respectively.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium provided in this application and used in the embodiments may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, device, article or method comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, apparatus, article or method. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of this application.

Claims (20)

  1. 一种区块链网络中节点权限的动态配置方法,其中,包括:A method for dynamically configuring node permissions in a blockchain network, comprising:
    从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;Randomly select a node from all nodes in the current blockchain as a reference node, and construct a first state tree of the reference node;
    分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;respectively constructing the second state tree of each other node except the reference node in the current blockchain;
    基于各所述第二状态树和所述第一状态树,构建第三状态树,其中所述第三状态树用于描述所述第二状态树和第一状态树的关联度;constructing a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree;
    基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;Based on the third state tree and the preset credit rating score of the reference node, configure a credit rating score for each of the other nodes, respectively;
    基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。Based on the credit rating scores of each of the nodes in the current blockchain, permissions are configured for each of the nodes respectively.
  2. 如权利要求1所述的区块链网络中节点权限的动态配置方法,其中,所述构建所述基准节点的第一状态树,包括:The method for dynamically configuring node authority in a blockchain network according to claim 1, wherein the constructing the first state tree of the reference node comprises:
    获取所述基准节点的第一相关信息,以及所述第一相关信息的重要程度值;acquiring first related information of the reference node, and an importance value of the first related information;
    基于所述第一相关信息的重要程度值,将所述第一相关信息存储于所述第一状态树。Based on the importance level value of the first related information, the first related information is stored in the first state tree.
  3. 如权利要求1所述的区块链网络中节点权限的动态配置方法,其中,所述分别构建当前区块链中所述基准节点外的各其他节点的第二状态树,包括:The method for dynamically configuring node authority in a blockchain network as claimed in claim 1, wherein said constructing the second state tree of each other node other than the reference node in the current blockchain respectively comprises:
    获取所述其他节点的资源空闲值;Obtain the resource idle value of the other node;
    基于所述其他节点的资源空闲值,按照预设规则生成所有的所述其他节点的访问顺序表;Based on the resource idle values of the other nodes, generating an access sequence table of all the other nodes according to a preset rule;
    基于所述访问顺序表对所述其他节点进行逐个访问,得到各所述其他节点的第二相关信息;Access the other nodes one by one based on the access sequence table to obtain second related information of each of the other nodes;
    基于各所述其他节点的所述第二相关信息,构建各所述其他节点的所述第二状态树。The second state tree of each of the other nodes is constructed based on the second related information of each of the other nodes.
  4. 如权利要求1所述的区块链网络中节点权限的动态配置方法,其中,所述基于各所述第二状态树和所述第一状态树,构建第三状态树,包括:The method for dynamically configuring node authority in a blockchain network according to claim 1, wherein the constructing a third state tree based on each of the second state tree and the first state tree comprises:
    生成无数据的基本树,其中,所述基本树、所述第一状态树和所述第二状态树的结构相同;generating a base tree without data, wherein the base tree, the first state tree and the second state tree have the same structure;
    分别遍历所述第一状态树和所述第二状态树,对所述第一状态树上的第一元素和所述第二状态树上的第二元素分别进行同级放大处理,其中,所述第一元素在第一状态树上的所处的位置和所述第二元素在第二状态树上所处的位置相同;Traverse the first state tree and the second state tree respectively, and perform the same-level magnification processing on the first element on the first state tree and the second element on the second state tree, wherein the The position of the first element on the first state tree is the same as the position of the second element on the second state tree;
    比较放大后所述第一元素和放大后的所述第二元素,得到所述第一元素和所述第二元素之间的关联度;Comparing the enlarged first element and the enlarged second element to obtain the degree of association between the first element and the second element;
    将所述第一元素和所述第二元素之间的关联度填充至所述基本树,得到所述第三状态树。Filling the basic tree with the degree of association between the first element and the second element to obtain the third state tree.
  5. 如权利要求1所述的区块链网络中节点权限的动态配置方法,其中,所述分别为各节点配置权限,包括:The method for dynamically configuring node permissions in a blockchain network according to claim 1, wherein the configuring permissions for each node respectively includes:
    根据预先划分的时间段的状态为各节点动态地配置权限。The permissions are dynamically configured for each node according to the state of the pre-divided time period.
  6. 如权利要求1所述的区块链网络中节点权限的动态配置方法,其中,在所述基于当前区块链网络的各节点的信用评级分数,分别为各节点配置权限之后,还包括:The method for dynamically configuring node authority in a blockchain network according to claim 1, wherein, after configuring the authority for each node based on the credit rating score of each node in the current blockchain network, the method further comprises:
    基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间。Based on the credit rating scores of all nodes in the current blockchain, the time for the next permission configuration is calculated.
  7. 如权利要求2所述的区块链网络中节点权限的动态配置方法,其特征在于,所述基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间,包括:The method for dynamically configuring node authority in a blockchain network according to claim 2, wherein the calculation of the time for the next authority configuration based on the credit rating scores of all nodes in the current blockchain includes:
    基于当前区块链所有的节点的信用评级分数的均匀度,计算下一次动态配置时间的长短,其中,通过所述信用评级分数的标准差的大小描述均匀度的大小。Based on the uniformity of the credit rating scores of all nodes in the current blockchain, the length of the next dynamic configuration time is calculated, wherein the uniformity is described by the size of the standard deviation of the credit rating scores.
  8. 一种区块链网络中节点权限的动态配置装置,其中,包括:A device for dynamically configuring node authority in a blockchain network, comprising:
    第一状态树构建单元,用于从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;a first state tree construction unit, configured to randomly select a node from all the nodes of the current blockchain as a reference node, and construct a first state tree of the reference node;
    第二状态树构建单元,用于分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;The second state tree construction unit is used to respectively construct the second state tree of each other node other than the reference node in the current blockchain;
    第三状态树构建单元,用于基于各所述第二状态树和所述第一状态树,构建第三状态树,其中所述第三状态树用于描述所述第二状态树和第一状态树的关联度;A third state tree construction unit, configured to construct a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the second state tree and the first state tree The relevance of the state tree;
    信用评级单元,用于基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;a credit rating unit, configured to respectively configure a credit rating score for each of the other nodes based on the third state tree and the preset credit rating score of the reference node;
    权限配置单元,用于基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。The authority configuration unit is used to configure authority for each of the nodes respectively based on the credit rating score of each of the nodes in the current blockchain.
  9. 一种计算机设备,其中,所述电子设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时执行以下步骤:A computer device, wherein the electronic device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, when the processor executes the computer-readable instructions Perform the following steps:
    从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;Randomly select a node from all nodes in the current blockchain as a reference node, and construct a first state tree of the reference node;
    分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;respectively constructing the second state tree of each other node except the reference node in the current blockchain;
    基于各所述第二状态树和所述第一状态树,构建第三状态树,其中所述第三状态树用于描述所述第二状态树和第一状态树的关联度;constructing a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree;
    基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;Based on the third state tree and the preset credit rating score of the reference node, configure a credit rating score for each of the other nodes, respectively;
    基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。Based on the credit rating scores of each of the nodes in the current blockchain, permissions are configured for each of the nodes respectively.
  10. 根据权利要求9所述的计算机设备,其中,所述构建所述基准节点的第一状态树,包括:The computer device according to claim 9, wherein the constructing the first state tree of the reference node comprises:
    获取所述基准节点的第一相关信息,以及所述第一相关信息的重要程度值;acquiring first related information of the reference node, and an importance value of the first related information;
    基于所述第一相关信息的重要程度值,将所述第一相关信息存储于所述第一状态树。Based on the importance level value of the first related information, the first related information is stored in the first state tree.
  11. 据权利要求9所述的计算机设备,其中,所述分别构建当前区块链中所述基准节点外的各其他节点的第二状态树,包括:The computer device according to claim 9, wherein said constructing the second state tree of each other node other than the reference node in the current blockchain, comprising:
    获取所述其他节点的资源空闲值;Obtain the resource idle value of the other node;
    基于所述其他节点的资源空闲值,按照预设规则生成所有的所述其他节点的访问顺序表;Based on the resource idle values of the other nodes, generating an access sequence table of all the other nodes according to a preset rule;
    基于所述访问顺序表对所述其他节点进行逐个访问,得到各所述其他节点的第二相关信息;Access the other nodes one by one based on the access sequence table to obtain second related information of each of the other nodes;
    基于各所述其他节点的所述第二相关信息,构建各所述其他节点的所述第二状态树。The second state tree of each of the other nodes is constructed based on the second related information of each of the other nodes.
  12. 权利要求9所述的计算机设备,其中,所述基于各所述第二状态树和所述第一状态树,构建第三状态树,包括:The computer device of claim 9, wherein the building a third state tree based on each of the second state tree and the first state tree comprises:
    生成无数据的基本树,其中,所述基本树、所述第一状态树和所述第二状态树的结构相同;generating a base tree without data, wherein the base tree, the first state tree and the second state tree have the same structure;
    分别遍历所述第一状态树和所述第二状态树,对所述第一状态树上的第一元素和所述第二状态树上的第二元素分别进行同级放大处理,其中,所述第一元素在第一状态树上的所处的位置和所述第二元素在第二状态树上所处的位置相同;Traverse the first state tree and the second state tree respectively, and perform the same-level magnification processing on the first element on the first state tree and the second element on the second state tree, wherein the The position of the first element on the first state tree is the same as the position of the second element on the second state tree;
    比较放大后所述第一元素和放大后的所述第二元素,得到所述第一元素和所述第二元素之间的关联度;Comparing the enlarged first element and the enlarged second element to obtain the degree of association between the first element and the second element;
    将所述第一元素和所述第二元素之间的关联度填充至所述基本树,得到所述第三状态树。Filling the basic tree with the degree of association between the first element and the second element to obtain the third state tree.
  13. 根据权利要求9所述的计算机设备,其中,所述分别为各节点配置权限,包括:The computer device according to claim 9, wherein the configuring permissions for each node respectively comprises:
    根据预先划分的时间段的状态为各节点动态地配置权限。The permissions are dynamically configured for each node according to the state of the pre-divided time period.
  14. 根据权利要求9所述的计算机设备,其中,在所述基于当前区块链网络的各节点的信用评级分数,分别为各节点配置权限之后,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 9, wherein after the authority is configured for each node based on the credit rating score of each node of the current blockchain network, the processor also executes the computer-readable instruction when executing the computer-readable instruction. Perform the following steps:
    基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间。Based on the credit rating scores of all nodes in the current blockchain, the time for the next permission configuration is calculated.
  15. 根据权利要求10所述的计算机设备,其中,所述基于当前区块链所有的节点的信用评级分数,计算下一次权限配置的时间,包括: The computer device according to claim 10, wherein the time for calculating the next permission configuration based on the credit rating scores of all nodes in the current blockchain includes:
    基于当前区块链所有的节点的信用评级分数的均匀度,计算下一次动态配置时间的长短,其中,通过所述信用评级分数的标准差的大小描述均匀度的大小。Based on the uniformity of the credit rating scores of all nodes in the current blockchain, the length of the next dynamic configuration time is calculated, wherein the uniformity is described by the size of the standard deviation of the credit rating scores.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现时执行以下步骤: A computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the following steps are performed when implemented:
    从当前区块链的所有的节点中随机选择一个节点作为基准节点,构建所述基准节点的第一状态树;Randomly select a node from all nodes in the current blockchain as a reference node, and construct a first state tree of the reference node;
    分别构建当前区块链中所述基准节点外的各其他节点的第二状态树;respectively constructing the second state tree of each other node except the reference node in the current blockchain;
    基于各所述第二状态树和所述第一状态树,构建第三状态树,其中所述第三状态树用于描述所述第二状态树和第一状态树的关联度;constructing a third state tree based on each of the second state tree and the first state tree, wherein the third state tree is used to describe the degree of association between the second state tree and the first state tree;
    基于所述第三状态树和所述基准节点的预设信用评级分数,分别为各所述其他节点配置信用评级分数;Based on the third state tree and the preset credit rating score of the reference node, configure a credit rating score for each of the other nodes, respectively;
    基于当前区块链各所述节点的信用评级分数,分别为各所述节点配置权限。Based on the credit rating scores of each of the nodes in the current blockchain, permissions are configured for each of the nodes respectively.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述构建所述基准节点的第一状态树,包括: The computer-readable storage medium of claim 16, wherein the constructing the first state tree of the reference node comprises:
    获取所述基准节点的第一相关信息,以及所述第一相关信息的重要程度值;acquiring first related information of the reference node, and an importance value of the first related information;
    基于所述第一相关信息的重要程度值,将所述第一相关信息存储于所述第一状态树。Based on the importance level value of the first related information, the first related information is stored in the first state tree.
  18. 根据权利要求16所述的计算机可读存储介质,其中,所述分别构建当前区块链中所述基准节点外的各其他节点的第二状态树,包括: The computer-readable storage medium according to claim 16, wherein said constructing the second state tree of each other node other than the reference node in the current blockchain, comprising:
    获取所述其他节点的资源空闲值;Obtain the resource idle value of the other node;
    基于所述其他节点的资源空闲值,按照预设规则生成所有的所述其他节点的访问顺序表;Based on the resource idle values of the other nodes, generating an access sequence table of all the other nodes according to a preset rule;
    基于所述访问顺序表对所述其他节点进行逐个访问,得到各所述其他节点的第二相关信息;Access the other nodes one by one based on the access sequence table to obtain second related information of each of the other nodes;
    基于各所述其他节点的所述第二相关信息,构建各所述其他节点的所述第二状态树。The second state tree of each of the other nodes is constructed based on the second related information of each of the other nodes.
  19. 根据权利要求16所述的计算机可读存储介质,其中,所述基于各所述第二状态树和所述第一状态树,构建第三状态树,包括: The computer-readable storage medium of claim 16, wherein the building a third state tree based on each of the second state tree and the first state tree comprises:
    生成无数据的基本树,其中,所述基本树、所述第一状态树和所述第二状态树的结构相同;generating a base tree without data, wherein the base tree, the first state tree and the second state tree have the same structure;
    分别遍历所述第一状态树和所述第二状态树,对所述第一状态树上的第一元素和所述第二状态树上的第二元素分别进行同级放大处理,其中,所述第一元素在第一状态树上的所处的位置和所述第二元素在第二状态树上所处的位置相同;Traverse the first state tree and the second state tree respectively, and perform the same-level magnification processing on the first element on the first state tree and the second element on the second state tree, wherein the The position of the first element on the first state tree is the same as the position of the second element on the second state tree;
    比较放大后所述第一元素和放大后的所述第二元素,得到所述第一元素和所述第二元素之间的关联度;Comparing the enlarged first element and the enlarged second element to obtain the degree of association between the first element and the second element;
    将所述第一元素和所述第二元素之间的关联度填充至所述基本树,得到所述第三状态树。Filling the basic tree with the degree of association between the first element and the second element to obtain the third state tree.
  20. 根据权利要求16所述的计算机可读存储介质,其中,所述分别为各节点配置权限,包括: The computer-readable storage medium according to claim 16, wherein the configuring permissions for each node respectively comprises:
    根据预先划分的时间段的状态为各节点动态地配置权限。The permissions are dynamically configured for each node according to the state of the pre-divided time period.
PCT/CN2021/109384 2020-12-15 2021-07-29 Dynamic configuration method and apparatus for node permissions in blockchain network WO2022127122A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011473967.3A CN112487484A (en) 2020-12-15 2020-12-15 Dynamic configuration method and device for node permission in block chain network
CN202011473967.3 2020-12-15

Publications (1)

Publication Number Publication Date
WO2022127122A1 true WO2022127122A1 (en) 2022-06-23

Family

ID=74917854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109384 WO2022127122A1 (en) 2020-12-15 2021-07-29 Dynamic configuration method and apparatus for node permissions in blockchain network

Country Status (2)

Country Link
CN (1) CN112487484A (en)
WO (1) WO2022127122A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344410A (en) * 2022-10-14 2022-11-15 北京奥星贝斯科技有限公司 Method and device for judging event execution sequence, storage medium and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487484A (en) * 2020-12-15 2021-03-12 深圳壹账通智能科技有限公司 Dynamic configuration method and device for node permission in block chain network
CN113706297A (en) * 2021-09-06 2021-11-26 中国银行股份有限公司 Method and device for selecting accounting node based on alliance chain
CN115021968B (en) * 2022-05-07 2023-04-25 北京航空航天大学 Trusted alliance link point management method taking credibility as core

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097074A (en) * 2016-06-20 2016-11-09 深圳市淘淘谷信息技术有限公司 A kind of block chain realizes the monitoring and managing method of business transaction record
CN107911373A (en) * 2017-11-24 2018-04-13 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of block chain right management method and system
CN109871712A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Medical records right management method, device, readable storage medium storing program for executing and server
CN111259350A (en) * 2020-01-10 2020-06-09 中国银联股份有限公司 Access control method, device and computer readable storage medium
CN111488611A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Relation data storage method and device of business data block chain
CN111488396A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Data synchronization method and device for service data block chain
CN111814176A (en) * 2020-05-29 2020-10-23 上海申铁信息工程有限公司 Block chain-based data access authority control method and device
CN111967984A (en) * 2020-10-22 2020-11-20 北京江融信科技有限公司 Method and system for dynamically managing credit limit based on relational tree
CN112487484A (en) * 2020-12-15 2021-03-12 深圳壹账通智能科技有限公司 Dynamic configuration method and device for node permission in block chain network

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922039B (en) * 2019-01-14 2021-05-07 湘潭大学 Semi-centralized identity management method based on block chain technology
CN110245186B (en) * 2019-05-21 2023-04-07 深圳壹账通智能科技有限公司 Service processing method based on block chain and related equipment
CN112019481A (en) * 2019-05-30 2020-12-01 上海交通大学 Block chain equipment management and data transmission system based on directed acyclic graph architecture
US11113272B2 (en) * 2019-07-31 2021-09-07 Advanced New Technologies Co., Ltd. Method and apparatus for storing blockchain state data and electronic device
CN110580418B (en) * 2019-11-08 2020-04-07 支付宝(杭州)信息技术有限公司 Private data query method and device based on block chain account
CN110912707B (en) * 2019-11-22 2021-09-10 腾讯科技(深圳)有限公司 Block chain-based digital certificate processing method, device, equipment and storage medium
CN111488356A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Data storage method and device for service data block chain

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097074A (en) * 2016-06-20 2016-11-09 深圳市淘淘谷信息技术有限公司 A kind of block chain realizes the monitoring and managing method of business transaction record
CN107911373A (en) * 2017-11-24 2018-04-13 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of block chain right management method and system
CN109871712A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Medical records right management method, device, readable storage medium storing program for executing and server
CN111259350A (en) * 2020-01-10 2020-06-09 中国银联股份有限公司 Access control method, device and computer readable storage medium
CN111488611A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Relation data storage method and device of business data block chain
CN111488396A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Data synchronization method and device for service data block chain
CN111814176A (en) * 2020-05-29 2020-10-23 上海申铁信息工程有限公司 Block chain-based data access authority control method and device
CN111967984A (en) * 2020-10-22 2020-11-20 北京江融信科技有限公司 Method and system for dynamically managing credit limit based on relational tree
CN112487484A (en) * 2020-12-15 2021-03-12 深圳壹账通智能科技有限公司 Dynamic configuration method and device for node permission in block chain network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344410A (en) * 2022-10-14 2022-11-15 北京奥星贝斯科技有限公司 Method and device for judging event execution sequence, storage medium and electronic equipment
CN115344410B (en) * 2022-10-14 2023-02-28 北京奥星贝斯科技有限公司 Method and device for judging event execution sequence, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112487484A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
WO2022127122A1 (en) Dynamic configuration method and apparatus for node permissions in blockchain network
CN109308602A (en) Operation flow data processing method, device, computer equipment and storage medium
US20190102841A1 (en) Mapping engine configurations with task managed workflows and grid user interfaces
Mennes et al. GRECO: A distributed genetic algorithm for reliable application placement in hybrid clouds
Browning et al. Managing a portfolio of product development projects under resource constraints
WO2018236521A1 (en) Dynamic directed graph workflows
EP3547634A1 (en) Method and apparatus for determining access permission, and terminal
CN109284289B (en) Data set processing method and device, computer equipment and storage medium
CN107766378A (en) Sending method and device, the distributed data base system of solicited message
IL264504A (en) Systems and methods for avoiding network congestion on web-based survey platforms
Kota et al. Decentralised structural adaptation in agent organisations
CN110231915B (en) Data management method, system, device, computer equipment and storage medium
Ge et al. Dominant strategy allocation of divisible network resources with limited information exchange
CN111008873A (en) User determination method and device, electronic equipment and storage medium
Teteryatnikova Cautious farsighted stability in network formation games with streams of payoffs
WO2022161081A1 (en) Training method, apparatus and system for integrated learning model, and related device
CN114003717A (en) Data processing method and device, electronic equipment and storage medium
CN114416438A (en) Data export method and device, computer equipment and scheduling service system
CN113419672A (en) Storage capacity management method, system and storage medium
Sathish et al. Fully fuzzy time-cost trade-off in a project network: A new approach
CN116015929B (en) Alliance chain access management method and device
CN117291384B (en) Project progress adjustment method, device, equipment and medium based on resource allocation
CN109542631A (en) A kind of recurrence method, apparatus, server and the storage medium of standby host
CN111159752B (en) Method and device for sharing information between mechanisms
CN115361283B (en) K8S-based cloud host management method and device and computer equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905055

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.09.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21905055

Country of ref document: EP

Kind code of ref document: A1