An electronic seal usage method and system based on online contract approval

Through hash value comparison and network stability detection, combined with the electronic seal weight factor, the security and legality of electronic seals in online contracts are solved, ensuring the integrity and reliability of the contract, and improving the accuracy and legal effectiveness of contract approval.

CN119848145BActive Publication Date: 2025-07-11NANJING JIULIAN INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510325763.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-07-11
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

In online contracts, there is a lack of protection of physical seals and signatures. How to ensure the security, integrity and legality of electronic contracts and prevent the content of the contract from being tampered with or forged.

Method used

Through multi-dimensional data verification and calculation, including hash value comparison, network stability detection, electronic seal weight factor and timestamp information, we ensure that the contract files are not tampered with during transmission, enhance the integrity and security of contract data, and avoid the electronic seal being forged or illegally used.

Benefits of technology

It improves the accuracy and reliability of the contract approval process, ensures the authenticity and validity of the contract, prevents the loss or tampering of contract documents caused by network instability, and enhances the legal effect of the electronic seal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119848145B_ABST
    Figure CN119848145B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of electronic seals, and particularly relates to a method and system for using an electronic seal based on an online approval contract. Through hash value comparison, the present invention ensures that the contract document is not tampered with during the transmission process, enhances the integrity and security of contract data. By calculating the electronic seal weight factor and the electronic seal verification value, the present invention avoids the forgery or illegal use of the electronic seal, improves the legal effect of the electronic seal. Through network stability detection, the present invention avoids the loss or tampering of the contract document caused by unstable network, improves the accuracy and reliability of approval. By combining network access data, network traffic data and timestamp information, the present invention improves the multi-dimensional detection ability of electronic seal verification, ensuring the authenticity and validity of the contract.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electronic seals, and particularly relates to a method and system for using an electronic seal based on an online approval contract. Background Art

[0002] With the rapid development of information technology, the use of electronic contracts has become increasingly common, especially in the fields of enterprises, governments, and finance. The onlineization of the contract approval and signing process has become an important trend. Online approval of contracts not only greatly improves the efficiency of contract signing and approval, but also can effectively reduce the costs of manual operations and paper contracts. However, with the popularization of electronic contracts, how to ensure the security, integrity, and legality of electronic contracts has become an urgent problem to be solved.

[0003] Traditional paper contract signing relies on physical seals and signatures to confirm the legality and validity of contracts. However, in online contracts, lacking the protection of physical seals and signatures, how to ensure the security of electronic contracts during transmission and storage and prevent the contract content from being tampered with or forged has become a technical problem.

[0004] To effectively solve this problem, electronic seals, as a kind of electronic identifier with legal effect, have been proposed and widely used. The main role of electronic seals is to ensure that the content of the contract is still authentic and complete without physical signatures and seals. However, the use of electronic seals also faces many problems, such as being unable to effectively ensure that the generation and use of electronic seals are not illegally tampered with or forged, unable to effectively ensure the credibility of electronic seals and their relevance to the contract content, and unable to effectively ensure that the transmission of electronic contracts is not tampered with or lost in an unstable network environment. Summary of the Invention

[0005] The purpose of the present invention is to provide a method and system for using an electronic seal based on an online approval contract, which improves the accuracy and reliability of the contract approval process through multi-dimensional data verification and calculation.

[0006] The technical solutions adopted by the present invention are specifically as follows:

[0007] A method for using an electronic seal based on an online approval contract includes:

[0008] Obtain a contract file to be approved generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the contract file to be approved, and send the contract file to be approved and the initial hash value of the contract content to the approver;

[0009] Construct a verification time period, obtain historical network data of the contract files to be approved and the initial hash value of the contract content received by the approver during the verification time period, and obtain the current network data when the approver receives the contract files to be approved and the initial hash value of the contract content, and obtain a network stability value based on the current network data and the historical network data;

[0010] Determine whether the network stability value meets the first preset condition. If it meets, obtain the corresponding verification hash value of the contract content based on the contract files to be approved received by the approver;

[0011] Determine whether the initial hash value of the contract content is the same as the verification hash value of the contract content. If they are the same, determine that the received contract files to be approved and the initial hash value of the contract content are normal, generate an approved contract file and electronic seal data, and send them to the contract initiator;

[0012] Obtain the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data, obtain the reception time data of the electronic seal data, and obtain the electronic seal weight factor based on the reception time data;

[0013] Obtain an electronic seal verification value based on the network access data, network traffic data, and the electronic seal weight factor, and determine whether the electronic seal verification value meets the second preset condition. If it meets, generate a valid contract file based on the approved contract file and the electronic seal data.

[0014] In a preferred solution, the steps of constructing a verification time period, obtaining historical network data of the contract files to be approved and the initial hash value of the contract content received by the approver during the verification time period, and obtaining the current network data when the approver receives the contract files to be approved and the initial hash value of the contract content, and obtaining a network stability value based on the historical network data and the current network data include:

[0015] Construct a verification time period;

[0016] Obtain the network data when the approver receives the contract files to be approved and the initial hash value of the contract content during the verification time period, and mark it as historical network data;

[0017] Obtain the network data when the approver receives the contract files to be approved and the initial hash value of the contract content, and mark it as current network data;

[0018] Obtain the corresponding multiple historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees based on the historical network data;

[0019] Obtain the corresponding current delay jitter rate, current quantum key distribution success rate, and current trusted execution environment authentication degree based on the current network data;

