Electronic signature method, system and equipment based on file scheduling and distribution and storage medium

Through the electronic signature method based on file scheduling and distribution, the serious problem of waiting caused by large-scale file signing in the prior art is solved, efficient signature processing and resource utilization are achieved, and signature experience and efficiency are improved.

CN119814879AActive Publication Date: 2025-04-11GUANGDONG DRUG TRADING CENT CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411927269.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-11
Estimated Expiration
2044-12-25

AI Technical Summary

Technical Problem

The existing electronic signature method has serious problems with waiting when processing large batches of files, which reduces the review and processing speed, and some services are idle.

Method used

The electronic signature method based on file scheduling and distribution is adopted, and the node table is updated by receiving registration messages, the batch file is split into a single file, and the target electronic file signature node is determined based on the node table and business data, and the single file is distributed to the target node for signature processing, and finally the signature result is merged.

Benefits of technology

By distributing and merging signature results, the slow signature problem caused by large-scale document signing is solved, effectively utilizing equipment resources, and improving signature experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814879A_ABST
    Figure CN119814879A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of electronic signature, and discloses an electronic signature method, system and device based on file scheduling and distribution and a storage medium. The method comprises the following steps: registering an electronic file signature node to an electronic file signature scheduling center; the electronic file signature dispatching center maintains a node table according to the registration condition; the electronic file signature scheduling center receives a batch file signature request initiated by a client, splits batch files, determines the score of each electronic file signature node according to the node table, determines the optimal electronic file signature node of each split single file based on the score, and sends the optimal electronic file signature node to the client. And finally, distributing the single file to the corresponding optimal electronic file signature node for processing so as to complete signature, through the signature scheduling distribution mode, the problem of slow signature caused by the fact that signature processing is carried out on a single node when a large batch of files are submitted in one request is solved, equipment resources are effectively utilized, and signature experience and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic signatures, and in particular to an electronic signature method, system, device and storage medium based on file scheduling and distribution. Background Art

[0002] In the current engineering document review and bidding, there is a need to complete the signing of a large number of documents in the system at one time. The current processing method for signing a large number of documents is to sign one document and then sign the next one in a cycle, or to initiate a batch of document signing tasks at one time, but the service background also processes serially, and still needs to wait for the processing of each file.

[0003] This electronic signature method has a serious waiting problem, which reduces the review and processing speed of various processes, and there is also a situation where some services are idle.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide an electronic signature method, system, device and storage medium based on file scheduling and distribution, aiming to solve the problem that the current electronic signature method has serious waiting conditions, reduces the review and processing speed of various processes, and also has technical problems such as some services being idle.

[0006] To achieve the above object, the present invention provides an electronic signature method based on file scheduling and distribution, and the electronic signature method based on file scheduling and distribution includes the following steps:

[0007] Receive a registration message sent by the electronic document signature node cluster, and update the node table according to the registration message;

[0008] Receiving a signing request for a batch of files sent by a client, and splitting the batch of files into individual files in response to the signing request;

[0009] Determine the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file, and distribute each single file to the corresponding target electronic file signature node;

[0010] Obtaining the original signature text and the business route identification data fed back by each target electronic file signature node, and sending the original signature text and the business route identification data to the client;

[0011] Receive the encapsulated data fed back by the client, parse the encapsulated data to determine the target electronic file signature node corresponding to each signing result, and send the target electronic file signature node in response to the signing completion request sent by the client, and merge the signature result with the corresponding single file based on the signing completion request through each target electronic file signature node to complete the signing of the electronic signature of each single file, wherein the encapsulated data is composed of the signing result and the business routing identification data, and the signing result is obtained by the client signing the signature original text.

[0012] In some embodiments, before receiving a registration message sent by the electronic document signature node cluster and updating the node table according to the registration message, the method further includes:

[0013] When the signing service is started, the electronic document signature node cluster reads the physical hardware information of the current device and the node-related configuration information to generate a registration message, sends the registration message to the electronic document signature scheduling center based on the UPD communication method, and re-reads the physical hardware information of the current device and the node-related configuration information after each preset period to generate a new registration message.

[0014] In some embodiments, the node table is used to record data information of each electronic file signature node, wherein the data information includes at least the unique identifier of the service node, the registration address of the node, server hardware information, the number of file tasks currently being processed by the service, the total size of electronic files processed by the tasks, CPU configuration, and memory configuration information. The node table is updated in real time based on registration messages, and the load data related to the node table is updated based on the signing status of each electronic file signature.

[0015] In some embodiments, the method further comprises:

[0016] After distributing each single file to the corresponding target electronic file signature node, the number of processing tasks, the size of the processed file, and the acceptance time of the corresponding electronic file signature node service in the node table are updated;

[0017] After obtaining the signature original text and business route identification data fed back by each target electronic file signature node, the number of processing tasks and the processed file size of the corresponding electronic file signature node service in the node table are updated again to complete the update of the load data of the node table.

