Disclosure of Invention
The application aims to provide a manufacturing staff information management method, a manufacturing staff information management system, an electronic device and a computer readable storage medium, and the safety sharing of human resource information is achieved.
In order to achieve the above object, the present application provides a manufacturing staff information management method, applied to a block link point device, including:
when receiving an inquiry request of a requester, determining a public key and a private key of the requester;
inquiring the personnel information corresponding to the inquiry request on a block chain by using a preset intelligent contract, and encrypting the personnel information by using the public key;
and sending the encrypted personnel information and the private key to the requesting party so that the requesting party can decrypt the encrypted personnel information by using the private key.
Wherein, still include:
acquiring enterprise registration information, and broadcasting the enterprise registration information in the block chain so that other block chain links in the block chain verify the enterprise registration information;
and after all the blockchain nodes pass the verification, the enterprise registration information is stored in the blockchain by using the intelligent contract.
Wherein broadcasting the enterprise registration information in the block chain so that other block chain link points in the block chain verify the enterprise registration information comprises:
and performing hash calculation on the enterprise registration information to obtain a first hash value, broadcasting the enterprise registration information and the first hash value in the block chain, so that other block link points in the block chain perform hash calculation on the enterprise registration information to obtain a second hash value, and when the first hash value is consistent with the second hash value, the enterprise registration information passes verification.
Wherein broadcasting the enterprise registration information and the first hash value in the blockchain comprises:
and performing signature operation on the first hash value and the private key to obtain signature information, and broadcasting the enterprise registration information and the signature information in the block chain.
Wherein, still include:
acquiring personnel registration information, and broadcasting the personnel information in the block chain so that other block chain links in the block chain verify the personnel information;
and after all the blockchain nodes pass the verification, the intelligent contract is utilized to store the personnel information into the blockchain.
Wherein, still include:
acquiring equipment information and working data through intelligent wearable equipment, and establishing a corresponding relation between the equipment information and the working data and personnel information corresponding to the intelligent wearable equipment in the block chain.
In order to achieve the above object, the present application provides a manufacturing personnel information management system, which is applied to a block link point device, and comprises:
the determining module is used for determining a public key and a private key of a requester when receiving a query request of the requester;
the query module is used for querying the personnel information corresponding to the query request on the block chain by using a preset intelligent contract and carrying out encryption operation on the personnel information by using the public key;
and the sending module is used for sending the encrypted personnel information and the private key to the requesting party so that the requesting party can decrypt the encrypted personnel information by using the private key.
Wherein, still include:
the enterprise registration information acquisition module is used for acquiring enterprise registration information and broadcasting the enterprise registration information in the block chain so that other block chain links in the block chain verify the enterprise registration information;
and the enterprise registration information storage module is used for storing the enterprise registration information into the blockchain by using the intelligent contract after all the blockchain nodes pass the verification.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the manufacturing staff information management method when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the manufacturing staff information management method as described above.
According to the scheme, the manufacturing staff information management method provided by the application comprises the following steps: when receiving an inquiry request of a requester, determining a public key and a private key of the requester; inquiring the personnel information corresponding to the inquiry request on a block chain by using a preset intelligent contract, and encrypting the personnel information by using the public key; and sending the encrypted personnel information and the private key to the requesting party so that the requesting party can decrypt the encrypted personnel information by using the private key.
The manufacturing industry personnel information management method provided by the application stores manufacturing industry personnel information by using a block chain technology, is applied to each block chain node point device, each block chain node point device is provided with a corresponding public key and a corresponding private key, and personnel information is not easily leaked by using the characteristics of block chain decentralization and asymmetric encryption, so that the safety sharing of human resource information is realized while the benefit of enterprises is guaranteed. The application also discloses a manufacturing personnel information management system, an electronic device and a computer readable storage medium, which can also realize the technical effects.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application discloses a manufacturing staff information management method, which realizes the safe sharing of human resource information.
Referring to fig. 1, a flowchart of a manufacturing staff information management method disclosed in an embodiment of the present application is shown in fig. 1, and includes:
s101: when receiving an inquiry request of a requester, determining a public key and a private key of the requester;
the embodiment is applied to block link point equipment, including terminal equipment used by enterprises and manufacturing personnel. Manufacturing personnel information is managed by adopting an asymmetric encryption technology of a block chain, and each block chain node device has a key pair of the block chain node device, namely a public key and a private key. When receiving the inquiry request of a requester, determining the public key and the private key of the requester so as to carry out encryption and decryption operation on the requested personnel information in the subsequent steps.
S102: inquiring the personnel information corresponding to the inquiry request on a block chain by using a preset intelligent contract, and encrypting the personnel information by using the public key;
an intelligent contract is defined as a set of commitments defined in digital form, including the agreement on which the contract participants can execute these commitments, and in particular, an intelligent contract is a set of corresponding type of programmed rules and logic, the contents of which include the conditions for contract triggering and the triggering contents. In this embodiment, the intelligent contract serves as an agreement between the employee and the enterprise, the triggering rules in the contract include job hunting positions, integrity records, personal information, position requirements of the enterprise, reputation records, other information and the like of the employee, once the triggering conditions are met, the state data of the contract is changed, the process of uploading data is triggered, the data can be uploaded, and the transaction can be safely executed.
That is, the smart contract specifies the flow of the person information management method including inquiry, registration, and the like. In the step, the intelligent contract is used for identifying the personnel information of the query request on the block chain according to the personnel information in the query request, and the public key determined in the previous step is used for encrypting the personnel information.
S103: and sending the encrypted personnel information and the private key to the requesting party so that the requesting party can decrypt the encrypted personnel information by using the private key.
In specific implementation, the encrypted personnel information and the private key are sent to a requesting party, and the requesting party decrypts the personnel information by using the private key to complete the inquiry flow of the personnel information.
The manufacturing industry personnel information management method provided by the embodiment of the application stores manufacturing personnel information by using a block chain technology, is applied to each block chain node point device, each block chain node point device is provided with a corresponding public key and a corresponding private key, and personnel information is not easily leaked by using the characteristics of block chain decentralization and asymmetric encryption, so that the safety sharing of human resource information is realized while the benefit of an enterprise is guaranteed.
The embodiment of the application discloses an enterprise registration method, which specifically comprises the following steps:
referring to fig. 2, a flowchart of another manufacturing staff information management method provided in an embodiment of the present application is shown in fig. 2, and includes:
s201: acquiring enterprise registration information, and broadcasting the enterprise registration information in the block chain so that other block chain links in the block chain verify the enterprise registration information;
the enterprise registration information here may include establishment time, company summary, size, profit, post requirements, etc. of the enterprise. The enterprise uploads enterprise registration information through a certain block chain link point, and the enterprise registration information is stored after passing verification of other nodes in the block chain, so that the enterprise identity registration is successful. The embodiment does not limit the specific verification manner, for example, the verification step may be: and performing hash calculation on the enterprise registration information to obtain a first hash value, broadcasting the enterprise registration information and the first hash value in the block chain, so that other block link points in the block chain perform hash calculation on the enterprise registration information to obtain a second hash value, and when the first hash value is consistent with the second hash value, the enterprise registration information passes verification.
In order to further improve the security, the first hash value and the private key may be subjected to a signature operation to obtain signature information, and the enterprise registration information and the signature information may be broadcast in the blockchain.
S202: and after all the blockchain nodes pass the verification, the enterprise registration information is stored in the blockchain by using the intelligent contract.
The embodiment of the application discloses a personnel registration method, which specifically comprises the following steps:
referring to fig. 3, a flowchart of another manufacturing staff information management method provided in an embodiment of the present application is shown in fig. 3, and includes:
s301: acquiring personnel registration information, and broadcasting the personnel information in the block chain so that other block chain links in the block chain verify the personnel information;
the person registration information here includes personal information of the person, such as name, sex, age, school calendar, and the like. The flow of the person registration is similar to the flow of the enterprise registration, and is not described herein again.
S302: and after all the blockchain nodes pass the verification, the intelligent contract is utilized to store the personnel information into the blockchain.
As a preferred embodiment, the method further comprises: acquiring equipment information and working data through intelligent wearable equipment, and establishing a corresponding relation between the equipment information and the working data and personnel information corresponding to the intelligent wearable equipment in the block chain.
In specific implementation, the intelligent wearable equipment is used for collecting equipment information and working data of personnel and binding the equipment information and the working data with personal information. The device information and the working data are also verified by other nodes in the block chain, and the verification process is similar to the verification process described in the previous embodiment and is not described herein again.
The intelligent wearable equipment is adopted to upload the working condition of workers in real time, so that errors such as human errors and subjective evaluation are prevented, and real-time updating of information of the workers is also guaranteed. The intelligent wearable equipment is adopted to collect and upload the key data of workers, such as the working efficiency, the production quantity and the like, so that the recruiter can comprehensively know the employee information, and the enterprise can be helped to find out the employees suitable for the enterprise.
In the following, a manufacturing staff information management system provided by an embodiment of the present application is introduced, and a manufacturing staff information management system described below and a manufacturing staff information management method described above may be referred to each other.
Referring to fig. 4, a structure diagram of a manufacturing staff information management system according to an embodiment of the present application is shown in fig. 4, and includes:
a determining module 401, configured to determine a public key and a private key of a requester when receiving a query request from the requester;
the query module 402 is configured to query, on a block chain, staff information corresponding to the query request by using a predefined intelligent contract, and perform an encryption operation on the staff information by using the public key;
a sending module 403, configured to send the encrypted personal information and the private key to the requesting party, so that the requesting party performs a decryption operation on the encrypted personal information by using the private key.
The manufacturing industry personnel information management system provided by the embodiment of the application stores manufacturing industry personnel information by using a block chain technology, is applied to each block chain node point device, each block chain node point device is provided with a public key and a private key corresponding to the block chain node point device, and the personnel information is not easily leaked by using the characteristics of block chain decentralization and asymmetric encryption, so that the safety sharing of human resource information is realized while the benefit of an enterprise is ensured.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the enterprise registration information acquisition module is used for acquiring enterprise registration information and broadcasting the enterprise registration information in the block chain so that other block chain links in the block chain verify the enterprise registration information;
and the enterprise registration information storage module is used for storing the enterprise registration information into the blockchain by using the intelligent contract after all the blockchain nodes pass the verification.
On the basis of the foregoing embodiment, as a preferred implementation manner, the module for acquiring enterprise registration information includes:
the acquisition unit is used for acquiring enterprise registration information;
and the verification unit is used for performing hash calculation on the enterprise registration information to obtain a first hash value, broadcasting the enterprise registration information and the first hash value in the block chain so that other block link points in the block chain perform hash calculation on the enterprise registration information to obtain a second hash value, and when the first hash value is consistent with the second hash value, the enterprise registration information passes verification.
On the basis of the above embodiment, as a preferred implementation, the verification unit includes:
the calculation subunit is used for carrying out hash calculation on the enterprise registration information to obtain a first hash value;
and the broadcasting subunit is configured to perform signature operation on the first hash value and the private key to obtain signature information, and broadcast the enterprise registration information and the signature information in the block chain, so that other block link points in the block chain perform hash calculation on the enterprise registration information to obtain a second hash value, and when the first hash value is consistent with the second hash value, the enterprise registration information passes verification.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the personnel registration information acquisition module is used for acquiring personnel registration information and broadcasting the personnel information in the block chain so as to facilitate other block chain links in the block chain to verify the personnel information;
and the personnel registration information storage module is used for storing the personnel information into the block chain by using the intelligent contract after all the block chain nodes pass the verification.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the acquisition module is used for acquiring equipment information and working data through intelligent wearable equipment and establishing a corresponding relation between the equipment information and the working data and personnel information corresponding to the intelligent wearable equipment in the block chain.
In a particular application, the system may consist of a user layer, an interface layer, a data processing layer, and a blockchain network layer, where data from workers is collected through internet of things devices. Employees in each manufacturing enterprise and industry become members of the platform, and the security of all existing data is guaranteed through block chain encryption technologies such as asymmetric encryption. They search for information about businesses and practitioners through the system interface and gain access to detailed information through the blockchain network. And the interface layer, the data processing and block chain network layer are executed in the cloud environment.
Specifically, the user layer includes enterprises and employees. The enterprise obtains the permissions of employees and queries the employee information in the blockchain network. By reading the assessment reports generated from the real-time data of each employee, the enterprise can learn the employee capabilities in detail and can be considered as a correct decision employee sharing target.
The interface layer is a shared boundary and provides a website for users to perform basic operations, including user registration and information exchange. User registration is the process by which an employee or employer registers an account and obtains access to the system. Information exchange is based on the information communication mode between employees and employers under decentralized management.
The data processing layer is used for storing, analyzing and forming real-time data and consists of a gateway module, a data module and a block chain client module. The gateway module serves as a portal connecting the hardware device and the software system, receives real-time data from the hardware device and transmits it to the data processing module to form and manage the data. The data module is responsible for processing and forming the data received by the gateway, and comprises data preprocessing, data analysis and a database. Receiving data through a gateway is often incomplete, inconsistent or lacking some important parameters, and may contain many errors. Thus, the main responsibility of data pre-processing is to convert real-time data into an acceptable data format. Data analysis is the process of examining, transforming, and modeling data. The goal of data analysis is to discover useful and visual information for assessing employee competency, which can help businesses select accurate employees for work. During working hours, the data management can form the data into acceptable types and help the platform realize better data virtualization and store the data in the database. The blockchain client module includes two functions of block registration and data encapsulation. Block registration is the process of building a block and obtaining the rights recorded in the block. Data encapsulation is responsible for encrypting data in the registration block, changing the formatted data into hashed data that can be encapsulated on the block. After data encapsulation, the collected data is stored in blocks and managed by the blockchain network mechanism.
The blockchain network layer provides a secure data sharing method. The blockchain consists of a number of nodes, each with a copy of the common ledger. In this system, each node represents an employee or an enterprise. The communication between the nodes is to obtain an agreement about the content and no central authority is required to coordinate and validate the transaction. A transaction represents a transaction between user codes, i.e., between an employee and a business.
The present application further provides an electronic device, referring to fig. 5, a structure diagram of an electronic device provided in an embodiment of the present application, as shown in fig. 5, includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 provides computing and control capabilities for the electronic device, and when executing the computer program stored in the memory 100, the steps of the manufacturing personnel information management method provided by any of the above embodiments can be implemented.
The electronic equipment provided by the embodiment of the application stores manufacturing personnel information by using a block chain technology, is applied to each block chain node point equipment, each block chain node point equipment has a corresponding public key and private key, and the personnel information is not easily revealed by using the characteristics of block chain decentralization and asymmetric encryption, so that the safety sharing of the human resource information is realized while the benefit of enterprises is guaranteed.
On the basis of the above embodiment, as a preferred implementation, referring to fig. 6, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc. Specifically, in the present embodiment, the enterprise registration information, the person registration information, and the like are input through the input interface 300.
And a display unit 400 connected to the processor 200 for displaying data transmitted by the processor 200. The display unit 400 may be a display screen on a PC, a liquid crystal display screen, or an electronic ink display screen. Specifically, in the present embodiment, the staff information and the like may be displayed to the enterprise through the display unit 400.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
And the intelligent wearable device 600 is connected with the processor 200 and used for acquiring device information and working data and then sending the device information and the working data to the processor 200 for data analysis and processing. It should be noted that the intelligent wearable device in this embodiment may be an intelligent wrist wearable device such as an intelligent watch and an intelligent bracelet, or may also be an intelligent wearable device at other positions such as an intelligent glasses, an intelligent helmet, and an intelligent necklace, which is not specifically limited herein.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium stores a computer program, and the computer program realizes the steps of the manufacturing staff information management method provided by any one of the above embodiments when being executed by a processor.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.