[0020] Obtain a network stability value based on multiple historical delay jitter rates, multiple historical quantum key distribution success rates, multiple historical trusted execution environment authentication degrees, the current delay jitter rate, the current quantum key distribution success rate, and the current trusted execution environment authentication degree.

[0021] In a preferred solution, the steps of constructing a verification period include:

[0022] Obtain the time node for sending the contract file to be approved and the initial hash value of the contract content to the approver, and mark it as the end time of the verification period;

[0023] Obtain the sending duration for sending the contract file to be approved and the initial hash value of the contract content to the approver;

[0024] Obtain a duration table, where the verification duration table includes multiple sending duration intervals and the corresponding verification durations for each sending duration interval;

[0025] Obtain the target sending duration interval according to the sending duration;

[0026] Obtain the corresponding verification duration from the duration table according to the target sending duration interval;

[0027] Obtain the start time of the verification period according to the verification duration and the end time of the verification period;

[0028] Obtain the verification period according to the start time and the end time of the verification period.

[0029] In a preferred solution, if it is determined that the network stability value meets the first preset condition, the steps of obtaining the corresponding verification hash value of the contract content according to the contract file to be approved received by the approver include:

[0030] Obtain the network stability interval value;

[0031] Determine whether the network stability value is within the network stability interval value;

[0032] If the network stability value is within the network stability interval value, it is determined that obtaining the corresponding verification hash value of the contract content according to the contract file to be approved received by the approver is normal, and the corresponding verification hash value of the contract content is obtained according to the contract file to be approved received by the approver.

[0033] In a preferred solution, if it is determined that the initial hash value of the contract content is the same as the verification hash value of the contract content, the steps of determining that the received contract file to be approved and the initial hash value of the contract content are normal, generating an approved contract file and electronic seal data, and sending them to the contract initiator include:

[0034] Obtain the corresponding initial vector of the contract content according to the initial hash value of the contract content;

[0035] Verify the hash value according to the contract content to obtain the corresponding contract content verification vector;

[0036] Obtain the hash similarity value according to the contract content initial vector and the contract content verification vector;

[0037] Judge whether the hash value similarity is the number one;

[0038] If the hash value similarity is the number one, it is determined that the contract file to be approved received by the approver and the initial contract content hash value are normal;

[0039] Obtain the approval result of the approver for the contract file to be approved;

[0040] If the approval result is qualified, mark the contract file to be approved as an approved contract file;

[0041] Obtain the corresponding electronic seal data according to the approved contract file;

[0042] Send the approved contract file and the electronic seal data to the contract initiator.

[0043] In a preferred solution, the steps of obtaining the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data, obtaining the reception time data of the electronic seal data, and obtaining the electronic seal weight factor according to the reception time data include:

[0044] Obtain the approved contract file received by the contract initiator and the electronic seal data;

[0045] Obtain the corresponding contract content verification hash value according to the approved contract file;

[0046] Judge whether the contract content verification hash value is the same as the initial contract content hash value;

[0047] If the contract content verification hash value is the same as the initial contract content hash value, it is determined that the contract to be approved is the same as the approved contract, and obtain the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data;

[0048] Obtain the reception time data of the electronic seal data;

[0049] Obtain the corresponding reception duration of the electronic seal data according to the generation time;

[0050] Obtain a duration weight table, where the duration weight table includes multiple reception duration intervals and the electronic seal weight factor corresponding to each reception duration interval;

[0051] Obtain the target reception duration interval corresponding to the reception duration;

[0052] Obtain the corresponding electronic seal weight factor from the duration weight table according to the target receiving duration interval.

[0053] In a preferred solution, an electronic seal verification value is obtained according to network access data, network traffic data, and the electronic seal weight factor, and it is determined whether the electronic seal verification value meets the second preset condition. If it meets, the steps of generating a valid contract file according to the approved contract file and the electronic seal data include:

[0054] Obtain the corresponding multiple network access value vectors according to the network access data;

[0055] Obtain multiple network traffic vectors corresponding to the multiple network access value vectors according to the network traffic data;

[0056] Obtain the electronic seal verification value according to the multiple network access value vectors, the multiple network traffic vectors, and the electronic seal weight factor;

[0057] Determine whether the electronic seal verification value meets the second preset condition. If it meets, generate a valid contract file according to the approved contract file and the electronic seal data.

[0058] In a preferred solution, the steps of determining whether the electronic seal verification value meets the second preset condition and, if it meets, generating a valid contract file according to the approved contract file and the electronic seal data include:

[0059] Obtain the seal verification interval value;

[0060] Determine whether the seal verification value is within the seal verification interval value;

[0061] If the seal verification value is within the seal verification interval value, it is determined that the electronic seal data is normal, and the contract initiator generates a valid contract file according to the approved contract file and the electronic seal data.

[0062] The present invention also provides an electronic seal usage system based on online approval of contracts for the above-mentioned electronic seal usage method based on online approval of contracts, including:

[0063] A contract to be approved module, configured to obtain the contract file to be approved generated by the contract initiator, obtain the initial hash value of the corresponding contract content according to the contract file to be approved, and send the contract file to be approved and the initial hash value of the contract content to the approver;

[0064] An approval contract module, which is used to construct a verification period, obtain historical network data of the contract files to be approved and the initial hash value of the contract content received by the approver during the verification period, and obtain the current network data when the contract files to be approved and the initial hash value of the contract content are received by the approver, and obtain a network stability value according to the current network data and the historical network data;