[0018] In some embodiments, determining the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file includes:

[0019] For any single file, obtain the file size of each electronic file signature node in the electronic file signature node cluster input with the single file and the file size processed by each electronic file signature node;

[0020] Based on the node table, obtain the disk available space, memory capacity, number of CPU cores and number of task threads being processed corresponding to each electronic document signature node;

[0021] Calculate the score of each electronic file signature node according to the file size of each electronic file signature node in the single file input electronic file signature node cluster, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores, and the number of task threads being processed;

[0022] The electronic file signature node with the highest score is used as the target electronic file signature node corresponding to the single file.

[0023] In some embodiments, the calculating of the score of each electronic file signature node according to the file size of each electronic file signature node in the electronic file signature node cluster inputted with the single file, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores, and the number of task threads being processed includes:

[0024] Calculate a disk coefficient score in combination with a preset disk ratio coefficient and according to the file size of each electronic file signature node in the electronic file signature node cluster inputted by the single file, the file size processed by each electronic file signature node, and the available disk space;

[0025] Calculate a memory coefficient score in combination with a preset memory ratio coefficient and according to the file size of each electronic file signature node in the electronic file signature node cluster inputted with the single file, the file size processed by each electronic file signature node, and the memory capacity;

[0026] Calculate the CPU coefficient score by combining the file size of each electronic file signature node in the electronic file signature node cluster according to the single file input, the file size processed by each electronic file signature node, the number of CPU cores, and the number of task threads being processed;

[0027] Calculate the total score based on the preset proportional coefficients of each electronic file signature node and the disk coefficient score, the memory coefficient score and the CPU coefficient score;

[0028] Accordingly, the step of taking the electronic file signature node with the highest score as the target electronic file signature node corresponding to the single file includes:

[0029] The electronic file signature node with the highest total score is used as the target electronic file signature node corresponding to the single file.

[0030] In some embodiments, the business routing identification data is used to identify the electronic file signature node corresponding to the signature of a distributed single file, and the business routing identification data is obtained by splicing and Hex encoding the identification of the electronic file signature node, the task identification of the electronic file signature node, and the contract file identification of the single file.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic signature system based on file scheduling and distribution, the electronic signature system based on file scheduling and distribution comprises: a client, an electronic file signature scheduling center and an electronic file signature node cluster;

[0032] The electronic document signature scheduling center is used to receive the registration message sent by the electronic document signature node cluster and update the node table according to the registration message;

[0033] The electronic document signature scheduling center is used to receive the batch document signing request sent by the client, and split the batch document into individual single documents in response to the signing request;

[0034] The electronic file signature scheduling center is used to determine the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file, and distribute each single file to the corresponding target electronic file signature node;

[0035] The electronic document signature dispatching center is used to obtain the original signature text and the service route identification data fed back by each target electronic document signature node, and send the original signature text and the service route identification data to the client;

[0036] The electronic file signature scheduling center is used to receive the encapsulated data fed back by the client, parse the encapsulated data to determine the target electronic file signature node corresponding to each signing result, and send the target electronic file signature node in response to the signing completion request sent by the client, and merge the signature result with the corresponding single file through each target electronic file signature node based on the signing completion request to complete the signing of the electronic signature of each single file, wherein the encapsulated data is composed of the signing result and the business routing identification data, and the signing result is obtained by the client signing the signature original text.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic signature device based on file scheduling distribution, and the electronic signature device based on file scheduling distribution includes: a memory, a processor, and an electronic signature program based on file scheduling distribution stored on the memory and executable on the processor, and the electronic signature program based on file scheduling distribution is configured to implement the steps of the electronic signature method based on file scheduling distribution as described above.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which an electronic signature program based on file scheduling distribution is stored. When the electronic signature program based on file scheduling distribution is executed by a processor, the steps of the electronic signature method based on file scheduling distribution as described above are implemented.

[0039] The present invention receives a registration message sent by an electronic file signature node cluster, and updates a node table according to the registration message; receives a signing request for a batch of files sent by a client, and splits the batch of files into individual files in response to the signing request; determines a target electronic file signature node corresponding to each individual file in the electronic file signature node cluster based on the node table and the business data of each individual file, and distributes each individual file to the corresponding target electronic file signature node; obtains the signature original text and business route identification data fed back by each target electronic file signature node, and sends the signature original text and the business route identification data to the client; receives encapsulation data fed back by the client, parses the encapsulation data to determine the target electronic file signature node corresponding to each signing result, and sends the target electronic file signature node in response to a signing completion request sent by the client, and merges the signature result with the corresponding single file based on the signing completion request by each target electronic file signature node to complete the signing of the electronic signature of each individual file. The above-mentioned signature scheduling and distribution method solves the problem of slow signing caused by signing a large number of files submitted for signing at one time and performing signature processing at a single node, effectively utilizes device resources, and improves the signing experience and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flowchart of the first embodiment of the electronic signature method based on file scheduling distribution of the present invention;

