Electronic contract security signing method based on block chain consensus mechanism and related device

The electronic contract security signing method based on the blockchain consensus mechanism solves the security and fairness issues of electronic contracts in the data transmission process, and realizes efficient and secure contract signing and management.

CN120689167APending Publication Date: 2025-09-23XI'AN UNIVERSITY OF ARCHITECTURE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510778004.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

Existing electronic contracts have problems with data leakage, tampering and operational errors during data transmission, which affects the security, reliability and fairness of transactions.

Method used

The blockchain consensus mechanism is adopted to generate evidence data blocks and conduct endorsement verification by registering entities in the blockchain system, signing electronic contracts, calling smart contracts, using digital signature algorithms and PBFT consensus algorithms, ensuring the integrity and legitimacy of the data, and finally recording it on the blockchain.

Benefits of technology

It improves the transaction efficiency and security of electronic contracts, ensures the fairness and traceability of contracts, reduces the possibility of disputes and conflicts, and achieves transparency and credibility of contracts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120689167A_ABST
    Figure CN120689167A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic contract security signing method based on a block chain consensus mechanism and a related device, and the method comprises the steps: a main body needing to sign an electronic contract is registered in a block chain system, the block chain system issues a public and private key to the main body to prove that the main body belongs to a member in the block chain system, and the registration of the main body is completed; after the main body is registered successfully, signing a corresponding electronic contract in the block chain system; and calling the intelligent contract on the block chain system to carry out contract transaction. The method and the related device can ensure exchange, security, reliability and fairness of the transaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of blockchain technology and relates to a method and related device for securely signing an electronic contract based on a blockchain consensus mechanism. Background Art

[0002] Blockchain technology is a distributed database technology that achieves transparent, secure and efficient data transmission through decentralization, immutability and encryption security. Blockchain technology has now been widely used in various fields.

[0003] Blockchain consensus mechanisms are the algorithms and protocols used within a blockchain network to ensure that all participants reach consensus on transactions and data. Within a blockchain network, nodes must reach consensus on the validity and order of transactions in order to add them to the blockchain and ensure consistency across the network.

[0004] The primary goal of consensus mechanisms is to ensure the security, reliability, and decentralization of blockchain networks. In traditional centralized systems, a central authority is responsible for verifying and recording transactions. However, in blockchain networks, there is no centralized authority to verify transactions, so a mechanism is needed to ensure that all nodes reach consensus on the validity of transactions.

[0005] An e-contract is a digital form of contract that utilizes technologies such as electronic signatures, encryption, and digital certificates to convert traditional paper contracts into electronic form, enabling online signing, storage, and management. E-contracts are legally binding and have the same legal status as traditional paper contracts.

[0006] Business cooperation based on signed electronic contracts is the primary mode of trade in the e-commerce era. However, data leaks, data tampering, and human errors frequently occur, seriously impacting transaction efficiency, security, reliability, and fairness. Summary of the Invention

[0007] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method and related device for securely signing electronic contracts based on a blockchain consensus mechanism, which can ensure the communication, security, reliability and fairness of transactions.

[0008] To achieve the above objectives, the present invention discloses a method for securely signing an electronic contract based on a blockchain consensus mechanism, comprising:

[0009] The subject who needs to sign an electronic contract registers in the blockchain system. The blockchain system issues a public and private key to the subject to prove that the subject is a member of the blockchain system, thus completing the subject's registration.

[0010] After the entity is successfully registered, the corresponding electronic contract will be signed in the blockchain system;

[0011] Call the smart contract on the blockchain system to conduct contract transactions.

[0012] Furthermore, the process of signing the corresponding electronic contract in the blockchain system is as follows:

[0013] Based on the demand analysis, obtain the system function definition and complete the writing of the contract template content, which includes the contract terms and parties involved;

[0014] Use a digital signature algorithm to generate a digital signature for the electronic contract using the private key of each contracting party;

[0015] By writing smart contracts, the contract template is coded, making the smart contract a piece of code that can be automatically executed in the blockchain;

[0016] Deploy the written smart contract to the blockchain network to create a contract instance for use by participating parties.

[0017] Furthermore, the process of calling the smart contract on the blockchain system to conduct a contract transaction is as follows:

[0018] Participants interact through smart contracts to execute electronic contracts and send transaction requests using client applications or APIs provided by the blockchain;

