Blockchain-based electronic signature method, system, storage medium and computer
By using blockchain technology to calculate terminal authentication values and construct a directed acyclic graph, the centralized risks and inefficiencies of traditional electronic signatures are resolved, enabling a secure and efficient contract generation and signing process.
Patent Information
- Application Number
- CN202511404701.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-29
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2045-09-29
AI Technical Summary
Traditional electronic signature methods rely on centralized certification authorities, which pose single points of failure and internal tampering risks. There are barriers to cross-institutional mutual recognition, the contract generation process is inefficient and error-prone, and the data storage and transmission of sensitive information are not secure enough.
The blockchain-based electronic signature method calculates the terminal authentication value, performs preliminary verification using an initial key, constructs a directed acyclic graph of tasks to detect clause conflicts, generates an encryption key and a ciphertext dataset, and achieves secure signing through blockchain notarization and key matching mechanisms.
It achieves secure identity authentication, improves contract generation efficiency and compliance, ensures the confidentiality of contract content, and enhances the security of the signing process and the efficiency of multi-party collaboration.
Smart Images

Figure CN120874142B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a blockchain-based electronic signature method, system, storage medium, and computer. Background Technology
[0002] With the rapid development of the digital economy, electronic contracts and their signing technologies are being widely used in various industries.
[0003] Traditional electronic signature methods mostly rely on centralized certification authorities and public key infrastructures. While they possess a certain degree of legal validity and security, several significant problems remain. Centralized trust models are susceptible to single points of failure and internal tampering risks, and barriers exist for cross-institutional mutual recognition. Secondly, the ability to detect clause conflicts during contract generation is insufficient, relying heavily on manual review, which is inefficient and prone to errors. Furthermore, the storage and transmission of sensitive contract data face threats of leakage and tampering, and privacy protection mechanisms are inadequate. Summary of the Invention
[0004] Therefore, the purpose of this invention is to provide a blockchain-based electronic signature method, system, storage medium, and computer to at least address the shortcomings of the aforementioned technologies.
[0005] This invention proposes a blockchain-based electronic signature method, comprising:
[0006] When a contract generation request is received from a user terminal, the authentication value corresponding to the user terminal is calculated based on the terminal information of the user terminal.
[0007] Based on the terminal information, the corresponding initial key is obtained, and the initial key is used to perform preliminary verification on the authentication value to obtain a preliminary verification result;
[0008] If the preliminary verification result is passed, the element set corresponding to the contract generation request is parsed out, and a directed acyclic graph of the task corresponding to the contract generation request is constructed based on the element set.
[0009] A clause generation model is constructed, and the clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score. Based on the conflict score, the contract information corresponding to the contract generation request is generated, and the digital fingerprint of the user terminal and the encryption key and ciphertext dataset of the contract information are generated.
[0010] When a contracting party requests access to the encrypted dataset, the decryption key of the contracting party is obtained. If the decryption key matches the encryption key, the encrypted dataset is transmitted to the contracting party.
[0011] When a confirmation signal is received from the signatory based on the encrypted dataset, the digital fingerprint of the signatory is obtained, and the electronic signature of the contract information is deployed based on the digital fingerprint of the user terminal and the digital fingerprint of the signatory.
[0012] Furthermore, when a contract generation request is received from a user terminal, the step of calculating the authentication value corresponding to the user terminal based on the user terminal's terminal information includes:
[0013] The unique identifier and identification key set in the terminal information of the user terminal are parsed out, wherein the identification key set is randomly generated from a finite field when the user terminal enters the Internet of Things;
[0014] Obtain a preset authentication database, and use the authentication database and the identification key set to obtain the authentication value corresponding to the user terminal.
[0015] Furthermore, the steps of obtaining the corresponding initial key based on the terminal information and using the initial key to perform preliminary verification on the authentication value to obtain a preliminary verification result include:
[0016] The number of initial verifications is parsed out, and several initial keys are randomly selected from the initial key set of the terminal information during each initial verification.
[0017] Generate a random binary challenge corresponding to the number of initial keys to determine the initial keys for participating in zero-knowledge proof;
[0018] Define the number of iterations for zero-knowledge proof using the initial key and the authentication value to obtain the iterative authentication value generated in each iteration, until the iterative authentication value meets the verification requirements to obtain a preliminary verification result.
[0019] Furthermore, the steps of parsing the set of elements corresponding to the contract generation request and constructing a directed acyclic graph of the task corresponding to the contract generation request based on the set of elements include:
[0020] Parse the set of elements corresponding to the contract generation request, wherein the set of elements includes contract terms, contracting party information, amount information, and date information;
[0021] Based on the set of elements, corresponding task nodes are generated, and task constraints are constructed on the task nodes. The task nodes with constructed task constraints are combined to generate the corresponding directed acyclic graph of tasks.
[0022] Furthermore, the steps of constructing a clause generation model and using the clause generation model to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score include:
[0023] Construct the current clause query vector and the key matrix and value matrix in the contract template library, and construct a clause generation model based on the convolutional neural network algorithm, the current clause query vector, the key matrix and the value matrix;
[0024] The clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score.
[0025] This invention also proposes a blockchain-based electronic signature system, comprising:
[0026] The request acquisition module is used to calculate the authentication value corresponding to the user terminal based on the terminal information of the user terminal when it receives a contract generation request sent by the user terminal.
[0027] The preliminary verification module is used to obtain the corresponding initial key based on the terminal information, and to use the initial key to perform preliminary verification on the authentication value to obtain a preliminary verification result;
[0028] The request parsing module is used to parse out the set of elements corresponding to the contract generation request if the preliminary verification result is passed, and to construct a directed acyclic graph of the task corresponding to the contract generation request based on the set of elements.
[0029] The model building module is used to build a clause generation model and use the clause generation model to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score. Based on the conflict score, the module generates the contract information corresponding to the contract generation request and generates the digital fingerprint of the user terminal and the encryption key and ciphertext dataset of the contract information.
[0030] The key matching module is used to obtain the decryption key of the signatory when it receives an access request from the signatory to the encrypted dataset; if the decryption key matches the encryption key, the encrypted dataset is transmitted to the signatory.
[0031] The electronic signature module is used to obtain the digital fingerprint of the signatory when it receives a confirmation signal from the signatory based on the encrypted dataset, and to deploy the electronic signature of the contract information based on the digital fingerprint of the user terminal and the digital fingerprint of the signatory.
[0032] Furthermore, the request acquisition module is specifically used for:
[0033] The unique identifier and identification key set in the terminal information of the user terminal are parsed out, wherein the identification key set is randomly generated from a finite field when the user terminal enters the Internet of Things;
[0034] Obtain a preset authentication database, and use the authentication database and the identification key set to obtain the authentication value corresponding to the user terminal.
[0035] Furthermore, the preliminary verification module is specifically used for:
[0036] The number of initial verifications is parsed out, and several initial keys are randomly selected from the initial key set of the terminal information during each initial verification.
[0037] Generate a random binary challenge corresponding to the number of initial keys to determine the initial keys for participating in zero-knowledge proof;
[0038] Define the number of iterations for zero-knowledge proof using the initial key and the authentication value to obtain the iterative authentication value generated in each iteration, until the iterative authentication value meets the verification requirements to obtain a preliminary verification result.
[0039] Furthermore, the request parsing module is specifically used for:
[0040] Parse the set of elements corresponding to the contract generation request, wherein the set of elements includes contract terms, contracting party information, amount information, and date information;
[0041] Based on the set of elements, corresponding task nodes are generated, and task constraints are constructed on the task nodes. The task nodes with constructed task constraints are combined to generate the corresponding directed acyclic graph of tasks.
[0042] Furthermore, the model building module is specifically used for:
[0043] Construct the current clause query vector and the key matrix and value matrix in the contract template library, and construct a clause generation model based on the convolutional neural network algorithm, the current clause query vector, the key matrix and the value matrix;
[0044] The clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score.
[0045] The present invention also proposes a storage medium on which a computer program is stored, which, when executed by a processor, implements the above-described blockchain-based electronic signature method.
[0046] The present invention also proposes a computer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described blockchain-based electronic signature method.
[0047] The blockchain-based electronic signature method, system, storage medium, and computer of this invention calculate an authentication value from the user terminal's information and perform preliminary verification of the terminal information using an initial key and the authentication value, achieving identity authentication while effectively preventing identity theft. By parsing the element set and constructing a directed acyclic graph of tasks, the parallelization and dependency management of contract generation tasks are achieved, significantly improving contract drafting efficiency. Automatic conflict detection and scoring through a clause generation model significantly improves the compliance and consistency of contract clauses, reducing human intervention and errors. Encryption keys and ciphertext datasets ensure the confidentiality of contract content during transmission and storage. Blockchain notarization and the matching mechanism of encryption and decryption keys ensure the security of the signature process deployment and improve the efficiency of multi-party collaboration. Attached Figure Description
[0048] Figure 1 This is a flowchart of the blockchain-based electronic signature method in the first embodiment of the present invention;
[0049] Figure 2 This is a structural block diagram of the blockchain-based electronic signature system according to the second embodiment of the present invention;
[0050] Figure 3 This is a structural block diagram of the computer in the third embodiment of the present invention.
[0051] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation
[0052] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0054] Example 1
[0055] Please see Figure 1 The figure shows a blockchain-based electronic signature method in the first embodiment of the present invention, the method specifically including steps S101 to S106:
[0056] S101, when a contract generation request is received from a user terminal, the authentication value corresponding to the user terminal is calculated based on the terminal information of the user terminal.
[0057] Furthermore, step S101 specifically includes steps S1011 to S1012:
[0058] S1011, the unique identifier and identifier key set in the terminal information of the user terminal are parsed out, wherein the identifier key set is randomly generated from a finite field when the user terminal enters the Internet of Things;
[0059] S1012, obtain a preset authentication database, and use the authentication database and the identification key set to obtain the authentication value corresponding to the user terminal.
[0060] In this embodiment, the blockchain includes user terminals, edge nodes, and cloud servers. When a user terminal connects to the blockchain, the user terminal generates a unique identifier and a corresponding identifier key set. The identification key set is randomly generated from a limited domain when the user terminal enters the Internet of Things (IoT). Edge nodes are computing nodes deployed at the network edge, capable of local storage and data processing, effectively reducing communication latency between the user terminal and the cloud server. Specifically, a preset authentication database is obtained, and the authentication value corresponding to the user terminal is obtained using the authentication database and the identification key set.
[0061] ;
[0062] In the formula, Represents the first in the identifier key set A unique key. Modulo operation is represented. This represents the modulus. Understandably, the mathematical properties of modulo operations allow the authentication value to be hidden, enabling it to be transmitted to the cloud server as data for terminal verification.
[0063] S102, obtain the corresponding initial key based on the terminal information, and use the initial key to perform preliminary verification on the authentication value to obtain a preliminary verification result;
[0064] Furthermore, step S102 specifically includes steps S1021 to S1023:
[0065] S1021, parse out the number of verifications for the initial verification, and randomly select several initial keys from the initial key set of the terminal information for each initial verification;
[0066] S1022, Generate a random binary challenge corresponding to the number of initial keys to determine the initial keys for participating in zero-knowledge proof;
[0067] S1023, Define the number of iterations for zero-knowledge proof of the initial key and the authentication value, so as to obtain the iterative authentication value generated in each iteration, until the iterative authentication value meets the verification requirements, so as to obtain the preliminary verification result.
[0068] In practical implementation, the number of verifications for the initial verification of the authentication value is defined (in this embodiment, the number of verifications is between 1 and 5, usually 5). During each initial verification, the initial key set of the terminal information is used. Random selection Initial key The initial key set is automatically generated by the user terminal using a key generation algorithm, and the cloud server will generate a key set similar to the one used by the user terminal. Bit-random binary challenge Determine the initial key for participating in zero-knowledge proofs;
[0069] Specifically, the number of iterations for zero-knowledge proof is determined by setting the initial key and the authentication value obtained above. In each iteration, a new authentication value is generated, and the original authentication value is verified using the new authentication value until the iterative authentication value meets the verification requirements to obtain a preliminary verification result, thereby determining the security of the user terminal. A random number is generated corresponding to the generation of a new authentication value. For this random number Calculate the intermediate value:
[0070] ;
[0071] Generate a new authentication value based on the random binary challenge and the authentication value obtained above:
[0072] ;
[0073] The final verification result requires the iterative authentication value to meet the verification requirements:
[0074] .
[0075] S103, if the preliminary verification result is passed, the element set corresponding to the contract generation request is parsed out, and a directed acyclic graph of the task corresponding to the contract generation request is constructed based on the element set.
[0076] Furthermore, step S103 specifically includes steps S1031 to S1032:
[0077] S1031, Parse the set of elements corresponding to the contract generation request, wherein the set of elements includes contract terms, contracting party information, amount information, and date information;
[0078] S1032, Generate corresponding task nodes based on the set of elements, construct task constraints on the task nodes, and combine the task nodes with constructed task constraints to generate a corresponding directed acyclic graph of tasks.
[0079] In practice, the set of elements corresponding to the contract generation request is parsed out. , where the set of elements Including contract terms Information of the contracting parties Amount information Date information ,
[0080] Furthermore, based on the element set, the corresponding contract template and its configuration rules are found to obtain the sub-task information required to generate a contract. Corresponding task nodes are generated according to the element set, and the dependencies between all task nodes are analyzed. When task node B requires the output of task node A as input, the relationship between task node B and task node A is marked as a data dependency. When task node B must be executed after task node A, the relationship between task node B and task node A is marked as a logical dependency. For each pair of task nodes with a dependency relationship, a directed edge is created and marked as a dependency edge. The parallel relationships between task nodes are identified, and task nodes and their corresponding dependency edges are combined based on the parallel relationships to form the corresponding directed acyclic graph of tasks. ,in, Represents all task nodes. This indicates the dependencies between task nodes.
[0081] S104, construct a clause generation model, and use the clause generation model to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score. Generate the contract information corresponding to the contract generation request based on the conflict score, and generate the digital fingerprint of the user terminal and the encryption key and ciphertext dataset of the contract information.
[0082] Furthermore, step S104 specifically includes steps S1041 to S1042:
[0083] S1041, Construct the current clause query vector and the key matrix and value matrix in the contract template library, and construct the clause generation model based on the convolutional neural network algorithm, the current clause query vector, the key matrix and the value matrix;
[0084] S1042, The clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score.
[0085] In specific implementation, a corresponding current clause query vector is constructed based on the contract clause database, and a corresponding key matrix and value matrix are constructed based on the contract template library. A clause generation model is constructed based on the convolutional neural network algorithm (in this embodiment, the Transformer algorithm is selected; in some optional embodiments, the algorithm can also adopt recurrent neural networks, long short-term memory networks, or other algorithms that adopt attention mechanisms), the current clause query vector, the key matrix, and the value matrix.
[0086] Specifically, a clause generation model is used to detect clause conflicts in the directed acyclic graph of the task, in order to calculate the corresponding conflict score:
[0087]
[0088] In the formula, Terms and Conditions and terms Conflict scores between them Indicates the length of the clause. Represents the semantic similarity function. Represents the similarity function. Indicates the first The first clause One word, Indicates the first The first clause One word, This represents a sentiment matching function. Represents the sentiment analysis function;
[0089] Specifically, all clauses are filtered sequentially based on the conflict score, and clauses that do not meet the requirements are replaced or modified to generate contract information corresponding to the contract generation request. A hash function (SHA-3 is used in this embodiment) is used to generate a digital fingerprint of the user terminal, and a preset key generation algorithm (homomorphic encryption algorithm is used in this embodiment to improve data confidentiality) is used to encrypt the contract information to obtain the corresponding encryption key and ciphertext dataset.
[0090] S105, when a request to access the encrypted dataset is received from a signatory, the decryption key of the signatory is obtained; if the decryption key matches the encryption key, the encrypted dataset is transmitted to the signatory.
[0091] In practice, when a signatory accesses the encrypted dataset via the blockchain, it uploads a corresponding access request. At this time, the signatory's decryption key is obtained, and the two keys are matched by building a search index. If the decryption key matches the encryption key, the encrypted dataset is transmitted to the signatory. In this embodiment, there can be multiple signatories. The search index allows signatories to search without exposing the data content, thus ensuring the security of the search.
[0092] S106, when the confirmation signal fed back by the contracting party based on the encrypted dataset is received, the digital fingerprint of the contracting party is obtained, and the electronic signature of the contract information is deployed based on the digital fingerprint of the user terminal and the digital fingerprint of the contracting party.
[0093] In practical implementation, when a confirmation signal is received from the signatory based on the encrypted dataset, the signatory's digital fingerprint and corresponding timestamp are obtained, and then packaged and embedded into the contract information along with the user terminal's digital fingerprint and corresponding timestamp to achieve the deployment of electronic signature for the contract information.
[0094] In summary, the blockchain-based electronic signature method in the above embodiments of the present invention calculates an authentication value from the user terminal's terminal information and uses an initial key and the authentication value to perform preliminary verification of the terminal information, thereby achieving identity authentication while effectively preventing identity theft. By parsing the element set and constructing a directed acyclic graph of tasks, the method achieves parallelization and dependency management of contract generation tasks, significantly improving contract drafting efficiency. Through automatic conflict detection and scoring using a clause generation model, the method significantly improves the compliance and consistency of contract clauses, reducing human intervention and errors. By using encryption keys and ciphertext datasets, the method ensures the confidentiality of contract content during transmission and storage. Through blockchain notarization and the matching mechanism of encryption and decryption keys, the method achieves the security of the signature process deployment and improves the efficiency of multi-party collaboration.
[0095] Example 2
[0096] In another aspect, this invention also proposes a blockchain-based electronic signature system; please refer to [link / reference needed]. Figure 2 The image shows a blockchain-based electronic signature system according to a second embodiment of the present invention. The system includes:
[0097] The request acquisition module 11 is used to calculate the authentication value corresponding to the user terminal based on the terminal information of the user terminal when it receives a contract generation request sent by the user terminal.
[0098] Furthermore, the request acquisition module 11 is specifically used for:
[0099] The unique identifier and identification key set in the terminal information of the user terminal are parsed out, wherein the identification key set is randomly generated from a finite field when the user terminal enters the Internet of Things;
[0100] Obtain a preset authentication database, and use the authentication database and the identification key set to obtain the authentication value corresponding to the user terminal.
[0101] The preliminary verification module 12 is used to obtain the corresponding initial key based on the terminal information, and use the initial key to perform preliminary verification on the authentication value to obtain a preliminary verification result;
[0102] Furthermore, the preliminary verification module 12 is specifically used for:
[0103] The number of initial verifications is parsed out, and several initial keys are randomly selected from the initial key set of the terminal information during each initial verification.
[0104] Generate a random binary challenge corresponding to the number of initial keys to determine the initial keys for participating in zero-knowledge proof;
[0105] Define the number of iterations for zero-knowledge proof using the initial key and the authentication value to obtain the iterative authentication value generated in each iteration, until the iterative authentication value meets the verification requirements to obtain a preliminary verification result.
[0106] The request parsing module 13 is used to parse out the set of elements corresponding to the contract generation request if the preliminary verification result is passed, and to construct a directed acyclic graph of the task corresponding to the contract generation request based on the set of elements.
[0107] Furthermore, the request parsing module 13 is specifically used for:
[0108] Parse the set of elements corresponding to the contract generation request, wherein the set of elements includes contract terms, contracting party information, amount information, and date information;
[0109] Based on the set of elements, corresponding task nodes are generated, and task constraints are constructed on the task nodes. The task nodes with constructed task constraints are combined to generate the corresponding directed acyclic graph of tasks.
[0110] The model building module 14 is used to build a clause generation model and use the clause generation model to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score. Based on the conflict score, the contract information corresponding to the contract generation request is generated, and the digital fingerprint of the user terminal and the encryption key and ciphertext dataset of the contract information are generated.
[0111] Furthermore, the model building module 14 is specifically used for:
[0112] Construct the current clause query vector and the key matrix and value matrix in the contract template library, and construct a clause generation model based on the convolutional neural network algorithm, the current clause query vector, the key matrix and the value matrix;
[0113] The clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score.
[0114] The key matching module 15 is used to obtain the decryption key of the signatory when it receives an access request from the signatory to the encrypted dataset; if the decryption key matches the encryption key, the encrypted dataset is transmitted to the signatory.
[0115] The electronic signature module 16 is used to obtain the digital fingerprint of the signatory when it receives a confirmation signal from the signatory based on the encrypted dataset, and to deploy the electronic signature of the contract information based on the digital fingerprint of the user terminal and the digital fingerprint of the signatory.
[0116] The functions or operation steps implemented by the above modules and units are largely the same as those in the above method embodiments, and will not be repeated here.
[0117] The blockchain-based electronic signature system provided in this embodiment of the invention has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the system embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0118] Example 3
[0119] This invention also proposes a computer, please refer to [link / reference]. Figure 3 The computer shown in the third embodiment of the present invention includes a memory 10, a processor 20, and a computer program 30 stored on the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, it implements the above-described blockchain-based electronic signature method.
[0120] The memory 10 includes at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 can be an internal storage unit of a computer, such as the computer's hard disk. In other embodiments, the memory 10 can be an external storage device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Furthermore, the memory 10 can include both internal and external storage units of the computer. The memory 10 can be used not only to store application software and various types of data installed on the computer, but also to temporarily store data that has been output or will be output.
[0121] In some embodiments, the processor 20 may be an electronic control unit (ECU), a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run program code stored in the memory 10 or process data, such as executing access restriction programs.
[0122] It should be pointed out that, Figure 3 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0123] This invention also proposes a storage medium storing a computer program that, when executed by a processor, implements the blockchain-based electronic signature method described above.
[0124] Those skilled in the art will understand that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0125] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0126] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0127] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0128] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A blockchain-based electronic signature method, characterized in that, include: When a contract generation request is received from a user terminal, the authentication value corresponding to the user terminal is calculated based on the terminal information of the user terminal. Based on the terminal information, the corresponding initial key is obtained, and the initial key is used to perform preliminary verification on the authentication value to obtain a preliminary verification result; If the preliminary verification result is passed, the element set corresponding to the contract generation request is parsed out, and a directed acyclic graph of the task corresponding to the contract generation request is constructed based on the element set. A clause generation model is constructed, and the clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score. Based on the conflict score, the contract information corresponding to the contract generation request is generated, and the digital fingerprint of the user terminal and the encryption key and ciphertext dataset of the contract information are generated. When a contracting party requests access to the encrypted dataset, the decryption key of the contracting party is obtained. If the decryption key matches the encryption key, the encrypted dataset is transmitted to the contracting party. When the confirmation signal from the signatory based on the encrypted dataset is received, the digital fingerprint of the signatory is obtained, and the electronic signature of the contract information is deployed based on the digital fingerprint of the user terminal and the digital fingerprint of the signatory. The step of calculating the authentication value corresponding to the user terminal based on the terminal information of the user terminal when a contract generation request is received from the user terminal includes: The unique identifier and identification key set in the terminal information of the user terminal are parsed out, wherein the identification key set is randomly generated from a finite field when the user terminal enters the Internet of Things; Obtain a preset authentication database, and use the authentication database and the identifier key set to obtain the authentication value corresponding to the user terminal; The steps of obtaining the corresponding initial key based on the terminal information and using the initial key to perform preliminary verification on the authentication value to obtain a preliminary verification result include: The number of initial verifications is parsed out, and several initial keys are randomly selected from the initial key set of the terminal information during each initial verification. Generate a random binary challenge corresponding to the number of initial keys to determine the initial keys for participating in zero-knowledge proofs; Define the number of iterations for zero-knowledge proof using the initial key and the authentication value to obtain the iterative authentication value generated in each iteration, until the iterative authentication value meets the verification requirements, so as to obtain the preliminary verification result.
2. The blockchain-based electronic signature method according to claim 1, characterized in that, The steps of parsing the set of elements corresponding to the contract generation request and constructing a directed acyclic graph of the task corresponding to the contract generation request based on the set of elements include: Parse the set of elements corresponding to the contract generation request, wherein the set of elements includes contract terms, contracting party information, amount information, and date information; Based on the set of elements, corresponding task nodes are generated, and task constraints are constructed on the task nodes. The task nodes with constructed task constraints are combined to generate the corresponding directed acyclic graph of tasks.
3. The blockchain-based electronic signature method according to claim 1, characterized in that, The steps of constructing a clause generation model and using the clause generation model to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score include: Construct the current clause query vector and the key matrix and value matrix in the contract template library, and construct a clause generation model based on the convolutional neural network algorithm, the current clause query vector, the key matrix and the value matrix; The clause generation model is used to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score.
4. A blockchain-based electronic signature system, characterized in that, include: The request acquisition module is used to calculate the authentication value corresponding to the user terminal based on the terminal information of the user terminal when it receives a contract generation request sent by the user terminal. The preliminary verification module is used to obtain the corresponding initial key based on the terminal information, and to use the initial key to perform preliminary verification on the authentication value to obtain a preliminary verification result; The request parsing module is used to parse out the set of elements corresponding to the contract generation request if the preliminary verification result is passed, and to construct a directed acyclic graph of the task corresponding to the contract generation request based on the set of elements. The model building module is used to build a clause generation model and use the clause generation model to perform clause conflict detection on the directed acyclic graph of the task to calculate the corresponding conflict score. Based on the conflict score, the module generates the contract information corresponding to the contract generation request and generates the digital fingerprint of the user terminal and the encryption key and ciphertext dataset of the contract information. The key matching module is used to obtain the decryption key of the signatory when it receives an access request from the signatory to the encrypted dataset; if the decryption key matches the encryption key, the encrypted dataset is transmitted to the signatory. The electronic signature module is used to obtain the digital fingerprint of the signatory when it receives a confirmation signal from the signatory based on the encrypted dataset, and to deploy the electronic signature of the contract information based on the digital fingerprint of the user terminal and the digital fingerprint of the signatory. Specifically, the request acquisition module is used for: The unique identifier and identification key set in the terminal information of the user terminal are parsed out, wherein the identification key set is randomly generated from a finite field when the user terminal enters the Internet of Things; Obtain a preset authentication database, and use the authentication database and the identifier key set to obtain the authentication value corresponding to the user terminal; Specifically, the preliminary verification module is used for: The number of initial verifications is parsed out, and several initial keys are randomly selected from the initial key set of the terminal information during each initial verification. Generate a random binary challenge corresponding to the number of initial keys to determine the initial keys for participating in zero-knowledge proofs; Define the number of iterations for zero-knowledge proof using the initial key and the authentication value to obtain the iterative authentication value generated in each iteration, until the iterative authentication value meets the verification requirements, so as to obtain the preliminary verification result.
5. A storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the blockchain-based electronic signature method as described in any one of claims 1 to 3.
6. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the blockchain-based electronic signature method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Electronic contract signing and filing distributed electronic device based on IPFS
CN115906120A
Government affair material intelligent verification method and system based on machine learning
CN120633636A