CN117812190A - Cloud printer data security protection method based on blockchain and related device - Google Patents

Cloud printer data security protection method based on blockchain and related device Download PDF

Info

Publication number
CN117812190A
CN117812190A CN202410228100.3A CN202410228100A CN117812190A CN 117812190 A CN117812190 A CN 117812190A CN 202410228100 A CN202410228100 A CN 202410228100A CN 117812190 A CN117812190 A CN 117812190A
Authority
CN
China
Prior art keywords
printer
verification
cloud
evaluated
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410228100.3A
Other languages
Chinese (zh)
Other versions
CN117812190B (en
Inventor
李晨晨
刘丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Xinye Electronic Technology Co Ltd
Original Assignee
Zhuhai Xinye Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Xinye Electronic Technology Co Ltd filed Critical Zhuhai Xinye Electronic Technology Co Ltd
Priority to CN202410228100.3A priority Critical patent/CN117812190B/en
Publication of CN117812190A publication Critical patent/CN117812190A/en
Application granted granted Critical
Publication of CN117812190B publication Critical patent/CN117812190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention provides a cloud printer data security protection method based on a blockchain and a related device, belonging to the technical field of printers. The method is applied to a blockchain network, the blockchain network comprises a cloud server and at least two cloud printers, the cloud server is used as a main node of the blockchain network, the cloud printers are used as secondary nodes of the blockchain network, the cloud server acquires printing task information, and the printing task information is subjected to preliminary verification to generate a printing task block and a first verification result; broadcasting the printing task block and the first verification result to each cloud printer by the cloud server; each cloud printer performs consensus verification on the print task block and the first verification result according to a preset consensus algorithm, generates a second verification result and returns the second verification result to the cloud server; the cloud server adds the print task block to the blockchain network according to the second verification result; each cloud printer obtains a blockstatus of the blockchain network from the blockchain network and prints the task blocks.

Description

Cloud printer data security protection method based on blockchain and related device
Technical Field
The invention relates to the technical field of printers, in particular to a cloud printer data security protection method based on a blockchain and a related device.
Background
In existing cloud printer systems, print job information uploaded by a user is typically transmitted to a cloud printer for printing through a cloud server. However, this data transmission has certain security problems.
First, data may be intercepted and tampered with by an attacker during transmission. Because the transmitted data is not protected by encryption, an attacker can steal or tamper with the printing task information in the transmission process, so that potential safety hazards are caused. Second, during transmission, data may be threatened by network hijacking or man-in-the-middle attacks. Network hijacking and man-in-the-middle attack are attack means for redirecting data traffic between two parties of communication. An attacker can masquerade as a cloud server or a cloud printer, steal or tamper with the transmitted print job information. Therefore, a method for protecting the data security of the cloud printer is needed.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a cloud printer data security protection method based on a blockchain and a related device, and aims to solve the problem that an attacker can disguise as a cloud server or a cloud printer in the related technology, steal or tamper with transmitted print task information, and further cause information leakage, so that the privacy of a user cannot be protected.
In a first aspect, an embodiment of the present invention provides a data security protection method for a blockchain-based cloud printer, applied to a blockchain network, where the blockchain network includes a cloud server and at least two cloud printers, where the cloud server is used as a primary node of the blockchain network, and the cloud printers are used as secondary nodes of the blockchain network, and the method includes:
the cloud server acquires printing task information uploaded by a user, performs preliminary verification on the printing task information, and generates a printing task block and a first verification result;
the cloud server broadcasts the print task block and the first verification result to each cloud printer;
each cloud printer performs consensus verification on the printing task block and the first verification result according to a preset consensus algorithm, generates a second verification result and returns the second verification result to the cloud server;
the cloud server adds the print task block to the blockchain network according to the second verification result;
each cloud printer obtains a blockstate of the blockchain network and the print job blocks from the blockchain network.
In a second aspect, an embodiment of the present invention provides a data security protection device for a blockchain-based cloud printer, including:
the first verification module is used for acquiring printing task information uploaded by a user by the cloud server, carrying out preliminary verification on the printing task information and generating a printing task block and a first verification result;
the data broadcasting module is used for broadcasting the printing task block and the first verification result to each cloud printer by the cloud server;
the second verification module is used for carrying out consensus verification on the printing task block and the first verification result by each cloud printer according to a preset consensus algorithm, generating a second verification result and returning the second verification result to the cloud server;
the data adding module is used for adding the printing task block to the blockchain network according to the second verification result by the cloud server;
and the data acquisition module is used for acquiring the block states of the block chain network and the printing task blocks from the block chain network by the cloud printers.
In a third aspect, an embodiment of the present invention further provides a cloud server, where the cloud server includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for implementing connection communication between the processor and the memory, where the computer program, when executed by the processor, implements the steps of any of the blockchain-based cloud printer data security protection methods as provided in the present specification.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores one or more programs, where the one or more programs are executable by one or more processors to implement the steps of any of the blockchain-based cloud printer data security protection methods as provided in the present specification.
The embodiment of the invention provides a data security protection method of a block chain-based cloud printer and a related device, wherein the method is applied to a block chain network, the block chain network comprises a cloud server and at least two cloud printers, the cloud server is used as a main node of the block chain network, and the cloud printers are used as secondary nodes of the block chain network, and the method comprises the following steps: the cloud server acquires printing task information uploaded by a user, performs preliminary verification on the printing task information, and generates a printing task block and a first verification result; broadcasting the printing task block and the first verification result to each cloud printer by the cloud server; each cloud printer performs consensus verification on the print task block and the first verification result according to a preset consensus algorithm, generates a second verification result and returns the second verification result to the cloud server; the cloud server adds the print task block to the blockchain network according to the second verification result; each cloud printer obtains a blockstatus of the blockchain network from the blockchain network and prints the task blocks. According to the method and the device, the printing task information is shared and stored among all cloud printers through the blockchain network, so that the consistency and reliability of the task information are guaranteed. The cloud server performs preliminary verification on the printing task information, so that invalid or risky tasks can be eliminated, and the safety and quality of the printing task are improved. And verifying the printing task block and the first verification result by using a preset consensus algorithm through each cloud printer, so as to ensure the accuracy and consistency of the printing task in the whole network. And the cloud server adds the printing task block into the blockchain network according to the second verification result, so that the non-tamper property of the task record is ensured, and the transparent and traceable printing task record can be provided. Therefore, the cloud printer can acquire the latest block state and the printing task block from the block chain network, and the consistency of the data and the state of each cloud printer is ensured. In general, the implementation of the steps can improve the reliability, safety and efficiency of the print job, and ensure the consistency and traceability of the job information. The problem that an attacker can disguise as a cloud server or a cloud printer in the related technology, steal or tamper with the transmitted printing task information, and further information leakage is caused, so that the privacy of a user cannot be protected is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data security protection method of a cloud printer based on a blockchain according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a block-chain-based cloud printer data security protection device according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a cloud server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The embodiment of the invention provides a cloud printer data security protection method based on a blockchain and a related device. The blockchain-based cloud printer data security protection method can be applied to a blockchain network, the blockchain network comprises a cloud server and at least two cloud printers, wherein the cloud server is used as a main node of the blockchain network, the cloud printers are used as secondary nodes of the blockchain network, and the cloud server can be electronic equipment such as a tablet personal computer, a notebook personal computer, a desktop personal computer, a personal digital assistant and wearable equipment. The cloud server can also be a server or a server cluster. The cloud printer may be a thermal printer, ticket printer, barcode printer, etc., which may be used in applications including, but not limited to, super business, catering (take-away), retail, logistics, etc.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart of a data security protection method for a cloud printer based on blockchain according to an embodiment of the present invention. The method includes steps S101 to S105.
The data security protection method of the block chain-based cloud printer is applied to a block chain network, the block chain network comprises a cloud server and at least two cloud printers, wherein the cloud server is used as a main node of the block chain network, the cloud printers are used as secondary nodes of the block chain network,
step S101, the cloud server acquires printing task information uploaded by a user, performs preliminary verification on the printing task information, and generates a printing task block and a first verification result.
Illustratively, a blockchain network is created. The cloud server will act as the master node for the blockchain network. The blockchain network may be selected as an existing blockchain platform and set up detailed configuration of the master node, such as consensus algorithms, network communication protocols, etc. Further, in the blockchain network, each time a new print job is generated, it is considered a new transaction. This transaction may contain print job information including, for example, a timestamp, user identification, print job identification, print file hash, etc. This information will be part of the transaction and recorded in the blockchain along with other transactions.
Illustratively, the user uploads print job information to the cloud server at the client or over a network. And the cloud server performs preliminary verification on the received printing task information. This may include verifying the integrity of the print job, correctness of the format, verification of user rights, etc. The preliminary verification may be implemented by verification logic written at the cloud server side. And once the print job information passes the preliminary verification, the cloud server can generate a print job block containing the job information. The block may contain data about the task, such as task ID, task content, commit time, etc. Meanwhile, the cloud server may also generate a first verification result to indicate that the task has passed the preliminary verification.
In some embodiments, the cloud server obtains print job information uploaded by a user, performs preliminary verification on the print job information, and before generating a print job block and a first verification result, further includes: and the cloud server receives a uplink request of an unknown cloud printer, performs uplink authentication on the unknown cloud printer, and takes the unknown cloud printer which passes the uplink authentication as a secondary node of the blockchain network.
Illustratively, the cloud server monitors and receives the uplink requests of unknown cloud printers by configuring the receiving ports of the server and processing the received requests. When the cloud server receives the request for the uplink, the request may be authenticated with digital certificate authentication, identity verification, etc., to ensure that the request is from a legitimate cloud printer. And the cloud server takes the unknown cloud printer passing the uplink authentication as a secondary node of the blockchain network, and further adds the node information of the cloud printer into the blockchain network.
Specifically, with the uplink authentication, only the authenticated cloud printer can join the blockchain network as a secondary node. The printer in the network can be ensured to be authenticated and trusted, and the security and the credibility of the network are improved. And by allowing unknown cloud printers to join the blockchain network, the size and capacity of the network can be extended. In this way, more printers can participate in the network, providing higher concurrent processing power and a wider range of services. In general, the safety, reliability and expansibility of the blockchain network can be enhanced by executing the steps, and the task processing efficiency and the robustness of the network are improved.
In some embodiments, the cloud server obtains print job information uploaded by a user, performs preliminary verification on the print job information, and generates a print job block and a first verification result, including: the cloud server obtains a plurality of pieces of information to be authenticated according to the print task information, and obtains corresponding key fragments from the secondary node according to the information to be authenticated; the cloud server recovers the verification key corresponding to the printing task information by utilizing a Lagrangian difference algorithm according to the key fragments to obtain a recovery state of the verification key; and the cloud server determines the first verification result and the print task block corresponding to the print task information according to the recovery state.
For example, according to the print job information, the cloud server may obtain the corresponding information to be authenticated from the secondary node according to a preset rule and logic. The information to be authenticated may be key fragments or other forms of data for subsequent verification key recovery. The cloud server obtains the corresponding key fragments from the secondary node. The key fragments may be pieces of data distributed among different secondary nodes, each key fragment containing a portion of the information of the authentication key. And the cloud server recovers the verification key corresponding to the print job information by using the Lagrange difference algorithm. The lagrangian difference algorithm can calculate the complete authentication key from the known partial key fragments. According to the adopted specific key distribution and recovery scheme, codes can be written to realize the Lagrange difference algorithm.
Illustratively, the cloud server determines its state based on the recovery of the validation key. The recovery state of the authentication key may be used to determine whether the complete authentication key was successfully recovered, including recovery success or recovery failure. If the key status is successful, the cloud server proceeds to the next step. If the key state is recovery failure, the cloud printer cannot execute the printing task information.
Illustratively, based on the recovery state of the verification key, the cloud server may determine a first verification result corresponding to the print job information and a generation condition of the print job block. These results may be determined based on business logic and task information, ensuring consistency with key verification. And when the recovery state is successful in recovery, the first verification result is successful in verification, and the printing task information is subjected to data splitting according to the number of cloud printers related to the verification key and the functions corresponding to the cloud printers, so that the corresponding printing task blocks are obtained. The print job tile may include the content of the print job, sender, receiver, timestamp, and other related metadata.
When logic and algorithm of the cloud server are required to be written in the steps, interaction and storage mechanisms of data are required to be defined, and correctness and consistency of key recovery and verification are ensured. Meanwhile, proper adjustment and optimization are required according to specific scenes and requirements.
Step S102, broadcasting the print task block and the first verification result to each cloud printer by the cloud server.
Illustratively, after obtaining the print job tile and the first validation result, the cloud server needs to establish a communication channel with the associated cloud printer in order to broadcast the data to them. This may be achieved by using appropriate communication protocols and network connections, such as HTTP or WebSocket. And the cloud server sends the print job block and the first verification result to the associated cloud printer through broadcasting.
Optionally, a suitable communication protocol (such as HTTP or WebSocket) is selected and a network connection is configured to ensure effective communication between the cloud server and the cloud printer, which is not specifically limited in this application, and the user can define the communication protocol according to the needs.
Illustratively, the data format of the print job tile and the first verification result, and the manner of transmission of the data. JSON, XML or other format may be used alternatively and may be encrypted or compressed as required. The application is not particularly limited, and the user can define the application according to the requirement.
Illustratively, a broadcast mechanism is determined, such as in a publish-subscribe mode or point-to-point communication. Ensuring that the cloud server is able to coordinate sending data to the associated cloud printer and handle possible error and retry mechanisms.
Specifically, implementing the above steps requires establishing a communication channel with the cloud printer, defining the format and transmission manner of the data, and determining the broadcasting mechanism and coordination. This will ensure that the print job tile and the first validation result can be effectively delivered to the associated cloud printer.
And step S103, each cloud printer performs consensus verification on the print task block and the first verification result according to a preset consensus algorithm, generates a second verification result and returns the second verification result to the cloud server.
Illustratively, the cloud printer is divided into a current verification node and a statistics node responsible for counting the number of tickets to realize the functions of consensus verification and counting the number of tickets. Each cloud printer can be used as one of the current verification nodes, and the common identification verification is carried out after the broadcast printing task block and the first verification result are received. The verification node verifies the printing task block and the first verification result according to a preset consensus algorithm, and ensures consistency and correctness of the printing task block and the first verification result. In addition to the current verification node, some cloud printers may be designated as the statistical node responsible for counting tickets. The responsibility of the statistical node is to collect the verification results of the current verification node, and to perform statistics and calculation on the verification results to generate a second verification result.
Alternatively, the preset consensus algorithm may be Proof of Work (PoW), proof of equity (PoS), and so on. The application is not particularly limited, and the user can set the device according to the requirements.
Illustratively, the cloud server broadcasts the print job tile and the first validation result to an associated cloud printer, including a current validation node and a statistics node. And after receiving the broadcast, the current verification node performs consensus verification on the print task block and the first verification result according to a preset consensus algorithm. The current verification node sends the verification result to the designated statistical node. And the statistical node collects the verification results of all the current verification nodes, performs statistics and calculation according to the rule of the consensus algorithm, and generates a second verification result. And the statistical node returns the generated second verification result to the cloud server. For example, suppose there are 3 cloud printers, cloud printer a, cloud printer B, and cloud printer C, respectively. Wherein cloud printer a and cloud printer B are designated as current verification nodes, and cloud printer C is designated as a statistics node. In this example, the cloud server broadcasts the print job tile and the first validation result to cloud printer a, cloud printer B, and cloud printer C. The cloud printer A and the cloud printer B are current verification nodes, and perform consensus verification on the print task block and the first verification result according to a preset consensus algorithm. And after receiving the broadcast, the cloud printer A and the cloud printer B respectively perform consensus verification. And verifying the print job block and the first verification result according to a preset consensus algorithm. It is assumed that both the cloud printer a and the cloud printer B pass the authentication, and generate own authentication results. Next, the cloud printer a transmits its own authentication result to the cloud printer C as one input of the statistical node. Meanwhile, the cloud printer B also sends the verification result of the cloud printer B to the cloud printer C as another input of the statistical node. And the cloud printer C is used as a statistical node and is responsible for collecting the verification results of all the current verification nodes and carrying out statistics and calculation according to rules of a consensus algorithm. In this example, cloud printer C would receive both verification results for cloud printer a and cloud printer B. And the cloud printer C performs statistics and calculation on the two verification results according to the consensus algorithm rule to generate a second verification result. And finally, the cloud printer C returns the generated second verification result to the cloud server.
In this way, the current verification nodes are responsible for performing consensus verification, and each current verification node is guaranteed to agree on the consistency of the task block and the first verification result. The statistical node is responsible for collecting the verification result of the current verification node, carrying out statistics and calculation according to rules of the consensus algorithm, generating a final second verification result, and then returning the second verification result to the cloud server. Therefore, the workload of the cloud server can be shared, and the fault tolerance and performance of the whole system are improved.
In some embodiments, after the cloud server adds the print job tile to the blockchain network according to the second verification result, the cloud server further includes: the cloud server generates and broadcasts a node evaluation message to each cloud printer; the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer; and the cloud server determines a target cloud printer according to the evaluation result of each cloud printer, and removes the target cloud printer from the blockchain network.
Illustratively, the cloud server generates node assessment messages and sends the messages to associated cloud printers using a broadcast manner so that the cloud printers can understand and process print job tiles in accordance with the node assessment messages. The cloud server and each cloud printer need to jointly implement a preset node evaluation algorithm, and the algorithm is used for evaluating each cloud printer. The algorithm may be designed according to specific needs and scenarios, and take into account factors such as printer performance, reliability, etc. The evaluation result should be based on some predefined criteria and criteria, such as processing speed, availability, quality of service, etc. And the cloud server and each cloud printer perform consensus evaluation on each cloud printer according to the node evaluation algorithm. This may determine the target cloud printer by comparing the respective evaluation results. Consensus evaluations may be determined based on a majority rule (e.g., the evaluation of most printers is consistent) or other consensus mechanism (e.g., weighted evaluation). Once the target cloud printer is determined, the cloud server removes the printer from the blockchain network. The removal operation may involve an update of the blockchain protocol and a modification of the participant list. The target cloud printer is used to characterize cloud printers that do not meet preset thresholds for predefined metrics and criteria, such as processing speed, availability, quality of service, etc.
In some embodiments, the performing, by the cloud server and each cloud printer, consensus evaluation on any one of the cloud printers according to a preset node evaluation algorithm, to obtain an evaluation result of each cloud printer, including: determining printers to be evaluated from the cloud printers, and obtaining a history verification result corresponding to the printers to be evaluated; calculating the verification accuracy of the printer to be evaluated according to the history verification result, and obtaining the corresponding verification rate of the printer to be evaluated; determining a basic score corresponding to the printer to be evaluated according to the verification rate, and determining a continuous verification correct rewarding score, a verification error history punishment score and a continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result; determining an evaluation result corresponding to the printer to be evaluated according to the basic score, the continuous verification correct rewarding score, the verification error history punishment score and the continuous verification error punishment score; and calculating an evaluation result corresponding to the printer to be evaluated according to the following formula:
representing an ith place in the cloud printerThe corresponding evaluation result of the printer to be evaluated, < > >Representing the basic score, the +_for the printer to be evaluated>Indicating the correct bonus points and the +_s of the continuous verification corresponding to the printer to be evaluated>Representing the check error history penalty corresponding to the printer to be evaluated, and +.>And representing the continuous check error punishment corresponding to the printer to be evaluated.
For example, since all cloud printers need to perform consensus evaluation, the cloud printer currently performing evaluation may be randomly selected from among the cloud printers and determined as the printer to be evaluated. And further, aiming at the printer to be evaluated, obtaining and acquiring a historical verification result by inquiring a related database or blockchain. And calculating the verification accuracy rate of the printer to be evaluated according to the historical verification result of the printer to be evaluated. The verification accuracy can be obtained by calculating the ratio of the number of correct verifications to the total number of verifications.
Illustratively, a preset value is set, and the product calculation is performed on the preset value and the calculated verification accuracy, so that the calculation result is determined as a basic score of the printer to be evaluated.
For example, a record of continuous correct verification is obtained from the historical verification result of the printer to be evaluated, and different bonus points can be given according to the number or length of continuous correct verification. Wherein the bonus points may be calculated based on the number, length, and bonus mechanism of consecutive correct checks.
Illustratively, a history of verification errors is obtained from the history verification results of the printer under evaluation, and a corresponding penalty score is given. The penalty score may be calculated based on the number of error checks and the penalty mechanism.
For example, a record of continuous check errors is obtained from the historical check result of the printer to be evaluated, and different penalty scores can be given according to the number or length of the continuous check errors. Wherein the penalty score may be calculated based on the number, length, and penalty mechanism of the successive check errors.
Illustratively, the final evaluation result is determined according to the basic score, the continuous verification correct rewards score, the verification error history penalty score and the continuous verification error penalty score of the printer to be evaluated. The evaluation result may be represented using a weighted score, integral, or other evaluation index.
Illustratively, the evaluation results corresponding to the printer to be evaluated are calculated according to the following formula:
representing the evaluation result corresponding to the ith printer to be evaluated in the cloud printer, and allowing the user to perform +.>Basic score indicating the printer to be evaluated, +.>Indicating that the corresponding consecutive check of the printer to be evaluated is correct bonus points,/or->Indicating the corresponding check error history penalty of the printer to be evaluated, < - >And representing the continuous check error punishment corresponding to the printer to be evaluated.
Specifically, a historical verification result is obtained, verification accuracy is calculated, then basic points, continuous verification correct rewards points, verification error historical punishment points and continuous verification error punishment points are determined, and finally an evaluation result of the printer to be evaluated is determined. This will provide basis for further evaluation and management of the cloud printer.
In some embodiments, the calculating the verification accuracy of the printer to be evaluated according to the historical verification result to obtain the verification rate corresponding to the printer to be evaluated includes: obtaining the latest transaction serial number and the first transaction serial number corresponding to the printer to be evaluated for common identification verification from the history verification result; obtaining error data quantity of the consensus check errors in the participation process of the printer to be evaluated in the consensus check from the history check result; obtaining the verification rate corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the error data quantity;
wherein the verification ratio is obtained according to the following formula:
representing the verification rate corresponding to the ith printer to be evaluated in the cloud printer; / >Representing the latest transaction serial number corresponding to the printer to be evaluated; />Representing the first transaction serial number corresponding to the printer to be evaluated; n represents the error data amount.
Illustratively, the latest transaction serial number and the first transaction serial number of the printer to be evaluated participating in the consensus verification process are obtained from the history verification result. These serial numbers record the extent of transactions that the printer participates in during the consensus process. And obtaining the error data quantity found by the printer to be evaluated in the common identification verification process from the history verification result. The error data amount indicates the amount of error data found by the printer in the consensus process. And calculating the verification rate of the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the error data quantity. The verification rate may be calculated by using the following formula:
representing the verification rate corresponding to the ith printer to be evaluated in the cloud printer; />Representing the latest transaction serial number corresponding to the printer to be evaluated; />Representing a first transaction serial number corresponding to the printer to be evaluated; n represents the amount of erroneous data.
Wherein, the record mode of the history check result: it is ensured that the history verification result contains enough information so that the latest transaction sequence number, the first transaction sequence number and the error data amount can be acquired. The default addition of one in the denominator is to process the abnormal condition that the denominator is zero, and the condition that the denominator is zero is avoided when the verification rate is calculated. This may occur when the first transaction sequence number and the last transaction sequence number are equal, requiring corresponding processing.
Specifically, it is necessary to acquire the latest transaction sequence number and the first transaction sequence number from the history verification result, and the error data amount of the consensus verification error, and then calculate the verification rate of the printer to be evaluated based on these information. This will provide an indicator for further evaluation and management of the verification accuracy of the printer.
In some embodiments, the determining the basic score corresponding to the printer to be evaluated according to the verification rate, and determining the continuous verification correct reward score, the verification error history punishment score and the continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result includes: determining a penalty coefficient, correcting the verification rate according to the penalty coefficient, and obtaining the basic score corresponding to the printer to be evaluated; determining the continuous verification correct rewards corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the penalty coefficient; obtaining an error transaction sequence number of a consensus check error in the process of participating in the consensus check of the printer to be evaluated according to the history check result, and further determining the check error history punishment score according to the latest transaction sequence number, the first transaction sequence number, the error transaction sequence number and the punishment coefficient; and calculating an adjacent difference value according to the error transaction sequence number to obtain an adjacent transaction sequence number, and determining the continuous check error penalty according to the adjacent transaction sequence number.
Illustratively, a penalty coefficient is set according to the requirement of a user, and then the penalty coefficient and the verification rate are multiplied, so that the multiplication result is determined as a basic score corresponding to the printer to be evaluated.
Illustratively, the successive check correct bonus points are calculated according to the following formula:
representing the verification rate of continuous verification correct rewards corresponding to the printer to be evaluated; />Representing the latest transaction serial number corresponding to the printer to be evaluated; />Indicating the first transaction number corresponding to the printer to be evaluated,/->And representing the basic score corresponding to the printer to be evaluated.
Illustratively, the check error history penalty is calculated according to the following formula:
indicating the corresponding check error history penalty of the printer to be evaluated, < ->Representing the latest transaction serial number corresponding to the printer to be evaluated; />Indicating the first transaction number corresponding to the printer to be evaluated,/->And (3) representing that the verification error corresponding to the printer to be evaluated is the transaction serial number of the E time, and m represents the number of times of the verification error.
Illustratively, the adjacent difference value is calculated according to the error transaction sequence number to obtain the adjacent transaction sequence number, and then the continuous check error penalty score is determined by using the adjacent transaction sequence number in combination with the following formula:
representing continuous check error punishment corresponding to the printer to be evaluated; / >Representing the latest transaction serial number corresponding to the printer to be evaluated; />Indicating the first transaction number corresponding to the printer to be evaluated,/->The basic score corresponding to the printer to be evaluated is represented, pi represents 3.14, and ch represents the adjacent transaction serial number.
Step S104, the cloud server adds the printing task block to the blockchain network according to the second verification result.
Illustratively, the second verification result is obtained from the cloud server. The second verification result refers to a process of verifying the print job to ensure the integrity and accuracy of the job. The print job blocks are packaged into blockchain transactions. Blockchain transactions are the fundamental units of data transmission and interaction over a blockchain network. The created blockchain transaction is broadcast to nodes in the blockchain network. By broadcasting, a print job tile is added to the blockchain network, letting other nodes know the tile. Once the transaction is validated by consensus, print job tiles are added to the chain of blockchains. In this way, print job tiles will be permanently stored in the blockchain network, and not tampered with and deleted.
Step S105, each cloud printer obtains a tile status of the blockchain network and the print job tile from the blockchain network.
Illustratively, the cloud printer needs to connect to the blockchain network in order to be able to communicate and interact with other nodes in the network. The connection may be achieved by using the node address of the blockchain network and corresponding authentication information. By communicating with nodes in the blockchain network, the cloud printer may obtain the latest blockchain state. The blockchain state includes the current state of the entire blockchain network, including up-to-date blocks, nodes in the network, and the like. The cloud printer obtains a particular print job tile from the blockchain network. This can be achieved by specifying relevant information for the print job (e.g., job ID, sender, receiver, etc.). Once the cloud printer acquires the print job tile, the cloud printer needs to parse the data in the tile and verify it. Verification may include ensuring validity, integrity of the tile, consistency of the data in the tile with the original print job, and so forth. According to the data in the print job block, the cloud printer can perform corresponding operations, such as execution of the print job, update of the job status, and the like.
Illustratively, the cloud printer obtains the blockchain status and print job tile from the blockchain network, needs to connect to the blockchain network, and communicates with nodes in the network. Then, the cloud printer can acquire the tile status of the blockchain network and acquire specific print job tiles as needed. Finally, the cloud printer can parse and verify the print job block and execute the corresponding operation. In this way, the cloud printer can acquire information from the blockchain and perform corresponding print job processing.
Referring to fig. 2, a block-chain-based cloud printer data security protection device 200 provided in the embodiments of the present application is provided, where the block-chain-based cloud printer data security protection device 200 includes a first verification module 201, a data broadcasting module 202, a second verification module 203, a data adding module 204, and a data obtaining module 205, where the first verification module 201 is configured to obtain print job information uploaded by a user by a cloud server, perform preliminary verification on the print job information, and generate a print job block and a first verification result; a data broadcasting module 202, configured to broadcast the print job block and the first verification result to each cloud printer by using the cloud server; the second verification module 203 is configured to perform consensus verification on the print job block and the first verification result by using each cloud printer according to a preset consensus algorithm, generate a second verification result, and return the second verification result to the cloud server; a data adding module 204, configured to add the print job block to the blockchain network according to the second verification result by the cloud server; and the data acquisition module 205 is configured to acquire, from the blockchain network, a blockstate of the blockchain network and the print job blocks by using the cloud printers.
In some embodiments, the first verification module 201 further performs, in the process before the cloud server obtains the print job information uploaded by the user, performs preliminary verification on the print job information, and generates the print job block and the first verification result:
and the cloud server receives a uplink request of an unknown cloud printer, performs uplink authentication on the unknown cloud printer, and takes the unknown cloud printer which passes the uplink authentication as a secondary node of the blockchain network.
In some embodiments, the first verification module 201 obtains the print job information uploaded by the user at the cloud server, performs preliminary verification on the print job information, and performs:
the cloud server obtains a plurality of pieces of information to be authenticated according to the print task information, and obtains corresponding key fragments from the secondary node according to the information to be authenticated;
the cloud server recovers the verification key corresponding to the printing task information by utilizing a Lagrangian difference algorithm according to the key fragments to obtain a recovery state of the verification key;
and the cloud server determines the first verification result and the print task block corresponding to the print task information according to the recovery state.
In some embodiments, the data adding module 204 further performs, after the cloud server adds the print job tile to the blockchain network according to the second verification result:
the cloud server generates and broadcasts a node evaluation message to each cloud printer;
the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer;
and the cloud server determines a target cloud printer according to the evaluation result of each cloud printer, and removes the target cloud printer from the blockchain network.
In some embodiments, the data adding module 204 performs, in the process of performing consensus evaluation on any one of the cloud printers by the cloud server and each of the cloud printers according to a preset node evaluation algorithm to obtain an evaluation result of each of the cloud printers, the following steps:
determining printers to be evaluated from the cloud printers, and obtaining a history verification result corresponding to the printers to be evaluated;
calculating the verification accuracy of the printer to be evaluated according to the history verification result, and obtaining the corresponding verification rate of the printer to be evaluated;
Determining a basic score corresponding to the printer to be evaluated according to the verification rate, and determining a continuous verification correct rewarding score, a verification error history punishment score and a continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result;
determining an evaluation result corresponding to the printer to be evaluated according to the basic score, the continuous verification correct rewarding score, the verification error history punishment score and the continuous verification error punishment score;
and calculating an evaluation result corresponding to the printer to be evaluated according to the following formula:
;
representing an evaluation result corresponding to an ith printer to be evaluated in the cloud printer, < >>Representing the basic score, the +_for the printer to be evaluated>Indicating the correct bonus points and the +_s of the continuous verification corresponding to the printer to be evaluated>Representing the check error history penalty corresponding to the printer to be evaluated, and +.>And representing the continuous check error punishment corresponding to the printer to be evaluated.
In some embodiments, the data adding module 204 performs, in the process of calculating the verification accuracy of the to-be-evaluated printer according to the historical verification result to obtain the verification rate corresponding to the to-be-evaluated printer, the following steps:
Obtaining the latest transaction serial number and the first transaction serial number corresponding to the printer to be evaluated for common identification verification from the history verification result;
obtaining error data quantity of the consensus check errors in the participation process of the printer to be evaluated in the consensus check from the history check result;
obtaining the verification rate corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the error data quantity;
wherein the verification ratio is obtained according to the following formula:
;
representing the verification rate corresponding to the ith printer to be evaluated in the cloud printer; />Representing the latest transaction serial number corresponding to the printer to be evaluated; />Representing the first transaction serial number corresponding to the printer to be evaluated; n represents the error data amount.
In some embodiments, the data adding module 204 performs, in the determining the base score corresponding to the printer to be evaluated according to the verification rate, and determining the continuous verification correct reward score, the verification error history punishment score, and the continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result:
determining a penalty coefficient, correcting the verification rate according to the penalty coefficient, and obtaining the basic score corresponding to the printer to be evaluated;
Determining the continuous verification correct rewards corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the penalty coefficient;
obtaining an error transaction sequence number of a consensus check error in the process of participating in the consensus check of the printer to be evaluated according to the history check result, and further determining the check error history punishment score according to the latest transaction sequence number, the first transaction sequence number, the error transaction sequence number and the punishment coefficient;
and calculating an adjacent difference value according to the error transaction sequence number to obtain an adjacent transaction sequence number, and determining the continuous check error penalty according to the adjacent transaction sequence number.
In some embodiments, the blockchain-based cloud printer data security protection device 200 may be applied to a blockchain network.
It should be noted that, for convenience and brevity of description, the specific working process of the above-described blockchain-based cloud printer data security protection device 200 may refer to the corresponding process in the foregoing blockchain-based cloud printer data security protection method embodiment, and will not be described herein.
Referring to fig. 3, fig. 3 is a schematic block diagram of a cloud server according to an embodiment of the present invention.
As shown in fig. 3, the cloud server 300 includes a processor 301 and a memory 302, and the processor 301 and the memory 302 are connected by a bus 303, such as an I2C (Inter-integrated Circuit) bus.
In particular, the processor 301 is used to provide computing and control capabilities, supporting the operation of the entire cloud server. The processor 301 may be a central processing unit (Central Processing Unit, CPU), the processor 301 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 302 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is merely a block diagram of a portion of the structure associated with an embodiment of the present invention and is not limiting of the cloud server to which an embodiment of the present invention is applied, and that a particular server may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The processor is used for running a computer program stored in the memory, and implementing any one of the data security protection methods of the block chain-based cloud printer provided by the embodiment of the invention when the computer program is executed.
In an embodiment, the processor is configured to run a computer program stored in a memory and to implement the following steps when executing the computer program:
the cloud server acquires printing task information uploaded by a user, performs preliminary verification on the printing task information, and generates a printing task block and a first verification result;
the cloud server broadcasts the print task block and the first verification result to each cloud printer;
each cloud printer performs consensus verification on the printing task block and the first verification result according to a preset consensus algorithm, generates a second verification result and returns the second verification result to the cloud server;
the cloud server adds the print task block to the blockchain network according to the second verification result;
each cloud printer obtains a blockstate of the blockchain network and the print job blocks from the blockchain network.
In some embodiments, the processor 301 obtains the print job information uploaded by the user, performs preliminary verification on the print job information, and further performs, in the process before generating the print job block and the first verification result:
and the cloud server receives a uplink request of an unknown cloud printer, performs uplink authentication on the unknown cloud printer, and takes the unknown cloud printer which passes the uplink authentication as a secondary node of the blockchain network.
In some embodiments, the processor 301 obtains the print job information uploaded by the user, performs preliminary verification on the print job information, and performs:
the cloud server obtains a plurality of pieces of information to be authenticated according to the print task information, and obtains corresponding key fragments from the secondary node according to the information to be authenticated;
the cloud server recovers the verification key corresponding to the printing task information by utilizing a Lagrangian difference algorithm according to the key fragments to obtain a recovery state of the verification key;
and the cloud server determines the first verification result and the print task block corresponding to the print task information according to the recovery state.
In some embodiments, the processor 301 further performs, in a process after adding the print job tile to the blockchain network according to the second verification result:
the cloud server generates and broadcasts a node evaluation message to each cloud printer;
the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer;
and the cloud server determines a target cloud printer according to the evaluation result of each cloud printer, and removes the target cloud printer from the blockchain network.
In some embodiments, the processor 301 and each cloud printer perform consensus evaluation on any one of the cloud printers according to a preset node evaluation algorithm, and execute, in the process of obtaining an evaluation result of each cloud printer:
determining printers to be evaluated from the cloud printers, and obtaining a history verification result corresponding to the printers to be evaluated;
calculating the verification accuracy of the printer to be evaluated according to the history verification result, and obtaining the corresponding verification rate of the printer to be evaluated;
Determining a basic score corresponding to the printer to be evaluated according to the verification rate, and determining a continuous verification correct rewarding score, a verification error history punishment score and a continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result;
determining an evaluation result corresponding to the printer to be evaluated according to the basic score, the continuous verification correct rewarding score, the verification error history punishment score and the continuous verification error punishment score;
and calculating an evaluation result corresponding to the printer to be evaluated according to the following formula:
;/>
representing an evaluation result corresponding to an ith printer to be evaluated in the cloud printer, < >>Representing the basic score, the +_for the printer to be evaluated>Indicating the correct bonus points and the +_s of the continuous verification corresponding to the printer to be evaluated>Representing the check error history penalty corresponding to the printer to be evaluated, and +.>And representing the continuous check error punishment corresponding to the printer to be evaluated.
In some embodiments, the processor 301 performs verification accuracy calculation on the to-be-evaluated printer according to the historical verification result, and in the process of obtaining the verification rate corresponding to the to-be-evaluated printer, performs:
Obtaining the latest transaction serial number and the first transaction serial number corresponding to the printer to be evaluated for common identification verification from the history verification result;
obtaining error data quantity of the consensus check errors in the participation process of the printer to be evaluated in the consensus check from the history check result;
obtaining the verification rate corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the error data quantity;
wherein the verification ratio is obtained according to the following formula:
;
representing the verification rate corresponding to the ith printer to be evaluated in the cloud printer; />Representing the latest transaction serial number corresponding to the printer to be evaluated; />Representing the first transaction serial number corresponding to the printer to be evaluated; n represents the error data amount.
In some embodiments, in the determining, by the processor 301, the base score corresponding to the printer to be evaluated according to the verification ratio, and determining, by the processor, the continuous verification correct reward score, the continuous verification error history penalty score, and the continuous verification error penalty score corresponding to the printer to be evaluated according to the history verification result, the steps of:
determining a penalty coefficient, correcting the verification rate according to the penalty coefficient, and obtaining the basic score corresponding to the printer to be evaluated;
Determining the continuous verification correct rewards corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the penalty coefficient;
obtaining an error transaction sequence number of a consensus check error in the process of participating in the consensus check of the printer to be evaluated according to the history check result, and further determining the check error history punishment score according to the latest transaction sequence number, the first transaction sequence number, the error transaction sequence number and the punishment coefficient;
and calculating an adjacent difference value according to the error transaction sequence number to obtain an adjacent transaction sequence number, and determining the continuous check error penalty according to the adjacent transaction sequence number.
It should be noted that, for convenience and brevity of description, a person skilled in the art can clearly understand that, in the specific working process of the cloud server described above, reference may be made to a corresponding process in the foregoing embodiment of the blockchain-based cloud printer data security protection method, which is not described herein again.
Embodiments of the present invention also provide a storage medium for computer readable storage, where the storage medium stores one or more programs, where the one or more programs are executable by one or more processors to implement the steps of any blockchain-based cloud printer data security protection method as provided in the embodiments of the present invention.
The storage medium may be an internal storage unit of the cloud server according to the foregoing embodiment, for example, a hard disk or a memory of the cloud server. The storage medium may also be an external storage device of the cloud server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the cloud server.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware embodiment, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
It should be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. The utility model provides a cloud printer data security protection method based on blockchain, is applied to the blockchain network, the blockchain network includes a cloud server and at least two cloud printers, wherein, the cloud server is as the master node of blockchain network, the cloud printer is as the secondary node of blockchain network, characterized in that includes:
the cloud server acquires printing task information uploaded by a user, performs preliminary verification on the printing task information, and generates a printing task block and a first verification result;
the cloud server broadcasts the print task block and the first verification result to each cloud printer;
each cloud printer performs consensus verification on the printing task block and the first verification result according to a preset consensus algorithm, generates a second verification result and returns the second verification result to the cloud server;
the cloud server adds the print task block to the blockchain network according to the second verification result;
each cloud printer acquires a block state of the blockchain network from the blockchain network and the print task block;
The cloud server adds the print task block to the blockchain network according to the second verification result, and then further comprises:
the cloud server generates and broadcasts a node evaluation message to each cloud printer;
the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer;
the cloud server determines a target cloud printer according to the evaluation result of each cloud printer, and removes the target cloud printer from the blockchain network;
the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer, and the method comprises the following steps:
determining printers to be evaluated from the cloud printers, and obtaining a history verification result corresponding to the printers to be evaluated;
calculating the verification accuracy of the printer to be evaluated according to the history verification result, and obtaining the corresponding verification rate of the printer to be evaluated;
determining a basic score corresponding to the printer to be evaluated according to the verification rate, and determining a continuous verification correct rewarding score, a verification error history punishment score and a continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result;
Determining an evaluation result corresponding to the printer to be evaluated according to the basic score, the continuous verification correct rewarding score, the verification error history punishment score and the continuous verification error punishment score;
and calculating an evaluation result corresponding to the printer to be evaluated according to the following formula:
representing an evaluation result corresponding to an ith printer to be evaluated in the cloud printer, < >>Representing the basic score, the +_for the printer to be evaluated>Indicating the correct bonus points and the +_s of the continuous verification corresponding to the printer to be evaluated>Representing the check error history penalty corresponding to the printer to be evaluated, and +.>And representing the continuous check error punishment corresponding to the printer to be evaluated.
2. The blockchain-based cloud printer data security protection method of claim 1, wherein the cloud server obtains print job information uploaded by a user, performs preliminary verification on the print job information, and further comprises, before generating a print job block and a first verification result:
and the cloud server receives a uplink request of an unknown cloud printer, performs uplink authentication on the unknown cloud printer, and takes the unknown cloud printer which passes the uplink authentication as a secondary node of the blockchain network.
3. The blockchain-based cloud printer data security protection method of claim 1, wherein the cloud server obtains print job information uploaded by a user, performs preliminary verification on the print job information, and generates a print job block and a first verification result, comprising:
the cloud server obtains a plurality of pieces of information to be authenticated according to the print task information, and obtains corresponding key fragments from the secondary node according to the information to be authenticated;
the cloud server recovers the verification key corresponding to the printing task information by utilizing a Lagrangian difference algorithm according to the key fragments to obtain a recovery state of the verification key;
and the cloud server determines the first verification result and the print task block corresponding to the print task information according to the recovery state.
4. The blockchain-based cloud printer data security protection method of claim 1, wherein the calculating the verification accuracy of the printer to be evaluated according to the historical verification result to obtain the corresponding verification rate of the printer to be evaluated comprises:
obtaining the latest transaction serial number and the first transaction serial number corresponding to the printer to be evaluated for common identification verification from the history verification result;
Obtaining error data quantity of the consensus check errors in the participation process of the printer to be evaluated in the consensus check from the history check result;
obtaining the verification rate corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the error data quantity;
wherein the verification ratio is obtained according to the following formula:
representing the verification rate corresponding to the ith printer to be evaluated in the cloud printer; />Representing the latest transaction serial number corresponding to the printer to be evaluated; />Representing the first transaction serial number corresponding to the printer to be evaluated; n represents the error data amount.
5. The blockchain-based cloud printer data security protection method of claim 4, wherein the determining the base score corresponding to the printer to be evaluated according to the verification rate, and determining the continuous verification correct reward score, the verification error history penalty score and the continuous verification error penalty score corresponding to the printer to be evaluated according to the history verification result comprises:
determining a penalty coefficient, correcting the verification rate according to the penalty coefficient, and obtaining the basic score corresponding to the printer to be evaluated;
Determining the continuous verification correct rewards corresponding to the printer to be evaluated according to the latest transaction sequence number, the first transaction sequence number and the penalty coefficient;
obtaining an error transaction sequence number of a consensus check error in the process of participating in the consensus check of the printer to be evaluated according to the history check result, and further determining the check error history punishment score according to the latest transaction sequence number, the first transaction sequence number, the error transaction sequence number and the punishment coefficient;
and calculating an adjacent difference value according to the error transaction sequence number to obtain an adjacent transaction sequence number, and determining the continuous check error penalty according to the adjacent transaction sequence number.
6. The utility model provides a cloud printer data security protection device based on blockchain which characterized in that includes:
the first verification module is used for acquiring printing task information uploaded by a user by the cloud server, carrying out preliminary verification on the printing task information and generating a printing task block and a first verification result;
the data broadcasting module is used for broadcasting the printing task block and the first verification result to each cloud printer by the cloud server;
the second verification module is used for carrying out consensus verification on the printing task block and the first verification result by each cloud printer according to a preset consensus algorithm, generating a second verification result and returning the second verification result to the cloud server;
The data adding module is used for adding the printing task block to the blockchain network according to the second verification result by the cloud server;
the data acquisition module is used for each cloud printer to acquire the block state of the block chain network and the print task block from the block chain network;
the data adding module further performs, in a process after the cloud server adds the print job block to the blockchain network according to the second verification result:
the cloud server generates and broadcasts a node evaluation message to each cloud printer;
the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer;
the cloud server determines a target cloud printer according to the evaluation result of each cloud printer, and removes the target cloud printer from the blockchain network;
the cloud server and each cloud printer perform consensus evaluation on any cloud printer according to a preset node evaluation algorithm to obtain an evaluation result of each cloud printer, and the method comprises the following steps:
Determining printers to be evaluated from the cloud printers, and obtaining a history verification result corresponding to the printers to be evaluated;
calculating the verification accuracy of the printer to be evaluated according to the history verification result, and obtaining the corresponding verification rate of the printer to be evaluated;
determining a basic score corresponding to the printer to be evaluated according to the verification rate, and determining a continuous verification correct rewarding score, a verification error history punishment score and a continuous verification error punishment score corresponding to the printer to be evaluated according to the history verification result;
determining an evaluation result corresponding to the printer to be evaluated according to the basic score, the continuous verification correct rewarding score, the verification error history punishment score and the continuous verification error punishment score;
and calculating an evaluation result corresponding to the printer to be evaluated according to the following formula:
representing an evaluation result corresponding to an ith printer to be evaluated in the cloud printer, < >>Representing the basic score, the +_for the printer to be evaluated>Indicating the correct bonus points and the +_s of the continuous verification corresponding to the printer to be evaluated>Representing the check error history penalty corresponding to the printer to be evaluated, and +. >And representing the continuous check error punishment corresponding to the printer to be evaluated.
7. A cloud server, which is characterized by comprising a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the blockchain-based cloud printer data security protection method as claimed in any of claims 1 to 5 when the computer program is executed.
8. A computer storage medium for computer storage, wherein the computer storage medium stores one or more programs executable by one or more processors to implement the steps of the blockchain-based cloud printer data security protection method of any of claims 1 to 5.
CN202410228100.3A 2024-02-29 2024-02-29 Cloud printer data security protection method based on blockchain and related device Active CN117812190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410228100.3A CN117812190B (en) 2024-02-29 2024-02-29 Cloud printer data security protection method based on blockchain and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410228100.3A CN117812190B (en) 2024-02-29 2024-02-29 Cloud printer data security protection method based on blockchain and related device

Publications (2)

Publication Number Publication Date
CN117812190A true CN117812190A (en) 2024-04-02
CN117812190B CN117812190B (en) 2024-05-03

Family

ID=90430467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410228100.3A Active CN117812190B (en) 2024-02-29 2024-02-29 Cloud printer data security protection method based on blockchain and related device

Country Status (1)

Country Link
CN (1) CN117812190B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207304693U (en) * 2017-11-03 2018-05-01 黑龙江工业学院 A kind of high photographing instrument
CN113064562A (en) * 2021-04-12 2021-07-02 黄灿楠 Man-machine interaction printing method and system based on block chain
CN115664859A (en) * 2022-12-26 2023-01-31 深圳市链科网络科技有限公司 Data security analysis method, device, equipment and medium based on cloud printing scene
US20240036786A1 (en) * 2022-07-28 2024-02-01 City Storage Systems Llc Cloud Printing Utilizing Queued Message Service
CN117519620A (en) * 2024-01-08 2024-02-06 珠海芯烨电子科技有限公司 Cloud printer intelligent operation and maintenance management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207304693U (en) * 2017-11-03 2018-05-01 黑龙江工业学院 A kind of high photographing instrument
CN113064562A (en) * 2021-04-12 2021-07-02 黄灿楠 Man-machine interaction printing method and system based on block chain
US20240036786A1 (en) * 2022-07-28 2024-02-01 City Storage Systems Llc Cloud Printing Utilizing Queued Message Service
CN115664859A (en) * 2022-12-26 2023-01-31 深圳市链科网络科技有限公司 Data security analysis method, device, equipment and medium based on cloud printing scene
CN117519620A (en) * 2024-01-08 2024-02-06 珠海芯烨电子科技有限公司 Cloud printer intelligent operation and maintenance management system

Also Published As

Publication number Publication date
CN117812190B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN112446785B (en) Cross-chain transaction method, system, device, equipment and storage medium
Shrestha et al. A new type of blockchain for secure message exchange in VANET
CN108768665B (en) Block chain generation method and device, computer equipment and storage medium
CN110189128B (en) Distributed consensus method and device for block rapid generation
CN108923909B (en) Block chain generation method and device, computer equipment and storage medium
CN109242685B (en) Block chain-based consensus and verification method and device
CN111427957B (en) Block chain voting information verification method, device, equipment and storage medium
US11943237B2 (en) Malicious peer identification for database block sequence
US20190244227A1 (en) Bulletin board information management system
WO2019179829A1 (en) System and method for secure transaction verification in a distributed ledger system
CN109118230B (en) Information processing method and device based on block chain
US10693646B2 (en) Event execution using a blockchain approach
CN110838063B (en) Transaction processing method based on blockchain, electronic equipment and storage medium
Abbade et al. Blockchain applied to vehicular odometers
CN113326516A (en) Block chain consensus method, block chain system and computer equipment
CN110084600B (en) Processing and verifying method, device, equipment and medium for resolution transaction request
CN108648081B (en) Transaction processing method and device based on block chain and electronic equipment
US11496290B2 (en) Blockchain network and finalization method therefor
CN109861996B (en) Block chain-based relationship proving method, device, equipment and storage medium
EP3659060B1 (en) Consensus protocol for permissioned ledgers
CN110474779B (en) Voting evidence-storing method, device and equipment based on blockchain and readable storage medium
CN112910661B (en) Block chain consensus method, device, equipment and medium suitable for electronic subscription
CN112749968B (en) Service data recording method and device based on block chain
CN113779642B (en) Data processing method, device and system thereof, and electronic equipment
CN111385096A (en) Block chain network, signature processing method, terminal and storage medium

Legal Events

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