[0019] When the participating parties submit transaction requests, the smart contract executes the electronic contract according to pre-defined rules.

[0020] Furthermore, after calling the smart contract on the blockchain system to conduct a contract transaction, the following steps are also included:

[0021] Based on the hash summary of the electronic contract text, the contract number and the on-chain address of the smart contract template, after the data summary is encrypted, a proof data block is generated and sent to the endorsement nodes of each organization for endorsement. After receiving the corresponding block, the endorsement node verifies its integrity and legitimacy. Once the verification is passed, the endorsement is completed.

[0022] Furthermore, it also includes: using the PBFT consensus algorithm for verification to ensure the uniformity of data in each node.

[0023] Furthermore, it also includes: after the PBFT consensus algorithm is completed, the data block is packaged and sent to the blockchain for storage.

[0024] The present invention discloses a secure electronic contract signing system based on a blockchain consensus mechanism, comprising:

[0025] The registration module is used for the subject who needs to sign an electronic contract to register in the blockchain system. The blockchain system issues a public and private key to the subject to prove that the subject is a member of the blockchain system, thus completing the subject's registration;

[0026] The signing module is used to sign the corresponding electronic contract in the blockchain system after the subject is successfully registered;

[0027] The transaction module is used to call smart contracts on the blockchain system to conduct contract transactions.

[0028] Furthermore, the process of signing the corresponding electronic contract in the blockchain system is as follows:

[0029] Based on the demand analysis, obtain the system function definition and complete the writing of the contract template content, which includes the contract terms and parties involved;

[0030] Use a digital signature algorithm to generate a digital signature for the electronic contract using the private key of each contracting party;

[0031] By writing smart contracts, the contract template is coded, making the smart contract a piece of code that can be automatically executed in the blockchain;

[0032] Deploy the written smart contract to the blockchain network to create a contract instance for use by participating parties.

[0033] The present invention discloses a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for securely signing an electronic contract based on a blockchain consensus mechanism are implemented.

[0034] The present invention discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for securely signing an electronic contract based on a blockchain consensus mechanism are implemented.

[0035] The present invention has the following beneficial effects:

[0036] The blockchain-based consensus mechanism-based secure electronic contract signing method and related devices described in this invention utilize templates within electronic contracts to develop smart contracts and deploy them on the blockchain, thereby increasing transaction reusability, reducing time costs, and significantly improving transaction efficiency. This method packages key information within the electronic contract into a data block for storage on the blockchain, thereby ensuring contract fairness and improving the traceability of electronic contracts, thus providing a basis for resolving contract disputes. This method utilizes data digest encryption technology to encrypt the data block before sending it to the endorsing nodes of each organization for endorsement. This allows each endorsing node to only verify the integrity and legitimacy of the data block and not access key contract information, effectively ensuring the security of the electronic contract and the privacy of both parties. This method utilizes a Byzantine fault-tolerant consensus algorithm, requiring the data block to be sent to the blockchain only after consensus is reached using the PBFT consensus algorithm, effectively ensuring the data uniformity of the electronic contract. Once the contract information is recorded on the blockchain, it cannot be altered or deleted, thus guaranteeing the integrity and authenticity of the contract. This invention records the timestamps of all contract transactions on the blockchain, making all transaction histories public and transparent. This makes contract auditing and traceability easier and more reliable, reducing the potential for disputes and conflicts. This invention can complete contract verification, execution, and settlement in a short period of time, improving the efficiency and speed of contract transactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which constitute part of the present invention, are intended to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are intended to explain the present invention and do not constitute an undue limitation of the present invention. In the accompanying drawings:

[0038] Figure 1 This is a basic process diagram of the contracting parties in the present invention;

[0039] Figure 2 This is a flowchart of data integrity audit in the present invention;

[0040] Figure 3 It is a basic flow chart of the present invention;

[0041] Figure 4 Schematic diagram of the PBFT consensus algorithm in the present invention. DETAILED DESCRIPTION

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0043] In the description of the present invention, it is to be understood that the terms “include” and “comprise” indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0044] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0045] It should be further understood that the term "and / or" as used in the present specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.

[0046] It should be understood that although the terms "first," "second," and "third" may be used to describe preset ranges in embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are merely used to distinguish one preset range from another. For example, without departing from the scope of embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

