CN115604121A - Industrial Internet service processing method, device and equipment based on block chain - Google Patents

Industrial Internet service processing method, device and equipment based on block chain Download PDF

Info

Publication number
CN115604121A
CN115604121A CN202211495320.XA CN202211495320A CN115604121A CN 115604121 A CN115604121 A CN 115604121A CN 202211495320 A CN202211495320 A CN 202211495320A CN 115604121 A CN115604121 A CN 115604121A
Authority
CN
China
Prior art keywords
voting
round
users
determining
user group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211495320.XA
Other languages
Chinese (zh)
Other versions
CN115604121B (en
Inventor
谢家贵
李志平
刘红炎
马思杰
韩盈盈
倪鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202211495320.XA priority Critical patent/CN115604121B/en
Publication of CN115604121A publication Critical patent/CN115604121A/en
Application granted granted Critical
Publication of CN115604121B publication Critical patent/CN115604121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem
    • H04L2209/463Electronic voting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The embodiment of the disclosure discloses a method, a device and equipment for processing industrial internet services based on a block chain, which relate to the field of block chains, wherein the method comprises the following steps: receiving an operation request of a block chain user for industrial internet service; determining configuration information of the voting event based on the operation request, and generating the voting event according to the configuration information, wherein the configuration information comprises voting content, a voting strategy, voting time and a plurality of voting users participating in voting; writing the configuration information into the intelligent contract and generating a hash value corresponding to the voting event; generating a voting request based on the hash value; sending a voting request to a plurality of voting users so that the plurality of voting users invoke the intelligent contract to vote; and acquiring voting results of a plurality of voting users, and determining whether to execute the operation request according to the voting results. The industrial internet service is processed by using a decentralized management mode in the block chain technology, so that the safety and fairness can be ensured, and the processing efficiency is improved.

Description

Industrial Internet service processing method, device and equipment based on block chain
Technical Field
The disclosure relates to the technical field of block chains, in particular to a block chain-based industrial internet service processing method, device and equipment.
Background
At present, a traditional industrial internet identification analysis system adopts a centralized management mode, and a manager with management authority manages service requests of users.
With the popularization and application of industrial internet identification, the industrial internet identification data is heterogeneous in mass, the difficulty of safety control is correspondingly improved, and a centralized management mode is caused to expose various defects. For example, in the process of identifier operation, the problem of disordered and lost identification resources exists, a destructor can misuse identifier registration, illegal registration, counterfeit identifier management and agency mechanisms, so that security risks such as identifier resource waste, identifier resource allocation disorder, identifier resource lost, identifier analysis result distortion and the like are caused, and the management efficiency, the security and the fairness of the industrial internet identifier data are seriously influenced.
Disclosure of Invention
In order to solve the above problem, embodiments of the present disclosure provide a method, an apparatus, and a device for processing an industrial internet service based on a block chain.
One aspect of the embodiments of the present disclosure provides a block chain-based industrial internet service processing method, including: receiving an operation request of a block chain user for industrial internet service; determining configuration information of the voting event based on the operation request, and generating the voting event according to the configuration information, wherein the configuration information comprises voting content, a voting strategy, voting time and a plurality of voting users participating in voting; writing the configuration information into the intelligent contract and generating a hash value corresponding to the voting event; generating a voting request based on the hash value; sending a voting request to a plurality of voting users so that the plurality of voting users invoke the intelligent contract to vote; and acquiring voting results of a plurality of voting users, and determining whether to execute the operation request according to the voting results.
In some embodiments, determining configuration information for the voting event based on the operation request comprises: determining voting time and voting content based on the operation content characterized by the operation request; determining a preset user group with voting authority, voting round number and a passing condition corresponding to each round of voting based on the service type of the operation request to obtain a voting strategy; determining a plurality of voting users from a preset user group; the configuration information is determined based on the voting time, the voting content, the voting strategy and a plurality of voting users.
In some embodiments, determining, based on the service type of the operation request, a preset user group having a voting right, a number of voting rounds, and a passing condition corresponding to each round of voting, to obtain a voting policy, includes: responding to the prefix of the service type for changing the industrial Internet identification, and determining that the voting event comprises two rounds of voting; determining voting passing conditions of the first round of voting and the second round of voting respectively; determining a first user group and a second user group with voting authority, wherein members in the first user group have the qualification of operating and managing a top-level prefix in an industrial Internet identity analysis system, and the members in the second user group are determined by a super node of a block chain in advance; determining a first user group and a second user group as a preset user group; and determining a voting strategy based on the voting passing conditions of the preset user group, the first round of voting and the second round of voting.
In some embodiments, determining, based on the service type of the operation request, a preset user group having a voting authority, a number of voting rounds, and a passing condition corresponding to each round of voting, to obtain a voting policy, further includes: determining that the voting event comprises a round of voting in response to the service type being a change to membership in the second group of users; determining the voting passing conditions of a round of voting; determining the second user group as a preset user group; and determining a voting strategy based on a preset user group and the voting passing conditions of a round of voting.
In some embodiments, before determining the voting pass conditions for the first and second rounds of voting, respectively, further comprises: in response to the service type being a change to a member of the first group of users, determining that the voting event comprises two rounds of voting.
In some embodiments, determining a plurality of voting users from a predetermined set of users comprises: determining a plurality of second round voting users from the members in the second user group; determining a plurality of first-round voting users from a first user group based on the identity of the block chain users, wherein the identity corresponds to top-level prefixes operated and managed by the plurality of first-round voting users; and determining the plurality of first round voting users and the plurality of second round voting users as a plurality of voting users.
In some embodiments, sending voting requests to a plurality of voting users, such that the plurality of voting users invoke a smart contract to vote, comprises: when the voting event comprises two rounds of voting, sending voting requests to a plurality of first round voting users so that the plurality of first round voting users invoke the smart contract to vote; acquiring first voting results of a plurality of first round voting users; comparing the first voting result with the voting passing conditions of the first round of voting to determine whether the first round of voting passes or not; and sending voting requests to a plurality of second-round voting users in response to the first-round voting, so that the plurality of second-round voting users invoke the intelligent contract to vote.
In some embodiments, obtaining voting results of a plurality of voting users, and determining whether to execute the operation request according to the voting results comprises: obtaining second voting results of a plurality of second round voting users; comparing the second voting result with the voting passing conditions of the second round of voting to determine whether the second round of voting passes or not; if the second round of ballot passes, executing the operation request; and if the second round of voting fails, not executing the operation request.
In some embodiments, the method further comprises: in response to the first round of voting failing, the voting is terminated and no operation request is performed.
According to another aspect of the embodiments of the present disclosure, there is provided a block chain-based industrial internet service processing apparatus, including: a request receiving unit configured to receive an operation request of a blockchain user for an industrial internet service; the event generating unit is configured to determine configuration information of the voting event based on the operation request, and generate the voting event according to the configuration information, wherein the configuration information comprises voting content, a voting strategy, voting time and a plurality of voting users participating in voting; the information storage unit is configured to write the configuration information into the intelligent contract and generate a hash value corresponding to the voting event; a request generation unit configured to generate a voting request based on the hash value; a request sending unit configured to send voting requests to a plurality of voting users so that the plurality of voting users invoke the smart contract to vote; and a result determining unit which is matched to acquire voting results of a plurality of voting users and determine whether to execute the operation request according to the voting results.
According to still another aspect of an embodiment of the present disclosure, there is provided an electronic device including: a memory for storing a computer program product; a processor for executing the computer program product stored in the memory, and when the computer program product is executed, the method of any of the above embodiments is implemented.
According to the block chain-based industrial internet service processing method provided by the embodiment of the disclosure, a voting event can be generated according to an operation request for an industrial internet service submitted by a block chain user, then a plurality of voting users in the block chain vote for the service request, and whether to execute the service request is determined according to a voting result. The operation request in the industrial internet identification analysis system is processed by using a decentralized management mode in the block chain technology, so that the safety and fairness of the industrial internet service processing process can be guaranteed, and the processing efficiency of the service request is improved.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic flow chart diagram illustrating an embodiment of a block chain-based industrial internet service processing method according to the present disclosure;
fig. 2 is a schematic flowchart illustrating the determination of configuration information in an embodiment of the block chain-based industrial internet service processing method according to the present disclosure;
FIG. 3 is a schematic flow chart illustrating the voting strategy determination in one embodiment of the blockchain-based industrial Internet traffic processing method according to the present disclosure;
fig. 4 is a schematic flow chart diagram illustrating a block chain-based industrial internet service processing method according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an embodiment of a block chain-based industrial internet service processing apparatus according to the present disclosure;
fig. 6 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those within the art that the terms "first", "second", etc. in the embodiments of the present disclosure are used only for distinguishing between different steps, devices or modules, etc., and do not denote any particular technical meaning or necessary logical order therebetween.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the present disclosure may be generally understood as one or more, unless explicitly defined otherwise or indicated to the contrary hereinafter.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
The disclosed embodiments may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
The block chain based industrial internet service processing method of the present disclosure is exemplarily described below with reference to fig. 1, and fig. 1 shows a flowchart of an embodiment of the block chain based industrial internet service processing method of the present disclosure, and as shown in fig. 1, the flowchart includes the following steps.
Step 110, receiving an operation request of a blockchain user for the industrial internet service.
In this embodiment, the blockchain user simultaneously identifies the user of the resolution system for the industrial internet, for example, the blockchain user may be an enterprise node or a secondary node in the industrial internet identification resolution system.
The industrial internet service represents an operation related to the industrial internet, and may be, for example, an operation on an industrial internet identifier, specifically, registration, change, delay, and the like of an industrial internet identifier prefix. As an example, a blockchain user may submit an operation request to a blockchain through a client of a business system of the blockchain, so that a server of the business system of the blockchain may receive the operation request submitted by the user.
And step 120, determining configuration information of the voting event based on the operation request, and generating the voting event according to the configuration information.
The configuration information comprises voting content, a voting strategy, a voting time and a plurality of voting users participating in voting.
In this embodiment, the voting content may represent the operation content of the blockchain user for the industrial internet service; the voting strategy can be pre-stored in the blockchain, for example, the voting passing conditions can be included, such as one-vote passing, full-vote passing, majority-vote passing, and the like; the voting time then represents the start time and the end time of the vote. The voting users may be users in the blockchain that have voting privileges.
In a specific example, when submitting an operation request, a blockchain user may submit voting content and voting time to a blockchain at the same time, and then a voting node of the blockchain acquires a corresponding voting policy and multiple voting users from the blockchain to obtain configuration information of a voting event.
And step 130, writing the configuration information into the intelligent contract, and generating a hash value corresponding to the voting event.
As an example, the server of the business system of the blockchain may write the configuration information of the voting event into an intelligent contract, and then interact with the blockchain by the intelligent contract to generate a hash value corresponding to the voting event.
In some optional embodiments of this embodiment, after the intelligent contract acquires the configuration information, the authority of the blockchain user may be verified first, and if the blockchain user does not have the authority to initiate voting, the subsequent steps are not executed; and if the blockchain user has the authority of initiating the voting, the intelligent contract interacts with the blockchain to generate a hash value corresponding to the voting event.
Step 140, generating a voting request based on the hash value.
In this embodiment, the intelligent contract may return the hash value to the server of the blockchain business system, and the server generates the voting request based on the hash value.
Optionally, the intelligent contract may further perform block assembly on the hash value, the identity of the user of the blockchain, the signature data, and the ID of the voting event, and then store the result into the blockchain.
And step 150, sending voting requests to the plurality of voting users so that the plurality of voting users invoke the smart contract to vote.
In this embodiment, the service end of the service system of the blockchain may send a voting request to each voting user, so that the voting user invokes the intelligent contract and votes for the operation request.
As an example, after the voting user logs in the blockchain, the voting event may be signed by using a private key, and a service end of the business system of the blockchain invokes a contract address of the voting event to the intelligent contract, so as to facilitate the voting operation of the voting user.
And step 160, obtaining voting results of a plurality of voting users, and determining whether to execute the operation request according to the voting results.
In this embodiment, after the voting user votes, the smart contract may receive the signature of the voting user and the voting result. After the voting is finished, the service end of the block chain service system can call the voting result of each voting user from the intelligent contract, and judge whether to execute the operation request or not by counting the voting results of each voting user. For example, when the voting result does not satisfy the passing condition, the operation request is not executed if the operation request does not satisfy the execution condition; when the voting result meets the passing condition, the operation request is in accordance with the execution condition, and the operation request can be executed at the moment.
According to the block chain-based industrial internet service processing method provided by the embodiment of the disclosure, a voting event can be generated according to an operation request for an industrial internet service submitted by a block chain user, then the service request is voted by a plurality of voting users in the block chain, and whether to execute the service request is determined according to a voting result. The operation request in the industrial internet identification analysis system is processed by using a decentralized management mode in the block chain technology, so that the safety, the transparency and the fairness of the industrial internet service processing process can be guaranteed, and the processing efficiency of the service request is improved.
Referring next to fig. 2, fig. 2 illustrates a flowchart of determining configuration information in an embodiment of the block chain based industrial internet service processing method of the present disclosure, as shown in fig. 2, the flowchart includes the following steps.
And step 210, determining the voting time and the voting content based on the operation content characterized by the operation request.
Step 220, determining a preset user group with voting authority, the number of voting rounds and a passing condition corresponding to each round of voting based on the service type of the operation request, so as to obtain a voting strategy.
In this embodiment, the operations of different service types correspond to different polling rounds, passing conditions, and polling users, that is, correspond to different polling policies.
As an example, a correspondence between the service type and the voting policy may be stored in the blockchain in advance, and the service end of the service system of the blockchain may determine the voting policy corresponding to the operation request according to the correspondence.
And step 230, determining a plurality of voting users from a preset user group.
In this embodiment, the preset user group may include members with top-level prefixes of the industrial internet identifiers, and the members with different top-level prefixes participate in the voting process of different types of industrial internet identifier data.
As an example, the server of the blockchain service system may determine, according to the identity of the blockchain user, the type of the industrial internet identification data requested to be operated by the blockchain user, and then determine, from a preset user group, a member corresponding to the type, as a voting user. The identity of the blockchain user may be, for example, an industrial internet identity of the blockchain user or an enterprise prefix of the blockchain user in an industrial internet identity resolution system.
Step 240, determining configuration information based on the voting time, the voting content, the voting strategy and the plurality of voting users.
In the embodiment shown in fig. 2, the voting policy can be determined according to the type of the operation request, and the voting users can be determined according to the identity of the blockchain user, so that the pertinence of the voting process can be ensured, and the efficiency and reliability of the industrial internet identification data processing can be improved.
With further reference to fig. 3 on the basis of fig. 2, fig. 3 shows a flowchart of determining a voting policy in an embodiment of the block chain-based industrial internet traffic processing method of the present disclosure, and as shown in fig. 3, the step 220 may include the following steps.
And step 310, responding to the service type that the industrial internet identification is changed, and determining that the voting event comprises two rounds of voting.
As an example, the prefix of the service type of changing the industrial internet identity may be an operation of replacing, transferring, logging out, applying for, postponing, etc.
And step 320, determining the voting passing conditions of the first voting round and the second voting round respectively.
In this embodiment, the service end of the blockchain service system may determine the voting passing conditions of the first round of voting and the second round of voting, respectively. As an example, the voting conditions of the first round of voting and the second round of voting may be determined according to the type of service requested by the operation.
Step 330, determining a first user group and a second user group having voting authority.
The members in the first user group have the qualification of operating and managing the top-level prefix in the industrial Internet identification analysis system, and the members in the second user group are determined by the super nodes of the block chain in advance.
In this embodiment, the members in the first user group have the functions of establishing an identification data processing policy, supervising identification data update and maintenance, and the like. The first user group can comprise members of various types of industrial internet identifications, and service requests of corresponding types are processed respectively. The members in the second user group have the responsibility of the business process in the supervision block chain, and the safety of data on the chain can be ensured from the aspect of technical operation and maintenance.
And step 340, determining the first user group and the second user group as preset user groups.
In this embodiment, the first user group and the second user group are determined as a preset user group, so that when a plurality of voting users are subsequently determined from the preset user group, at least one member of the first user group or at least one member of the second user group may be included, so as to vote on the operation request from different dimensions.
As an example, a user for a first round of voting may be determined from the first user group and the second user group, and then a user for a second round of voting may be determined from the first user group and the second user group, so as to obtain a plurality of voting users for two rounds of voting.
For another example, the users in the first round of voting may be determined from the first user group or the second user group, and the users in the second round of voting may be determined from the second user group or the first user group, so as to obtain a plurality of voting users in two rounds of voting.
And step 350, determining a voting strategy based on the preset user group, the voting conditions of the first round of voting and the second round of voting.
In the embodiment shown in fig. 3, when the service type is a prefix for changing the industrial internet identifier, a two-round voting process may be adopted, the first user group, the second user group and the passing condition of each round of voting, which have voting authority, are determined, and then the first user group and the second user group are determined as the preset user group, so as to determine a voting strategy, which is helpful to further improve the security and fairness of the voting process.
In some optional implementations of the embodiment shown in fig. 3, the step 220 may further include: determining that the voting event comprises a round of voting in response to the service type being a change to membership in the second group of users; determining the voting passing conditions of a round of voting; determining the second user group as a preset user group; and determining a voting strategy based on a preset user group and the voting passing conditions of a round of voting.
In this embodiment, the blockchain user may also initiate a request to change the members of the second group of users, which may include, for example, inviting members to join or remove members. For this case, a round of voting may be employed and the voting pass conditions determined. Meanwhile, the second user group can be determined as a preset user group, and then a plurality of voting users are determined from the members of the second user group, for example, all members in the second user group can be determined as voting users, and part of the members can be randomly determined from the voting users; or, according to a preset proportion, determining a corresponding number of members from the second user group as voting users. And then, determining a voting strategy according to a preset user group and a voting passing condition. Then, the configuration information is determined in step 240 by combining the voting time and the voting content, and a voting event corresponding to the request is generated in the above steps 130 to 160 and it is determined whether to change the members of the second user group by voting.
In the embodiment, whether the member of the second user group is changed or not is determined through a voting mechanism, which is beneficial to further improving the transparency and fairness of processing the industrial internet service.
Further optionally, before the step 320, the process shown in fig. 3 may further include: in response to the type of transaction altering a member of the first group of users, determining that the voting event comprises two rounds of voting.
In this embodiment, the blockchain user may also initiate an operation request to change members of the first group of users, which may include, for example, inviting members to join or remove existing members. For this case, whether to change the members in the first user group can be determined through two rounds of voting.
As an example, when the server of the blockchain business system receives an operation request of a user requesting to change members of the first user group, it may be determined that the voting event includes two rounds of voting, and then a voting policy is generated through the above steps 320 to 350, and then configuration information is determined through the step 240, and a voting event corresponding to the request is generated through the above steps 130 to 160, and it is determined whether to change members of the first user group through voting.
In the embodiment, when a user initiates an operation request for changing the members in the first user group, whether the members in the first user group are changed or not can be determined through two rounds of voting, which is beneficial to further improving the transparency and fairness of the processing of the industrial internet service.
On the basis of the embodiment shown in fig. 3, the step 230 may further include: determining a plurality of second round voting users from members in a second user group; determining a plurality of first-round voting users from a first user group based on the identity of the block chain users, wherein the identity corresponds to top-level prefixes operated and managed by the plurality of first-round voting users; and determining the plurality of first round voting users and the plurality of second round voting users as a plurality of voting users.
In this embodiment, when the type of the operation request is a prefix for changing an industrial internet identifier or a member in a first user group, a first round of voting users may be determined from members of a second user group, and a corresponding first round of voting users is determined from the first user group according to an identity of a block chain user, through subsequent steps, the first round of voting is performed on the operation request from the perspective of industrial internet identifier data maintenance by the first round of voting users, then, a second round of voting is performed on the operation request from the perspective of block chain data maintenance by the second round of voting users, and finally, whether to execute the operation request is determined according to a voting result, which is beneficial to further improving fairness and security for processing industrial internet data.
Referring now to fig. 4, fig. 4 is a flow chart illustrating a further embodiment of the blockchain based industrial internet service processing method of the present disclosure, as shown in fig. 4, the flow chart comprising the following steps.
Step 410, receiving an operation request of a block chain user for the industrial internet service.
In this embodiment, the operation request may change the prefix of the industrial internet identifier or change the members of the first user group, so that the voting event may include two rounds of voting.
And step 420, determining configuration information of the voting event, and generating the voting event according to the configuration information.
In this embodiment, for an operation request for changing the prefix of the industrial internet identifier or changing the member of the first user group, step 420 may determine the configuration information of the voting event by using the processes shown in fig. 2 and fig. 3, and the resulting voting event may include two rounds of voting.
And 430, writing the configuration information into the intelligent contract and generating a hash value corresponding to the voting event.
Step 440, generating a voting request based on the hash value.
Step 450, sending voting requests to the plurality of first-round voting users, so that the plurality of first-round voting users invoke the smart contract to vote.
Step 460, obtaining a first voting result of the plurality of first voting users.
Step 470, comparing the first voting result with the voting conditions of the first round of voting, and determining whether the first round of voting passes or not.
If the first round of voting fails, step 480 is executed, the voting is terminated, and the operation request is not executed.
In this embodiment, if the first round of voting fails and indicates that the operation request does not meet the execution condition, the voting is terminated and the second round of voting is no longer executed, so as to avoid wasting resources and affecting the processing efficiency.
If the first round of votes passes, the following steps 490 through 494 are performed.
Step 490, sending voting requests to the plurality of second-round voting users, so that the plurality of second-round voting users invoke the smart contract to vote.
In this embodiment, whether to perform the second round of voting may be determined according to the result of the first round of voting, and the second round of voting may be performed only when the first round of voting passes, so as not to affect the processing efficiency.
Step 491, obtaining a second voting result of the plurality of second voting users.
Step 492, comparing the second voting result with the voting conditions of the second round of voting, and determining whether the second round of voting passes.
If the second round of votes passes, step 493 is performed, and if the second round of votes does not pass, step 494 is performed.
Step 493, the operation request is executed.
Step 494, no operation request is performed.
In this embodiment, the result of the second round of voting may represent the final voting result, if the second round of voting passes, the operation request may be executed at this time, if the second round of voting passes, the operation request may pass the first round of voting but does not meet the execution condition, and the operation request may not be executed.
The embodiment shown in fig. 4 embodies that when the voting event includes two rounds of voting, it is determined whether to perform a second round of voting according to the result of the first round of voting, and if the first round of voting fails, the voting is terminated and the operation request is not executed; if the first round of voting passes, performing a second round of voting, and determining whether to execute the operation request according to the result of the second round of voting, so that the fairness and the safety of processing the industrial internet service are improved, and the processing efficiency can be ensured.
Referring now to fig. 5, fig. 5 is a schematic block diagram illustrating an embodiment of the block chain-based industrial internet service processing apparatus according to the present disclosure, as shown in fig. 5, the apparatus includes: a request receiving unit 510 configured to receive an operation request of a blockchain user for an industrial internet service; an event generating unit 520 configured to determine configuration information of the voting event based on the operation request, and generate the voting event according to the configuration information, wherein the configuration information includes voting content, voting strategy, voting time and a plurality of voting users participating in voting; an information storage unit 530 configured to write the configuration information into the smart contract and generate a hash value corresponding to the voting event; a request generating unit 540 configured to generate a voting request based on the hash value; a request sending unit 550 configured to send voting requests to a plurality of voting users, so that the plurality of voting users invoke the smart contract to vote; the result determination unit 560 is adapted to acquire voting results of a plurality of voting users and determine whether to execute an operation request according to the voting results.
In one embodiment, the event generating unit 520 includes: the first determining module is configured to determine voting time and voting content based on operation content characterized by the operation request; the strategy determining module is configured to determine a preset user group with voting authority, voting round number and a passing condition corresponding to each round of voting based on the service type of the operation request to obtain a voting strategy; the user determination module is configured to determine a plurality of voting users from a preset user group; an information determination module configured to determine configuration information based on the voting time, the voting content, the voting policy, and the plurality of voting users.
In one embodiment, the policy determination module is further configured to: responding to the prefix of the service type for changing the industrial Internet identification, and determining that the voting event comprises two rounds of voting; determining voting passing conditions of the first round of voting and the second round of voting respectively; determining a first user group and a second user group with voting authority, wherein members in the first user group have the qualification of operating and managing a top-level prefix in an industrial Internet identity analysis system, and the members in the second user group are determined by a super node of a block chain in advance; determining a first user group and a second user group as a preset user group; and determining a voting strategy based on the voting passing conditions of the preset user group, the first round of voting and the second round of voting.
In one embodiment, the policy determination module is further configured to: determining that the voting event comprises a round of voting in response to the service type changing a member of the second user group; determining the voting passing conditions of a round of voting; determining a second user group as a preset user group; and determining a voting strategy based on a preset user group and the voting passing conditions of a round of voting.
In one embodiment, the policy determination module is further configured to: in response to the service type being a change to a member of the first group of users, determining that the voting event comprises two rounds of voting.
In one embodiment, the user determination module is further configured to: determining a plurality of second round voting users from the members in the second user group; determining a plurality of first round voting users from a first user group based on the identity of the block chain user, wherein the identity corresponds to a top prefix of operation and management of the plurality of first round voting users; and determining the plurality of first-round voting users and the plurality of second-round voting users as a plurality of voting users.
In one embodiment, the request sending unit 550 is further configured to: when the voting event comprises two rounds of voting, sending voting requests to a plurality of first round voting users so that the plurality of first round voting users invoke the smart contract to vote; acquiring first voting results of a plurality of first round voting users; comparing the first voting result with the voting passing conditions of the first round of voting to determine whether the first round of voting passes or not; in response to the first round of voting passing, voting requests are sent to a plurality of second round voting users so that the plurality of second round voting users invoke the smart contract to vote.
In some embodiments, the result determination unit 560 is further configured to: obtaining second voting results of a plurality of second round voting users; comparing the second voting result with the voting passing conditions of the second round of voting to determine whether the second round of voting passes or not; if the second round of ballot passes, executing the operation request; and if the second round of voting does not pass, not executing the operation request.
In one embodiment, the device further comprises a termination unit configured to respond to the first round of voting failing, terminate the voting and not execute the operation request.
In addition, an embodiment of the present disclosure also provides an electronic device, including: a memory for storing a computer program; a processor, configured to execute the computer program stored in the memory, and when the computer program is executed, implement the method for processing block chain-based industrial internet service according to any of the above embodiments of the present disclosure.
Fig. 6 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure. Next, an electronic apparatus according to an embodiment of the present disclosure is described with reference to fig. 6.
As shown in fig. 6, the electronic device includes one or more processors and memory.
The processor may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
The memory may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer readable storage medium and executed by a processor to implement the blockchain-based industrial internet traffic processing methods of the various embodiments of the present disclosure described above and/or other desired functions.
In one example, the electronic device may further include: an input device and an output device, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device may also include, for example, a keyboard, a mouse, and the like.
The output device may output various information including the determined distance information, direction information, and the like to the outside. The output devices may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
In addition to the above methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the blockchain based industrial internet traffic processing method according to the various embodiments of the present disclosure described in the above section of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the steps in the block chain based industrial internet traffic processing method according to various embodiments of the present disclosure described in the above section of the present specification.
The computer readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The basic principles of the present disclosure have been described above in connection with specific embodiments, but it should be noted that advantages, effects, and the like, mentioned in the present disclosure are only examples and not limitations, and should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts in each embodiment are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The block diagrams of devices, apparatuses, devices, systems involved in the present disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices, and methods of the present disclosure, various components or steps may be broken down and/or re-combined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (11)

1. A block chain-based industrial Internet service processing method is characterized by comprising the following steps:
receiving an operation request of a block chain user for industrial internet service;
determining configuration information of a voting event based on the operation request, and generating the voting event according to the configuration information, wherein the configuration information comprises voting content, a voting strategy, voting time and a plurality of voting users participating in voting;
writing the configuration information into an intelligent contract and generating a hash value corresponding to the voting event;
generating a voting request based on the hash value;
sending the voting request to the plurality of voting users so that the plurality of voting users invoke the intelligent contract to vote;
and acquiring voting results of the plurality of voting users, and determining whether to execute the operation request according to the voting results.
2. The method of claim 1, wherein determining configuration information for voting events based on the operation request comprises:
determining the voting time and the voting content based on the operation content characterized by the operation request;
determining a preset user group with voting authority, voting round number and a passing condition corresponding to each round of voting based on the service type of the operation request to obtain the voting strategy;
determining the plurality of voting users from the preset user group;
determining the configuration information based on the voting time, the voting content, the voting policy, and the plurality of voting users.
3. The method according to claim 2, wherein the determining, based on the service type of the operation request, a preset user group with voting authority, the number of voting rounds, and a passing condition corresponding to each round of voting, to obtain the voting policy comprises:
responding to the service type as a prefix for changing the industrial Internet identification, and determining that the voting event comprises two rounds of voting;
determining voting passing conditions of the first round of voting and the second round of voting respectively;
determining a first user group and a second user group with voting authority, wherein members in the first user group have the qualification of operating and managing a top-level prefix in an industrial Internet identity resolution system, and the members in the second user group are determined by a super node of a block chain in advance;
determining the first user group and the second user group as the preset user group;
and determining the voting strategy based on the preset user group and the voting passing conditions of the first round of voting and the second round of voting.
4. The method of claim 3, wherein the determining a preset user group with voting authority, a number of voting rounds, and a passing condition corresponding to each round of voting based on the service type of the operation request results in the voting policy, and further comprises:
determining that the voting event comprises a round of voting in response to the service type being a change to membership in the second group of users;
determining a voting passing condition of the round of voting;
determining the second user group as the preset user group;
and determining the voting strategy based on the preset user group and the voting passing conditions of the round of voting.
5. The method of claim 4, wherein prior to determining the voting pass conditions for the first and second rounds of voting, respectively, further comprising: determining that the voting event comprises two rounds of voting in response to the type of transaction altering membership in the first group of users.
6. The method of claim 3, wherein said determining the plurality of voting users from the predetermined set of users comprises:
determining a plurality of second round voting users from the members in the second user group;
determining a plurality of first-round voting users from the first user group based on the identities of the blockchain users, wherein the identities correspond to the top-level prefixes operated and managed by the plurality of first-round voting users;
determining the plurality of first-round voting users and the plurality of second-round voting users as the plurality of voting users.
7. The method of claim 6, wherein sending the voting requests to the plurality of voting users for the plurality of voting users to invoke the smart contract for voting comprises:
when the voting event comprises two rounds of voting, sending the voting request to the first round voting users so that the first round voting users call the smart contract to vote;
obtaining a first voting result of the plurality of first round voting users;
comparing the first voting result with the voting passing conditions of the first round of voting to determine whether the first round of voting passes;
and sending the voting request to the plurality of second-round voting users in response to the first-round voting, so that the plurality of second-round voting users invoke the smart contract to vote.
8. The method of claim 7, wherein the obtaining voting results of the plurality of voting users and determining whether to execute the operation request according to the voting results comprises:
obtaining a second voting result of the plurality of second round voting users;
comparing the second voting result with the voting passing conditions of the second round of voting to determine whether the second round of voting passes;
if the second round of ballot passes, executing the operation request;
and if the second round of voting does not pass, not executing the operation request.
9. The method of claim 6, further comprising: in response to the first round of voting failing, the voting is terminated and the operation request is not executed.
10. An industrial internet service processing device based on a block chain is characterized by comprising:
a request receiving unit configured to receive an operation request of a blockchain user for an industrial internet service;
the event generating unit is configured to determine configuration information of a voting event based on the operation request, and generate the voting event according to the configuration information, wherein the configuration information comprises voting content, a voting strategy, voting time and a plurality of voting users participating in voting;
the information storage unit is configured to write the configuration information into an intelligent contract and generate a hash value corresponding to the voting event;
a request generation unit configured to generate a voting request based on the hash value;
a request sending unit configured to send the voting requests to the plurality of voting users so that the plurality of voting users invoke the smart contract to vote;
and the result determining unit is configured to acquire voting results of the plurality of voting users and determine whether to execute the operation request according to the voting results.
11. An electronic device, comprising: a memory for storing a computer program product; a processor for executing the computer program product stored in the memory, and when executed, implementing the method of any of the preceding claims 1-9.
CN202211495320.XA 2022-11-27 2022-11-27 Industrial Internet service processing method, device and equipment based on block chain Active CN115604121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211495320.XA CN115604121B (en) 2022-11-27 2022-11-27 Industrial Internet service processing method, device and equipment based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211495320.XA CN115604121B (en) 2022-11-27 2022-11-27 Industrial Internet service processing method, device and equipment based on block chain

Publications (2)

Publication Number Publication Date
CN115604121A true CN115604121A (en) 2023-01-13
CN115604121B CN115604121B (en) 2023-03-14

Family

ID=84853010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211495320.XA Active CN115604121B (en) 2022-11-27 2022-11-27 Industrial Internet service processing method, device and equipment based on block chain

Country Status (1)

Country Link
CN (1) CN115604121B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020000786A1 (en) * 2018-06-28 2020-01-02 平安科技(深圳)有限公司 Voting method and apparatus, and computer device and computer readable storage medium
CN110930578A (en) * 2019-11-21 2020-03-27 山东爱城市网信息技术有限公司 Voting method, equipment and medium based on block chain
CN111695132A (en) * 2020-04-08 2020-09-22 北京瑞策科技有限公司 Voting data storage method and system based on service data block chain
CN111831669A (en) * 2019-12-20 2020-10-27 北京艾摩瑞策科技有限公司 Method and device for storing internet voting data according to block chain
CN113127910A (en) * 2021-04-30 2021-07-16 复旦大学 Controllable anonymous voting system based on block chain and decentralization traceable attribute signature
CN113300855A (en) * 2021-05-25 2021-08-24 浙江大学 Variable strategy-based alliance chain voting management method and system
CN114372280A (en) * 2021-12-24 2022-04-19 杭州溪塔科技有限公司 Block chain service execution method and device based on multi-sign intelligent contract
US20220141020A1 (en) * 2020-11-04 2022-05-05 Gwangju Institute Of Science And Technology Blockchain e-voting system and operating method thereof
CN114721749A (en) * 2022-04-18 2022-07-08 中国工商银行股份有限公司 Voting method and device based on block chain, storage medium and electronic equipment
CN115001783A (en) * 2022-05-27 2022-09-02 平安银行股份有限公司 Voting method, system and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020000786A1 (en) * 2018-06-28 2020-01-02 平安科技(深圳)有限公司 Voting method and apparatus, and computer device and computer readable storage medium
CN110930578A (en) * 2019-11-21 2020-03-27 山东爱城市网信息技术有限公司 Voting method, equipment and medium based on block chain
CN111831669A (en) * 2019-12-20 2020-10-27 北京艾摩瑞策科技有限公司 Method and device for storing internet voting data according to block chain
CN111695132A (en) * 2020-04-08 2020-09-22 北京瑞策科技有限公司 Voting data storage method and system based on service data block chain
US20220141020A1 (en) * 2020-11-04 2022-05-05 Gwangju Institute Of Science And Technology Blockchain e-voting system and operating method thereof
CN113127910A (en) * 2021-04-30 2021-07-16 复旦大学 Controllable anonymous voting system based on block chain and decentralization traceable attribute signature
CN113300855A (en) * 2021-05-25 2021-08-24 浙江大学 Variable strategy-based alliance chain voting management method and system
CN114372280A (en) * 2021-12-24 2022-04-19 杭州溪塔科技有限公司 Block chain service execution method and device based on multi-sign intelligent contract
CN114721749A (en) * 2022-04-18 2022-07-08 中国工商银行股份有限公司 Voting method and device based on block chain, storage medium and electronic equipment
CN115001783A (en) * 2022-05-27 2022-09-02 平安银行股份有限公司 Voting method, system and storage medium

Also Published As

Publication number Publication date
CN115604121B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN106657130B (en) MQTT-based access authentication method and equipment
WO2020258912A1 (en) Blockchain consensus method, device and system
CN112073400A (en) Access control method, system and device and computing equipment
US9225744B1 (en) Constrained credentialed impersonation
CN110417790B (en) Block chain real-name system queuing system and method
CN111475795A (en) Method and device for unified authentication and authorization facing to multiple applications
CN111490981A (en) Access management method and device, bastion machine and readable storage medium
CN106533961B (en) Flow control method and device
CN109067785A (en) Cluster authentication method, device
CN109711122B (en) Authority management method, device, system, equipment and readable storage medium
CN114422139B (en) API gateway request security verification method, device, electronic equipment and computer readable medium
WO2014153959A1 (en) Method, related apparatus and system for preventing cross-site request forgery
WO2012155456A1 (en) License control method and system thereof
CN112818056A (en) Log security sharing method, system and device of block chain
CN112995357B (en) Domain name management method, device, medium and electronic equipment based on cloud hosting service
CN115604121B (en) Industrial Internet service processing method, device and equipment based on block chain
CN111371787B (en) Login registration method, device, system, server and medium for middle station service
CN116991948A (en) Block data synchronization system and method, electronic device and storage medium
CN110351333B (en) Request queue method and system with verification mechanism
CN114329097A (en) Method and device for registering product identifications in batches, electronic equipment and storage medium
CN113901428A (en) Login method and device of multi-tenant system
US8140842B2 (en) Client identification and authorization in an asynchronous request dispatching environment
CN111507728A (en) Payment configuration method and device
CN117544472B (en) Node management method and device for distributed network, electronic equipment and storage medium
CN115664861B (en) Identity information verification method and device based on block chain, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant