CN109492880A - Roduction track method and terminal device based on block chain technology - Google Patents

Roduction track method and terminal device based on block chain technology Download PDF

Info

Publication number
CN109492880A
CN109492880A CN201811214965.5A CN201811214965A CN109492880A CN 109492880 A CN109492880 A CN 109492880A CN 201811214965 A CN201811214965 A CN 201811214965A CN 109492880 A CN109492880 A CN 109492880A
Authority
CN
China
Prior art keywords
production
record
block node
target block
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811214965.5A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811214965.5A priority Critical patent/CN109492880A/en
Publication of CN109492880A publication Critical patent/CN109492880A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Abstract

The present invention is suitable for computer application technology, provide a kind of roduction track method based on block chain technology, terminal device and computer readable storage medium, by the way that the record of production of target block node in production system is compared with the preset requirement of corresponding production procedure, in the case where the record of production meets preset requirement, the record of production of the target block node is synchronized in the block node in production system in addition to the destination node, and when occurring violation in production procedure, tracking responsibility node is simultaneously handled, realize that the production to block node is supervised by the method that chain type is traced to the source, guarantee the reliability and stability of production system.

Description

Roduction track method and terminal device based on block chain technology
Technical field
The invention belongs to computer application technology more particularly to a kind of roduction track sides based on block chain technology Method, terminal device and computer readable storage medium.
Background technique
With the development of computer technology, in current production environment, a production task may need to include multiple It connects and executes between production stage, could complete jointly.For example, being generally comprised during current computer application development Numerous processes, these processes such as exploitation, operation, deployment are corresponding with different process or responsible person, generally comprise demand, open Hair, test, operation and each department such as product realize entire exploitation demand by co-ordination between these departments.
But in existing development and production mode, when each progress updates or data change, typically pass through postal Part, text form linked up or recorded, reduce the stability and reliability of multidisciplinary collaborative work, and cause to produce System cannot reliable and stable operation the problem of.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of roduction track methods based on block chain technology, terminal device And computer readable storage medium, it is lowered with solving the stability and reliability of multidisciplinary collaborative work in the prior art, and Cause production system cannot reliable and stable operation the problem of.
The first aspect of the embodiment of the present invention provides a kind of roduction track method based on block chain technology, comprising:
Obtain the record of production of target block node in production system;It include to the target block in the record of production The information of node carries out the Hash number that Hash calculation obtains, and the Hash number is for indicating the target block node in institute Sequence in the production procedure of category;The record of production includes the creation data of the target block node in the process of running;
It is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect the life Production is recorded in the production procedure whether meet preset requirement;
If the record of production meets the preset requirement, the record of production is synchronized in production system except described In other block nodes of target block node.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It performs the steps of
Obtain the record of production of target block node in production system;It include to the target block in the record of production The information of node carries out the Hash number that Hash calculation obtains, and the Hash number is for indicating the target block node in institute Sequence in the production procedure of category;The record of production includes the creation data of the target block node in the process of running;
It is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect the life Production is recorded in the production procedure whether meet preset requirement;
If the record of production meets the preset requirement, the record of production is synchronized in production system except described In other block nodes of target block node.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor executes above-mentioned first aspect.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is by by production system The record of production of middle target block node is compared with the preset requirement of corresponding production procedure, is met in the record of production preset In the case where it is required that, the record of production of the target block node is synchronized to the block in production system in addition to the destination node In node, and when there is in production procedure violation, tracking responsibility node is simultaneously handled, and is realized by the method that chain type is traced to the source Production supervision to block node, guarantees the reliability and stability of production system.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow chart for the roduction track method based on block chain technology that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the roduction track method provided by Embodiment 2 of the present invention based on block chain technology;
Fig. 3 is the schematic diagram for the terminal device that the embodiment of the present invention three provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other cases, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is the process for the roduction track method based on block chain technology that the embodiment of the present invention one provides referring to Fig. 1, Fig. 1 Figure.The executing subject of roduction track method based on block chain technology in the present embodiment is terminal.Terminal includes but is not limited to intelligence The mobile terminals such as energy mobile phone, tablet computer, wearable device, can also be desktop computer etc..It is as shown in the figure based on area The roduction track method of block chain technology may comprise steps of:
S101: the record of production of target block node in production system is obtained;It include to the mesh in the record of production The information of mark block node carries out the Hash number that Hash calculation obtains, and the Hash number is for indicating the target block section Sequence of the point in affiliated production procedure;The record of production includes the production of the target block node in the process of running Data.
In production system in the present embodiment, it is based on block chain technology, sets block node for each equipment, these Node works according to preset job requirement.It is wherein corresponding with block node, it can be an individual computer and set It is standby, it is also possible to a staff, these are used to indicate a block node.
In practical applications, anyone can participate in the production system of block chain, and each equipment can act as One node, each node allow to obtain a complete database copy.A set of common recognition mechanism is based between node, by competing It strives calculating and safeguards entire block chain jointly.Any node failure, remaining node remain to work normally.Production system based on block chain System collectively constitutes a network end to end by numerous nodes, and there is no the facilities and administration mechanisms of centralization.Number between node Verified according to exchange by digital signature technology, without trusting each other, as long as the rule progress set according to system, node it Between can not cannot also cheat other nodes.The operation rule of production system based on block chain is open and clear, all number It is believed that breath is also disclosed, therefore the production movement of each node is visible to all nodes.Due between node and node It goes to trust, therefore is not necessarily to public identity between node, the node of each participation is anonymous.Individually even more than node The database of other nodes can not be influenced on the modification of database, unless can control be more than in whole network 51% node simultaneously Modification, this almost impossible generation.Each of the production system based on block chain in the present embodiment production movement is all logical It crosses cryptography method to connect with two neighboring block, therefore the back of any one production movement can be traced back to.
It mainly include following three parts information: creation data, Hash in the record of production of block node in the present embodiment Number and random number can also be herein without limitation other more detailed information.Wherein, creation data is for indicating The task data that each block node is carried specifically includes data input, data output, data processing in production process The information such as journey;Hash number is also possible to previous area for indicating sequence of the current block node in entire production procedure The Hash hash that block node is formed, will connect between block node, realize the sequence arrangement of production procedure.
Hash number in the present embodiment is obtained by Hash hash function, is both used to indicate block node in production procedure In sequence, and the identity of block node may be implemented.When generating Hash number, sender with a hash function from Abstract is generated in the information of target block node, then abstract is encrypted with the private key of oneself, and encrypted abstract will be made Recipient is sent jointly to for the digital signature and message of message, and recipient is first with the hash function as sender from connecing Message digest is calculated in the original message received, is then carried out again with the public key of sender come the digital signature to COM Continuation of Message Decryption, if the two make a summary it is identical, so can confirm that the digital signature is sender if recipient.
In the present embodiment, the information of each block node includes the node identification, node serial number, node weight of block node One or more of limit or the sequence in production procedure.Hash calculation is carried out by the information to block node to obtain Hash number, to realize the unique encodings to the block node, while the available section to block node by Hash number The information such as the sequence of point identification and the node in production procedure.
Specifically, first quantifying the nodal information of block node, the ASCII character of the character is converted and is mended Position first mends one 1, then mends 0 again, and remainder is 448 after length meets to 512 modulus;Again by the length of original data Be put into the end of the complete message of cover, before mend 0, amount to 64;Disappeared using cover and the message after benefit length has been carried out to calculate Breath abstract.512 clear packets are divided into 16 sub- clear packets, every sub- clear packets are 32;Application 5 32 Link variable, be denoted as A, B, C, D, E;16 one's share of expenses for a joint undertaking clear packets are extended to 80 parts;80 one's share of expenses for a joint undertaking clear packets carry out 4 wheel fortune It calculates;Link variable and initial link variable carry out summation operation;Link variable as next clear packets input repeat into The above operation of row;Finally the Hash that the data inside 5 link variables are exactly the block node is encoded.
In addition to this, the method for generating Hash coding can also be MD5 Message Digest 5 (Message-Digest Algorithm, MD5), secure hash algorithm 1 (Secure Hash Algorithm1, SHA-1) and secure hash algorithm 2 (Secure Hash Algorithm 2, SHA-2), the cryptographic Hash that SHA-1 output is length 160, therefore anti-exhaustive is more It is good.When SHA-1 is designed based on and MD4 same principle, and imitated the algorithm.In order to improve safety, can also use SHA-224, SHA-256, SHA-384 and SHA-512 algorithm.
S102: it is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect institute State whether the record of production meets preset requirement in the production procedure.
In getting production system after the record of production of target block node, compiled according to the Hash in the record of production Number, determine production procedure belonging to target block node.Production procedure in the present embodiment is for indicating in each block node Affiliated process, the form of production procedure can be process code etc., herein without limitation.
Illustratively, each block node has the Hash number of oneself, is numbered by the Hash and determines the block node Affiliated production procedure, the production procedure can be testing process, development process or business circuit of so-and-so project etc., herein Without limitation.
It, can should while customized production process it should be noted that each production procedure is that preparatory customization comes out The corresponding storage of Hash number of all block nodes included in production procedure, in order to be numbered by the Hash of block node Determine its corresponding production procedure.Meanwhile the Hash number of each block node may be corresponding with multiple production procedures, but each Block node in production procedure Hash number be it is unique, therefore, can fast and accurately find the block Production procedure where node.
While customized production process, preset requirement, the present embodiment corresponding to the production procedure can be also customized simultaneously In preset requirement be used to indicate the normal range (NR) of creation data in each production procedure.Illustratively, preset requirement can be with It is the work permission of each block node, the operating time limitation of some production work, the network uploading speed in production system The workload etc. of range, each block node within preset time, herein without limitation.According to the parameter model in preset requirement It enclosing, the record of production in the production procedure is detected, determine whether the record of production of the production procedure meets preset requirement, with Just the supervision course of work of each block node implemented, and be tracked when noting abnormalities behavior.
S103: if the record of production meets the preset requirement, the record of production is synchronized in production system Except in other block nodes of the target block node.
It is compared by the record of production and preset requirement, after determining whether the record of production meets preset requirement.If should The record of production meets preset requirement, it is determined that unlawful practice is not present in target block node, and the data in the record of production are positive The record of production is then synchronized to other block nodes that the target block node is removed in production system by normal operational data.Pass through The data of each block node of part are synchronized to other block nodes in production system, it is ensured that the area in entire production system Block node can determine which step work current each node has proceeded to, and improve the transparency of production system.
Further, the roduction track method based on block chain technology in the present embodiment can also include:
Obtain process recording and the corresponding preset requirement of the production procedure of the production procedure;
According to the preset requirement of the production procedure, detect in the process recording with the presence or absence of not meeting described preset want The violation record asked;
If there are violation records in the process recording, it is tracked according to violation record, determining and institute It states and records relevant block node in violation of rules and regulations, and record relevant block node to described to the violation and handle.
In the present embodiment, the operational data of each block node can be assessed, whether determines the block node In violation of rules and regulations.The process recording of entire production procedure can also be assessed, determine whether the process meets regulation.Specifically, logical It crosses and compares the corresponding preset requirement of the process recording of production procedure and production procedure, whether there is in testing process record The violation record for not meeting preset requirement, records in violation of rules and regulations if existing in process recording, is tracked, is determined according to violation record Block node relevant to recording in violation of rules and regulations, and block node relevant to recording in violation of rules and regulations is handled.
It should be noted that including the life of limited target block node to the processing mode of violation node in the present embodiment Property right limit, the production behavior for terminating target block node etc., herein without limitation.
Above scheme, by the record of production for obtaining target block node in production system;Include in the record of production The Hash number that Hash calculation obtains is carried out to the information of the target block node, the Hash number is for indicating the mesh Mark sequence of the block node in affiliated production procedure;The record of production includes the target block node in operational process In creation data;It is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect institute State whether the record of production meets preset requirement in the production procedure;If the record of production meets the preset requirement, The record of production is synchronized in production system except in other block nodes of the target block node.By the way that system will be produced The record of production of target block node is compared with the preset requirement of corresponding production procedure in system, is met in the record of production pre- In the case where setting requirement, the record of production of the target block node is synchronized to the area in production system in addition to the destination node In block node, and when there is in production procedure violation, tracking responsibility node is simultaneously handled, and the method traced to the source by chain type is real Now the production of block node is supervised, guarantees the reliability and stability of production system.
Referring to fig. 2, Fig. 2 is the process of the roduction track method provided by Embodiment 2 of the present invention based on block chain technology Figure.The executing subject of roduction track method based on block chain technology in the present embodiment is terminal.Terminal includes but is not limited to intelligence The mobile terminals such as energy mobile phone, tablet computer, wearable device, can also be desktop computer etc..It is as shown in the figure based on area The roduction track method of block chain technology may comprise steps of:
S201: the division of labor information of production procedure information and operator is obtained.
Production procedure information in the present embodiment may include arrangement of time in entire Project Running Process, task peace Row etc., wherein task arrangement may include specific task names, responsible organization belonging to task, the division of labor of operator again Information may include giver identification, affiliated function, responsible action of operator etc., herein without limitation.
When obtaining production procedure information and operator's division of labor information, the form that can first pass through table or document is obtained Take these data.After getting, according to the connection in product process information and personnel division of labor information, opening relationships topology Figure, can clearly by the connection obtained between each workflow of relationship topology or corresponding responsible person etc., with Improve efficiency and accuracy rate that production system is established with run.
S202: according to the division of labor information of the production procedure information and the operator, each operator is determined The production permission of the corresponding block node of member.
In the present embodiment, each operator has corresponding division of labor, and each operator is accurate, on time complete At the work of oneself, the synthetic operation that is just able to achieve between each workflow in production system.It should be noted that each It is a block node that operator is substantially corresponding, for running work in production system by the block node, is completed Production task.
In order to guarantee between each block node can carry out production work safely, orderly need in the present embodiment Set the production permission of each block node.Each operator is determined according to the division of labor information of production procedure information and operator The production permission of the corresponding block node of member.Wherein the production permission may include data, the area that block node can view Block node can modify, the programme area operated etc., herein without limitation.
S203: according to the corresponding block node of each operator, the production permission of the block node and institute State production system of the production procedure information architecture based on block chain.
After the production permission that the corresponding block node of each operator, each block node has been determined, according to this The a little production systems of information and production procedure information architecture based on block chain.The production system is by block node one by one It constitutes, each block node can be considered as a computer equipment, and each computer equipment is by corresponding relevant operation people Member's manipulation.
In practical applications, block chain is sequentially in time be combined into data block in such a way that sequence is connected one Kind linked data structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Broadly, area Block chain technology is to verify to know together algorithm with storing data, using distributed node to generate and more using block linked data structure New data, utilizes the intelligence being made of automatized script code at the safety for guaranteeing data transmission and access in the way of cryptography Can contract program the completely new distributed basis framework and calculation of one kind with operation data.
The production system based on block chain in the present embodiment is by data Layer, network layer, common recognition layer, excitation layer, contract Layer and application layer composition.Wherein, data Layer encapsulates bottom data block and relevant data encryption and timestamp etc. are basic Data and rudimentary algorithm;Network layer then includes distributed networking mechanism, data dissemination mechanism and data authentication mechanism etc.;Common recognition layer All kinds of common recognition algorithms of predominant package network node;Economic factor is integrated into block chain technical system by excitation layer, mainly Issuing mechanism and distribution mechanism including economic incentives etc.;All kinds of scripts of contract layer predominant package, algorithm and intelligent contract, are areas The basis of block chain programmable features;Application layer then encapsulates the various application scenarios and case of block chain.In the model, when being based on Between chain type block structure, the common recognition mechanism of distributed node, the economic incentives and flexible programmable for calculating based on common recognition power stabbed Intelligent contract is the most representative innovative point of block chain technology.
S204: the record of production of target block node in production system is obtained;It include to the mesh in the record of production The information of mark block node carries out the Hash number that Hash calculation obtains, and the Hash number is for indicating the target block section Sequence of the point in affiliated production procedure;The record of production includes the production of the target block node in the process of running Data.
The implementation of S101 is identical in S204 embodiment corresponding with Fig. 1 in the present embodiment, specifically refers to The associated description of S101 in the corresponding embodiment of Fig. 1, details are not described herein.
S205: it is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect institute State whether the record of production meets preset requirement in the production procedure.
The implementation of S102 is identical in S205 embodiment corresponding with Fig. 1 in the present embodiment, specifically refers to The associated description of S102 in the corresponding embodiment of Fig. 1, details are not described herein.
Further, S205 specifically includes S2051~S2053, specific as follows:
S2051: it is numbered according to the Hash, determines the production procedure belonging to the target block node.
Hash number in the present embodiment passes through Hash for indicating serial number of the block node in affiliated production procedure The mode of function generates, and each Hash number is unique, and can be according to the Hash of block nodes all in production procedure Number is ranked up, so that it is determined that production sequence and corresponding block node in entire production procedure.In the present embodiment, lead to The Hash number for crossing each block node, determines production procedure corresponding to the record of production of current goal block node.
S2052: the preset requirement for being directed to the production procedure is obtained;It include preset production in the preset requirement Data and/or preset production procedure.
In the present embodiment, each production procedure has its corresponding preset requirement, by determining target block node institute The production procedure of category determines the corresponding preset requirement of the production procedure according to the mark of production procedure.
It should be noted that the threshold requirement in the present embodiment includes: preset creation data, in preset production procedure One or more.Preset requirement in the present embodiment is preset to want for detecting to the creation data in production process Seek the equipment operating data range, such as memory usage, data transmission bauds etc. that can be in normal productive process;It can be with It is the production permission of each block node, for example, catalogue, revisable data or catalogue etc. that block node is accessible, Herein without limitation to preset requirement.
S2053: if the creation data in the record of production meets the preset creation data, and/or, the production Production procedure in record meets the preset production procedure, then the record of production meets the preset requirement.
If the creation data in the record of production meets preset creation data, the production procedure in the record of production, which meets, to be stated Preset production procedure;Alternatively, the production procedure in the record of production meets preset production procedure, then the record of production meets preset It is required that.In order to guarantee the accuracy of production procedure detection, creation data and production procedure are all taken into account whether the record of production accords with In the judgement for closing preset requirement, if the creation data in the record of production meets preset creation data, also, in the record of production Production procedure meets preset production procedure, then the record of production meets preset requirement.
If the record of production meets the preset requirement in preset requirement, it is determined that the record of production is normal recordings;If should The record of production does not meet the preset requirement in preset requirement, it is determined that the record of production is exception record.
Further, after step S205, can also include:
If the record of production does not meet the preset requirement, according to the preset requirement to the target block node All records of production checked, obtain not meeting the records of production of the preset requirement all;
It is not met described in block node transmission into the production system in addition to the target block node described pre- Set the record of production and production assessment notice of requirement;The production assessment notice is for notifying in the production system except the mesh Block node except mark block node assesses the record of production for not meeting the preset requirement;
Receive the evaluation grade that the block node in the production system in addition to the target block node is sent, and root Comprehensive assessment grade is obtained according to all evaluation grades;
The target block node is handled according to the comprehensive assessment grade;The processing includes but is not limited to limit It makes the production permission of the target block node, terminate the production behavior of the target block node.
Specifically, if detecting the record for existing in the record of production and not meeting preset requirement, it is determined that the destination node Information, and block node into production system in addition to target block node send the record of production for not meeting preset requirement and Production assessment notice, to notify life of the block node to preset requirement is not met in production system in addition to target block node Record is produced to be assessed.After these nodes assess violation record, receives and remove target block node in production system Except block node send evaluation grade, and according to evaluation grade synthesis obtain to the record of production for not meeting preset requirement Comprehensive assessment grade, target block node is handled according to comprehensive assessment grade.
The processing carried out in the present embodiment to the target block node that unlawful practice occurs is to guarantee entirely to produce The block node that unlawful practice occurs is punished or abandoned to the normal operation of system.Wherein these processing include but is not limited to limit The production permission of target block node processed, the production behavior for terminating target block node.
S206: if the record of production meets the preset requirement, the record of production is synchronized in production system Except in other block nodes of the target block node.
The implementation of S103 is identical in S206 embodiment corresponding with Fig. 1 in the present embodiment, specifically refers to The associated description of S103 in the corresponding embodiment of Fig. 1, details are not described herein.
Above scheme, by the division of labor information for obtaining production procedure information and operator;Believed according to the production procedure The division of labor information of breath and the operator, determines the production permission of the corresponding block node of each operator;According to The corresponding block node of each operator, the production permission of the block node and the production procedure information architecture Production system based on block chain.Obtain the record of production of target block node in production system;Include in the record of production The Hash number that Hash calculation obtains is carried out to the information of the target block node and determines institute to number according to the Hash State the production procedure belonging to target block node, and detect the record of production whether meet in the production procedure it is pre- Set requirement;If the record of production meets the preset requirement, the record of production is synchronized in production system except described In other block nodes of target block node.By establishing the production system based on block chain, and each processing equipment is set It is set to block node, during the operation of block node, by detecting whether its record of production meets preset requirement, determining should Whether block node occurs unlawful practice, improves the success rate that unlawful practice is tracked in the block node of production system, guarantees Multinode in production system, multitask Collaboration.
It is a kind of schematic diagram for terminal device that the embodiment of the present invention three provides referring to Fig. 3, Fig. 3.What terminal device included Each unit is used to execute each step in the corresponding embodiment of FIG. 1 to FIG. 2.Referring specifically to the corresponding implementation of FIG. 1 to FIG. 2 Associated description in example.For ease of description, only the parts related to this embodiment are shown.The terminal device of the present embodiment 300 include:
Receiving unit 301, for obtaining the record of production of target block node in production system;It is wrapped in the record of production It includes and the Hash number that Hash calculation obtains is carried out to the information of the target block node, the Hash number is for indicating described Sequence of the target block node in affiliated production procedure;The record of production includes that the target block node was being run Creation data in journey;
Detection unit 302 determines the production stream belonging to the target block node for numbering according to the Hash Journey, and detect whether the record of production meets preset requirement in the production procedure;
The record of production is synchronized to by synchronization unit 303 if meeting the preset requirement for the record of production Except in other block nodes of the target block node in production system.
Further, the terminal device may include:
Acquiring unit, for obtaining the division of labor information of production procedure information and operator;
Permission determination unit determines every for the division of labor information according to the production procedure information and the operator The production permission of the corresponding block node of a operator;
System construction unit, for the life according to each operator corresponding block node, the block node Property right limit and the production system of the production procedure information architecture based on block chain.
Further, the detection unit 302 may include:
Process determination unit determines the production belonging to the target block node for numbering according to the Hash Process;
It is required that acquiring unit, for obtaining the preset requirement for being directed to the production procedure;
Detection unit is recorded, if meeting the preset requirement for the record of production, it is determined that the record of production is Normal recordings.
Further, the terminal device can also include:
Record check unit, if not meeting the preset requirement for the record of production, according to the preset requirement All records of production of the target block node are checked, the production note for not meeting the preset requirement all is obtained Record;
Notification unit is assessed, is sent for the block node into the production system in addition to the target block node The record of production for not meeting the preset requirement and production assessment notice;The production assessment notice is for notifying the life Block node in production system in addition to the target block node to the record of production for not meeting the preset requirement into Row assessment;
Comprehensive assessment unit, for receiving the block node hair in the production system in addition to the target block node The evaluation grade sent, and comprehensive assessment grade is obtained according to all evaluation grades;
Endpoint processing unit, for being handled according to the comprehensive assessment grade the target block node;It is described Processing includes but is not limited to the production permission for limiting the target block node, the production row for terminating the target block node For.
Further, the terminal device can also include:
Article acquiring unit, process recording and the production procedure for obtaining the production procedure are corresponding preset to be wanted It asks;
Whether violation detection unit detects in the process recording and deposits for the preset requirement according to the production procedure In the violation record for not meeting the preset requirement;
Recording, tracking unit, if being recorded for there are violation records in the process recording according to the violation It is tracked, determines and record relevant block node to the violation, and record relevant block section to the violation to described Point is handled.
Above scheme, by the division of labor information for obtaining production procedure information and operator;Believed according to the production procedure The division of labor information of breath and the operator, determines the production permission of the corresponding block node of each operator;According to The corresponding block node of each operator, the production permission of the block node and the production procedure information architecture Production system based on block chain.Obtain the record of production of target block node in production system;Include in the record of production The Hash number that Hash calculation obtains is carried out to the information of the target block node and determines institute to number according to the Hash State the production procedure belonging to target block node, and detect the record of production whether meet in the production procedure it is pre- Set requirement;If the record of production meets the preset requirement, the record of production is synchronized in production system except described In other block nodes of target block node.By establishing the production system based on block chain, and each processing equipment is set It is set to block node, during the operation of block node, by detecting whether its record of production meets preset requirement, determining should Whether block node occurs unlawful practice, improves the success rate that unlawful practice is tracked in the block node of production system, guarantees Multinode in production system, multitask Collaboration.
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.As shown in figure 4, the terminal of the embodiment is set Standby 4 include: processor 40, memory 41 and are stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 realizes the embodiment of the method for above-mentioned each character translation when executing the computer program 42 In step, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 40 executes the step in the meter embodiment, Such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 40 realizes above-mentioned each dress when executing the computer program 42 Set the function of each module/unit in embodiment, such as the function of unit 301 to 303 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.
The terminal device 4 can be the calculating such as desktop PC, notebook, palmtop computer and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, for example, terminal device 4 hard disk or deposit Reservoir.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as is equipped on the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card, FC) etc..Further, the memory 41 can also both include the inside of the terminal device 4 Storage unit also includes External memory equipment.The memory 41 is for storing the computer program and the terminal device Other required programs and data.The memory 41 can be also used for temporarily storing the number that has exported or will export According to.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load, reference can be made to the related descriptions of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of roduction track method based on block chain technology characterized by comprising
Obtain the record of production of target block node in production system;It include to the target block node in the record of production Information carry out Hash calculation obtain Hash number;The Hash number is for indicating the target block node affiliated Sequence in production procedure;
It is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect the production note Whether record meets preset requirement in the production procedure;
If the record of production meets the preset requirement, the record of production is synchronized in production system except the target In other block nodes of block node.
2. the roduction track method as described in claim 1 based on block chain technology, which is characterized in that acquisition production system In system before the record of production of target block node, further includes:
Obtain the division of labor information of production procedure information and operator;
According to the division of labor information of the production procedure information and the operator, the corresponding area of each operator is determined The production permission of block node;
According to the production permission and the production procedure of the corresponding block node of each operator, the block node Production system of the information architecture based on block chain.
3. the roduction track method as described in claim 1 based on block chain technology, which is characterized in that the record of production packet Include target block node creation data in the process of running and/or production procedure;It is described to be numbered according to the Hash, really The production procedure belonging to the fixed target block node, and detect whether the record of production accords in the production procedure Close preset requirement, comprising:
It is numbered according to the Hash, determines the production procedure belonging to the target block node;
Obtain the preset requirement for being directed to the production procedure;Include in the preset requirement preset creation data and/or Preset production procedure;
If the creation data in the record of production meets the preset creation data, and/or, the life in the record of production It produces process and meets the preset production procedure, then the record of production meets the preset requirement.
4. the roduction track method as claimed in claim 3 based on block chain technology, which is characterized in that described according to the Kazakhstan Uncommon number, determines the production procedure belonging to the target block node, and detect the record of production and flow in the production After whether meeting preset requirement in journey, further includes:
If the record of production does not meet the preset requirement, according to the preset institute required to the target block node There is the record of production to be checked, obtains the record of production for not meeting the preset requirement all;
Block node into the production system in addition to the target block node does not meet described preset want described in sending The record of production and production assessment notice asked;The production assessment notice is for notifying in the production system except the target area Block node except block node assesses the record of production for not meeting the preset requirement;
The evaluation grade that the block node in the production system in addition to the target block node is sent is received, and according to institute It is stated evaluation grade and obtains comprehensive assessment grade;
The target block node is handled according to the comprehensive assessment grade;The processing includes but is not limited to limitation institute It states the production permission of target block node, terminate the production behavior of the target block node.
5. the roduction track method according to any one of claims 1-4 based on block chain technology, which is characterized in that the side Method further include:
Obtain process recording and the corresponding preset requirement of the production procedure of the production procedure;
According to the preset requirement of the production procedure, detecting, which whether there is in the process recording, does not meet the preset requirement It records in violation of rules and regulations;
If there are violation records in the process recording, it is tracked according to violation record, it is determining to be disobeyed with described Rule record relevant block node, and record relevant block node to described to the violation and handle.
6. a kind of terminal device, which is characterized in that including memory and processor, being stored in the memory can be described The computer program run on processor, which is characterized in that when the processor executes the computer program, realize following step It is rapid:
Obtain the record of production of target block node in production system;It include to the target block node in the record of production Information carry out the Hash number that Hash calculation obtains, Hash number is for indicating the target block node affiliated Sequence in production procedure;
It is numbered according to the Hash, determines the production procedure belonging to the target block node, and detect the production note Whether record meets preset requirement in the production procedure;
If the record of production meets the preset requirement, the record of production is synchronized in production system except the target In other block nodes of block node.
7. terminal device as claimed in claim 6, which is characterized in that the life for obtaining target block node in production system It produces before recording, further includes:
Obtain the division of labor information of production procedure information and operator;
According to the division of labor information of the production procedure information and the operator, the corresponding area of each operator is determined The production permission of block node;
According to the production permission and the production procedure of the corresponding block node of each operator, the block node Production system of the information architecture based on block chain.
8. terminal device as claimed in claim 6, which is characterized in that the record of production includes the target block section Put creation data in the process of running and/or production procedure;It is described to be numbered according to the Hash, determine the target block section The production procedure belonging to point, and detect the record of production and whether meet preset requirement in the production procedure, comprising:
It is numbered according to the Hash, determines the production procedure belonging to the target block node;
Obtain the preset requirement for being directed to the production procedure;Include in the preset requirement preset creation data and/or Preset production procedure;
If the creation data in the record of production meets the preset creation data, and/or, the life in the record of production It produces process and meets the preset production procedure, then the record of production meets the preset requirement.
9. terminal device as claimed in claim 8, which is characterized in that it is described to be numbered according to the Hash, determine the target The production procedure belonging to block node, and detect whether the record of production meets preset requirement in the production procedure Later, further includes:
If the record of production does not meet the preset requirement, according to the preset institute required to the target block node There is the record of production to be checked, obtains the record of production for not meeting the preset requirement all;
Block node into the production system in addition to the target block node does not meet described preset want described in sending The record of production and production assessment notice asked;The production assessment notice is for notifying in the production system except the target area Block node except block node assesses the record of production for not meeting the preset requirement;
The evaluation grade that the block node in the production system in addition to the target block node is sent is received, and according to institute It is stated evaluation grade and obtains comprehensive assessment grade;
The target block node is handled according to the comprehensive assessment grade;The processing includes but is not limited to limitation institute It states the production permission of target block node, terminate the production behavior of the target block node.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201811214965.5A 2018-10-18 2018-10-18 Roduction track method and terminal device based on block chain technology Pending CN109492880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811214965.5A CN109492880A (en) 2018-10-18 2018-10-18 Roduction track method and terminal device based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811214965.5A CN109492880A (en) 2018-10-18 2018-10-18 Roduction track method and terminal device based on block chain technology

Publications (1)

Publication Number Publication Date
CN109492880A true CN109492880A (en) 2019-03-19

Family

ID=65691535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811214965.5A Pending CN109492880A (en) 2018-10-18 2018-10-18 Roduction track method and terminal device based on block chain technology

Country Status (1)

Country Link
CN (1) CN109492880A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090837A (en) * 2019-12-06 2020-05-01 上海科乐宜信息科技有限公司 Intelligent tracking method based on block chain technology
CN111125774A (en) * 2020-03-26 2020-05-08 杭州产链数字科技有限公司 Engineering safety supervision traceability system and method based on block chain intelligent contract
CN111325600A (en) * 2020-02-03 2020-06-23 深圳点链科技有限公司 Production, supply and marketing linkage platform, method and system and computer storage medium
CN111461914A (en) * 2020-03-31 2020-07-28 深圳点链科技有限公司 Order tracking verification and cancellation management method, system and storage medium
CN111476583A (en) * 2020-04-01 2020-07-31 深圳点链科技有限公司 Quality tracing system and method based on block chain and computer readable storage medium
CN111611607A (en) * 2020-05-23 2020-09-01 武汉市新洲三角塑料制品有限公司 Injection molding product production data management system and method based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608588A (en) * 2016-01-04 2016-05-25 布比(北京)网络技术有限公司 Tracing record processing method and apparatus
CN107122985A (en) * 2017-05-09 2017-09-01 广东工业大学 A kind of agricultural-product supply-chain traceability system based on Internet of Things and block chain
CN107274136A (en) * 2017-07-11 2017-10-20 西安工业大学 A kind of product is traced to the source information protecting method
CN108364181A (en) * 2018-01-08 2018-08-03 广州中国科学院计算机网络信息中心 Source tracing method and system based on block chain and Internet of Things mark
CN108520293A (en) * 2018-04-03 2018-09-11 中兴能源(天津)有限公司 A kind of product false proof source tracing method, device, server and storage medium
CN108629205A (en) * 2018-04-27 2018-10-09 中国联合网络通信集团有限公司 The monitoring and managing method and device of drug quality detection data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608588A (en) * 2016-01-04 2016-05-25 布比(北京)网络技术有限公司 Tracing record processing method and apparatus
CN107122985A (en) * 2017-05-09 2017-09-01 广东工业大学 A kind of agricultural-product supply-chain traceability system based on Internet of Things and block chain
CN107274136A (en) * 2017-07-11 2017-10-20 西安工业大学 A kind of product is traced to the source information protecting method
CN108364181A (en) * 2018-01-08 2018-08-03 广州中国科学院计算机网络信息中心 Source tracing method and system based on block chain and Internet of Things mark
CN108520293A (en) * 2018-04-03 2018-09-11 中兴能源(天津)有限公司 A kind of product false proof source tracing method, device, server and storage medium
CN108629205A (en) * 2018-04-27 2018-10-09 中国联合网络通信集团有限公司 The monitoring and managing method and device of drug quality detection data

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090837A (en) * 2019-12-06 2020-05-01 上海科乐宜信息科技有限公司 Intelligent tracking method based on block chain technology
CN111325600A (en) * 2020-02-03 2020-06-23 深圳点链科技有限公司 Production, supply and marketing linkage platform, method and system and computer storage medium
CN111125774A (en) * 2020-03-26 2020-05-08 杭州产链数字科技有限公司 Engineering safety supervision traceability system and method based on block chain intelligent contract
CN111461914A (en) * 2020-03-31 2020-07-28 深圳点链科技有限公司 Order tracking verification and cancellation management method, system and storage medium
WO2021197351A1 (en) * 2020-03-31 2021-10-07 深圳点链科技有限公司 Management method and system for tracking and verifying order, and storage medium
CN111476583A (en) * 2020-04-01 2020-07-31 深圳点链科技有限公司 Quality tracing system and method based on block chain and computer readable storage medium
WO2021197350A1 (en) * 2020-04-01 2021-10-07 深圳点链科技有限公司 Blockchain-based quality tracing system and method, and computer-readable storage medium
CN111476583B (en) * 2020-04-01 2021-11-30 深圳点链科技有限公司 Quality tracing system and method based on block chain and computer readable storage medium
CN111611607A (en) * 2020-05-23 2020-09-01 武汉市新洲三角塑料制品有限公司 Injection molding product production data management system and method based on block chain
CN111611607B (en) * 2020-05-23 2021-04-20 深圳市鑫宏扬包装制品有限公司 Injection molding product production data management system and method based on block chain

Similar Documents

Publication Publication Date Title
CN109492880A (en) Roduction track method and terminal device based on block chain technology
Mohanta et al. An overview of smart contract and use cases in blockchain technology
Arcenegui et al. Secure management of IoT devices based on blockchain non-fungible tokens and physical unclonable functions
CN109816532B (en) Asset digital anchoring system based on block chain technology
Akram et al. Blockchain enabled automatic reward system in solid waste management
Miao et al. Blockchain and AI-based natural gas industrial IoT system: architecture and design issues
Cui et al. Protecting vaccine safety: An improved, blockchain-based, storage-efficient scheme
Zhihong et al. Creativity in trusted data: research on application of blockchain in supply chain
CN110730074A (en) Implementation method and data structure of nested traceable digital twin body
CN116628757B (en) Spacecraft supply chain management method, equipment and storage medium based on block chain
CN109978556A (en) A kind of agricultural product retroactive method, device, electronic equipment and storage medium
Priya et al. Integration of AI, Blockchain, and IoT Technologies for Sustainable and Secured Indian Public Distribution System
CN114598707B (en) Alliance chain supervision system
CN110287254A (en) A kind of data trade method, apparatus and computer equipment based on alliance's chain
CN115687526A (en) Seismic data model sharing method based on block chain and federal learning
CN109359477A (en) A kind of data encryption, data verification method and its system
CN111953546B (en) Internet of things equipment management method based on block chain system and intelligent home system
CN114155000A (en) Traceable concrete quality management system based on block chain
CN112862648A (en) Block chain-based multi-department joint cooperation method, device, equipment and medium
CN111506929A (en) Product circulation identification method combined with block chain technology
CN108961058A (en) A method of multiple computer nodes for block chain
Sniatala et al. Decentralization of Data-source Using Blockchain-Based Brooks–Iyengar Fusion
CN108847944A (en) A kind of equipment for the offer block chain data in block chain
CN108924232A (en) A kind of distributed block chain network system
Bovenzi et al. Blockchain Performance in Industry 4.0: Drivers, use cases, and future directions

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