[0047] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0049] The accompanying drawings illustrate various schematic diagrams of structures according to embodiments disclosed herein. These figures are not drawn to scale; for clarity, some details are exaggerated and some details may be omitted. The shapes of the various regions and layers shown in the figures, as well as their relative sizes and positional relationships, are merely exemplary and may deviate in practice due to manufacturing tolerances or technical limitations. Those skilled in the art may design regions / layers with different shapes, sizes, and relative positions as needed.

[0050] Example 1

[0051] The method for securely signing an electronic contract based on a blockchain consensus mechanism of the present invention comprises the following steps:

[0052] 1) The subject who needs to sign an electronic contract registers in the blockchain system. The blockchain system issues public and private keys to the subject to prove that the subject is a member of the blockchain system, which is used for identity authentication in the blockchain system.

[0053] 2) After the entity is successfully registered, the corresponding electronic contract is signed in the blockchain system.

[0054] 3) Call the smart contract on the blockchain system to conduct contract transactions.

[0055] The signing of the corresponding electronic contract in the blockchain system includes the following steps:

[0056] 21) Based on the demand analysis, obtain the system function definition and complete the writing of the contract template content, which includes the terms and parties of the contract.

[0057] 22) Use a digital signature algorithm and the private key of each contracting party to generate a digital signature for the electronic contract.

[0058] 23) By writing smart contracts, the contract template is coded, making the smart contract a piece of code that can be automatically executed in the blockchain.

[0059] 24) Deploy the written smart contract to the blockchain network to create a contract instance for use by participating parties.

[0060] 25) Participants interact through smart contracts to execute electronic contracts and use client applications or APIs provided by the blockchain to send transaction requests, such as creating contracts, signing contracts, etc.

[0061] 26) Once the parties submit a transaction request, the smart contract executes the electronic contract according to pre-defined rules.

[0062] 27) Based on the hash summary of the electronic contract text, the contract number, and the on-chain address of the smart contract template, after the data summary is encrypted, a proof data block is generated and sent to the endorsement nodes of each organization for endorsement. After receiving the corresponding block, the endorsement node verifies its integrity and legitimacy. Once the verification is passed, the endorsement is completed.

[0063] 28) The PBFT consensus algorithm is used for verification to ensure the uniformity of data in each node.

[0064] 29) After the PBFT consensus algorithm is completed, the data block is packaged and sent to the blockchain for storage.

[0065] 210) All transaction records are recorded on the blockchain and can be traced back when necessary, making the execution process of electronic contracts more transparent and traceable, while facilitating the audit and dispute resolution of electronic contracts.

[0066] Example 2

[0067] like Figure 1 As shown, this embodiment provides a basic flow diagram of the contracting party, including the following steps:

[0068] The subject that needs to sign an electronic contract must register in the blockchain system;

[0069] After submitting the registration application, the system will assign the corresponding public and private keys and certificates to the registrant as identity authentication in the blockchain system;

[0070] After successful registration, users can interact with smart contracts pre-designed based on contract templates to complete operations such as creating contracts, signing contracts, and modifying contract status.

[0071] After the contract is signed, both parties attach their identity tags to the contract, and the system packages the important information in the contract and stores it in the blockchain network;

[0072] After successful storage, the electronic contract is signed and the entire process ends.

[0073] Example 3

[0074] like Figure 2 As shown, data integrity auditing in the developed blockchain system includes the following steps:

[0075] First, the node obtains a data summary of the important contents of the storage contract from the blockchain;

[0076] The node recalculates the originally stored data block using the data digest encryption method to obtain a new digest value;

[0077] Compare the newly calculated digest value with the data digest value obtained from the blockchain;

[0078] If the digest values ​​are equal, it means that the data has not been tampered with during transmission and the data integrity is guaranteed.

[0079] Example 4

[0080] like Figure 3 As shown, signing an electronic contract in the developed blockchain system includes the following steps:

[0081] First, the contracting party needs to obtain the corresponding electronic contract template according to the type of contract signed;

[0082] Electronic contract signing is based on the contract template, and the specific content of the contract is negotiated and filled in by the contracting parties;

[0083] Using a digital signature algorithm, a digital signature for the electronic contract is generated using the private key of each contracting party.

[0084] Converting a signed electronic contract into a smart contract on the blockchain involves the following steps:

[0085] Generate a smart contract template based on the contract template selected by the contracting party, and deploy the smart contract template in the blockchain system;

