Electronic signature signing method and device, equipment, storage medium and product
Through the method of verifying authority and generating electronic signature documents in electronic signature signing technology, the security and circulation problems of electronic signature signing are solved, and the two-way signing and security improvement of electronic contracts are realized.
Patent Information
- Application Number
- CN202410160797.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-10-22
AI Technical Summary
The existing electronic signature signing technology has poor security and circulation, and cannot effectively guarantee the security and convenience of contract signing.
By performing authority verification when receiving the signature application from the signature initiating user, the electronic signature and signature document are generated and sent to the authorized user as a 5G information dynamic template to achieve two-way signing and improve the security of electronic contracts. and liquidity.
It realizes the two-way signing of electronic contracts, improves the security and liquidity of contract signing through user-platform-user interaction, and avoids the problems of poor security and liquidity of electronic signature signing in the existing technology.
Smart Images

Figure CN118821097A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to an electronic signature signing method, device, equipment, storage medium and product. Background Art
[0002] The signing of electronic contracts has gradually become the mainstream solution for contract signing. When signing a contract, both parties are required to provide corresponding electronic signatures, such as e-signatures. In traditional technologies, when signing electronic contracts, the electronic signatures used are generally handwritten images, which have low security and can generally only be used within the company to avoid disputes, with poor circulation.
[0003] 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
[0004] The main purpose of the present invention is to provide an electronic signature signing method, device, equipment, storage medium and product, aiming to solve the technical problems of poor security and circulation of electronic signature signing in the prior art.
[0005] To achieve the above object, the present invention provides an electronic signature signing method, which comprises the following steps:
[0006] Upon receiving a signature application from a signature initiating user, verify the signing authority of the signature initiating user;
[0007] When the authority verification is passed, the electronic signature of the signature initiating user and the corresponding signature document are generated through the preset signature model;
[0008] Send the 5G information to be authorized to the signature authorization user, and receive the signing instruction fed back by the signature authorization user, wherein the 5G information to be authorized is a 5G information dynamic template including the electronic signature and the signed document;
[0009] A target signature document is generated according to the signing instruction and the signature document, and the signing result is fed back to the signature initiating user and the signature authorizing user.
[0010] Optionally, the step of generating the electronic signature of the signature initiating user and the corresponding signature file by using a preset signature model includes:
[0011] Obtain the mobile phone number of the user who initiated the signature, and query the registration information corresponding to the mobile phone number;
[0012] Positioning the signing area using a preset positioning model according to the registration information to obtain a target signing area;
[0013] Generate an electronic signature using a preset signature model according to the registration information;
[0014] A signature document is generated according to the target signing area, the electronic signature and a preset signature document template.
[0015] Optionally, the electronic signature includes user name and timestamp information;
[0016] Generating an electronic signature according to the registration information by using a preset signature model includes:
[0017] Calling a preset NanoID function to generate a unique identification code of the signature initiating user according to the user name;
[0018] Generate an electronic signature based on the user name, unique identification code and timestamp information;
[0019] Accordingly, before generating the signature document according to the target signing area, the electronic signature and the preset signature document template, the method further includes:
[0020] Determine the number of character hits between the electronic signature and the preset anti-counterfeiting code corresponding to the user name;
[0021] When the character hit count is greater than a preset threshold, a step of generating a signature document according to the target signing area, the electronic signature and a preset signature document template is executed.
[0022] Optionally, the electronic signature signing method includes:
[0023] When the character hit number is greater than a preset threshold, querying the hit probability corresponding to the character hit number;
[0024] Calculating the confidence of the electronic signature according to the character hit count and hit probability;
[0025] When the confidence level is greater than a preset threshold, a signature document is generated according to the target signing area, the electronic signature and a preset signature document template.
[0026] Optionally, the verifying the signing authority of the signature initiating user includes:
[0027] Acquire rich media information of the signature initiating user, wherein the rich media information includes a download address of a signature sheet image of the signature initiating user and a requested authorization object;
[0028] Send the signature sheet image, the requested authorization object and the signature application to the cloud, and receive the mobile phone number of the signature initiator user fed back by the cloud;
[0029] The signing authority is verified based on the mobile phone number.
[0030] Optionally, the signing authority verification based on the mobile phone number includes:
[0031] Query the user information corresponding to the mobile phone number, the user information including the user's affiliated unit and signing authority;
[0032] The signing authority verification is performed based on the user's affiliation and signing authority.
[0033] Optionally, the electronic signature signing method further includes:
[0034] Get the target signature document;
[0035] Identify the target electronic signature of each user in the target signature document by using a preset text recognition model;
[0036] Extracting the authentication triplet of the target electronic signature;
[0037] Compare the authentication triplet with the preset anti-counterfeiting code corresponding to the user name in the preset seal record table;
[0038] The target confidence is calculated according to the comparison result, and the target confidence is displayed to the user.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic signature signing device, the electronic signature signing device comprising:
[0040] A verification module is used to verify the signing authority of the signature initiating user upon receiving the signature application from the signature initiating user;
[0041] A generation module, used to generate the electronic signature of the signature initiating user and the corresponding signature file through a preset signature model when the authority verification is passed;
[0042] A receiving module is used to send the 5G information to be authorized to the signature authorized user, and receive the signing instruction fed back by the signature authorized user, wherein the 5G information to be authorized is a 5G information dynamic template including the electronic signature and the signed document;
[0043] The signing module is used to generate a target signature file according to the signing instruction and the signature file, and to feed back the signing result to the signature initiating user and the signature authorizing user.
[0044] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic signature signing device, which includes: a memory, a processor, and an electronic signature signing program stored in the memory and executable on the processor, and the electronic signature signing program is configured to implement the steps of the electronic signature signing method described above.
[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which an electronic signature signing program is stored, and when the electronic signature signing program is executed by a processor, the steps of the electronic signature signing method described above are implemented.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer program product, which includes an electronic signature signing program, and when the electronic signature signing program is executed by a processor, it implements the electronic signature signing method described above.
[0047] The present invention provides an electronic signature signing method, the electronic signature signing method comprising: upon receiving a signature application from a signature initiating user, verifying the signing authority of the signature initiating user; upon passing the authority verification, generating the electronic signature and corresponding signature file of the signature initiating user through a preset signature model; sending 5G information to be authorized to the signature authorization user, and receiving a signing instruction fed back by the signature authorization user, the 5G information to be authorized being a 5G information dynamic template containing the electronic signature and the signature file; generating a target signature file according to the signing instruction and the signature file, and sending the target signature file to the signature initiating user and the signature authorization user. The user feeds back the signing result. Compared with the prior art, the present invention verifies the signing authority of the signature initiating user upon receiving the signature application of the signature initiating user, and generates the electronic signature and corresponding signature file of the signature initiating user when the signing authority is passed. The 5G information to be authorized containing the electronic signature and the signature file is sent to the signature authorized user to obtain the authorization instruction of the signature authorized user, thereby realizing the two-way signing of the electronic contract, and realizing the signing of the electronic signature through the user-platform-user interaction method, thereby avoiding the technical problems of poor security and circulation of electronic signatures in the prior art, and improving the security of contract signing. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a structural diagram of an electronic signature signing device in a hardware operating environment involved in an embodiment of the present invention;
[0049] Figure 2 This is a flow chart of the first embodiment of the electronic signature signing method of the present invention;
[0050] Figure 3 This is a timing diagram of the process of electronic signature signing in an embodiment of the electronic signature signing method of the present invention;
[0051] Figure 4 This is a schematic diagram of an example of a user_info table of an embodiment of an electronic signature signing method of the present invention;
[0052] Figure 5This is a schematic diagram of an example of an electronic signature of an embodiment of an electronic signature signing method of the present invention;
[0053] Figure 6 This is a schematic diagram of a message template sample of an embodiment of the electronic signature signing method of the present invention;
[0054] Figure 7 This is a schematic diagram of an example of the seal_record table of an embodiment of the electronic signature signing method of the present invention;
[0055] Figure 8 This is a flow chart of the second embodiment of the electronic signature signing method of the present invention;
[0056] Fig. 9 This is a schematic diagram of the mapping relationship between the number of character hits and the probability in an embodiment of the electronic signature signing method of the present invention;
[0057] Fig.10 This is a flow chart of the third embodiment of the electronic signature signing method of the present invention;
[0058] Fig.11 This is a structural block diagram of the first embodiment of the electronic signature signing device of the present invention.
[0059] 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
[0060] 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.
[0061] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of an electronic signature signing device in the hardware operating environment involved in an embodiment of the present invention.
[0062] like Figure 1As shown, the electronic signature signing device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0063] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic signature signing device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0064] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an electronic signature signing program.
[0065] exist Figure 1 In the electronic signature signing device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic signature signing device of the present invention can be set in the electronic signature signing device, and the electronic signature signing device calls the electronic signature signing program stored in the memory 1005 through the processor 1001, and executes the electronic signature signing method provided by the embodiment of the present invention.
[0066] The present invention provides an electronic signature method. Figure 2 , Figure 2 The figure is a flowchart of a first embodiment of an electronic signature signing method of the present invention.
[0067] In this embodiment, the electronic signature signing method includes the following steps:
[0068] Step S10: upon receiving a signature application from a signature initiating user, verifying the signing authority of the signature initiating user.
[0069] It should be noted that the executor of the method of this embodiment can be a device with functions such as data processing, network communication and program running, such as a server cluster or a cloud processor, etc., or other devices that can achieve the same or similar functions. This embodiment does not impose specific restrictions on this. In this embodiment and the following embodiments, the cloud processor will be used as an example for explanation.
[0070] Among them, the cloud processor includes a platform for electronic signature.
[0071] It is worth noting that the "signature authorization" process of electronic signature involves the initiating user, access platform, and SMS applet for authentication and authorization of users. The number of users can be 2 or more, among which the signature initiating user is one party and the signature authorizing user is the other party.
[0072] refer to Figure 3 , Figure 3 This is a timing diagram of the electronic signature signing process of this embodiment, wherein the signature application is initiated by user A (i.e., the signature initiating user) who needs to complete the electronic signature process, and rich media information including a photo of the signature form, the authorized object, etc. is sent through the 5G message subscription account registered to the platform. The 5G message subscription account is based on the 5G message ecosystem TesseractOCR.
[0073] Prior to this, the application provider first opened a 5G message subscription account in the name of the enterprise or organization. Based on the 5G message developer mode, user phones that support 5G messages can operate on the SMS interface or the Chatbot subscription account page. Phones that do not support 5G messages can operate on the Chatbot H5 page. Under normal circumstances, all smartphones can directly use the application service without additional settings and installation, which improves the circulation of electronic signatures.
[0074] Furthermore, the verification of the signing authority of the signature initiating user includes:
[0075] Acquire rich media information of the signature initiating user, wherein the rich media information includes a download address of a signature sheet image of the signature initiating user and a requested authorization object;
[0076] Send the signature sheet image, the requested authorization object and the signature application to the cloud, and receive the mobile phone number of the signature initiator user fed back by the cloud;
[0077] The signing authority is verified based on the mobile phone number.
[0078] In the specific implementation, after the SMS applet receives the signature application from the signature initiating user, it obtains the rich media information of the signature initiating user, that is, the 5G message subscription number is routed to the corresponding platform, and carries the rich media information and the token of the initiating user. The rich media information includes the download address of the signature form photo, the requested authorization object, etc. The platform downloads and saves the signature form through the download address of the signature form photo, and generates a session ID for this signing authorization for subsequent filing processing.
[0079] The platform receives the token and requested authorization object of user A (i.e., the user initiating the signature) and sends the signature application to the cloud, and receives the mobile phone number of the user initiating the signature fed back by the cloud. The cloud here specifically refers to the SMS applet. In addition, a database that stores information such as user names, phone numbers, and permissions can also be used. This embodiment does not impose any specific restrictions on this.
[0080] The SMS applet or cloud database returns the user information including the mobile phone number of user A. The platform searches the user_info table based on the user's mobile phone number to confirm whether the user has the authority to initiate the signature. If the authentication is successful, the signature authorization process is initiated. Figure 4 , Figure 4 This is an example diagram of the user_info table. The name field stores the user's name, and the phonenumber field stores the user's phone number, which is used to match users from 5G messages. The remaining fields contain information such as the user's unit and authority, which determines whether the user has the authority to sign the authorization, and the location of the signature.
[0081] Furthermore, the signing authority verification based on the mobile phone number includes:
[0082] Query the user information corresponding to the mobile phone number, the user information including the user's affiliated unit and signing authority;
[0083] The signing authority verification is performed based on the user's affiliation and signing authority.
[0084] In the specific implementation, by querying the user's affiliated unit and signing authority in the user_info table, it is possible to determine whether the signature initiator has the authority to sign the electronic signature, so as to determine whether the subsequent steps can be continued.
[0085] Step S20: When the authority verification is passed, the electronic signature of the signature initiating user and the corresponding signature file are generated through a preset signature model.
[0086] It is understandable that the electronic signature includes an authentication triplet, namely the user's name, a unique identification code, and a timestamp. The user's name is obtained by querying the user's mobile phone number from the database of registered users on the platform. The timestamp uses the "YYYY-MM-DDhh:mm:ss" format, which is easy for users to read. The unique identification code is generated using the NanoID scheme with a 16-bit string length.
[0087] The platform queries the registration information of user A on the platform based on the mobile phone number of user A, determines the role of user A and the position in the signature table, and generates an electronic signature and synthesizes the signature document by the signature algorithm.
[0088] In this step, OCR technology can be used to locate the signing area of the electronic signature. According to the queried user role, the OCR module searches for relevant text in the signature (such as: supervision unit, requester, and authorized party, etc.). The program returns the (x, y) coordinate value of the lower left corner of the signature area so that the electronic signature can be inserted into the signature document.
[0089] In this embodiment, reference Figure 5 , Figure 5This is a schematic diagram of the electronic signature of this embodiment, in which the unique identification code is generated using the NanoID scheme with a 16-bit string length, which is 4.5 times smaller than the traditional UUID memory usage, and the size reduction directly affects the size of the data. For example, objects using NanoID are small and compact and can be used for data transmission and storage. In most random generators, they use the insecure electronic signature Math.random(). However, the NanoID electronic signature uses the crypto module and the Web Crypto API, which means that the NanoID electronic signature is safer; unlike the 36 characters in the UUID electronic signature alphabet, the NanoID electronic signature only has 21 characters. Therefore, NanoID is 60% faster than UUID; NanoID supports 14 different programming languages, including mainstream C#, C++, Java, Python, Ruby, etc. It also supports PouchDB, CouchDB, WebWorkers, Rollup, as well as libraries such as React and Reach-Native; Another existing feature of NanoID is that it allows developers to use custom alphabets. We can change the size of the text or the id; Since NanoID does not rely on any third-party dependencies, it is able to become more stable and autonomous over time, which is conducive to optimizing the size of the package in the long run and making it less prone to problems caused by dependencies.
[0090] Step S30: Send the 5G information to be authorized to the signature authorization user, and receive the signing instruction fed back by the signature authorization user. The 5G information to be authorized is a 5G information dynamic template containing the electronic signature and the signature document.
[0091] It should be noted that the platform calls the 5G message subscription account developer mode interface, generates a 5G message dynamic template (including dynamic text variables) with the signature information signed by user A, and then sends a 5G message to the designated signature authorized user who needs signature confirmation through the 5G message subscription account group template message interface. The message template sample is as follows: Figure 6 shown.
[0092] The 5G information to be authorized is sent to the signature authorization user, and the signing instruction (agree or disagree) fed back by the signature authorization user is received. The SMS applet receives the signing instruction of user B, and automatically forwards it to the platform according to the URL registration information; the platform requires user B's authentication information, and the platform authentication information and user B's token must be sent to the SMS applet for authentication, and a request is made to obtain user B's information; the SMS applet returns user information containing user B's mobile phone number. The platform queries user B's registration information on the platform based on user B's mobile phone number, determines user B's permissions and position in the signature table, and generates an electronic signature by the signature algorithm and synthesizes the signature.
[0093] Step S40: Generate a target signature file according to the signing instruction and the signature file, and feed back the signing result to the signature initiating user and the signature authorizing user.
[0094] After both or more parties complete the signing, the results will be sent to each signatory. The platform inserts the relevant data of this session into the seal_record table to end this signing authorization transaction. The seal_record table is designed as follows: Figure 7 As shown in the figure, the name field is used to save the user name, the eventtype and eventkey fields are used to save the signature scenario type and the unique key of the type, such as the work order number of the on-the-job platform in the on-the-job acceptance scenario. The sealtype and sealareakey fields are used to save the signature type and signature area. The datetime field is the timestamp, and the nanoid field is the globally unique code.
[0095] This embodiment verifies the signing authority of the signature initiating user upon receiving the signature application from the signature initiating user, and generates the electronic signature and corresponding signature file of the signature initiating user when the signing authority is approved, and sends the 5G information to be authorized containing the electronic signature and the signature file to the signature authorized user to obtain the authorization instruction of the signature authorized user, thereby realizing the two-way signing of the electronic contract, and realizing the signing of the electronic signature through the user-platform-user interaction method, thereby avoiding the technical problems of poor security and circulation of electronic signatures in the prior art, and improving the security of contract signing.
[0096] refer to Figure 8 , Figure 8 This is a flow chart of a second embodiment of an electronic signature signing method of the present invention.
[0097] Based on the above first embodiment, in this embodiment, step S20 includes:
[0098] Step S201: Obtain the mobile phone number of the user who initiated the signature, and query the registration information corresponding to the mobile phone number.
[0099] It should be noted that the corresponding registration information can be determined through the user_info table corresponding to the mobile phone number, where the registration information includes: user name, timestamp, unique identification code and other information.
[0100] Step S202: positioning the signing area using a preset positioning model according to the registration information to obtain a target signing area.
[0101] In the specific implementation, OCR technology is used to locate the signing area of the electronic signature. According to the queried user registration information, the OCR module searches for relevant text in the signature (such as: supervision unit, initiator and authorized party, etc.). The program returns the (x, y) coordinate value of the lower left corner of the signature area and uses it as the target signing area.
[0102] Step S203: Generate an electronic signature according to the registration information through a preset signature model.
[0103] This application uses Python's PIL library to combine the user's name, timestamp, and unique identification code to generate an electronic signature corresponding to the user's signature.
[0104] Furthermore, in order to improve the credibility of the electronic signature of the signing initiator and the security of the signing process, in this embodiment, anti-counterfeiting authentication can be performed on the electronic signature. The electronic signature is generated according to the registration information through a preset signature model, including:
[0105] Calling a preset NanoID function to generate a unique identification code of the signature initiating user according to the user name;
[0106] Generate an electronic signature based on the user name, unique identification code and timestamp information;
[0107] Accordingly, before generating the signature document according to the target signing area, the electronic signature and the preset signature document template, the method further includes:
[0108] Determine the number of character hits between the electronic signature and the preset anti-counterfeiting code corresponding to the user name;
[0109] When the character hit count is greater than a preset threshold, a step of generating a signature document according to the target signing area, the electronic signature and a preset signature document template is executed.
[0110] Since NanoID does not rely on any third-party dependencies, it is able to become more stable and autonomous over time.
[0111] This helps keep your bundle size small in the long run and makes it less prone to issues with dependencies.
[0112] NanoID has 21 characters in total. Take guessing the characters in any 10 positions as an example to calculate the probability:
[0113]
[0114] Therefore, the probability of guessing k characters can be summarized as:
[0115]
[0116] According to the above formula, the probability table of guessing k is as follows Fig. 9 As shown, the robustness of using a 16-bit NanoID as an anti-counterfeiting code is sufficient to cope with most scenarios.
[0117] In this solution, Python's nanoid is used to generate electronic signature anti-counterfeiting codes. When the anti-counterfeiting code recognized by OCR is different from the record, there may be two situations. One is that the recognition error of OCR leads to errors in the recognition of some positions; the other is that there is a counterfeit authentication. In order to take into account both security and recognition errors and let users understand the credibility of electronic signatures, the confidence level needs to be calculated according to the number of matches and returned to the user in the form of a percentage. The user decides whether to continue the process.
[0118] In the specific implementation, by identifying the signatures of all roles, the user's authentication triplet (name, unique code, timestamp) is extracted. This embodiment uses the Tesseract OCR engine to complete OCR related work. In order to improve the recognition effect of the signature, the OCR module calculates the starting pixel point (upper left corner) of the signature position as follows:
[0119] P S (X,Y) = pixel [initial position of the OCR signature field] + pixel [offset adjustment position]
[0120] +pixel[dynamically adjusted image size]
[0121] The pixel calculation method for the end position (lower right corner) of the signature is as follows:
[0122] P E (X,Y)=P S (X,Y)+pixel[Y axis single character font size height in pixels]
[0123] +pixel[X-axis single character font size width font size*number of characters]
[0124] Further, when the character hit number is greater than a preset threshold, querying the hit probability corresponding to the character hit number;
[0125] Calculating the confidence of the electronic signature according to the character hit count and hit probability;
[0126] When the confidence level is greater than a preset threshold, a signature document is generated according to the target signing area, the electronic signature and a preset signature document template.
[0127] In the specific implementation, the calculation formula of the electronic signature confidence is:
[0128] C k =round(-2×log e P k -0.6×k 2 +9×k+13)×100%
[0129] Where k is the number of hits, C k Indicates the confidence when hitting k positions, P k is the probability of hitting the k position.
[0130] Step S204: Generate a signature document according to the target signing area, the electronic signature and a preset signature document template.
[0131] This embodiment obtains the mobile phone number of the user who initiates the signature and queries the registration information corresponding to the mobile phone number; locates the signing area through a preset positioning model based on the registration information to obtain a target signing area; generates an electronic signature through a preset signature model based on the registration information; generates a signature file based on the target signing area, the electronic signature and a preset signature file template to obtain electronic signatures that distinguish different users, increase the user verification process during the signing process, and improve the security of the electronic signature when signing.
[0132] refer to Fig.10 , Fig.10 It is a flowchart of a third embodiment of an electronic signature signing method of the present invention.
[0133] Based on the above second embodiment, in this embodiment, after step S40, the following is further included:
[0134] Step S50: Obtain the target signature file.
[0135] Step S60: identifying the target electronic signature of each user in the target signature document through a preset text recognition model.
[0136] Step S70: extracting the authentication triplet of the target electronic signature.
[0137] Step S80: Compare the authentication triplet with the preset anti-counterfeiting code corresponding to the user name in the preset seal record table.
[0138] Step S90: Calculate the target confidence according to the comparison result, and display the target confidence to the user.
[0139] It should be noted that the "anti-counterfeiting certification" of the electronic signature is triggered by the platform process. For example, when authorization needs to be confirmed in a certain process, the platform obtains the saved signature and identifies the electronic signature of each role through OCR.
[0140] Specifically, it includes: using OCR technology to locate the signing area of the electronic signature. According to the queried user role, the OCR module searches for relevant text (such as: supervision unit) in the signature document, and the program returns the (x, y) coordinate value of the lower left corner of the signature area; identifying the signatures of all roles and extracting the user's authentication triplet (name, unique code, timestamp); according to the signing user information, querying the user's authentication triplet information recorded in the platform from the seal_record table for comparison to determine the number of character hits, so as to facilitate the subsequent calculation of the confidence of the electronic signature.
[0141] According to the probability calculation table of 16-bit NanoID forgery, the probability of forged IDs with more than 6 digits being the same is less than one in ten thousand, and the probability of more than 9 digits being the same is less than one in ten million. To ensure the reliability of the signature, the scheme defines that when the name and timestamp are correct, if the unique code recognition result and the database record have a hit of less than 10 digits, the user is warned that the signature is unreliable; when 10 digits or more are hit, the user is returned the confidence of the electronic signature. The mapping relationship between the number of character hits and the hit probability is shown in Table 1.
[0142] Table 1
[0143]
[0144]
[0145] Where k is the number of hits, C k It indicates the confidence level when hitting k bits, and returns the confidence level information of the user's electronic signature. The user decides whether to continue the process.
[0146] This embodiment uses Python's nanoid to generate an electronic signature anti-counterfeiting code, allowing users to understand the credibility of signature recognition, calculates the confidence level according to the number of matches, and returns it to the user in the form of a percentage. The user decides whether to continue the process, while taking into account both security and accuracy recognition, thereby improving the security and reliability of electronic signature signing.
[0147] In addition, an embodiment of the present invention further proposes a storage medium, on which an electronic signature signing program is stored. When the electronic signature signing program is executed by a processor, the steps of the electronic signature signing method described above are implemented.
[0148] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0149] In addition, an embodiment of the present invention further provides a computer program product, including an electronic signature signing program, and when the electronic signature signing program is executed by a processor, the steps of the electronic signature signing method described above are implemented.
[0150] Since the specific implementation of this computer program product is basically the same as the above-mentioned embodiments of the electronic signature signing method, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described one by one here.
[0151] Reference Fig.11 , Fig.11 This is a structural block diagram of the first embodiment of the electronic signature signing device of the present invention.
[0152] like Fig.11 As shown, the electronic signature signing device proposed in the embodiment of the present invention includes:
[0153] The verification module 10 is used to verify the signing authority of the signature initiating user when receiving the signature application from the signature initiating user.
[0154] The generating module 20 is used to generate the electronic signature of the signature initiating user and the corresponding signature file through a preset signature model when the authority verification is passed.
[0155] The receiving module 30 is used to send the 5G information to be authorized to the signature authorization user and receive the signing instruction fed back by the signature authorization user. The 5G information to be authorized is a 5G information dynamic template containing the electronic signature and the signature document.
[0156] The signing module 40 is used to generate a target signed document according to the signing instruction and the signed document, and to feed back the signing result to the signature initiating user and the signature authorizing user.
[0157] In one embodiment, the generation module 20 is also used to obtain the mobile phone number of the user who initiates the signature, and query the registration information corresponding to the mobile phone number; locate the signing area through a preset positioning model based on the registration information to obtain the target signing area; generate an electronic signature through a preset signature model based on the registration information; and generate a signature file based on the target signing area, the electronic signature and a preset signature file template.
[0158] In one embodiment, the generation module 20 is also used to call a preset NanoID function to generate a unique identification code for the signature initiating user based on the user name; generate an electronic signature based on the user name, the unique identification code and the timestamp information; accordingly, before generating the signature file based on the target signing area, the electronic signature and the preset signature file template, it also includes: determining the number of character hits between the electronic signature and the preset anti-counterfeiting code corresponding to the user name; when the number of character hits is greater than a preset threshold, executing the step of generating a signature file based on the target signing area, the electronic signature and the preset signature file template.
[0159] In one embodiment, the verification module 10 is also used to query the hit probability corresponding to the character hit number when the character hit number is greater than a preset threshold; calculate the confidence of the electronic signature based on the character hit number and the hit probability; when the confidence is greater than the preset threshold, generate a signature file based on the target signing area, the electronic signature and a preset signature file template.
[0160] In one embodiment, the verification module 10 is also used to obtain rich media information of the signature initiating user, the rich media information including the download address of the signature form image of the signature initiating user and the requested authorization object; send the signature form image, the requested authorization object and the signature application to the cloud, and receive the mobile phone number of the signature initiating user fed back by the cloud; and perform signing authority verification based on the mobile phone number.
[0161] In one embodiment, the signing module 40 is further used to query the user information corresponding to the mobile phone number, the user information including the user's unit of affiliation and signing authority; and perform signing authority verification based on the user's unit of affiliation and signing authority.
[0162] In one embodiment, the generation module 20 is also used to obtain a target signature document; identify the target electronic signature of each user in the target signature document through a preset text recognition model; extract the authentication triplet of the target electronic signature; compare the authentication triplet with the preset anti-counterfeiting code corresponding to the user name in the preset seal record table; calculate the target confidence based on the comparison result, and display the target confidence to the user.
[0163] This embodiment verifies the signing authority of the signature initiating user upon receiving the signature application from the signature initiating user, and generates the electronic signature and corresponding signature file of the signature initiating user when the signing authority is approved, and sends the 5G information to be authorized containing the electronic signature and the signature file to the signature authorized user to obtain the authorization instruction of the signature authorized user, thereby realizing the two-way signing of the electronic contract, and realizing the signing of the electronic signature through the user-platform-user interaction method, thereby avoiding the technical problems of poor security and circulation of electronic signatures in the prior art, and improving the security of contract signing.
[0164] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0165] 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.
[0166] 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.
[0167] In addition, for technical details not fully described in this embodiment, reference can be made to the electronic signature signing method provided in any embodiment of the present invention, and will not be repeated here.
[0168] 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.
[0169] 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.
[0170] 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.
[0171] 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.
Claims
1. An electronic signature signing method, characterized in that: The electronic signature signing method comprises: Upon receiving a signature application from a signature initiating user, verify the signing authority of the signature initiating user; When the authority verification is passed, the electronic signature of the signature initiating user and the corresponding signature document are generated through the preset signature model; Send the 5G information to be authorized to the signature authorization user, and receive the signing instruction fed back by the signature authorization user, wherein the 5G information to be authorized is a 5G information dynamic template including the electronic signature and the signed document; A target signature document is generated according to the signing instruction and the signature document, and the signing result is fed back to the signature initiating user and the signature authorizing user.
2. The electronic signature signing method according to claim 1, characterized in that: The step of generating the electronic signature of the signature initiating user and the corresponding signature file by using a preset signature model includes: Obtain the mobile phone number of the user who initiated the signature, and query the registration information corresponding to the mobile phone number; Positioning the signing area using a preset positioning model according to the registration information to obtain a target signing area; Generate an electronic signature using a preset signature model according to the registration information; A signature document is generated according to the target signing area, the electronic signature and a preset signature document template.
3. The electronic signature signing method according to claim 2, characterized in that: The electronic signature includes user name and timestamp information; Generating an electronic signature according to the registration information by using a preset signature model includes: Calling a preset NanoID function to generate a unique identification code of the signature initiating user according to the user name; Generate an electronic signature based on the user name, unique identification code and timestamp information; Accordingly, before generating the signature document according to the target signing area, the electronic signature and the preset signature document template, the method further includes: Determine the number of character hits between the electronic signature and the preset anti-counterfeiting code corresponding to the user name; When the character hit count is greater than a preset threshold, a step of generating a signature document according to the target signing area, the electronic signature and a preset signature document template is executed.
4. The electronic signature signing method according to claim 3, characterized in that: The electronic signature signing method comprises: When the character hit number is greater than a preset threshold, querying the hit probability corresponding to the character hit number; Calculating the confidence of the electronic signature according to the character hit count and hit probability; When the confidence level is greater than a preset threshold, a signature document is generated according to the target signing area, the electronic signature and a preset signature document template.
5. The electronic signature signing method according to claim 1, characterized in that: The verification of the signing authority of the signature initiating user includes: Acquire rich media information of the signature initiating user, wherein the rich media information includes a download address of a signature sheet image of the signature initiating user and a requested authorization object; Send the signature sheet image, the requested authorization object and the signature application to the cloud, and receive the mobile phone number of the signature initiator user fed back by the cloud; The signing authority is verified based on the mobile phone number.
6. The electronic signature signing method according to any one of claims 1 to 5, characterized in that: The electronic signature signing method further includes: Get the target signature document; Identify the target electronic signature of each user in the target signature document by using a preset text recognition model; Extracting the authentication triplet of the target electronic signature; Compare the authentication triplet with the preset anti-counterfeiting code corresponding to the user name in the preset seal record table; The target confidence is calculated according to the comparison result, and the target confidence is displayed to the user.
7. An electronic signature signing device, characterized in that: The electronic signature signing device comprises: A verification module is used to verify the signing authority of the signature initiating user upon receiving the signature application from the signature initiating user; A generation module, used to generate the electronic signature of the signature initiating user and the corresponding signature file through a preset signature model when the authority verification is passed; A receiving module is used to send the 5G information to be authorized to the signature authorized user, and receive the signing instruction fed back by the signature authorized user, wherein the 5G information to be authorized is a 5G information dynamic template including the electronic signature and the signed document; The signing module is used to generate a target signature file according to the signing instruction and the signature file, and to feed back the signing result to the signature initiating user and the signature authorizing user.
8. An electronic signature signing device, characterized in that: The electronic signature signing device comprises: a memory, a processor, and an electronic signature signing program stored in the memory and executable on the processor, wherein the electronic signature signing program is configured to implement the electronic signature signing method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores an electronic signature signing program, and when the electronic signature signing program is executed by the processor, the electronic signature signing method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product comprises an electronic signature signing program, and when the electronic signature signing program is executed by a processor, the electronic signature signing method according to any one of claims 1 to 6 is implemented.