[0041] Figure 2 It is a timing diagram of the overall batch signature service in the electronic signature method based on file scheduling and distribution of the present invention;

[0042] Figure 3 A schematic diagram of the system architecture of the electronic signature method based on file scheduling and distribution of the present invention;

[0043] Figure 4It is a timing diagram of updating the node table in the electronic signature method based on file scheduling distribution of the present invention;

[0044] Figure 5 This is a schematic diagram of the signature node registration message structure in the electronic signature method based on file scheduling and distribution of the present invention;

[0045] Figure 6 This is the node table structure intention in the electronic signature method based on file scheduling and distribution of the present invention;

[0046] Figure 7 It is a structural block diagram of the first embodiment of the electronic signature system based on file scheduling and distribution of the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] The embodiment of the present invention provides an electronic signature method based on file scheduling distribution, referring to Figure 1 , Figure 1 The figure is a flow chart of a first embodiment of an electronic signature method based on file scheduling and distribution according to the present invention.

[0050] In this embodiment, the electronic signature method based on file scheduling distribution includes the following steps:

[0051] Step S10: receiving a registration message sent by the electronic document signature node cluster, and updating the node table according to the registration message.

[0052] In this embodiment, the executor of this embodiment is an electronic signature device based on file scheduling and distribution, wherein the electronic signature device based on file scheduling and distribution has functions such as data processing, data communication and program running. The electronic signature device based on file scheduling and distribution can be a computer terminal device or other network device, and of course it can also be other devices with similar functions, and this embodiment does not limit this.

[0053] It should be noted that the current method for signing large quantities of documents is to sign one document and then sign the next one in a cycle, or to initiate a batch of document signing tasks at one time. However, the service background also processes them serially, and still needs to wait for the processing of each document one by one. This electronic signature method has a serious waiting problem, which reduces the review and processing speed of various processes, and there is also a situation where some services are idle.

[0054] In order to solve the above technical problems, in this embodiment, a registration message sent by an electronic file signature node cluster is received, and a node table is updated according to the registration message; a signing request for batch files sent by a client is received, and the batch files are split into individual files in response to the signing request; a target electronic file signature node corresponding to each individual file in the electronic file signature node cluster is determined based on the node table and the business data of each individual file, and each individual file is distributed to the corresponding target electronic file signature node; the signature original text and business route identification data fed back by each target electronic file signature node are obtained, and the signature original text and the business route identification data are sent to the client; the encapsulation data fed back by the client is received, the encapsulation data is parsed to determine the target electronic file signature node corresponding to each signing result, and the target electronic file signature node is sent in response to the signing completion request sent by the client, and the signature result is merged with the corresponding single file by each target electronic file signature node based on the signing completion request to complete the signing of the electronic signature of each single file. Through the above signature scheduling and distribution method, the problem of slow signing caused by signing a large number of files submitted for signing at one time and performing signature processing at a single node is solved, the device resources are effectively utilized, and the signing experience and efficiency are improved. Specifically, it can be implemented in the following way.

[0055] In the specific implementation, the overall technical solution is first described in this embodiment. Specifically, the user uses a mobile terminal or PC client to select batch files that need to be signed, applies a signing coordinate template, and initiates a batch file signing request; the electronic file signature scheduling center receives the batch file signing request, parses the request file list and constructs the batch file business requests into single-file business data messages, calculates the best processing node for each business according to the signature node table, and distributes the business data message to the designated electronic file signature node for processing. The above method in this embodiment is implemented with the help of an electronic signature system based on file scheduling and distribution. The system consists of a client, an electronic file signature scheduling center, and an electronic file signature node cluster. The specific interaction process of the three can be referred to. Figure 2 As shown, the specific system structure can be referred to Figure 3 shown.

[0056] In the specific implementation, the electronic document signature node cluster automatically performs registration. When the signing service is started, the electronic document signature node cluster reads the physical hardware information of the current device and the node-related configuration information to generate a registration message, and sends the registration message to the electronic document signature scheduling center based on the UPD communication method. After each preset period, the physical hardware information of the current device and the node-related configuration information are re-read to generate a new registration message.

[0057] It should be noted that the UPD communication method is a stateless transmission protocol. Compared with TCP, which has no handshake, confirmation, window, retransmission, congestion control and other mechanisms, the use of UPD communication can improve the processing efficiency of electronic signatures. The preset cycle can be set to 30s, that is, the physical hardware information of the current device and the node-related configuration information are re-read every 30s to generate a new registration message. In addition. If the electronic document signature scheduling center fails to receive the registration message for more than 3 minutes, the node will be eliminated.

