Electronic seal using method and system based on online approval contract
By adopting multi-dimensional data verification and computing technology in online approval contracts, the security and legality of electronic contracts in the absence of physical seals and signatures is solved, and the accuracy and reliability of the contract approval process is achieved, ensuring the integrity and legal effectiveness of the contract.
Patent Information
- Application Number
- CN202510325763.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-03-19
AI Technical Summary
In online approval contracts, how to ensure the safety, integrity and legality of electronic contracts, especially in the absence of physical seals and signatures.
Through multi-dimensional data verification and calculation, including hash value comparison, network stability detection and electronic seal weight factor calculation, we ensure the integrity and security of contract documents during the transmission process and avoid the forged or illegal use of electronic seals.
It improves the accuracy and reliability of the contract approval process, enhances the integrity and security of contract data, improves the legal effect of electronic seals, and ensures the authenticity and validity of the contract.
Smart Images

Figure CN119848145A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of electronic seals, and in particular relates to an electronic seal using method and system based on online contract approval. Background Art
[0002] With the rapid development of information technology, the use of electronic contracts has become more and more common, especially in the fields of enterprise, government and finance. The online process of contract approval and signing has become an important trend. Online contract approval not only greatly improves the efficiency of contract signing and approval, but also effectively reduces the cost of manual operation 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 contracts rely on physical seals and signatures to confirm the legality and validity of the contract. However, in online contracts, there is a lack of protection for 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] In order to effectively solve this problem, electronic seals were proposed and widely used as a legally binding electronic identification. The main function of electronic seals is to ensure the authenticity and integrity of the content of the electronic contract without physical signatures and seals. However, the use of electronic seals also faces many problems. It cannot effectively ensure that the generation and use of electronic seals will not be illegally tampered with or forged, the credibility of electronic seals and their relevance to the content of the contract, and the transmission of electronic contracts will not be tampered with or lost when the network environment is unstable. Summary of the invention
[0005] The purpose of the present invention is to provide an electronic seal use method and system based on online contract approval, which improves the accuracy and reliability of the contract approval process through multi-dimensional data verification and calculation.
[0006] The technical solution adopted by the present invention is as follows: A method for using an electronic seal based on online contract approval, comprising: Obtain the pending contract file generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the pending contract file, and send the pending contract file and the initial hash value of the contract content to the approver; Construct a verification period, obtain the historical network data of the contract documents 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 documents to be approved and the initial hash value of the contract content were received by the approver, and obtain the network stability value based on the current network data and historical network data; Determine whether the network stability value meets the first preset condition. If so, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approver; Determine whether the initial hash value of the contract content is the same as the contract content verification hash value. If they are the same, determine that the received contract document to be approved and the initial hash value of the contract content are normal, generate the approved contract document and electronic seal data, and send them to the contract initiator; Obtain network access data and network traffic data when the contract initiator receives the approval contract documents 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; The electronic seal verification value is obtained according to the network access data, network flow data and the electronic seal weight factor, and it is determined whether the electronic seal verification value meets the second preset condition. If so, a valid contract document is generated according to the approval contract document and the electronic seal data.
[0007] In a preferred solution, a verification period is constructed, historical network data of the contract documents to be approved and the initial hash value of the contract content received by the approver during the verification period is obtained, and current network data of the contract documents to be approved and the initial hash value of the contract content received by the approver is obtained, and the step of obtaining the network stability value according to the historical network data and the current network data includes: Build verification period; Obtain the network data of the contract documents to be approved received by the approver during the verification period and the initial hash value of the contract content, and mark them as historical network data; Obtain the network data of the contract file to be approved and the initial hash value of the contract content received by the approver, and mark it as the current network data; According to the historical network data, multiple corresponding historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees are obtained; According to the current network data, the corresponding current delay jitter rate, current quantum key distribution success rate and current trusted execution environment authentication degree are obtained; The network stability value is obtained 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.
[0008] In a preferred embodiment, the step of constructing a verification period includes: 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; Get the time to send the contract file to be approved and the initial hash value of the contract content to the approver; Obtain a duration table, wherein the verification duration table includes multiple sending duration intervals and a verification duration corresponding to each sending duration interval; Obtain the target sending duration interval based on the sending duration; Obtain the corresponding verification duration from the duration table according to the target sending duration interval; Get the start time of the verification period based on the verification duration and the end time of the verification period; Get the verification period based on the start and end time of the verification period.
[0009] In a preferred solution, it is determined whether the network stability value meets the first preset condition. If so, the step of obtaining the corresponding contract content verification hash value according to the contract document to be approved received by the approver includes: Get 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 contract content verification hash value corresponding to the contract file to be approved received by the approving party is normal, and the corresponding contract content verification hash value is obtained based on the contract file to be approved received by the approving party.
[0010] In a preferred solution, 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 they are the same, determining that the received contract document to be approved and the initial hash value of the contract content are normal, generating the approval contract document 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; Obtain the corresponding contract content verification vector based on the contract content verification hash value; Obtain a hash similarity value based on the contract content initial vector and the contract content verification vector; Determine whether the hash value similarity is the number one; If the hash value similarity is 1, it is determined that the contract document to be approved received by the approving party and the initial hash value of the contract content are normal; Obtain the approval result of the contract document to be approved by the approving party; If the approval result is qualified, the contract document to be approved will be marked as an approved contract document; Obtain the corresponding electronic seal data according to the approval contract document; Send the approval contract documents and electronic seal data to the contract initiator.
[0011] In a preferred solution, the steps of obtaining network access data and network flow data when the contract initiator receives the approval contract document 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 approval contract documents and electronic seal data received by the contract initiator; Obtain the corresponding contract content and check the hash value based on the approved contract document; Determine whether the contract content verification hash value is the same as the contract content initial hash value; If the contract content verification hash value is the same as the contract content initial hash value, the contract to be approved is determined to be the same as the approved contract, and the network access data and network traffic data when the contract initiator receives the approved contract document and electronic seal data are obtained; Obtaining the receiving time data of the electronic seal data; Obtain the corresponding electronic seal data receiving time according to the generation time; Obtaining a duration weight table, wherein the duration weight table includes a plurality of receiving duration intervals and an electronic seal weight factor corresponding to each receiving duration interval; Obtain the corresponding target receiving time interval according to the receiving time; The corresponding electronic seal weight factor is obtained from the duration weight table according to the target receiving duration interval.
[0012] In a preferred embodiment, the steps of obtaining an electronic seal verification value according to network access data, network flow data and an electronic seal weight factor, determining whether the electronic seal verification value meets a second preset condition, and if so, generating a valid contract document according to the approved contract document and the electronic seal data include: Acquire corresponding multiple network access value vectors according to the network access data; Acquire multiple network traffic vectors corresponding to multiple network access value vectors according to the network traffic data; Obtaining an electronic seal verification value according to a plurality of network access value vectors, a plurality of network flow vectors, and an electronic seal weight factor; It is determined whether the electronic seal verification value meets the second preset condition. If so, a valid contract document is generated based on the approved contract document and the electronic seal data.
[0013] In a preferred embodiment, the step of determining whether the electronic seal verification value meets the second preset condition, and if so, generating a valid contract document based on the approved contract document and the electronic seal data includes: Get the seal verification interval value; Determine whether the seal verification value is within the seal verification interval value; If the seal verification value is within the seal verification interval, the electronic seal data is determined to be normal, and the contract initiator generates a valid contract document based on the approved contract document and the electronic seal data.
[0014] The present invention also provides an electronic seal using system based on online contract approval, which is used for the above-mentioned electronic seal using method based on online contract approval, comprising: The pending contract module is used to obtain the pending contract file generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the pending contract file, and send the pending contract file and the initial hash value of the contract content to the approver; The contract approval module is used to construct a verification period, obtain the historical network data of the contract documents 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 documents to be approved and the initial hash value of the contract content were received by the approver, and obtain the network stability value based on the current network data and historical network data; A network verification module, used to determine whether the network stability value meets the first preset condition, and if so, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approver; The contract verification module is used to determine whether the initial hash value of the contract content is the same as the contract content verification hash value. If they are the same, it is determined that the received contract document to be approved and the initial hash value of the contract content are normal, and the approval contract document and electronic seal data are generated and sent to the contract initiator; The seal data module is used to obtain the network access data and network flow data when the contract initiator receives the approval contract documents 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; The contract generation module is used to obtain the 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 so, a valid contract document is generated based on the approval contract document and the electronic seal data.
[0015] And, an electronic seal using terminal based on online contract approval, comprising: one or more processors; a storage device having one or more programs stored thereon; When one or more programs are executed by one or more processors, the one or more processors implement a method for using an electronic seal based on online contract approval.
[0016] The technical effects achieved by the present invention are: The present invention ensures that the contract document has not been tampered with during the transmission process through hash value comparison, thereby enhancing the integrity and security of the contract data; prevents the electronic seal from being forged or illegally used through the calculation of the electronic seal weight factor and the electronic seal verification value, thereby improving the legal effect of the electronic seal; prevents the loss or tampering of the contract document due to network instability through network stability detection, thereby improving the accuracy and reliability of approval; and combines network access data, network flow data and timestamp information to improve the multi-dimensional detection capability of electronic seal verification, thereby ensuring the authenticity and validity of the contract. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of the method provided by the present invention; Figure 2 It is a system module diagram provided by the present invention. DETAILED DESCRIPTION
[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0019] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0020] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The phrase "in a preferred embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0021] Secondly, the present invention is described in detail in conjunction with schematic diagrams. When describing the embodiments of the present invention in detail, for the convenience of explanation, the schematic diagrams are only examples and should not limit the scope of protection of the present invention.
[0022] Please see attached Figure 1 As shown, a method for using an electronic seal based on online contract approval is provided, including: S1. Obtain the pending contract file generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the pending contract file, and send the pending contract file and the initial hash value of the contract content to the approver; S2. Construct a verification period, obtain historical network data of the contract documents to be approved and the initial hash value of the contract content received by the approver during the verification period, and obtain current network data when the contract documents to be approved and the initial hash value of the contract content are received by the approver, and obtain the network stability value based on the current network data and historical network data; S3. Determine whether the network stability value meets the first preset condition. If so, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approving party; S4. Determine whether the initial hash value of the contract content is the same as the contract content verification hash value. If they are the same, determine that the received contract document to be approved and the initial hash value of the contract content are normal, generate the approval contract document and electronic seal data, and send them to the contract initiator; S5, obtaining network access data and network traffic data when the contract initiator receives the approval contract document 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; S6. Obtain an electronic seal verification value based on network access data, network traffic data, and an electronic seal weight factor, and determine whether the electronic seal verification value meets a second preset condition. If so, generate a valid contract document based on the approved contract document and the electronic seal data.
[0023] As in the above steps S1 to S6, the contract initiator generates a contract document to be approved and calculates the initial hash value of the contract content, and performs hash calculation on the contract content (such as SHA-256, SHA-3, etc.). The hash value can be used as a unique identifier of the contract content. The contract document 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 document and the hash value during the 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 and to ensure 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 document 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 document has not been tampered with during the transmission process. The approver can generate an approved contract document and attach the electronic seal data. The contract initiator receives the Approve contract documents and electronic seal data, and record network access data, network traffic data and electronic seal generation time, calculate the electronic seal weight factor through the electronic seal generation time, calculate the electronic seal verification value based on the network access data, network traffic data and electronic seal weight factor, if the verification value meets the second preset condition, it proves that the electronic seal is credible, and finally confirms the validity of the contract document, through hash value comparison, ensures that the contract document has not been tampered with during transmission, enhances the integrity and security of the contract data, avoids the electronic seal from being forged or illegally used through the calculation of the electronic seal weight factor and the electronic seal verification value, and improves the legal effect of the electronic seal, and avoids the loss or tampering of the contract document due to network instability through network stability detection, improves the accuracy and reliability of approval, and combines network access data, network traffic data and timestamp information to improve the multi-dimensional detection capability of electronic seal verification to ensure the authenticity and validity of the contract.
[0024] In a preferred embodiment, a verification period is constructed, historical network data of the contract documents to be approved and the initial hash value of the contract content received by the approver during the verification period is obtained, and current network data of the contract documents to be approved and the initial hash value of the contract content received by the approver is obtained, and the steps of obtaining the network stability value according to the historical network data and the current network data include: S201, constructing a verification period; S202, obtaining the network data of the contract documents to be approved and the initial hash value of the contract content received by the approver during the verification period, and marking them as historical network data; S203, obtaining the network data of the contract file to be approved and the initial hash value of the contract content received by the approver, and marking it as the current network data; S204, acquiring corresponding multiple historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees according to historical network data; 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; S206. 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 levels, a current delay jitter rate, a current quantum key distribution success rate, and a current trusted execution environment authentication level.
[0025] As in the above steps S201 to S206, a time window is set, namely, a "verification period", which is used to collect and compare historical and current network data. During the verification period, the network data when the approving party receives the contract document to be approved and its hash value is recorded as historical network data. The network data when the approving party receives the contract document and the hash value is collected and marked as current network data. It is compared with the historical data, and the following key parameters are extracted from the historical network data: multiple historical delay jitter rates (reflecting the degree of change in network delay), multiple historical quantum key distribution success rates (key success distribution rates in quantum secure communication), and multiple historical trusted execution environment authentication degrees (the credibility of the device execution environment). The three parameters that are the same as the historical data are extracted from the current network data, namely, the current delay jitter rate, the current quantum key distribution success rate, and the current trusted execution environment authentication degree. The network stability value is calculated by combining multiple historical network features with the current network features. The calculation formula of the network stability value is: , where W represents the network stability value, i represents the number of multiple historical delay jitter rates, the number of multiple historical quantum key distribution success rates, and the number of multiple historical trusted execution environment authentication degrees, i=1,2,3…n, It is expressed as the current delay jitter rate. Expressed as the i-th historical delay jitter rate, Expressed as the current quantum key distribution success rate, Expressed as the success rate of the i-th historical quantum key distribution, Represents the degree of trusted execution environment authentication, It is expressed as the authentication degree of the i-th trusted execution environment. It can predict whether the network environment is reliable and avoid tampering or loss of contract data due to network jitter, delay, attack and other problems. It ensures the effectiveness of quantum encryption during data transmission by monitoring the success rate of quantum key distribution, improves the anti-attack ability of electronic contracts, and helps to detect whether the approval equipment is in a safe and reliable state, avoiding hackers or malware hijacking contract data. It combines historical and current network status, dynamically calculates network stability, ensures contract approval when the network is stable, and improves the approval success rate and legality of electronic contracts.
[0026] In a preferred embodiment, the step of constructing a verification period includes: S2011. Obtain the time point when the contract document 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; S2012, obtaining the sending time of the contract file to be approved and the initial hash value of the contract content to the approver; S2013, obtaining a duration table, wherein the verification duration table includes a plurality of sending duration intervals and a verification duration corresponding to each sending duration interval; S2014, obtaining a target sending duration interval according to the sending duration; S2015. Obtain the corresponding verification duration from the duration table according to the target sending duration interval; S2016. Obtaining the start time of the verification period according to the verification duration and the end time of the verification period; S2017. Obtain the verification period according to the start time and end time of the verification period.
[0027] As in the above steps S2011 to S2017, the time node when the contract document and hash value are sent to the approver is recorded, and the time is marked as the end time of the verification period, the sending time of the contract document and hash value from the contract initiator to the approver is obtained, and a time table is preset, which contains different sending time intervals and the verification time corresponding to each sending time interval. By comparing the time table, the target sending time interval that matches the current sending time is found, and the corresponding verification time is obtained according to the matched target sending time interval. According to the verification time and the end time of the verification period, the start time of the verification period is obtained to form a complete window, and the final verification period is determined in combination with the start time and the end time to ensure the accuracy of the network stability detection data. By matching different sending time intervals, the verification time is dynamically adjusted to ensure that the stability data can be accurately obtained in different network environments. Combined with the dynamic matching of the sending time, it is ensured that the network status can be correctly analyzed in both low-latency networks and high-latency networks.
[0028] In a preferred implementation, the step of determining whether the network stability value meets the first preset condition, and if so, obtaining the corresponding contract content verification hash value according to the contract document to be approved received by the approver, includes: S301, obtaining a network stability interval value; S302, determining 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 contract content verification hash value corresponding to the contract file to be approved received by the approving party is normal, and the corresponding contract content verification hash value is obtained based on the contract file to be approved received by the approving party.
[0029] As in the above steps S301 to S302, a network stability interval value is preset. The interval value can be obtained based on historical network data, network jitter rate, packet loss rate, quantum key distribution success rate and other indicators, indicating a reasonable range of network stability. The network stability value is compared with the network stability interval value. If the network stability value is within the interval, it means that the current network environment is stable, and it is considered that the contract document to be approved received by the approving party has not been tampered with. Further, the contract content verification hash value is calculated from the received contract document. Through the network stability interval value, the misjudgment caused by short-term network fluctuations is reduced, and the stability of the contract approval process is improved. Combined with hash value verification and network stability detection, it is ensured that the contract data has not been attacked by a middleman, tampered with or forged, thereby improving the legal effect of the contract.
[0030] 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 received contract document to be approved and the initial hash value of the contract content are normal, generating the approval contract document and electronic seal data, and sending them to the contract initiator include: S401. Obtain the corresponding initial vector of the contract content according to the initial hash value of the contract content; S402, obtaining a corresponding contract content verification vector according to the contract content verification hash value; S403, obtaining a hash similarity value according to the contract content initial vector and the contract content verification vector; S404, determining whether the hash value similarity is the number one; If the hash value similarity is 1, it is determined that the contract document to be approved received by the approving party and the initial hash value of the contract content are normal; S405, obtaining the approval result of the approving party for the contract document to be approved; If the approval result is qualified, the contract document to be approved will be marked as an approved contract document; S406, obtaining corresponding electronic seal data according to the approval contract document; S407: Send the approval contract document and electronic seal data to the contract initiator.
[0031] As in the above steps S401 to S407, the initial hash value of the contract content is input, and the corresponding initial vector of the contract content is obtained through the hash mapping algorithm as the feature representation of the original contract content. The contract content verification hash value is input, and the contract content verification vector is obtained through the same hash mapping algorithm. The hash similarity value is calculated based on the contract content initial vector and the contract content verification vector. The calculation formula of the hash value similarity is: , where It is expressed as hash value similarity, A represents the initial vector of the contract content, and B represents the verification vector of the contract content. If the hash similarity value is 1 (i.e., a complete match), it means that the contract content has not changed, and the contract file to be approved and the hash value are determined to be normal. The approving party reviews the contract file and generates an approval result (such as 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 been approved. Based on the approved contract file, electronic seal data is generated. The seal data may be based on security technologies such as digital signatures and timestamps to ensure that the file cannot be tampered with. The document 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. Through hash vector comparison, errors in the contract content caused by network transmission anomalies are avoided, ensuring the reliability of contract approval. Combining hash verification with electronic seal technology, it is guaranteed that the contract data is not tampered with during transmission and storage, thereby improving the legal effect of the contract. Through automatic hash comparison, contract integrity detection can be completed at the millisecond level, improving approval efficiency and reducing the burden of manual review. If the hash value similarity is lower than 1, it can be automatically determined that the contract data may have been tampered with, thereby refusing approval and preventing fraud and tampering risks.
[0032] In a preferred embodiment, the steps of obtaining network access data and network flow data when the contract initiator receives the approval contract document 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: S501, obtaining the approval contract document and electronic seal data received by the contract initiator; S502, obtaining the corresponding contract content verification hash value according to the approved contract document; S503, determining whether the contract content verification hash value is the same as the contract content initial hash value; If the contract content verification hash value is the same as the contract content initial hash value, the contract to be approved is determined to be the same as the approved contract, and the network access data and network traffic data when the contract initiator receives the approved contract document and electronic seal data are obtained; S504, obtaining the receiving time data of the electronic seal data; S505, obtaining the corresponding electronic seal data receiving time according to the generation time; S506, obtaining a duration weight table, wherein the duration weight table includes a plurality of receiving duration intervals and an electronic seal weight factor corresponding to each receiving duration interval; S507, obtaining a corresponding target receiving duration interval according to the receiving duration; S508: Obtain a corresponding electronic seal weight factor from a duration weight table according to the target receiving duration interval.
[0033] As in the above steps S501 to S508, the approval contract document and its electronic seal data received by the contract initiator are obtained to ensure the complete transmission of the contract content. The hash value of the received approval contract document is recalculated through the hash algorithm to obtain the contract content verification hash value. The contract content verification hash value is compared with the initial hash value of the contract content. 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 means that the contract data may have been tampered with or damaged during the transmission process, and the contract file needs to be requested again. The receiving time data of the electronic seal is obtained, which usually includes the server timestamp. By comparing the time when the approving party sends the electronic seal with the time when the contract initiator receives the electronic seal , obtain the receiving time, preset a time weight table, which contains multiple receiving time intervals and the electronic seal weight factor corresponding to each interval. The table can be set based on factors such as network environment analysis and delay statistical data. According to the actual receiving time, find the receiving time interval in which it is located, and extract the corresponding electronic seal weight factor from the time weight table according to the matching receiving time interval. The electronic seal weight factor is calculated based on the receiving time interval, so that the credibility of the electronic seal is no longer a single "valid / invalid" judgment, but a dynamic credibility indicator, which can be used for contract credit evaluation 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.
[0034] In a preferred embodiment, the steps of obtaining an electronic seal verification value according to network access data, network flow data and an electronic seal weight factor, determining whether the electronic seal verification value meets a second preset condition, and if so, generating a valid contract document according to the approved contract document and the electronic seal data include: S601, acquiring corresponding multiple network access value vectors according to network access data; S602, acquiring a plurality of network flow vectors corresponding to a plurality of network access value vectors according to the network flow data; S603, obtaining an electronic seal verification value according to a plurality of network access value vectors, a plurality of network flow vectors, and an electronic seal weight factor; S604: Determine whether the electronic seal verification value meets the second preset condition. If so, generate a valid contract document based on the approved contract document and the electronic seal data.
[0035] As in the above steps S601 to S604, the network access data refers to the network behavior data (e.g., access delay, frequency, etc.) when the approving party receives the contract document and electronic seal data during the contract approval process. These network access data are extracted and converted into multiple network access value vectors. 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 electronic seal data, including data packet size, transmission speed, bandwidth, etc. These traffic data are converted into multiple network traffic vectors. The multiple network access value vectors, multiple network traffic vectors and electronic seal weight factors are combined to calculate the electronic seal verification value. The electronic seal verification value calculation formula 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, Represented as the bth network access value vector, It is represented as the dth network traffic vector. By comparing the calculated electronic seal verification value with the preset second preset condition, it is determined whether the electronic seal is valid. If the electronic seal verification value meets the condition (that is, it is within the allowed range), it proves that the contract and the electronic seal have not been tampered with during the transmission process and are valid. The approval contract document and the electronic seal data are considered to be legal and valid. A valid contract document will be generated, the contract will be officially valid, and the relevant data will be stored for subsequent verification and archiving. Through network access data, network traffic data and electronic seal weight factors, the reliability of the electronic seal can be dynamically evaluated to ensure that the electronic seal will not fail due to network fluctuations or other factors, effectively avoiding external tampering and fraud, and can verify the authenticity of the contract content in real time, thereby improving the legal effect of the contract.
[0036] In a preferred embodiment, the step of determining whether the electronic seal verification value meets the second preset condition, and if so, generating a valid contract document based on the approved contract document and the electronic seal data includes: S6041, obtaining the seal verification interval value; S6042, judging whether the seal verification value is within the seal verification interval value; If the seal verification value is within the seal verification interval, the electronic seal data is determined to be normal, and the contract initiator generates a valid contract document based on the approved contract document and the electronic seal data.
[0037] As in the above steps S6041 to S6042, the credibility range of the electronic seal is determined through historical contract data, and the interval value is dynamically adjusted in combination with factors such as network stability, traffic data, and seal weight factor. When the credibility is high, the interval value is narrower. If the network environment is more complex or there is slight jitter, the interval can be appropriately relaxed to determine whether the seal verification value is within the seal verification interval value. If the conditions are met, the electronic seal data is deemed valid, and the contract initiator generates a valid contract document to ensure that the contract has legal effect. The valid contract document can be stored in a secure environment such as blockchain and trusted storage system to prevent tampering. The dual protection of electronic seal verification value + interval setting is adopted to ensure the integrity and legality of the contract, prevent malicious tampering, and improve the anti-attack capability of the electronic seal.
[0038] Please see attached Figure 2 As shown, the present invention also provides an electronic seal using system based on online contract approval, which is used for the above-mentioned electronic seal using method based on online contract approval, including: The pending contract module is used to obtain the pending contract file generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the pending contract file, and send the pending contract file and the initial hash value of the contract content to the approver; The contract approval module is used to construct a verification period, obtain the historical network data of the contract documents 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 documents to be approved and the initial hash value of the contract content were received by the approver, and obtain the network stability value based on the current network data and historical network data; A network verification module, used to determine whether the network stability value meets the first preset condition, and if so, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approver; The contract verification module is used to determine whether the initial hash value of the contract content is the same as the contract content verification hash value. If they are the same, it is determined that the received contract document to be approved and the initial hash value of the contract content are normal, and the approval contract document and electronic seal data are generated and sent to the contract initiator; The seal data module is used to obtain the network access data and network flow data when the contract initiator receives the approval contract documents 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; The contract generation module is used to obtain the 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 so, a valid contract document is generated based on the approval contract document and the electronic seal data.
[0039] As mentioned 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 tamper prevention. The hash value is sent to the approver along with the contract file. The contract approval module constructs a verification period, obtains the contract sending time, and determines the applicable verification time period based on the time 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 does, the contract is allowed to enter the hash verification stage. The approver of the contract verification module calculates the contract content verification hash value and compares the initial hash value of the contract content with the contract content verification hash value. 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 contract initiator. The network access data and network traffic data when receiving the approval contract documents and electronic seal data are recorded, and the electronic seal data reception time is recorded. The electronic seal weight factor is obtained according to the reception time interval through the time 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. Through the seal verification interval value, it is judged whether the electronic seal verification value meets the second preset condition. If it does, the contract document and electronic seal are legal, and a valid contract document 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. Combined with network stability value calculation and trusted execution environment authentication, the loss or tampering of contract data caused by network instability is avoided. The electronic seal weight factor + network data is used to ensure the validity of the seal data and improve the legal effect of the contract. Through automated hash verification, electronic seal verification and network stability judgment, manual intervention is reduced and the intelligence and automation level of the approval process are improved.
[0040] And, an electronic seal using terminal based on online contract approval, comprising: one or more processors; a storage device having one or more programs stored thereon; When one or more programs are executed by one or more processors, the one or more processors implement a method for using an electronic seal based on online contract approval.
[0041] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.
Claims
1. A method for using an electronic seal based on online contract approval, characterized in that: include: Obtain the pending contract file generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the pending contract file, and send the pending contract file and the initial hash value of the contract content to the approver; Construct a verification period, obtain the historical network data of the contract documents 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 documents to be approved and the initial hash value of the contract content were received by the approver, and obtain the network stability value based on the current network data and historical network data; Determine whether the network stability value meets the first preset condition. If so, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approver; Determine whether the initial hash value of the contract content is the same as the contract content verification hash value. If they are the same, determine that the received contract document to be approved and the initial hash value of the contract content are normal, generate the approved contract document and electronic seal data, and send them to the contract initiator; Obtain network access data and network traffic data when the contract initiator receives the approval contract documents 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; The electronic seal verification value is obtained according to the network access data, network flow data and the electronic seal weight factor, and it is determined whether the electronic seal verification value meets the second preset condition. If so, a valid contract document is generated according to the approval contract document and the electronic seal data.
2. The method for using an electronic seal based on online contract approval according to claim 1 is characterized in that: Construct a verification period, obtain the historical network data of the contract documents to be approved received by the approver during the verification period and the initial hash value of the contract content, and obtain the current network data of the contract documents to be approved received by the approver and the initial hash value of the contract content, and obtain the network stability value according to the historical network data and the current network data, including: Build verification period; Obtain the network data of the contract documents to be approved received by the approver during the verification period and the initial hash value of the contract content, and mark them as historical network data; Obtain the network data of the contract file to be approved and the initial hash value of the contract content received by the approver, and mark it as the current network data; According to the historical network data, multiple corresponding historical delay jitter rates, multiple historical quantum key distribution success rates, and multiple historical trusted execution environment authentication degrees are obtained; According to the current network data, the corresponding current delay jitter rate, current quantum key distribution success rate and current trusted execution environment authentication degree are obtained; The network stability value is obtained 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.
3. The method for using an electronic seal based on online contract approval according to claim 2 is characterized in that: The steps to construct a verification period include: 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; Get the time to send the contract file to be approved and the initial hash value of the contract content to the approver; Obtain a duration table, wherein the verification duration table includes multiple sending duration intervals and a verification duration corresponding to each sending duration interval; Obtain the target sending duration interval based on the sending duration; Obtain the corresponding verification duration from the duration table according to the target sending duration interval; Get the start time of the verification period based on the verification duration and the end time of the verification period; Get the verification period based on the start and end time of the verification period.
4. The method for using an electronic seal based on online contract approval according to claim 1 is characterized in that: The step of determining whether the network stability value meets the first preset condition, and if so, obtaining the corresponding contract content verification hash value according to the contract file to be approved received by the approving party, includes: Get 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 contract content verification hash value corresponding to the contract file to be approved received by the approving party is normal, and the corresponding contract content verification hash value is obtained based on the contract file to be approved received by the approving party.
5. The method for using an electronic seal based on online contract approval according to claim 1 is characterized in that: The steps of judging whether the initial hash value of the contract content is the same as the verification hash value of the contract content, and if they are the same, judging that the received contract document to be approved and the initial hash value of the contract content are normal, generating the approval contract document 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; Obtain the corresponding contract content verification vector based on the contract content verification hash value; Obtain a hash similarity value based on the contract content initial vector and the contract content verification vector; Determine whether the hash value similarity is the number one; If the hash value similarity is 1, it is determined that the contract document to be approved received by the approving party and the initial hash value of the contract content are normal; Obtain the approval result of the contract document to be approved by the approving party; If the approval result is qualified, the contract document to be approved will be marked as an approved contract document; Obtain the corresponding electronic seal data according to the approval contract document; Send the approval contract documents and electronic seal data to the contract initiator.
6. The method for using an electronic seal based on online contract approval according to claim 1 is characterized in that: The steps of obtaining network access data and network flow data when the contract initiator receives the approval contract document 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 approval contract documents and electronic seal data received by the contract initiator; Obtain the corresponding contract content and check the hash value based on the approved contract document; Determine whether the contract content verification hash value is the same as the contract content initial hash value; If the contract content verification hash value is the same as the contract content initial hash value, the contract to be approved is determined to be the same as the approved contract, and the network access data and network traffic data when the contract initiator receives the approved contract document and electronic seal data are obtained; Obtaining the receiving time data of the electronic seal data; Obtain the corresponding electronic seal data receiving time according to the generation time; Obtaining a duration weight table, wherein the duration weight table includes a plurality of receiving duration intervals and an electronic seal weight factor corresponding to each receiving duration interval; Obtain the corresponding target receiving time interval according to the receiving time; The corresponding electronic seal weight factor is obtained from the duration weight table according to the target receiving duration interval.
7. The method for using an electronic seal based on online contract approval according to claim 1 is characterized in that: The steps of obtaining an electronic seal verification value according to the network access data, the network flow data and the electronic seal weight factor, and 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 include: Acquire corresponding multiple network access value vectors according to the network access data; Acquire multiple network traffic vectors corresponding to multiple network access value vectors according to the network traffic data; Obtaining an electronic seal verification value according to a plurality of network access value vectors, a plurality of network flow vectors, and an electronic seal weight factor; It is determined whether the electronic seal verification value meets the second preset condition. If so, a valid contract document is generated based on the approved contract document and the electronic seal data.
8. The method for using an electronic seal based on online contract approval according to claim 7 is characterized in that: 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: Get the seal verification interval value; Determine whether the seal verification value is within the seal verification interval value; If the seal verification value is within the seal verification interval, the electronic seal data is determined to be normal, and the contract initiator generates a valid contract document based on the approved contract document and the electronic seal data.
9. An electronic seal using system based on online contract approval, applied to the electronic seal using method based on online contract approval as claimed in any one of claims 1 to 8, characterized in that: include: The pending contract module is used to obtain the pending contract file generated by the contract initiator, obtain the corresponding initial hash value of the contract content according to the pending contract file, and send the pending contract file and the initial hash value of the contract content to the approver; The contract approval module is used to construct a verification period, obtain the historical network data of the contract documents 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 documents to be approved and the initial hash value of the contract content were received by the approver, and obtain the network stability value based on the current network data and historical network data; A network verification module, used to determine whether the network stability value meets the first preset condition, and if so, obtain the corresponding contract content verification hash value according to the contract file to be approved received by the approver; The contract verification module is used to determine whether the initial hash value of the contract content is the same as the contract content verification hash value. If they are the same, it is determined that the received contract document to be approved and the initial hash value of the contract content are normal, and the approval contract document and electronic seal data are generated and sent to the contract initiator; The seal data module is used to obtain the network access data and network flow data when the contract initiator receives the approval contract documents 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; The contract generation module is used to obtain the 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 so, a valid contract document is generated based on the approval contract document and the electronic seal data.
10. An electronic seal using terminal based on online contract approval, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When one or more programs are executed by one or more processors, the one or more processors implement the method for using an electronic seal based on online contract approval as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Contract filing method and device, computer equipment and storage medium
CN110347780A
Processing method for reverse true verification of encryption and decryption of electronic seal
CN116566624A
Electronic signature system and method taking PDF signature as core
CN116842583A
Electronic seal verification method and system based on block chain
CN118277489A
End-to-end double-flow seal automatic verification method based on deep learning
CN119339184A
Cited By
Mutual signing and mutual checking method and system for electronic signature
CN120930188A