[0065] A network verification module, which is used to determine whether the network stability value meets a first preset condition. If it meets, it obtains a corresponding verification hash value of the contract content according to the contract files to be approved received by the approver;

[0066] A contract verification module, which is used to determine whether the initial hash value of the contract content is the same as the verification hash value of the contract content. If they are the same, it determines that the received contract files to be approved and the initial hash value of the contract content are normal, generates an approved contract file and electronic seal data, and sends them to the contract initiator;

[0067] A seal data module, which is used to obtain the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data, obtain the reception time data of the electronic seal data, and obtain an electronic seal weight factor according to the reception time data;

[0068] A contract generation module, which is used to obtain an electronic seal verification value according to the network access data, network traffic data and the electronic seal weight factor, determine whether the electronic seal verification value meets a second preset condition. If it meets, it generates a valid contract file according to the approved contract file and the electronic seal data.

[0069] And, an electronic seal usage terminal based on online approval of contracts, including:

[0070] One or more processors;

[0071] A storage device, on which one or more programs are stored;

[0072] When the one or more programs are executed by the one or more processors, the one or more processors implement an electronic seal usage method based on online approval of contracts.

[0073] The technical effects achieved by the present invention are:

[0074] In the present invention, by comparing hash values, it is ensured that the contract documents are not tampered with during the transmission process, enhancing the integrity and security of contract data. By calculating the electronic seal weight factor and the electronic seal verification value, the forgery or illegal use of electronic seals is avoided, improving the legal effect of electronic seals. By detecting network stability, the loss or tampering of contract documents caused by unstable networks is avoided, improving the accuracy and reliability of approvals. Combining network access data, network traffic data, and timestamp information, the multi-dimensional detection ability of electronic seal verification is improved, ensuring the authenticity and validity of contracts. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 is the flowchart of the method provided by the present invention;

[0076] Figure 2 is the system module diagram provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0077] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following provides a detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings of the specification.

[0078] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.

[0079] Secondly, the so-called "one embodiment" or "embodiment" herein refers to a specific feature, structure, or characteristic that can be included in at least one implementation manner of the present invention. The "in a preferred embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that mutually excludes other embodiments.

[0080] Furthermore, the present invention is described in detail in conjunction with schematic diagrams. When detailing the embodiments of the present invention, for the sake of explanation, the schematic diagrams are only examples and should not limit the scope of protection of the present invention here.

[0081] Please refer to the attached Figure 1 As shown, a method for using an electronic seal based on an online approval contract is provided, including:

[0082] S1. Obtain the contract document to be approved generated by the contract initiator, obtain the initial hash value of the corresponding contract content according to the contract document to be approved, and send the contract document to be approved and the initial hash value of the contract content to the approver;

[0083] S2. Construct a verification period, obtain the historical network data of the contract files to be approved and the initial hash value of the contract content received by the approver during the verification period, and obtain the current network data when the approver receives the contract files to be approved and the initial hash value of the contract content. Obtain the network stability value according to the current network data and the historical network data;

[0084] S3. Determine whether the network stability value meets the first preset condition. If it meets, obtain the corresponding contract content verification hash value according to the contract files to be approved received by the approver;

[0085] S4. Determine whether the initial hash value of the contract content is the same as the verification hash value of the contract content. If they are the same, determine that the contract files to be approved and the initial hash value of the contract content received are normal, generate the approved contract files and electronic seal data, and send them to the contract initiator;

[0086] S5. Obtain the network access data and network traffic data when the contract initiator receives the approved contract files and electronic seal data, obtain the reception time data of the electronic seal data, and obtain the electronic seal weight factor according to the reception time data;

[0087] S6. Obtain the electronic seal verification value according to the network access data, network traffic data, and electronic seal weight factor, determine whether the electronic seal verification value meets the second preset condition. If it meets, generate the valid contract files according to the approved contract files and electronic seal data.

[0088] In the above steps S1 to S6, the contract initiator generates a contract file to be approved, calculates the initial hash value of the contract content (such as SHA-256, SHA-3, etc.) for hash calculation of the contract content. This hash value can be used as the unique identifier of the contract content. The contract file and the initial hash value are sent to the approver through the network. By constructing a verification period, the historical network data of the approver receiving the contract file and the hash value during this period, as well as the current network data at the time of reception, are obtained. The network stability value is calculated through these two data sets to determine whether the network transmission is stable, ensuring that the data is not lost or tampered with due to network anomalies. If the network stability value meets the first preset condition, the approver calculates the verification hash value based on the received contract file, and compares the initial hash value of the contract content with the verification hash value. If the two are the same, it proves that the contract file has not been tampered with during the transmission process. The approver can generate an approved contract file and attach the electronic seal data. The contract initiator receives the approved contract file and the electronic seal data, and records the network access data, network traffic data, and the electronic seal generation time. The electronic seal weight factor is calculated based on the electronic seal generation time. The electronic seal verification value is calculated based on the network access data, network traffic data, and the electronic seal weight factor. If the verification value meets the second preset condition, it proves that the electronic seal is trustworthy, and finally the contract file is confirmed to be valid. By comparing the hash values, it is ensured that the contract file has not been tampered with during the transmission process, enhancing the integrity and security of the contract data. By calculating the electronic seal weight factor and the electronic seal verification value, the forgery or illegal use of the electronic seal is avoided, improving the legal effect of the electronic seal. Through network stability detection, the loss or tampering of the contract file due to network instability is avoided, improving the accuracy and reliability of the approval. Combining the network access data, network traffic data, and timestamp information, the multi-dimensional detection ability of the electronic seal verification is improved, ensuring the true validity of the contract.