[0058] After receiving the registration message, the electronic document signature dispatch center can use the registration message to update the node table, which is used to record the data information of each electronic document signature node, wherein the data information at least includes the unique identification of the service node, the registration address of the node, the server hardware information, the number of file tasks currently being processed by the service, the total size of the electronic files processed by the task, the CPU configuration and the memory configuration information. The node table is updated in real time based on the registration message, and the load data related to the node table is updated based on the signing status of each electronic document signature. The update process of the node table can refer to Figure 4 As shown in the figure, after the electronic document signature node is started, the node will periodically, for example, 30 seconds, to generate and construct the registration data message. The generation of the data message depends on the device information of the node. After completing the message construction, the node will send the message to the registration center through the UDP protocol. The reason for using UDP is that it has the following characteristics: UDP is a stateless transmission protocol. Compared with TCP, it has no handshake, confirmation, window, retransmission, congestion control and other mechanisms, so it is very fast in transmitting data. It is very suitable for transmitting this type of data message. After receiving the registration message, the dispatch center parses and processes the registration message data according to the agreed data message format to obtain the basic device information of the relevant node. After completion, the data is updated to the data of the node table maintained by the dispatch center. At the same time, the dispatch center sends a signing task message to the node, and the dispatch center will update the node load situation of the node table according to the task situation to be processed and the file size of the task. When the node completes the processing, after the dispatch center receives the completion message, the node table will update the load table to release the load data before the task is released. The data in this node table can be used to obtain the device information configuration and node load conditions of all nodes in the system, which is convenient for optimal electronic file task distribution and scheduling.

[0059] Furthermore, the message structure of the registration message in this embodiment is a byte array, and the specific byte data is defined as: version identifier, occupying 1 byte; message type, occupying 2 bytes; timestamp, occupying 8 bytes; node number, occupying 16 bytes; node name, occupying 64 bytes; node address IP, occupying 4 bytes; node address port, occupying 2 bytes; node software version, occupying 2 bytes; node scale factor, occupying 2 bytes; CPU core number, occupying 2 bytes; CPU scale factor, occupying 2 bytes; memory capacity, occupying 16 bytes; memory scale factor, occupying 2 bytes; disk available space, occupying 16 bytes; disk scale factor, occupying 2 bytes, for details, please refer to Figure 5 shown.

[0060] Further, the registration information contained in the node table can be referred to Figure 6As shown, it specifically includes the following contents: node number: a unique number used to determine the node; node name: an identifier for determining the node; node address: a node access address that records the node for access by the dispatch center; node software version: a software version number of the node's electronic signature service. If the version is too old or incompatible, the relevant task message will not be forwarded to the node; node ratio system: this parameter is manually configured when the node goes online. The larger the value, the higher the task ratio assigned to the node. If it is set to 0, the node will not receive the task message. It is usually used to reduce the ratio system when preparing to take the service offline so that the dispatch center will no longer send tasks to the node; number of CPU cores: records the number of CPU cores on the node machine. Generally, the more cores, the greater the number of task messages received; CPU ratio coefficient: configure the CPU ratio. If the CPU performance is good, this parameter can be increased. Generally, under the same number of CPU cores, the larger the ratio coefficient, the greater the number of task messages received; memory capacity: records the CPU memory information on the node machine. Generally, the larger the memory capacity, the greater the number of task messages received; memory ratio coefficient: configure the memory ratio. If the memory performance is good, this parameter can be adjusted higher. Generally, under the same memory capacity, the larger the proportional coefficient, the larger the number of task messages received; Disk available space: records the disk available space information on the node machine. Generally, the larger the disk available space, the larger the number of task messages received; Disk proportional coefficient: configure the disk ratio. If the disk performance is good (for example, if a solid-state drive is used), this parameter can be adjusted higher. Under the same disk available space, the larger the proportional coefficient, the larger the number of task messages received; Synchronization time point: used to record the most recent synchronization time of the node. If the node does not receive a synchronization message within the specified time, the configuration center will determine that the node service is abnormal and suspend the distribution of task messages to the node; Number of tasks being processed: records the number of tasks being processed in the current node, reflecting the task load information of the node. If the processing load is too large, the number of task messages received will decrease; Total size of files being processed: records the total size of tasks being processed in the current node, reflecting the total file data volume of the node's task processing. If the processing data volume is too large, the number of task messages received will decrease.

[0061] The node table is updated by updating the number of processing tasks, the size of processed files and the acceptance time of the corresponding electronic file signature node service in the node table after distributing each single file to the corresponding target electronic file signature node; after obtaining the original signature text and business routing identification data fed back by each target electronic file signature node, the number of processing tasks and the size of processed files of the corresponding electronic file signature node service in the node table are updated again to complete the update of the load data of the node table.

[0062] Step S20: receiving a signing request for a batch of files sent by the client, and splitting the batch of files into individual files in response to the signing request.

[0063] It should be noted that, in order to improve the processing efficiency of electronic signatures for batch files, in this embodiment, the batch files need to be split first, thereby splitting the batch files into multiple single files.

[0064] Step S30: Determine the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file, and distribute each single file to the corresponding target electronic file signature node.

[0065] After being split into single files, the single files are distributed to the corresponding target electronic file signature nodes respectively. In this way, the synchronous calling of multiple electronic file signature nodes can be realized, that is, multiple electronic file signature nodes can be used to process electronic signatures at the same time.

