Electronic contract authorization signing method and device, electronic equipment and storage medium
By adopting the key segmentation and merging method based on the Chinese residual theorem design on the polynomial ring in electronic contract authorization signing, the problem of insufficient security caused by the traditional threshold solution relying on modular integer operations is solved, and efficient and secure electronic signature signing is achieved process.
Patent Information
- Application Number
- CN202410915685.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-22
AI Technical Summary
The existing electronic contract authorization signing method relies too much on modular integer operations when using traditional threshold schemes based on Chinese residual theorems, and cannot provide complete security in the sense of information theory, resulting in insufficient signing efficiency and security.
A key segmentation and merging method designed based on the Chinese residual theorem on the polynomial ring is used to generate a signature key pair, which is used to authorize the signing of an electronic contract to ensure the security and efficiency of the signature key.
Through this method, applicants can be quickly and securely authorized to sign electronic contracts using electronic signatures, which improves the signing efficiency of electronic contracts and enhances the security of the signing process.
Smart Images

Figure CN119005983A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of signing electronic contracts, and more specifically, to a method, device, electronic device and storage medium for authorizing the signing of electronic contracts. Background Art
[0002] Electronic contracts are widely used because they greatly improve the efficiency of contract signing and management, reduce costs, and realize digitalization, paperless and environmental protection of business processes. When using electronic contracts, electronic signatures are generally used to ensure the legitimacy of the signed documents, and when using electronic seals for electronic signatures, signature digital certificates and signature keys are required. For ease of use, the signed signature keys are often not stored in cryptographic devices such as smart password keys, but hosted on the server side of the electronic contract platform. For the legitimacy and validity of electronic contracts, the way to store signature keys and the way to authorize the use of signature keys are very important.
[0003] At present, when storing signature keys, typical design methods of threshold secret sharing are usually used, mainly including those based on polynomial interpolation, group addition and Chinese remainder theorem. However, most threshold schemes based on Chinese Remainder Theorem (CRT) rely on modular integer operations and cannot provide complete security in the sense of information theory.
[0004] Therefore, in order to solve the technical problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense, an electronic contract authorization signing method, device, electronic device and storage medium are urgently needed. Summary of the invention
[0005] The purpose of the present application is to provide a method, device, electronic device and storage medium for authorizing the signing of an electronic contract. By means of a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, a signature key pair is generated for authorizing the signing of an electronic contract. The problem that the existing method for authorizing the signing of an electronic contract relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the sense of information theory is solved. The method can quickly and securely authorize the applicant to use an electronic signature to sign an electronic contract, thereby improving the efficiency of signing electronic contracts.
[0006] In a first aspect, the present application provides a method for authorizing the signing of an electronic contract, comprising the steps of: S101, in response to an authorization signature request initiated by an applicant, obtaining request data of the applicant; S102, after verifying the request data, sending a request data confirmation prompt to the applicant to guide the applicant to confirm the request data; S103, after the applicant confirms, determine whether the applicant's signature digital certificate is within the validity period; if not, determine that the applicant has not set the corresponding signature digital certificate, and execute step S104; if so, determine that the applicant has set the corresponding signature digital certificate, and execute step S105; S104, obtaining the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and electronically signing the electronic contract using the applicant's signature digital certificate; S105: electronically sign the electronic contract using the applicant's signature digital certificate.
[0007] The electronic contract authorization signing method provided in this application can realize the authorized signing of electronic contracts. Through the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, a signature key pair is generated to authorize the signing of the electronic contract. This solves the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. It can quickly and securely authorize applicants to use electronic signatures to sign electronic contracts, thereby improving the signing efficiency of electronic contracts.
[0008] Optionally, the request data includes applicant information, a letter of authorization, a signed document, a hash value of the signed document and a hash value of the request data.
[0009] Optionally, obtaining the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and electronically signing the electronic contract using the applicant's signature digital certificate, including: Generate a signature key pair by using the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring; According to the request data, sending key verification information corresponding to the signature key pair to the applicant through a preset information transmission method; In response to the correct signature key pair input by the applicant, the signature digital certificate of the applicant is obtained, and the electronic contract is electronically signed using the signature digital certificate of the applicant.
[0010] The electronic contract authorization signing method provided in this application can realize the authorized signing of electronic contracts. When the applicant has not set up a signature digital certificate corresponding to the electronic signature, a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring is used to generate a signature key pair, which is beneficial to improving the security of the signature key pair.
[0011] Optionally, using the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring to generate the signature key pair includes: Selecting polynomials that are mutually prime in pairs within a preset finite field; Splitting a preset signature key into a plurality of split keys based on an exponent of a highest-order term in the polynomial; Select any one of the split keys to generate the corresponding signature key pair.
[0012] Optionally, in response to the correct signature key pair input by the applicant, obtaining the signature digital certificate of the applicant, and electronically signing the electronic contract using the signature digital certificate of the applicant, including: In response to the correct signature key pair input by the applicant, issuing an identity authentication application; After the applicant performs identity authentication, obtaining the applicant's signature digital certificate; The electronic contract is electronically signed using the applicant's signature digital certificate.
[0013] Optionally, in response to the correct signature key pair input by the applicant, issuing an identity authentication application includes: In response to the signature key pair input by the applicant, verify the accuracy of the signature key pair input by the applicant through the key splitting and merging method designed based on the Chinese remainder theorem on the polynomial ring; When the signature key pair input by the applicant is a correct signature key pair, an identity authentication application is issued; When the signature key pair input by the applicant is an incorrect signature key pair, an error reminder is issued to remind the applicant to input the signature key pair again.
[0014] The electronic contract authorization signing method provided in this application can realize the authorized signing of electronic contracts. Through the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, the accuracy of the signature key pair input by the applicant is verified, which is conducive to improving the security of the signature key pair.
[0015] Optionally, in response to the correct signature key pair input by the applicant, after obtaining the signature digital certificate of the applicant and electronically signing the electronic contract using the signature digital certificate of the applicant, the method further includes: After obtaining the consent of the applicant, a corresponding authorization token is generated according to the signed digital certificate and a corresponding validity period is set.
[0016] In a second aspect, the present application provides an electronic contract authorization signature device, comprising: An acquisition module, used to respond to an authorization signature request initiated by an applicant and acquire the request data of the applicant; a prompt module, configured to send a request data confirmation prompt to the applicant after verifying the request data, so as to guide the applicant to confirm the request data; A judgment module, used to judge whether the signature digital certificate of the applicant is within the validity period after the applicant confirms; if not, it is determined that the applicant has not set the corresponding signature digital certificate, and the first signature module is controlled to execute the corresponding steps; if so, it is determined that the applicant has set the corresponding signature digital certificate, and the second signature module is controlled to execute the corresponding steps; A first signature module, used to obtain the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and electronically sign the electronic contract using the applicant's signature digital certificate; The second signature module is used to electronically sign the electronic contract using the applicant's signature digital certificate.
[0017] The electronic contract authorization signing device generates a signature key pair for authorizing the signing of electronic contracts through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring. This solves the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. It can quickly and securely authorize applicants to use electronic signatures to sign electronic contracts, thereby improving the signing efficiency of electronic contracts.
[0018] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, it runs the steps in the electronic contract authorization signing method described above.
[0019] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the electronic contract authorization signature method described above are executed.
[0020] Beneficial effects: The electronic contract authorization signing method, device, electronic device and storage medium provided in the present application generate a signature key pair for authorizing the signing of an electronic contract through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, thereby solving the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. The method can quickly and securely authorize applicants to use electronic signatures to sign electronic contracts, thereby improving the efficiency of signing electronic contracts. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of the electronic contract authorization signing method provided in an embodiment of the present application.
[0022] Figure 2 A schematic diagram of the structure of an electronic contract authorization signature device provided in an embodiment of the present application.
[0023] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0024] Explanation of reference numerals: 1. Acquisition module; 2. Prompt module; 3. Judgment module; 4. First signature module; 5. Second signature module; 301. Processor; 302. Memory; 303. Communication bus. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0026] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0027] Please refer to Figure 1 , Figure 1 It is a method for authorizing the signing of an electronic contract in some embodiments of the present application, which is used to authorize the signing of an electronic contract, including: Step S101, in response to the authorization signature request initiated by the applicant, obtaining the applicant's request data; Step S102, after verifying the request data, sending a request data confirmation prompt to the applicant to guide the applicant to confirm the request data; Step S103, after the applicant confirms, it is determined whether the applicant's signature digital certificate is within the validity period; if not, it is determined that the applicant has not set the corresponding signature digital certificate, and step S104 is executed; if so, it is determined that the applicant has set the corresponding signature digital certificate, and step S105 is executed; Step S104, obtaining the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and electronically signing the electronic contract using the applicant's signature digital certificate; Step S105: electronically sign the electronic contract using the applicant's signature digital certificate.
[0028] The electronic contract authorization signing method generates a signature key pair for authorizing the signing of an electronic contract through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring. This solves the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. It can quickly and securely authorize applicants to use electronic signatures to sign electronic contracts, thereby improving the efficiency of electronic contract signing.
[0029] Specifically, in step S101, when the applicant wants to sign an electronic contract, the applicant will issue an authorization signing request. In response to the authorization signing request initiated by the applicant, the applicant's request data is obtained, and the request data includes applicant information, authorization letter, signed document, signed document hash value and request data hash value. Among them, when the applicant signs the electronic contract on behalf of a company or organization, it is also necessary to obtain the information of the representative company or organization, including the name, address and applicant position of the representative company or organization.
[0030] Among them, the hash value, also known as the hash value, hash value or message digest, is a function that maps input data of any length to output data of a fixed length, and has the characteristics of irreversibility, uniqueness and anti-collision. The hash value is used to ensure that the files and data are indeed provided by the original creator.
[0031] Applicant information includes applicant's name, phone number and other information.
[0032] The authorization letter is a document in which the applicant authorizes the use of electronic signature.
[0033] Signed documents are electronic contracts that need to be signed.
[0034] Specifically, in step S102, after the applicant enters the request data, it is necessary to confirm whether there is any missing information in the request data, such as no signed document uploaded or no applicant's name filled in, etc. After verifying the applicant's request data, a request data confirmation prompt is sent to the applicant to guide the applicant to reconfirm the request data.
[0035] Specifically, in step S103, after the applicant confirms that the requested data is correct, it is determined whether the applicant's signature digital certificate is within the validity period; if the applicant's signature digital certificate is not within the validity period, it is determined that the applicant has not set the corresponding signature digital certificate, and step S104 is executed; if the applicant's signature digital certificate is within the validity period, it is determined that the applicant has set the corresponding signature digital certificate, and step S105 is executed.
[0036] Specifically, in step S104, the applicant's signature digital certificate is obtained through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and the electronic contract is electronically signed using the applicant's signature digital certificate, including: Generate signature key pairs using the key splitting and merging method designed based on the Chinese remainder theorem on polynomial rings; According to the request data, the key verification information corresponding to the signature key pair is sent to the applicant through a preset information transmission method; In response to the correct signature key pair input by the applicant, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate.
[0037] It should be noted that when the applicant uses this method to authorize the electronic contract to sign, it is necessary to log in to the client of the corresponding electronic contract authorization signing service platform and operate on the client. In order to prevent a third party from stealing the user's account to complete the authorization signing, the signature key pair should not be sent to the applicant in the client, but should be sent to the applicant through other information transmission channels. Therefore, the preset information transmission method here refers to the use of information transmission channels other than the client of the electronic contract authorization signing service platform to transmit information, for example, sending the signature key pair by sending a mobile phone text message, but not limited to this. After the applicant receives the signature key pair, it is necessary to enter the signature key pair in the client to achieve identity authentication.
[0038] Specifically, in step S104, a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring is used to generate a signature key pair, including: Selecting polynomials that are mutually prime in pairs within a preset finite field; Splitting a preset signature key into multiple split keys based on the exponent of the highest-order term in the polynomial; Select any split key and generate the corresponding signing key pair.
[0039] In step S104, positive integers n and t are selected, and a prime number p is selected; n>t and n and t are both positive integers, n+1 is the split share of the corresponding secret of the split key, and t represents the recovery share required to recover the secret; assuming the polynomial , x is a variable, , i is an integer, , is the exponent of the highest order term in the polynomial, deg represents the exponent of the highest order term in the polynomial, is a constant, ,make =1, we get .
[0040] In the predefined finite domain Select polynomials that are mutually prime and (Right now , ), polynomial and The following conditions must be met: 1) ; 2) .
[0041] Let the threshold secret space corresponding to the signature key , polynomial .in, For a finite field The polynomial inside, Finite Field .
[0042] by The length of the signature key is taken as a unit, and the length of the signature key is divided to obtain multiple split keys, and the secret corresponding to the split key is a polynomial , polynomial , let the polynomial , we get the formula ,in, The result of polynomial calculation.
[0043] Keep secret Divide into n+1 shares , for each share , the share Assigned to the corresponding pth participant (p=i+1). Where mod is the modulus operator. express Divide by The remainder is .
[0044] Recovering the Secret When The secret can be restored .
[0045] In summary, the division results in n shares , where the i-th share The corresponding pth participant is the applicant, and the signature key pair includes the secret and share secret is the signature private key, share To verify the public key.
[0046] For example, convert the base64 plaintext corresponding to the signature key into ASCII code to indicate that each character or number in the signature key is represented by a corresponding number, and use the ASCII code as the coefficient of the polynomial in the threshold secret space S, and calculate it in a block manner (when the signature key length is 44 characters, the converted polynomial has 44 coefficients, and the highest order term of the polynomial is x 43 , if the algorithm based on the Chinese remainder theorem is used for calculation, the amount of calculation is large, so the calculation is performed in blocks), the signature key is split into multiple split keys, and the secret keys corresponding to the split keys are obtained , to ensure that the operation is performed within a finite field and the power of the polynomial is controlled to 3, that is, the secret ,in, , , , It is an ASCII code, that is, 4 base64 plaintexts are used as the segmentation unit, and the signature key is cryptographically segmented and stored corresponding to the ASCII code, and the value 255 is assigned to the length less than 4 (that is, when the length is 1, 2 or 3) for padding. When recovering, if the coefficient value is 255, it means that the length of the base64 plaintext is less than 4 and needs to be padded with 255; in summary, the secret segmentation share is 4 shares, and the recovery share is 3 shares.
[0047] In step S104, any verification public key is used as key verification information (other verification public keys are stored in the database), or t verification public keys are used as key verification information, and the key verification information is sent to the applicant through a preset information transmission method such as mobile phone number or email according to the mobile phone number or email address in the request data, so that the applicant enters the verification public key to verify the correctness of the signature key pair to obtain the signature digital certificate.
[0048] Specifically, in step S104, in response to the correct signature key pair input by the applicant, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate, including: In response to the correct signature key pair input by the applicant, an identity authentication application is issued; After the applicant completes identity authentication, obtain the applicant's signature digital certificate; The electronic contract is electronically signed using the applicant's signature digital certificate.
[0049] Specifically, in step S104, in response to the correct signature key pair input by the applicant, an identity authentication application is issued, including: In response to the signature key pair input by the applicant, verify the accuracy of the signature key pair input by the applicant through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring; When the signature key pair input by the applicant is the correct one, an identity authentication application is issued; When the signature key pair input by the applicant is an incorrect signature key pair, an error reminder is issued and the applicant is reminded to enter the signature key pair again.
[0050] In step S104, after the applicant inputs the signature key pair (the signature key pair input by the applicant is the verification public key), the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring is used to verify whether the signature key pair input by the applicant is accurate. When the signature key pair input by the applicant is a correct signature key pair, an identity authentication application (such as an authentication application by face recognition, fingerprint recognition, password recognition, etc.) is issued. When the signature key pair input by the applicant is an incorrect signature key pair, an error reminder is issued and the applicant is reminded to enter the signature key pair again.
[0051] When verifying a signing key pair, the recovery secret is required , for the authorization set of t participants ,in, is the tth participant in the secret recovery process, and are the verification public key and corresponding polynomial of the tth participant in the secret recovery process, respectively. is the unknown polynomial to be recovered, let , 1≤j≤t, is the polynomial of the jth participant in the secret recovery process The polynomial degree is assuming The polynomial representing the jth participant in the secret recovery process The sum of the polynomial degrees of d is calculated by using the Chinese remainder theorem and the input verification public key (or combined with the verification public key in the database) to obtain the unique solution with a polynomial degree less than d. , and then calculate the secret of recovery Among them, the Chinese remainder theorem is an existing technology and will not be described in detail here.
[0052] The secret of recovery With the formula The polynomial in If the two are the same, secret recovery is determined to verify that the input signing key pair is the correct signing key pair.
[0053] In summary, the signature key splitting and merging process of the key splitting and merging method designed based on the Chinese remainder theorem on the polynomial ring can ensure that the secret corresponding to the signature key can be securely distributed and reliably recovered when the conditions are met.
[0054] In some embodiments, when This scheme (key splitting and merging method based on the Chinese remainder theorem on polynomial rings) is the most ideal. In particular, when , , , , , the scheme is Shamir's scheme. Therefore, this scheme can be regarded as an abstract and generalized Shamir's scheme.
[0055] In step S104, after the applicant performs identity authentication, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate. Identity authentication includes face recognition, fingerprint recognition, password recognition, etc., which are existing technologies and will not be described in detail here.
[0056] Specifically, in step S104, in response to the correct signature key pair input by the applicant, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate, and the following further includes: After obtaining the applicant's consent, a corresponding authorization token is generated based on the signed digital certificate and the corresponding validity period is set.
[0057] In step S104, after the electronic contract is electronically signed using the applicant's signature digital certificate, an authorization token authorization invitation will be issued. After the applicant agrees, the corresponding authorization token is generated based on the signature digital certificate and the corresponding validity period is set, so that the applicant can directly use the authorization token within the validity period to obtain the signature digital certificate for electronic signature.
[0058] Specifically, in step S105, if the signature digital certificate of the applicant is within the validity period, it means that the applicant has produced a corresponding authorization token, and the signature digital certificate can be directly used for electronic signature through the authorization token.
[0059] As can be seen from the above, the electronic contract authorization signature method, through step S101, responds to the authorization signature request initiated by the applicant, obtains the applicant's request data, step S102, after verifying the request data, sends a request data confirmation prompt to the applicant to guide the applicant to confirm the request data, step S103, after the applicant confirms, determines whether the applicant's signature digital certificate is within the validity period, if not, determines that the applicant has not set the corresponding signature digital certificate, executes step S104, if so, determines that the applicant has set the corresponding signature digital certificate, executes step S105, step S104, through the key splitting designed based on the Chinese remainder theorem on the polynomial ring The method for merging and acquiring the signature digital certificate of the applicant is used to electronically sign the electronic contract using the signature digital certificate of the applicant. In step S105, the electronic contract is electronically signed using the signature digital certificate of the applicant. Thus, a signature key pair is generated through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring to authorize the signing of the electronic contract. This solves the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. This method can quickly and securely authorize the applicant to use an electronic signature to sign the electronic contract, thereby improving the signing efficiency of the electronic contract.
[0060] refer to Figure 2 The present application provides an electronic contract authorization signature device for authorizing the signature of an electronic contract, including: The acquisition module 1 is used to respond to the authorization signature request initiated by the applicant and obtain the applicant's request data; Prompt module 2, used for sending a request data confirmation prompt to the applicant after verifying the request data, so as to guide the applicant to confirm the request data; The judging module 3 is used to judge whether the signature digital certificate of the applicant is within the validity period after the applicant confirms; if not, it is determined that the applicant has not set the corresponding signature digital certificate, and the first signature module 4 is controlled to execute the corresponding steps; if so, it is determined that the applicant has set the corresponding signature digital certificate, and the second signature module 5 is controlled to execute the corresponding steps; The first signature module 4 is used to obtain the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and use the applicant's signature digital certificate to electronically sign the electronic contract; The second signature module 5 is used to electronically sign the electronic contract using the applicant's signature digital certificate.
[0061] The electronic contract authorization signing device generates a signature key pair for authorizing the signing of electronic contracts through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring. This solves the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. It can quickly and securely authorize applicants to use electronic signatures to sign electronic contracts, thereby improving the signing efficiency of electronic contracts.
[0062] Specifically, when the acquisition module 1 is executed, when the applicant wants to sign the electronic contract, the applicant will issue an authorization signing request, and in response to the authorization signing request initiated by the applicant, the applicant's request data is obtained, and the request data includes the applicant information, the authorization letter, the signed document, the signed document hash value and the hash value of the request data. Among them, when the applicant signs the electronic contract on behalf of a company or organization, it is also necessary to obtain the information of the representative company or organization, including the name, address and applicant position of the representative company or organization.
[0063] Among them, the hash value, also known as the hash value, hash value or message digest, is a function that maps input data of any length to output data of a fixed length, and has the characteristics of irreversibility, uniqueness and anti-collision. The hash value is used to ensure that the files and data are indeed provided by the original creator.
[0064] Applicant information includes applicant's name, phone number and other information.
[0065] The authorization letter is a document in which the applicant authorizes the use of electronic signature.
[0066] Signed documents are electronic contracts that need to be signed.
[0067] Specifically, when prompt module 2 is executed, after the applicant enters the request data, it is necessary to confirm whether there is any missing information in the request data, such as no signed document uploaded or the applicant's name not filled in, etc. After verifying the applicant's request data, a request data confirmation prompt is sent to the applicant to guide the applicant to reconfirm the request data.
[0068] Specifically, when the judgment module is executed, after the applicant confirms that the requested data is correct, it determines whether the applicant's signature digital certificate is within the validity period; if the applicant's signature digital certificate is not within the validity period, it is determined that the applicant has not set the corresponding signature digital certificate, and the first signature module 4 is controlled to execute the corresponding steps; if the applicant's signature digital certificate is within the validity period, it is determined that the applicant has set the corresponding signature digital certificate, and the second signature module 5 is controlled to execute the corresponding steps.
[0069] Specifically, when the first signature module 4 obtains the applicant's signature digital certificate through the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and uses the applicant's signature digital certificate to electronically sign the electronic contract, it executes: Generate signature key pairs using the key splitting and merging method designed based on the Chinese remainder theorem on polynomial rings; According to the request data, the key verification information corresponding to the signature key pair is sent to the applicant through a preset information transmission method; In response to the correct signature key pair input by the applicant, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate.
[0070] It should be noted that when the applicant uses this method to authorize the electronic contract to sign, it is necessary to log in to the client of the corresponding electronic contract authorization signing service platform and operate on the client. In order to prevent a third party from stealing the user's account to complete the authorization signing, the signature key pair should not be sent to the applicant in the client, but should be sent to the applicant through other information transmission channels. Therefore, the preset information transmission method here refers to the use of information transmission channels other than the client of the electronic contract authorization signing service platform to transmit information, for example, sending the signature key pair by sending a mobile phone text message, but not limited to this. After the applicant receives the signature key pair, it is necessary to enter the signature key pair in the client to achieve identity authentication.
[0071] Specifically, when the first signature module 4 generates a signature key pair using a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, it executes: Selecting polynomials that are mutually prime in pairs within a preset finite field; Splitting a preset signature key into multiple split keys based on the exponent of the highest-order term in the polynomial; Select any split key and generate the corresponding signing key pair.
[0072] When the first signature module 4 is executed, it selects positive integers n and t, and a prime number p; n>t and n and t are both positive integers, n+1 is the split share of the corresponding secret of the split key, and t represents the recovery share required to recover the secret; assuming the polynomial , x is a variable, , i is an integer, , is the exponent of the highest order term in the polynomial, deg represents the exponent of the highest order term in the polynomial, is a constant, ,make =1, we get .
[0073] In the predefined finite domain Select polynomials that are mutually prime and (Right now , ) Polynomial and The following conditions must be met: 1) ; 2) .
[0074] Let the threshold secret space corresponding to the signature key , polynomial .in, For a finite field The polynomial inside, Right now .
[0075] by The length of the signature key is taken as a unit, and the length of the signature key is divided to obtain multiple split keys, and the secret corresponding to the split key is a polynomial , polynomial , let the polynomial , we get the formula ,in, The result of polynomial calculation.
[0076] Keep secret Divide into n+1 shares , for each share , the share Assigned to the corresponding pth participant (p=i+1). Where mod is the modulus operator. express Divide by The remainder is .
[0077] Recovering the Secret When The secret can be restored .
[0078] In summary, the division results in n shares , where the i-th share The corresponding pth participant is the applicant, and the signature key pair includes the secret and share secret is the signature private key, share To verify the public key.
[0079] For example, convert the base64 plaintext corresponding to the signature key into ASCII code to indicate that each character or number in the signature key is represented by a corresponding number, and use the ASCII code as the coefficient of the polynomial in the threshold secret space S, and calculate it in a block manner (when the signature key length is 44 characters, the converted polynomial has 44 coefficients, and the highest order term of the polynomial is x 43 , if the algorithm based on the Chinese remainder theorem is used for calculation, the amount of calculation is large, so the calculation is performed in blocks), the signature key is split into multiple split keys, and the secret keys corresponding to the split keys are obtained , to ensure that the operation is performed within a finite field and the power of the polynomial is controlled to 3, that is, the secret ,in, , , , It is an ASCII code, that is, 4 base64 plaintexts are used as the segmentation unit, and the signature key is cryptographically segmented and stored corresponding to the ASCII code, and the value 255 is assigned to the length less than 4 (that is, when the length is 1, 2 or 3) for padding. When recovering, if the coefficient value is 255, it means that the length of the base64 plaintext is less than 4 and needs to be padded with 255; in summary, the secret segmentation share is 4 shares, and the recovery share is 3 shares.
[0080] When the first signature module 4 is executed, it uses any verification public key as key verification information (other verification public keys are stored in the database), or uses t verification public keys as key verification information, and sends the key verification information to the applicant through a preset information transmission method such as mobile phone number or email according to the mobile phone number or email address in the request data, so that the applicant can enter the verification public key to verify the correctness of the signature key pair to obtain the signature digital certificate.
[0081] Specifically, the first signature module 4, in response to the correct signature key pair input by the applicant, obtains the applicant's signature digital certificate, and uses the applicant's signature digital certificate to electronically sign the electronic contract, executes: In response to the correct signature key pair input by the applicant, an identity authentication application is issued; After the applicant completes identity authentication, obtain the applicant's signature digital certificate; The electronic contract is electronically signed using the applicant's signature digital certificate.
[0082] Specifically, when the first signature module 4 issues an identity authentication application in response to the correct signature key pair input by the applicant, it executes: In response to the signature key pair input by the applicant, verify the accuracy of the signature key pair input by the applicant through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring; When the signature key pair input by the applicant is the correct one, an identity authentication application is issued; When the signature key pair input by the applicant is an incorrect signature key pair, an error reminder is issued and the applicant is reminded to enter the signature key pair again.
[0083] When the first signature module 4 is executed, after the applicant inputs the signature key pair (the signature key pair input by the applicant is the verification public key), it verifies whether the signature key pair input by the applicant is accurate through the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring. When the signature key pair input by the applicant is a correct signature key pair, an identity authentication application (such as an authentication application by face recognition, fingerprint recognition, password recognition, etc.) is issued. When the signature key pair input by the applicant is an incorrect signature key pair, an error reminder is issued and the applicant is reminded to enter the signature key pair again.
[0084] When verifying a signing key pair, the recovery secret is required , for the authorization set of t participants ,in, is the tth participant in the secret recovery process, and are the verification public key and corresponding polynomial of the tth participant in the secret recovery process, respectively. is the unknown polynomial to be recovered, let , 1≤j≤t, is the polynomial of the jth participant in the secret recovery process The polynomial degree is assuming The polynomial representing the jth participant in the secret recovery process The sum of the polynomial degrees of d is calculated by using the Chinese remainder theorem and the input verification public key (or combined with the verification public key in the database) to obtain the unique solution with a polynomial degree less than d. , and then calculate the secret of recovery Among them, the Chinese remainder theorem is an existing technology and will not be described in detail here.
[0085] The secret of recovery With the formula The polynomial in If the two are the same, secret recovery is determined to verify that the input signing key pair is the correct signing key pair.
[0086] In summary, the signature key splitting and merging process of the key splitting and merging method designed based on the Chinese remainder theorem on the polynomial ring can ensure that the secret corresponding to the signature key can be securely distributed and reliably recovered when the conditions are met.
[0087] In some embodiments, when This scheme (key splitting and merging method based on the Chinese remainder theorem on polynomial rings) is the most ideal. In particular, when , , , , , the scheme is Shamir's scheme. Therefore, this scheme can be regarded as an abstract and generalized Shamir's scheme.
[0088] When the first signature module 4 is executed, after the applicant performs identity authentication, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate. Among them, identity authentication includes face recognition, fingerprint recognition, password recognition, etc. The above are existing technologies and will not be described in detail here.
[0089] Specifically, the first signature module 4, in response to the correct signature key pair input by the applicant, obtains the applicant's signature digital certificate, and uses the applicant's signature digital certificate to electronically sign the electronic contract, and then further executes: After obtaining the applicant's consent, a corresponding authorization token is generated based on the signed digital certificate and the corresponding validity period is set.
[0090] When the first signature module 4 is executed, after using the applicant's signature digital certificate to electronically sign the electronic contract, it will issue an authorization token authorization invitation. After the applicant agrees, the first signature module 4 will generate a corresponding authorization token based on the signature digital certificate and set the corresponding validity period, so that the applicant can directly use the authorization token within the validity period to obtain the signature digital certificate for electronic signature.
[0091] Specifically, when the second signature module 5 is executed, if the applicant's signature digital certificate is within the validity period, it means that the applicant has produced a corresponding authorization token, and the signature digital certificate can be directly used for electronic signature through the authorization token.
[0092] As can be seen from the above, the electronic contract authorization signing device, through the acquisition module, is used to respond to the authorization signing request initiated by the applicant and obtain the applicant's request data; the prompt module is used to send a request data confirmation prompt to the applicant after verifying the request data to guide the applicant to confirm the request data; the judgment module is used to judge whether the applicant's signature digital certificate is within the validity period after the applicant confirms; if not, it is determined that the applicant has not set the corresponding signature digital certificate, and the first signature module is controlled to execute the corresponding steps; if so, it is determined that the applicant has set the corresponding signature digital certificate, and the second signature module is controlled to execute the corresponding steps; the first signature module is used to pass the Chinese remainder theorem based on the polynomial ring The key splitting and merging method is designed to obtain the applicant's signature digital certificate and use the applicant's signature digital certificate to electronically sign the electronic contract. The second signature module is used to electronically sign the electronic contract using the applicant's signature digital certificate. Thus, through the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, a signature key pair is generated to authorize the signing of the electronic contract, thereby solving the problem that the existing electronic contract authorization signing method relies too much on modular integer operations when using the traditional threshold scheme based on the Chinese remainder theorem and cannot provide complete security in the information theory sense. The method can quickly and securely authorize the applicant to use an electronic signature to sign the electronic contract, thereby improving the signing efficiency of the electronic contract.
[0093] Please refer to Figure 3 , Figure 3This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The present application provides an electronic device, including: a processor 301 and a memory 302. The processor 301 and the memory 302 are interconnected and communicate with each other through a communication bus 303 and / or other forms of connection mechanisms (not shown). The memory 302 stores a computer program executable by the processor 301. When the electronic device is running, the processor 301 executes the computer program to execute the electronic contract authorization signing method in any optional implementation of the above embodiment to achieve the following functions: Step S101, in response to an authorization signing request initiated by an applicant, obtain the applicant's request data. Step S102, after verifying the request data, A request data confirmation prompt is issued to the applicant to guide the applicant to confirm the request data. Step S103: after the applicant confirms, determine whether the applicant's signature digital certificate is within the validity period. If not, determine that the applicant has not set the corresponding signature digital certificate, and execute step S104. If so, determine that the applicant has set the corresponding signature digital certificate, and execute step S105. Step S104: obtain the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and use the applicant's signature digital certificate to electronically sign the electronic contract. Step S105: use the applicant's signature digital certificate to electronically sign the electronic contract.
[0094] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the electronic contract authorization signing method in any optional implementation of the above-mentioned embodiment is executed to achieve the following functions: Step S101, in response to the authorization signing request initiated by the applicant, the applicant's request data is obtained; Step S102, after verifying the request data, a request data confirmation prompt is issued to the applicant to guide the applicant to confirm the request data; Step S103, after the applicant confirms, it is determined whether the applicant's signature digital certificate is within the validity period; if not, it is determined that the applicant has not set the corresponding signature digital certificate, and step S104 is executed; if so, it is determined that the applicant has set the corresponding signature digital certificate, and step S105 is executed; Step S104, through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, the applicant's signature digital certificate is obtained, and the electronic contract is electronically signed using the applicant's signature digital certificate; Step S105, the electronic contract is electronically signed using the applicant's signature digital certificate. Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0095] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0096] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0098] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0099] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for authorizing the signing of an electronic contract, for authorizing the signing of an electronic contract, characterized in that: Includes steps: S101, in response to an authorization signature request initiated by an applicant, obtaining request data of the applicant; S102, after verifying the request data, sending a request data confirmation prompt to the applicant to guide the applicant to confirm the request data; S103, after the applicant confirms, determining whether the signature digital certificate of the applicant is within the validity period; If not, it is determined that the applicant has not set the corresponding signature digital certificate, and step S104 is executed; if so, it is determined that the applicant has set the corresponding signature digital certificate, and step S105 is executed; S104, obtaining the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and electronically signing the electronic contract using the applicant's signature digital certificate; S105: electronically sign the electronic contract using the applicant's signature digital certificate.
2. The electronic contract authorization signature method according to claim 1, characterized in that: The request data includes applicant information, a letter of authorization, a signed document, a hash value of the signed document, and a hash value of the request data.
3. The electronic contract authorization signature method according to claim 1, characterized in that: The method of key splitting and merging designed based on the Chinese remainder theorem on a polynomial ring is used to obtain the applicant's signature digital certificate, and the electronic contract is electronically signed using the applicant's signature digital certificate, including: Generate a signature key pair by using the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring; According to the request data, sending key verification information corresponding to the signature key pair to the applicant through a preset information transmission method; In response to the correct signature key pair input by the applicant, the signature digital certificate of the applicant is obtained, and the electronic contract is electronically signed using the signature digital certificate of the applicant.
4. The electronic contract authorization signature method according to claim 3, characterized in that: Using the key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring to generate the signature key pair includes: Selecting polynomials that are mutually prime in pairs within a preset finite field; Splitting a preset signature key into a plurality of split keys based on an exponent of a highest-order term in the polynomial; Select any one of the split keys to generate the corresponding signature key pair.
5. The electronic contract authorization signature method according to claim 3, characterized in that: In response to the correct signature key pair input by the applicant, obtaining the signature digital certificate of the applicant, and electronically signing the electronic contract using the signature digital certificate of the applicant, including: In response to the correct signature key pair input by the applicant, issuing an identity authentication application; After the applicant performs identity authentication, obtaining the applicant's signature digital certificate; The electronic contract is electronically signed using the applicant's signature digital certificate.
6. The electronic contract authorization signature method according to claim 5, characterized in that: In response to the correct signature key pair input by the applicant, an identity authentication application is issued, including: In response to the signature key pair input by the applicant, verify the accuracy of the signature key pair input by the applicant through the key splitting and merging method designed based on the Chinese remainder theorem on the polynomial ring; When the signature key pair input by the applicant is a correct signature key pair, an identity authentication application is issued; When the signature key pair input by the applicant is an incorrect signature key pair, an error reminder is issued to remind the applicant to input the signature key pair again.
7. The electronic contract authorization signature method according to claim 3, characterized in that: In response to the correct signature key pair input by the applicant, the signature digital certificate of the applicant is obtained, and after the electronic contract is electronically signed using the signature digital certificate of the applicant, the method further includes: After obtaining the consent of the applicant, a corresponding authorization token is generated according to the signed digital certificate and a corresponding validity period is set.
8. An electronic contract authorization signature device, used for authorizing the signature of an electronic contract, characterized in that: include: An acquisition module, used to respond to an authorization signature request initiated by an applicant and acquire the request data of the applicant; a prompt module, configured to send a request data confirmation prompt to the applicant after verifying the request data, so as to guide the applicant to confirm the request data; A judgment module, used to judge whether the signature digital certificate of the applicant is within the validity period after the applicant confirms; If not, it is determined that the applicant has not set the corresponding signature digital certificate, and the first signature module is controlled to execute the corresponding steps; if so, it is determined that the applicant has set the corresponding signature digital certificate, and the second signature module is controlled to execute the corresponding steps; A first signature module, used to obtain the applicant's signature digital certificate through a key splitting and merging method designed based on the Chinese remainder theorem on a polynomial ring, and electronically sign the electronic contract using the applicant's signature digital certificate; The second signature module is used to electronically sign the electronic contract using the applicant's signature digital certificate.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, it runs the steps in the electronic contract authorization signature method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the electronic contract authorization signature method as described in any one of claims 1 to 7 are executed.