[0089] In a preferred embodiment, the steps of constructing a verification period, obtaining the historical network data of the approver receiving the contract file to be approved and the initial hash value of the contract content during the verification period, and obtaining the current network data of the approver receiving the contract file to be approved and the initial hash value of the contract content, and obtaining the network stability value according to the historical network data and the current network data, include:

[0090] S201. Construct a verification period;

[0091] S202. Obtain the network data of the approver receiving the contract file to be approved and the initial hash value of the contract content during the verification period, and mark it as historical network data;

[0092] S203. Obtain the network data of the approver receiving the contract file to be approved and the initial hash value of the contract content, and mark it as current network data;

[0093] S204. Obtain multiple corresponding historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees according to historical network data;

[0094] S205. Obtain the corresponding current delay jitter rate, current quantum key distribution success rate, and current trusted execution environment authentication degree according to the current network data;

[0095] S206. Obtain the network stability value according to multiple historical delay jitter rates, multiple historical quantum key distribution success rates, multiple historical trusted execution environment authentication degrees, the current delay jitter rate, the current quantum key distribution success rate, and the current trusted execution environment authentication degree.

[0096] In the above steps S201 to S206, set a time window, that is, the "verification period", for collecting and comparing historical and current network data. During the verification period, record the network data when the approver receives the contract file to be approved and its hash value as historical network data, collect the network data when the approver receives the contract file and its hash value, and mark it as current network data, and compare it with the historical data. Extract the following key parameters from the historical network data: multiple historical delay jitter rates (reflecting the degree of network delay change), multiple historical quantum key distribution success rates (the key successful distribution rate in quantum secure communication), multiple historical trusted execution environment authentication degrees (the trustworthiness of the device execution environment). Extract the same three parameters from the current network data as the historical data, that is, the current delay jitter rate, the current quantum key distribution success rate, and the current trusted execution environment authentication degree. Combine multiple historical network characteristics and current network characteristics to calculate the network stability value. The calculation formula of the network stability value is , where W represents the network stability value, i represents the numbers of multiple historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees, i = 1, 2, 3...n, represents the current delay jitter rate, represents the i-th historical delay jitter rate, represents the current quantum key distribution success rate, represents the i-th historical quantum key distribution success rate, represents the trusted execution environment authentication degree, Denoted as the authentication degree of the i-th trusted execution environment, it can predict whether the network environment is reliable, avoid the tampering or loss of contract data caused by problems such as network jitter, latency, and attacks. By monitoring the success rate of quantum key distribution, it ensures the effectiveness of quantum encryption during data transmission, improves the anti-attack ability of electronic contracts, helps detect whether the approval device is in a secure and trusted state, avoids the hijacking of contract data by hackers or malware, combines historical and current network states, dynamically calculates network stability, ensures contract approval when the network is stable, and improves the approval success rate and legality of electronic contracts.

[0097] In a preferred embodiment, the steps of constructing the verification period include:

[0098] S2011. Obtain the time node for sending the contract file to be approved and the initial hash value of the contract content to the approver, and mark it as the end time of the verification period;

[0099] S2012. Obtain the sending duration for sending the contract file to be approved and the initial hash value of the contract content to the approver;

[0100] S2013. Obtain the duration table, where the verification duration table includes multiple sending duration intervals and the corresponding verification durations for each sending duration interval;

[0101] S2014. Obtain the target sending duration interval according to the sending duration;

[0102] S2015. Obtain the corresponding verification duration from the duration table according to the target sending duration interval;

[0103] S2016. Obtain the start time of the verification period according to the verification duration and the end time of the verification period;

[0104] S2017. Obtain the verification period according to the start time and end time of the verification period.

[0105] In the above steps S2011 to S2017, record the time nodes when the contract file and the hash value are sent to the approver, mark this time as the end time of the verification period, obtain the sending duration of the contract file and the hash value from the contract initiator to the approver, preset a duration table, which includes different sending duration intervals and the corresponding verification durations for each sending duration interval. By comparing the duration table, find the target sending duration interval that matches the current sending duration. According to the matched target sending duration interval, obtain the corresponding verification duration. According to the verification duration and the end time of the verification period, obtain the start time of the verification period, form a complete window, and combine the start time and the end time to determine the final verification period, ensuring the accuracy of the network stability detection data. By matching different sending duration intervals, dynamically adjust the verification duration to ensure that stability data can be accurately obtained in different network environments. Combining the dynamic matching of the sending duration, ensure that the network status can be correctly analyzed in both low-latency networks and high-latency networks.

[0106] In a preferred embodiment, to determine whether the network stability value meets the first preset condition, if it does, the steps of obtaining the corresponding contract content verification hash value according to the contract file to be approved received by the approver include:

[0107] S301. Obtain the network stability interval value;

[0108] S302. Determine whether the network stability value is within the network stability interval value;

[0109] If the network stability value is within the network stability interval value, it is determined that the contract content verification hash value obtained according to the contract file to be approved received by the approver is normal, and the corresponding contract content verification hash value is obtained according to the contract file to be approved received by the approver.