[0086] Based on the parts of the electronic contract other than the contract template, the hash summary of the electronic contract, the electronic contract number, and the on-chain address of the smart contract template, an encrypted evidence data block is generated through a digest encryption algorithm;

[0087] The encrypted evidence data block is sent to the endorsing nodes of each organization, which then verify the legitimacy and integrity of the transaction.

[0088] If all the endorsing nodes confirm that the endorsement is correct, the endorsement is successful;

[0089] The PBFT consensus algorithm is used for detection to protect the uniformity of data on each node.

[0090] like Figure 3 As shown in the figure, the PBFT consensus algorithm detection process includes the following steps:

[0091] S1. The blockchain client sends a request to the master node of the contracting entity in the contracting organization. The request includes the desired operation and the corresponding data.

[0092] S2. When the primary node in the contracting entity receives the client's request, it broadcasts the request to the backup nodes in the network;

[0093] S3: After receiving the request, the backup node executes the operation and returns the result to the primary node.

[0094] S4. The master node collects responses from all backup nodes and enters the next stage after receiving enough responses.

[0095] S5. The master node takes the majority decision with the most responses collected as the final decision and broadcasts it to all backup nodes.

[0096] S6. After receiving the final decision from the master node, the backup node executes the decision and updates the local state.

[0097] S7. After receiving the final decision, the client applies the decision to the local state and returns the result.

[0098] After the consensus algorithm is successfully completed, the evidence data block can be sent to the blockchain for storage. The contract is successfully signed, the data is successfully saved, and the contract is completed.

[0099] It should be noted that the consensus mechanism in this invention is an algorithm for achieving data consistency in a distributed network, ensuring that all participants reach agreement on the results of data processing. The use of a consensus mechanism can effectively protect the security, reliability, data consistency, and transparency of contracts, significantly addressing the problem of illegal data tampering and significantly improving transaction efficiency. Addressing this issue will further expand the application scenarios of blockchain technology and establish a new, trustworthy, and efficient e-commerce model.

[0100] Example 5

[0101] The electronic contract security signing system based on the blockchain consensus mechanism described in the present invention includes:

[0102] The registration module is used for the subject who needs to sign an electronic contract to register in the blockchain system. The blockchain system issues a public and private key to the subject to prove that the subject is a member of the blockchain system, thus completing the subject's registration;

[0103] The signing module is used to sign the corresponding electronic contract in the blockchain system after the subject is successfully registered;

[0104] The transaction module is used to call smart contracts on the blockchain system to conduct contract transactions.

[0105] Furthermore, the process of signing the corresponding electronic contract in the blockchain system is as follows:

[0106] Based on the demand analysis, obtain the system function definition and complete the writing of the contract template content, which includes the contract terms and parties involved;

[0107] Use a digital signature algorithm to generate a digital signature for the electronic contract using the private key of each contracting party;

[0108] By writing smart contracts, the contract template is coded, making the smart contract a piece of code that can be automatically executed in the blockchain;

[0109] Deploy the written smart contract to the blockchain network to create a contract instance for use by participating parties.

[0110] The division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the present application may be integrated into a single processor, or may exist physically separately, or two or more modules may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or software functional modules.

[0111] Example 6

[0112] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of a method for securely signing an electronic contract based on a blockchain consensus mechanism. For example, the steps include: a subject requiring the signing of an electronic contract registers in a blockchain system; the blockchain system issues public and private keys to the subject to prove that the subject is a member of the blockchain system, completing the subject's registration; after the subject's registration is successful, the corresponding electronic contract is signed in the blockchain system; and a smart contract on the blockchain system is invoked to conduct a contract transaction. The memory may include internal memory, such as a high-speed random access memory (RAM), or may also include non-volatile memory, such as at least one disk drive. The processor, network interface, and memory are interconnected via an internal bus, which may be an industrial standard architecture bus, a peripheral component interconnect standard bus, an extended industrial standard architecture bus, etc. The bus may be classified as an address bus, a data bus, a control bus, etc. The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operating instructions. The memory may include both internal memory and non-volatile memory, and provides instructions and data to the processor.

[0113] Example 7