[0066] Further, in the present embodiment, the determination process of the target electronic file signature node is specifically as follows: for any single file, the file size of each electronic file signature node in the electronic file signature node cluster of the single file input and the file size processed by each electronic file signature node are obtained; based on the node table, the disk available space, memory capacity, number of CPU cores and number of task threads being processed corresponding to each electronic file signature node are obtained; the score of each electronic file signature node is calculated according to the file size of each electronic file signature node in the electronic file signature node cluster of the single file input, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores and the number of task threads being processed; and the electronic file signature node with the highest score is used as the target electronic file signature node corresponding to the single file, wherein the calculation of the score of each electronic file signature node according to the file size of each electronic file signature node in the electronic file signature node cluster of the single file input, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores and the number of task threads being processed includes:

[0067] The disk coefficient score is calculated in combination with the preset disk ratio coefficient and based on the file size of each electronic file signature node in the electronic file signature node cluster inputted by the single file, the file size processed by each electronic file signature node and the disk available space; the memory coefficient score is calculated in combination with the preset memory ratio coefficient and based on the file size of each electronic file signature node in the electronic file signature node cluster inputted by the single file, the file size processed by each electronic file signature node and the memory capacity; the CPU coefficient score is calculated in combination with the file size of each electronic file signature node in the electronic file signature node cluster inputted by the single file, the file size processed by each electronic file signature node, the number of CPU cores and the number of task threads being processed; the total score is calculated in combination with the preset ratio coefficients of each electronic file signature node and based on the disk coefficient score, the memory coefficient score and the CPU coefficient score, and the electronic file signature node with the highest total score is used as the target electronic file signature node corresponding to the single file.

[0068] It should be noted that the above parameters are defined as follows: the input file size is FSpPr, the number of task threads being processed by the node is P, the file size being processed by the node is FSpEx, the number of CPU cores of the node is C, the memory capacity of the node is M, the disk available space of the node is D, the CPU scale factor of the node is Kc (between 1 and 0), the memory scale factor of the node is Km (between 1 and 0), the disk scale factor of the node is Kd (between 1 and 0), and the scale factor of the node is Ks (between 1 and 0).

[0069] The calculation formula of disk coefficient score λd is:

[0070]

[0071] The calculation formula of memory score λm is:

[0072]

[0073] The calculation formula of CPU coefficient score λc is:

[0074]

[0075] The calculation formula of the total score λ of a node is:

[0076] λ=(λd*Kd+λm*Km+λc*Kc)*Ks

[0077] The above function Rag is defined as Rag(min,x,max), with three parameters min, x, and max as input. The value range is set by min and max. If the x value is less than the min value, the function returns min; if the x value is greater than max, the function returns max; if it is between min and max, the function returns x.

[0078] In addition, the electronic file signature corresponds to a specific physical machine device. By obtaining the data on the file and load information table, the score of the file task on each machine is calculated. The machine with the highest score is the best processing machine. If the scores of all machines are lower than or equal to 0, it proves that the current load of the machine is too high and is not suitable for calculation. If the scores of all machines are less than or equal to 0, it proves that there is no suitable computing machine in the system and the machine needs to be expanded.

[0079] Step S40: obtaining the original signature text and the business routing identification data fed back by each target electronic file signature node, and sending the original signature text and the business routing identification data to the client.

[0080] In the specific implementation, after signing, the target electronic file signature node will first feedback the original signature to the electronic file signature scheduling center, and the electronic file signature scheduling center will send the original signature and business routing identification data to the client, where the business routing identification data is used to identify the electronic file signature node corresponding to the signature of the distributed single file, and the business routing identification data is obtained by splicing and Hex encoding the identification of the electronic file signature node, the task identification of the electronic file signature node and the contract file identification of the single file.

[0081] It should be noted that after the electronic document signature node receives the electronic document signature task message, it parses the message document, reads the file data of a single file from the file service according to the contract ID data provided in the message, performs electronic signature processing on the file in combination with the coordinate information and signature image, signature certificate, etc., calculates the signature original text, and returns it to the electronic document signature scheduling center.

[0082] Step S50: Receive the encapsulated data fed back by the client, parse the encapsulated data to determine the target electronic file signature node corresponding to each signing result, and send the target electronic file signature node in response to the signing completion request sent by the client, and merge the signature result with the corresponding single file through each target electronic file signature node based on the signing completion request to complete the signing of the electronic signature of each single file.

[0083] In the specific implementation, after the client receives the signature original text and the business routing identification data, the corresponding cryptographic device is used to sign the original text of each single file in the batch to obtain the signature result, and then the signature result and business routing identification data of each single file are encapsulated, and a completion processing request is sent to the electronic file signature scheduling center. The electronic file signature scheduling center parses the encapsulated data corresponding to the completion processing request, and can obtain the target electronic file signature node corresponding to each signature result, and then sends the signature result fed back by the client to the target electronic file signature node, and finally the target electronic file signature node merges the signature result with the single file to complete the electronic signature processing.