[0110] In the above steps S301 to S302, preset a network stability interval value, which can be obtained based on indicators such as historical network data, network jitter rate, packet loss rate, and quantum key distribution success rate, representing a reasonable range of network stability. Compare the network stability value with the network stability interval value. If the network stability value is within the interval range, it indicates that the current network environment is stable, and it is considered that the contract file to be approved received by the approver has not been tampered with. Further, calculate the contract content verification hash value from the received contract file. By using the network stability interval value, reduce misjudgments caused by short-term network fluctuations, improve the stability of the contract approval process, and combine hash value verification with network stability detection to ensure that contract data has not been subject to man-in-the-middle attacks, data tampering, or forgery, and improve the legal effect of the contract.

[0111] In a preferred embodiment, the steps of determining whether the initial hash value of the contract content is the same as the verification hash value of the contract content, and if so, determining that the contract file to be approved and the initial hash value of the contract content received are normal, generating an approved contract file and electronic seal data, and sending them to the contract initiator include:

[0112] S401. Obtain the corresponding initial vector of the contract content according to the initial hash value of the contract content;

[0113] S402. Obtain the corresponding verification vector of the contract content according to the verification hash value of the contract content;

[0114] S403. Obtain the hash similarity value according to the initial vector of the contract content and the verification vector of the contract content;

[0115] S404. Determine whether the hash value similarity is the number one;

[0116] If the hash value similarity is the number one, it is determined that the contract file to be approved and the initial hash value of the contract content received by the approver are normal;

[0117] S405. Obtain the approval result of the approver for the contract file to be approved;

[0118] If the approval result is qualified, mark the contract file to be approved as an approved contract file;

[0119] S406. Obtain the corresponding electronic seal data according to the approved contract file;

[0120] S407. Send the approved contract file and the electronic seal data to the contract initiator.

[0121] In the above steps S401 to S407, taking the initial hash value of the contract content as the input, the corresponding initial vector of the contract content is obtained through the hash mapping algorithm as the feature representation of the original contract content. Taking the verification hash value of the contract content as the input, the verification vector of the contract content is obtained through the same hash mapping algorithm. The hash similarity value is calculated according to the initial vector of the contract content and the verification vector of the contract content. The calculation formula of the hash value similarity is , where Denoted as hash value similarity, A is denoted as the initial vector of the contract content, and B is denoted as the verification vector of the contract content. If the hash similarity value is 1 (i.e., a perfect match), it indicates that the contract content has not changed. It is determined that the contract file to be approved and the hash value are normal. The approving party reviews the contract file and generates an approval result (e.g., qualified / unqualified). If the approval result is qualified, the contract file to be approved is marked as an approved contract file, indicating that the file has passed the approval. Based on the approved contract file, electronic seal data is generated. This seal data may be based on security technologies such as digital signatures and timestamps to ensure that the file cannot be tampered with. The approved contract file and its electronic seal data are sent back to the contract initiator to ensure the integrity of the approval process and complete the effective archiving of the contract. By comparing the hash vectors, it avoids errors in the contract content caused by abnormal network transmissions, ensuring the reliability of the approved contract. Combining hash verification and electronic seal technology ensures that the contract data cannot be tampered with during transmission and storage, improving the legal effect of the contract. Through automatic hash comparison, the contract integrity detection can be completed in milliseconds, improving the approval efficiency and reducing the burden of manual review. If the hash value similarity is less than 1, it can be automatically determined that the contract data may have been tampered with, thereby rejecting the approval to prevent fraud and tampering risks.

[0122] In a preferred embodiment, the steps of obtaining the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data, obtaining the reception time data of the electronic seal data, and obtaining the electronic seal weight factor according to the reception time data include:

[0123] S501. Obtain the approved contract file received by the contract initiator and the electronic seal data;

[0124] S502. Obtain the corresponding contract content verification hash value according to the approved contract file;

[0125] S503. Determine whether the contract content verification hash value is the same as the initial contract content hash value;

[0126] If the contract content verification hash value is the same as the initial contract content hash value, it is determined that the contract to be approved is the same as the approved contract, and the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data are obtained;

[0127] S504. Obtain the reception time data of the electronic seal data;

[0128] S505. Obtain the corresponding reception duration of the electronic seal data according to the generation time;

[0129] S506. Obtain the duration weight table, where the duration weight table includes multiple reception duration intervals and the electronic seal weight factor corresponding to each reception duration interval;

[0130] S507. Obtain the corresponding target receiving duration range according to the receiving duration.

[0131] S508. Obtain the corresponding electronic seal weight factor from the duration weight table according to the target receiving duration range.

[0132] In the above steps S501 to S508, obtain the approved contract file received by the contract initiator and its electronic seal data, ensure the complete transmission of the contract content, recalculate the hash value of the received approved contract file through the hash algorithm to obtain the contract content verification hash value, compare the contract content verification hash value with the initial contract content hash value. If the two are the same, it is determined that the contract content has not been tampered with and the approved contract is the same as the contract to be approved. If they are inconsistent, it indicates that the contract data may have been tampered with or damaged during the transmission process, and it is necessary to request the contract file again to obtain the receiving time data of the electronic seal, which usually includes the server timestamp. By comparing the time when the approver sends the electronic seal with the time when the contract initiator receives the electronic seal, obtain the receiving duration. Preset a duration weight table, which contains multiple receiving duration ranges and the corresponding electronic seal weight factors for each range. This table can be set based on factors such as network environment analysis and latency statistical data. According to the actual received receiving duration, find the receiving duration range it belongs to, and extract the corresponding electronic seal weight factor from the duration weight table. The electronic seal weight factor is calculated based on the receiving duration range, so that the credibility of the electronic seal is no longer a single "valid / invalid" judgment, but a dynamic credibility index, which can be used for contract credit assessment in different scenarios, and can more accurately evaluate the integrity and timeliness of the contract, and ensure the credibility of contract archiving and long-term storage.