[0114] A computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of a method for securely signing an electronic contract based on a blockchain consensus mechanism. For example, the method includes: a subject requiring electronic contract signing registers in a blockchain system; the blockchain system issues public and private keys to the subject to prove that the subject is a member of the blockchain system, completing the subject's registration; after the subject successfully registers, the corresponding electronic contract is signed in the blockchain system; and a smart contract on the blockchain system is invoked to conduct a contract transaction. Specifically, the computer-readable storage medium includes, but is not limited to, volatile memory and / or non-volatile memory. The volatile memory may include random access memory (RAM) and / or cache memory, etc. The non-volatile memory may include read-only memory (ROM), a hard disk, flash memory, an optical disk, a magnetic disk, etc.

[0115] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0117] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0119] Those skilled in the art will readily identify other embodiments of the present invention after considering the specification and disclosure of the invention. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

[0120] It should be understood that the present invention is not limited to the exact construction described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0121] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any simple modification, change and equivalent structural change made to the above embodiment based on the technical essence of the present invention shall still fall within the scope of protection of the technical solution of the present invention.

Claims

1. A method for securely signing an electronic contract based on a blockchain consensus mechanism, characterized in that: include: The subject who needs to sign an electronic contract registers in the blockchain system. The blockchain system issues a public and private key to the subject to prove that the subject is a member of the blockchain system, thus completing the subject's registration. After the entity is successfully registered, the corresponding electronic contract will be signed in the blockchain system; Call the smart contract on the blockchain system to conduct contract transactions.

2. The method for securely signing an electronic contract based on a blockchain consensus mechanism according to claim 1, characterized in that: The process of signing the corresponding electronic contract in the blockchain system is as follows: Based on the demand analysis, obtain the system function definition and complete the writing of the contract template content, which includes the contract terms and parties involved; Use a digital signature algorithm to generate a digital signature for the electronic contract using the private key of each contracting party; By writing smart contracts, the contract template is coded, making the smart contract a piece of code that can be automatically executed in the blockchain; Deploy the written smart contract to the blockchain network to create a contract instance for use by participating parties.

3. The method for securely signing an electronic contract based on a blockchain consensus mechanism according to claim 2 is characterized in that: The process of calling the smart contract on the blockchain system to conduct a contract transaction is as follows: Participants interact through smart contracts to execute electronic contracts and send transaction requests using client applications or APIs provided by the blockchain; When the participating parties submit transaction requests, the smart contract executes the electronic contract according to pre-defined rules.

4. The method for securely signing an electronic contract based on a blockchain consensus mechanism according to claim 1, characterized in that: After calling the smart contract on the blockchain system to conduct a contract transaction, the following steps are also included: Based on the hash summary of the electronic contract text, the contract number and the on-chain address of the smart contract template, after the data summary is encrypted, a proof data block is generated and sent to the endorsement nodes of each organization for endorsement. After receiving the corresponding block, the endorsement node verifies its integrity and legitimacy. Once the verification is passed, the endorsement is completed.

5. The method for securely signing an electronic contract based on a blockchain consensus mechanism according to claim 4 is characterized in that: Also includes: The PBFT consensus algorithm is used for verification to ensure the uniformity of data in each node.

6. The method for securely signing an electronic contract based on a blockchain consensus mechanism according to claim 5 is characterized in that: Also includes: After the PBFT consensus algorithm is completed, the data block is packaged and sent to the blockchain for storage.

7. An electronic contract security signing system based on blockchain consensus mechanism, characterized by: include: The registration module is used for the subject who needs to sign an electronic contract to register in the blockchain system. The blockchain system issues a public and private key to the subject to prove that the subject is a member of the blockchain system, thus completing the subject's registration; The signing module is used to sign the corresponding electronic contract in the blockchain system after the subject is successfully registered; The transaction module is used to call smart contracts on the blockchain system to conduct contract transactions.

8. The electronic contract security signing system based on the blockchain consensus mechanism according to claim 7 is characterized in that: The process of signing the corresponding electronic contract in the blockchain system is as follows: Based on the demand analysis, obtain the system function definition and complete the writing of the contract template content, which includes the contract terms and parties involved; Use a digital signature algorithm to generate a digital signature for the electronic contract using the private key of each contracting party; By writing smart contracts, the contract template is coded, making the smart contract a piece of code that can be automatically executed in the blockchain; Deploy the written smart contract to the blockchain network to create a contract instance for use by participating parties.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method for securely signing an electronic contract based on a blockchain consensus mechanism as described in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for securely signing an electronic contract based on a blockchain consensus mechanism as described in any one of claims 1 to 6 are implemented.