[0084] In this embodiment, a registration message sent by an electronic file signature node cluster is received, and a node table is updated according to the registration message; a signing request for batch files sent by a client is received, and the batch files are split into individual files in response to the signing request; a target electronic file signature node corresponding to each individual file in the electronic file signature node cluster is determined based on the node table and the business data of each individual file, and each individual file is distributed to the corresponding target electronic file signature node; the signature original text and business route identification data fed back by each target electronic file signature node are obtained, and the signature original text and the business route identification data are sent to the client; encapsulation data fed back by the client is received, the encapsulation data is parsed to determine the target electronic file signature node corresponding to each signing result, and the target electronic file signature node is sent in response to a signing completion request sent by the client, and the signature result is merged with the corresponding single file by each target electronic file signature node based on the signing completion request to complete the signing of the electronic signature of each individual file. The above-mentioned signature scheduling and distribution method solves the problem of slow signing caused by signing a large number of files submitted for signing at one time and performing signature processing at a single node, effectively utilizes device resources, and improves the signing experience and efficiency.

[0085] In addition, an embodiment of the present invention further proposes a storage medium, on which an electronic signature program based on file scheduling distribution is stored. When the electronic signature program based on file scheduling distribution is executed by a processor, the steps of the electronic signature method based on file scheduling distribution as described above are implemented.

[0086] Reference Figure 7 , Figure 7 It is a structural block diagram of the first embodiment of the electronic signature system based on file scheduling and distribution of the present invention.

[0087] like Figure 7 As shown, the electronic signature system based on file scheduling and distribution proposed in the embodiment of the present invention includes: a client 10, an electronic file signature scheduling center 20 and an electronic file signature node cluster 30;

[0088] The electronic document signature scheduling center 20 is used to receive the registration message sent by the electronic document signature node cluster 30, and update the node table according to the registration message.

[0089] The electronic document signature scheduling center 20 is used to receive the batch document signing request sent by the client 10, and split the batch document into individual files in response to the signing request.

[0090] The electronic file signature scheduling center 20 is used to determine the target electronic file signature node corresponding to each single file in the electronic file signature node cluster 30 based on the node table and the business data of each single file, and distribute each single file to the corresponding target electronic file signature node.

[0091] The electronic document signature dispatching center 20 is used to obtain the signature original text and the service route identification data fed back by each target electronic document signature node, and send the signature original text and the service route identification data to the client 10 .

[0092] The electronic file signature scheduling center 20 is used to receive the encapsulated data fed back by the client 10, parse the encapsulated data to determine the target electronic file signature node corresponding to each signing result, and send the target electronic file signature node in response to the signing completion request sent by the client 10, and merge the signature result with the corresponding single file based on the signing completion request through each target electronic file signature node to complete the signing of the electronic signature of each single file, wherein the encapsulated data is composed of the signing result and the business routing identification data, and the signing result is obtained by the client 10 signing the signature original.

[0093] In this embodiment, a registration message sent by an electronic file signature node cluster is received, and a node table is updated according to the registration message; a signing request for batch files sent by a client is received, and the batch files are split into individual files in response to the signing request; a target electronic file signature node corresponding to each individual file in the electronic file signature node cluster is determined based on the node table and the business data of each individual file, and each individual file is distributed to the corresponding target electronic file signature node; the signature original text and business route identification data fed back by each target electronic file signature node are obtained, and the signature original text and the business route identification data are sent to the client; encapsulation data fed back by the client is received, the encapsulation data is parsed to determine the target electronic file signature node corresponding to each signing result, and the target electronic file signature node is sent in response to a signing completion request sent by the client, and the signature result is merged with the corresponding single file by each target electronic file signature node based on the signing completion request to complete the signing of the electronic signature of each individual file. The above-mentioned signature scheduling and distribution method solves the problem of slow signing caused by signing a large number of files submitted for signing at one time and performing signature processing at a single node, effectively utilizes device resources, and improves the signing experience and efficiency.

[0094] In some embodiments, when the signing service is started, the electronic document signature node cluster 30 reads the physical hardware information of the current device and the node-related configuration information to generate a registration message, sends the registration message to the electronic document signature scheduling center 20 based on the UPD communication method, and re-reads the physical hardware information of the current device and the node-related configuration information after each preset period to generate a new registration message.

[0095] In some embodiments, the node table is used to record data information of each electronic file signature node, wherein the data information includes at least the unique identifier of the service node, the registration address of the node, server hardware information, the number of file tasks currently being processed by the service, the total size of electronic files processed by the tasks, CPU configuration, and memory configuration information. The node table is updated in real time based on registration messages, and the load data related to the node table is updated based on the signing status of each electronic file signature.

[0096] In some embodiments, the electronic document signature scheduling center 20 is used to update the number of processing tasks, the processed file size, and the acceptance time of the corresponding electronic document signature node service in the node table after distributing each single file to the corresponding target electronic document signature node;