[0133] In a preferred embodiment, obtain the electronic seal verification value according to the network access data, network traffic data, and electronic seal weight factor, and determine whether the electronic seal verification value meets the second preset condition. If it meets, the steps of generating a valid contract file according to the approved contract file and electronic seal data include:

[0134] S601. Obtain the corresponding multiple network access value vectors according to the network access data.

[0135] S602. Obtain the corresponding multiple network traffic vectors according to the network traffic data for the multiple network access value vectors.

[0136] S603. Obtain the electronic seal verification value according to the multiple network access value vectors, multiple network traffic vectors, and electronic seal weight factor.

[0137] S604. Determine whether the electronic seal verification value meets the second preset condition. If it meets, generate a valid contract file according to the approved contract file and electronic seal data.

[0138] In the above steps S601 to S604, the network access data refers to the network behavior data (such as access latency, frequency, etc.) when the approver receives the contract document and the electronic seal data during the contract approval process. These network access data are extracted and converted into multiple network access value vectors, and these value vectors represent various access characteristics of the network during the contract approval period, such as access speed, success rate, etc. The network traffic data refers to the traffic information during the transmission of the contract document and the electronic seal data, including the packet size, transmission speed, bandwidth, etc. These traffic data are converted into multiple network traffic vectors. Combining multiple network access value vectors, multiple network traffic vectors, and the electronic seal weight factor, the electronic seal verification value is calculated. The formula for calculating the electronic seal verification value is , where Y represents the electronic seal verification value, b represents the numbers of multiple network access value vectors and multiple network traffic vectors, b = 1, 2, 3…m, represents the b-th network access value vector, represents the d-th network traffic vector, represents the electronic seal weight factor. By comparing the calculated electronic seal verification value with a preset second preset condition, it is judged whether the electronic seal is valid. If the electronic seal verification value meets this condition (i.e., within the allowable range), it proves that the contract and the electronic seal have not been tampered with and are valid during the transmission process. The approved contract document and the electronic seal data are considered legal and valid, and a valid contract document will be generated. The contract will be officially determined as valid, and the relevant data will be stored for subsequent verification and archiving. Through the network access data, network traffic data, and the electronic seal weight factor, the reliability of the electronic seal can be dynamically evaluated, ensuring that the electronic seal will not fail due to network fluctuations or other factors, effectively avoiding external tampering and fraud behaviors, and being able to verify the authenticity of the contract content in real time, improving the legal effect of the contract.

[0139] In a preferred embodiment, the step of judging whether the electronic seal verification value meets the second preset condition and, if so, generating a valid contract document according to the approved contract document and the electronic seal data includes:

[0140] S6041. Obtain the seal verification interval value;

[0141] S6042. Judge whether the seal verification value is within the seal verification interval value;

[0142] If the seal verification value is within the seal verification interval value, it is determined that the electronic seal data is normal, and the contract initiator generates a valid contract document according to the approved contract document and the electronic seal data.

[0143] In the above steps S6041 to S6042, the credibility range of the electronic seal is determined through historical contract data. Considering factors such as network stability, traffic data, and seal weight factor, the interval value is dynamically adjusted. When the credibility is high, the interval value is narrow. If the network environment is complex or there is slight jitter, the interval can be appropriately widened. It is determined whether the seal verification value is within the seal verification interval value. If the condition is met, the electronic seal data is recognized as valid, and the contract initiator generates a valid contract file to ensure that the contract has legal effect. The valid contract file can be stored in a secure environment such as a blockchain or a trusted storage system to prevent tampering. By using the dual guarantee of the electronic seal verification value + interval setting, the integrity and legality of the contract are ensured, malicious tampering is prevented, and the anti-attack ability of the electronic seal is improved.

[0144] Please refer to the appendix Figure 2 As shown in the figure, the present invention also provides an electronic seal usage system based on an online approval contract for the above-mentioned electronic seal usage method based on an online approval contract, including:

[0145] A contract to be approved module, which is used to obtain the contract file to be approved generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the contract file to be approved, and send the contract file to be approved and the initial hash value of the contract content to the approver;

[0146] An approved contract module, which is used to construct a verification period, obtain the historical network data of the contract file to be approved and the initial hash value of the contract content received by the approver during the verification period, and obtain the current network data when the approver receives the contract file to be approved and the initial hash value of the contract content, and obtain the network stability value according to the current network data and the historical network data;

[0147] A network verification module, which is used to determine whether the network stability value meets the first preset condition. If it meets, the corresponding verification hash value of the contract content is obtained according to the contract file to be approved received by the approver;

[0148] A contract verification module, which is used to determine whether the initial hash value of the contract content is the same as the verification hash value of the contract content. If they are the same, it is determined that the received contract file to be approved and the initial hash value of the contract content are normal, and an approved contract file and electronic seal data are generated and sent to the contract initiator;

[0149] A seal data module, which is used to obtain the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data, obtain the reception time data of the electronic seal data, and obtain the electronic seal weight factor according to the reception time data;

[0150] A contract generation module, which is used to obtain an electronic seal verification value according to network access data, network traffic data, and an electronic seal weight factor, determine whether the electronic seal verification value meets a second preset condition, and if it meets, generate a valid contract file according to an approved contract file and electronic seal data.