[0097] The electronic document signature scheduling center 20 is used to update the number of processing tasks and the processed file size of the corresponding electronic document signature node service in the node table after obtaining the signature original text and business route identification data fed back by each target electronic document signature node, so as to complete the update of the load data of the node table.

[0098] In some embodiments, the electronic file signature scheduling center 20 is used to obtain, for any single file, the file size of each electronic file signature node in the electronic file signature node cluster inputted by the single file and the file size processed by each electronic file signature node;

[0099] Based on the node table, obtain the disk available space, memory capacity, number of CPU cores and number of task threads being processed corresponding to each electronic document signature node;

[0100] Calculate the score of each electronic file signature node according to the file size of each electronic file signature node in the single file input electronic file signature node cluster 30, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores, and the number of task threads being processed;

[0101] The electronic file signature node with the highest score is used as the target electronic file signature node corresponding to the single file.

[0102] In some embodiments, the electronic file signature scheduling center 20 is used to calculate the disk coefficient score in combination with a preset disk ratio coefficient and according to the file size of each electronic file signature node in the electronic file signature node cluster 30 input by the single file, the file size processed by each electronic file signature node, and the disk available space;

[0103] Calculate a memory coefficient score in combination with a preset memory ratio coefficient and according to the file size of each electronic file signature node in the electronic file signature node cluster 30 inputted with the single file, the file size processed by each electronic file signature node, and the memory capacity;

[0104] Calculate the CPU coefficient score by combining the file size of each electronic file signature node in the electronic file signature node cluster 30 according to the single file input, the file size processed by each electronic file signature node, the number of CPU cores, and the number of task threads being processed;

[0105] Calculate the total score based on the preset proportional coefficients of each electronic file signature node and the disk coefficient score, the memory coefficient score and the CPU coefficient score;

[0106] Accordingly, the step of taking the electronic file signature node with the highest score as the target electronic file signature node corresponding to the single file includes:

[0107] The electronic file signature node with the highest total score is used as the target electronic file signature node corresponding to the single file.

[0108] In some embodiments, the business routing identification data is used to identify the electronic file signature node corresponding to the signature of a distributed single file, and the business routing identification data is obtained by splicing and Hex encoding the identification of the electronic file signature node, the task identification of the electronic file signature node, and the contract file identification of the single file.

[0109] An embodiment of the present application also provides an electronic signature device based on file scheduling and distribution, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus, and the memory is used to store the electronic signature program based on file scheduling and distribution; the processor is used to implement the above-mentioned electronic signature method based on file scheduling and distribution when executing the program stored in the memory.

[0110] The communication bus mentioned in the electronic signature device based on file scheduling and distribution can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0111] The communication interface is used for communication between the above-mentioned electronic signature device based on file scheduling and distribution and other devices.

[0112] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0113] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0114] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable systems. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0115] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0116] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0117] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

[0118] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0119] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0120] In addition, for technical details that are not described in detail in this embodiment, please refer to the electronic signature method based on file scheduling and distribution provided in any embodiment of the present invention, and will not be repeated here.

[0121] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0122] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0124] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

[0125] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.

Claims

1. An electronic signature method based on file scheduling and distribution, characterized in that: The method comprises: Receive a registration message sent by the electronic document signature node cluster, and update the node table according to the registration message; Receiving a signing request for a batch of files sent by a client, and splitting the batch of files into individual files in response to the signing request; Determine the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file, and distribute each single file to the corresponding target electronic file signature node; Obtaining the original signature text and the business route identification data fed back by each target electronic file signature node, and sending the original signature text and the business route identification data to the client; Receive the encapsulated data fed back by the client, parse the encapsulated data to determine the target electronic file signature node corresponding to each signing result, and send the target electronic file signature node in response to the signing completion request sent by the client, and merge the signature result with the corresponding single file based on the signing completion request through each target electronic file signature node to complete the signing of the electronic signature of each single file, wherein the encapsulated data is composed of the signing result and the business routing identification data, and the signing result is obtained by the client signing the signature original text.

2. The electronic signature method based on file scheduling and distribution as claimed in claim 1, characterized in that: Before receiving the registration message sent by the electronic document signature node cluster and updating the node table according to the registration message, the method further includes: When the signing service is started, the electronic document signature node cluster reads the physical hardware information of the current device and the node-related configuration information to generate a registration message, sends the registration message to the electronic document signature scheduling center based on the UPD communication method, and re-reads the physical hardware information of the current device and the node-related configuration information after each preset period to generate a new registration message.

3. The electronic signature method based on file scheduling and distribution as claimed in claim 1, characterized in that: The node table is used to record the data information of each electronic file signature node, wherein the data information at least includes the unique identification of the service node, the registration address of the node, the server hardware information, the number of file tasks currently being processed by the service, the total size of the electronic files processed by the tasks, the CPU configuration, and the memory configuration information. The node table is updated in real time based on the registration message, and the load data related to the node table is updated based on the signing status of each electronic file signature.

4. The electronic signature method based on file scheduling and distribution as claimed in claim 3, characterized in that: The method further comprises: After distributing each single file to the corresponding target electronic file signature node, the number of processing tasks, the size of the processed file, and the acceptance time of the corresponding electronic file signature node service in the node table are updated; After obtaining the signature original text and business route identification data fed back by each target electronic file signature node, the number of processing tasks and the processed file size of the corresponding electronic file signature node service in the node table are updated again to complete the update of the load data of the node table.

5. The electronic signature method based on file scheduling and distribution as claimed in claim 1, characterized in that: The step of determining the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file includes: For any single file, obtain the file size of each electronic file signature node in the electronic file signature node cluster input with the single file and the file size processed by each electronic file signature node; Based on the node table, obtain the disk available space, memory capacity, number of CPU cores and number of task threads being processed corresponding to each electronic document signature node; Calculate the score of each electronic file signature node according to the file size of each electronic file signature node in the single file input electronic file signature node cluster, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores, and the number of task threads being processed; The electronic file signature node with the highest score is used as the target electronic file signature node corresponding to the single file.

6. The electronic signature method based on file scheduling and distribution as claimed in claim 5, characterized in that: The calculating the score of each electronic file signature node according to the file size of each electronic file signature node in the electronic file signature node cluster inputted with the single file, the file size processed by each electronic file signature node, the disk available space, the memory capacity, the number of CPU cores, and the number of task threads being processed includes: Calculate a disk coefficient score in combination with a preset disk ratio coefficient and according to the file size of each electronic file signature node in the electronic file signature node cluster inputted by the single file, the file size processed by each electronic file signature node, and the available disk space; Calculate a memory coefficient score in combination with a preset memory ratio coefficient and according to the file size of each electronic file signature node in the electronic file signature node cluster inputted with the single file, the file size processed by each electronic file signature node, and the memory capacity; Calculate the CPU coefficient score by combining the file size of each electronic file signature node in the electronic file signature node cluster according to the single file input, the file size processed by each electronic file signature node, the number of CPU cores, and the number of task threads being processed; Calculate the total score based on the preset proportional coefficients of each electronic file signature node and the disk coefficient score, the memory coefficient score and the CPU coefficient score; Accordingly, the step of taking the electronic file signature node with the highest score as the target electronic file signature node corresponding to the single file includes: The electronic file signature node with the highest total score is used as the target electronic file signature node corresponding to the single file.

7. The electronic signature method based on file scheduling and distribution as claimed in claim 1, characterized in that: The business routing identification data is used to identify the electronic file signature node corresponding to the signature of the distributed single file. The business routing identification data is obtained by splicing and Hex encoding the identification of the electronic file signature node, the task identification of the electronic file signature node and the contract file identification of the single file.

8. An electronic signature system based on file scheduling and distribution, characterized in that: The electronic signature system based on file scheduling and distribution includes: a client, an electronic file signature scheduling center and an electronic file signature node cluster; The electronic document signature scheduling center is used to receive the registration message sent by the electronic document signature node cluster and update the node table according to the registration message; The electronic document signature scheduling center is used to receive the batch document signing request sent by the client, and split the batch document into individual single documents in response to the signing request; The electronic file signature scheduling center is used to determine the target electronic file signature node corresponding to each single file in the electronic file signature node cluster based on the node table and the business data of each single file, and distribute each single file to the corresponding target electronic file signature node; The electronic document signature dispatching center is used to obtain the original signature text and the service route identification data fed back by each target electronic document signature node, and send the original signature text and the service route identification data to the client; The electronic file signature scheduling center is used to receive the encapsulated data fed back by the client, parse the encapsulated data to determine the target electronic file signature node corresponding to each signing result, and send the target electronic file signature node in response to the signing completion request sent by the client, and merge the signature result with the corresponding single file through each target electronic file signature node based on the signing completion request to complete the signing of the electronic signature of each single file, wherein the encapsulated data is composed of the signing result and the business routing identification data, and the signing result is obtained by the client signing the signature original text.

9. An electronic signature device based on file scheduling and distribution, characterized in that: The electronic signature device based on file scheduling distribution includes: a memory, a processor, and an electronic signature program based on file scheduling distribution stored on the memory and executable on the processor, and the electronic signature program based on file scheduling distribution is configured to implement the steps of the electronic signature method based on file scheduling distribution as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores an electronic signature program distributed based on file scheduling, and when the electronic signature program distributed based on file scheduling is executed by a processor, the steps of the electronic signature method distributed based on file scheduling as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Distributed electronic sing-off realization system and method

    CN102117437A

  • Zone file signature method and system

    CN102685266A

  • Method and device for signing PDF electronic seals in batches and storage medium

    CN114528377A

  • Electronic signature management method and system based on unified service platform

    CN118611994A

  • Document distribution and interaction

    US20150127348A1