[0151] As described above, the contract to be approved module obtains the contract file created by the contract initiator and calculates the initial hash value of the contract content for anti-tampering. This hash value is sent to the approver along with the contract file. The approval contract module constructs a verification time period, obtains the contract sending duration, and determines the applicable verification time period based on the duration table, and records the historical network data and current network data when the approver receives the contract. The network verification module determines whether the current network meets the first preset condition (ensuring stable data transmission) through the network stability interval value. If it meets, the contract is allowed to enter the hash verification stage. The contract verification module calculates the verification hash value of the contract content for the approver, and compares the initial hash value of the contract content with the verification hash value of the contract content. If they are the same, the contract file has not been tampered with, and the approval process continues. The approved contract is marked as an approved contract file, and electronic seal data is generated to ensure the legality and non-tamperability of the contract. The approved contract file and electronic seal data are sent to the contract initiator. The seal data module records the network access data and network traffic data when the contract initiator receives the approved contract file and electronic seal data, records the electronic seal data reception time, and obtains the electronic seal weight factor according to the reception duration interval through the duration weight table. The contract generation module calculates the electronic seal verification value according to the network access data, network traffic data, and electronic seal weight factor, and determines whether the electronic seal verification value meets the second preset condition through the seal verification interval value. If it meets, the contract file and the electronic seal are legal, and a valid contract file can be generated. Through hash value comparison and electronic seal verification, it is ensured that the contract has not been tampered with during the transmission and approval process. Combining network stability value calculation and trusted execution environment authentication, it is avoided that contract data is lost or tampered with due to unstable network. Using the electronic seal weight factor + network data ensures the effectiveness of the seal data, improves the legal effect of the contract, and reduces manual intervention and improves the intelligence and automation level of the approval process through automated hash verification, electronic seal verification, and network stability judgment.

[0152] And, an electronic seal usage terminal based on online contract approval, including:

[0153] One or more processors;

[0154] A storage device on which one or more programs are stored;

[0155] When the one or more programs are executed by the one or more processors, the one or more processors implement the electronic seal usage method based on online contract approval.

[0156] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention. Structures, devices, and operation methods not specifically described and explained in the present invention are implemented by conventional means in the art without special explanation and limitation.

Claims

1. An electronic seal usage method based on an online approval contract, characterized in that, Including: Obtain the contract file to be approved generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the contract file to be approved, and send the contract file to be approved and the initial hash value of the contract content to the approver; Construct a verification period, obtain the historical network data of the contract file to be approved and the initial hash value of the contract content received by the approver during the verification period, and obtain the current network data when the contract file to be approved and the initial hash value of the contract content are received by the approver, and obtain the network stability value according to the current network data and the historical network data; Judge whether the network stability value meets the first preset condition. If it meets, obtain the corresponding verification hash value of the contract content according to the contract file to be approved received by the approver; Judge whether the initial hash value of the contract content is the same as the verification hash value of the contract content. If they are the same, determine that the received contract file to be approved and the initial hash value of the contract content are normal, generate an approved contract file and electronic seal data, and send them to the contract initiator; Obtain the network access data and network traffic data when the contract initiator receives the approved contract file and electronic seal data, obtain the receiving time data of the electronic seal data, and obtain the electronic seal weight factor according to the receiving time data; Obtain the electronic seal verification value according to the network access data, network traffic data, and electronic seal weight factor, judge whether the electronic seal verification value meets the second preset condition. If it meets, generate a valid contract file according to the approved contract file and electronic seal data; The steps of obtaining the network access data and network traffic data when the contract initiator receives the approved contract file and electronic seal data, obtaining the receiving time data of the electronic seal data, and obtaining the electronic seal weight factor according to the receiving time data include: Obtain the approved contract file and electronic seal data received by the contract initiator; Obtain the corresponding check hash value of the contract content according to the approved contract file; Judge whether the check hash value of the contract content is the same as the initial hash value of the contract content; If the check hash value of the contract content is the same as the initial hash value of the contract content, determine that the contract to be approved is the same as the approved contract, and obtain the network access data and network traffic data when the contract initiator receives the approved contract file and electronic seal data; Obtain the receiving time data of the electronic seal data; Obtain the corresponding receiving duration of the electronic seal data according to the generation time; Obtain a duration weight table, where the duration weight table includes multiple receiving duration intervals and the corresponding electronic seal weight factors for each receiving duration interval; Obtain the corresponding target receiving duration interval according to the receiving duration; Obtain the corresponding electronic seal weight factor from the duration weight table according to the target receiving duration interval; The steps of obtaining the electronic seal verification value according to the network access data, network traffic data, and electronic seal weight factor, judging whether the electronic seal verification value meets the second preset condition, and if it meets, generating a valid contract file according to the approved contract file and electronic seal data include: Obtain multiple corresponding network access value vectors according to the network access data; Obtain multiple corresponding network traffic vectors according to the network traffic data for the multiple network access value vectors; Obtain an electronic seal verification value based on multiple network access value vectors, multiple network traffic vectors, and an electronic seal weight factor; Determine whether the electronic seal verification value meets the second preset condition. If it meets, generate a valid contract file based on the approved contract document and the electronic seal data; The calculation formula for the electronic seal verification value is , where Y represents the electronic seal verification value, b represents the numbers of multiple network access value vectors and multiple network traffic vectors, b = 1, 2, 3…m, represents the b-th network access value vector, represents the d-th network traffic vector, represents the electronic seal weight factor.

2. The method for using an electronic seal based on an online approval contract according to claim 1, wherein Construct a verification period, obtain the historical network data when the contract file to be approved and the initial hash value of the contract content are received by the approver during the verification period, and obtain the current network data when the contract file to be approved and the initial hash value of the contract content are received by the approver. The steps of obtaining the network stability value based on the historical network data and the current network data include: Construct a verification period; Obtain the network data when the contract file to be approved and the initial hash value of the contract content are received by the approver during the verification period, and mark it as historical network data; Obtain the network data when the contract file to be approved and the initial hash value of the contract content are received by the approver, and mark it as current network data; Obtain the corresponding multiple historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees based on the historical network data; Obtain the current delay jitter rate, the current quantum key distribution success rate, and the current trusted execution environment authentication degree corresponding to the current network data; Obtain the network stability value based on the multiple historical delay jitter rates, multiple historical quantum key distribution success rates, multiple historical trusted execution environment authentication degrees, the current delay jitter rate, the current quantum key distribution success rate, and the current trusted execution environment authentication degree.

3. The method for using an electronic seal based on an online approval contract according to claim 2, wherein The steps of constructing a verification period include: Obtain the time node when the contract file to be approved and the initial hash value of the contract content are sent to the approver, and mark it as the end time of the verification period; Obtain the sending duration when the contract file to be approved and the initial hash value of the contract content are sent to the approver; Obtain a duration table, where the verification duration table includes multiple sending duration intervals and the corresponding verification durations for each sending duration interval; Obtain the target sending duration interval according to the sending duration; Obtain the corresponding verification duration from the duration table according to the target sending duration interval; Obtain the start time of the verification period according to the verification duration and the end time of the verification period; Obtain the verification period according to the start time and the end time of the verification period.

4. The method for using an electronic seal based on an online approval contract according to claim 1, wherein Determine whether the network stability value meets the first preset condition. If it meets, the steps of obtaining the corresponding verification hash value of the contract content according to the contract file to be approved received by the approver include: Obtain the network stability interval value; Determine whether the network stability value is within the network stability interval value; If the network stability value is within the network stability interval value, it is determined that the verification hash value of the contract content obtained from the contract file to be approved received by the approver is normal, and the verification hash value of the contract content is obtained according to the contract file to be approved received by the approver.

5. The method for using an electronic seal based on an online approval contract according to claim 1, wherein Determine whether the initial hash value of the contract content is the same as the verification hash value of the contract content. If they are the same, the steps of determining that the received contract file to be approved and the initial hash value of the contract content are normal, generating an approved contract file and electronic seal data, and sending them to the contract initiator include: Obtain the corresponding initial vector of the contract content according to the initial hash value of the contract content; Verify the hash value according to the contract content to obtain the corresponding contract content verification vector; Obtain the hash similarity value according to the contract content initial vector and the contract content verification vector; Judge whether the hash value similarity is the number one; If the hash value similarity is the number one, it is determined that the contract file to be approved received by the approver and the initial contract content hash value are normal; Obtain the approval result of the approver for the contract file to be approved; If the approval result is qualified, mark the contract file to be approved as an approved contract file; Obtain the corresponding electronic seal data according to the approved contract file; Send the approved contract file and the electronic seal data to the contract initiator.

6. The method for using an electronic seal based on an online approval contract according to claim 1, wherein, Judge whether the electronic seal verification value meets the second preset condition. If it meets, the steps of generating a valid contract file according to the approved contract file and the electronic seal data include: Obtain the seal verification interval value; Judge whether the seal verification value is within the seal verification interval value; If the seal verification value is within the seal verification interval value, it is determined that the electronic seal data is normal, and the contract initiator generates a valid contract file according to the approved contract file and the electronic seal data.

7. An electronic seal usage system based on online approval of contracts, which is applied to the method for using an electronic seal based on online approval of contracts according to any one of claims 1 to 6, and is characterized in that, Including: A contract-to-be-approved module, used to obtain the contract file to be approved generated by the contract initiator, obtain the corresponding initial contract content hash value according to the contract file to be approved, and send the contract file to be approved and the initial contract content hash value to the approver; An approved contract module, used to construct a verification period, obtain the historical network data of the contract file to be approved received by the approver and the initial contract content hash value within the verification period, and obtain the current network data when the contract file to be approved received by the approver and the initial contract content hash value, and obtain the network stability value according to the current network data and the historical network data; A network verification module, used to judge whether the network stability value meets the first preset condition. If it meets, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approver; A contract verification module, used to judge whether the initial contract content hash value is the same as the contract content verification hash value. If they are the same, it is determined that the contract file to be approved received and the initial contract content hash value are normal, generate an approved contract file and electronic seal data, and send them to the contract initiator; A seal data module, used to obtain the network access data and network traffic data when the contract initiator receives the approved contract file and the electronic seal data, obtain the receiving time data of the electronic seal data, and obtain the electronic seal weight factor according to the receiving time data; A contract generation module, used to obtain the electronic seal verification value according to the network access data, network traffic data, and electronic seal weight factor, judge whether the electronic seal verification value meets the second preset condition. If it meets, generate a valid contract file according to the approved contract file and the electronic seal data.

8. An electronic seal usage terminal based on an online-approved contract, characterized in that, Including: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for using an electronic seal based on online approval of a contract according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Contract filing method and device, computer equipment and storage medium

    CN110347780A

  • Electronic signature system and method taking PDF signature as core

    CN116842583A