Data management method and device and electronic equipment
By saving the electronic contract template and its version number on the blockchain, the complexity of version control and supervision audit in traditional storage methods is solved, and the traceability and security of the electronic contract template are achieved.
Patent Information
- Application Number
- CN202411977585.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-18
AI Technical Summary
The traditional electronic contract template storage method has complexity and difficulties in version control and monitoring audits.
Save the electronic contract template and its version number on the blockchain, and update the blockchain record when the template changes to achieve the convenience of version control and monitoring audits.
Through the distributed and immutable characteristics of blockchain, the simplicity and traceability of version control and monitoring audit of electronic contract templates are realized, reducing the risk of data loss and version chaos.
Smart Images

Figure CN119849470A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data management method, device and electronic equipment. Background Art
[0002] The traditional way to store electronic contract templates is to store them in a centralized database. However, the centralized database does not provide a version control function for the stored electronic contract templates, so that each time the electronic contract template is modified, the version before the modification will be overwritten, resulting in data loss of the version before the modification or confusion of the electronic contract template version, which makes the version control of the electronic contract template complicated and increases the difficulty of supervision and auditing. Summary of the invention
[0003] This application provides a data management method, device and electronic device to solve the problems of complex version control and difficult supervision and auditing when storing electronic contract templates. The specific implementation plan is as follows:
[0004] In a first aspect, the present application provides a data management method, the method comprising:
[0005] Save the electronic contract template and the corresponding version number on the blockchain;
[0006] When the electronic contract template is changed, the changed new electronic contract template and the corresponding version number are saved on the blockchain.
[0007] Through the above-mentioned application embodiment, the electronic contract template and the corresponding version number are saved on the blockchain, and when the electronic contract template is changed, the changed new electronic contract template and the corresponding version number are also saved on the blockchain, so that all versions and corresponding version numbers corresponding to the electronic contract template can be saved on the blockchain, so that the electronic contract template with the corresponding version number can be determined through the various version numbers of the electronic contract template. Even after the electronic contract template is modified, it can be rolled back to the previous version through the stored historical version number, thereby facilitating the control of the version of the electronic contract template, making version control simpler, while ensuring the traceability of the electronic contract template, reducing the difficulty of supervision and auditing, and facilitating audit tracing, so as to facilitate supervision and auditing of the entire process.
[0008] In a possible implementation, storing the electronic contract template and the corresponding version number on the blockchain includes:
[0009] The summary content of the electronic contract template including the template identification code ID, template name, template file hash value hash, template creation time, template creator, template type, and template version number is saved to the blockchain.
[0010] Through the above application embodiment, the summary content of the electronic contract template including the template ID, template name, template file hash, template creation time, template creator, template type, and template version is saved to the blockchain, so as to ensure that the data of the electronic contract template has not been tampered with during the off-chain exchange process, thereby ensuring the authenticity of the electronic contract template. In addition, only the above summary content of the electronic contract template is saved to the blockchain, which can reduce the storage space occupied by invalid information, thereby reducing the waste of resources.
[0011] In a possible implementation, the method further includes:
[0012] The access control mechanism of the blockchain is utilized to control the access rights of the electronic contract template.
[0013] Through the above-mentioned application embodiments, the access control mechanism of the blockchain is used to control the access rights of the electronic contract template, so that the security of the electronic contract template is improved and the risk of leakage of the electronic contract template is reduced.
[0014] In a possible implementation, after the electronic contract template and the corresponding version number are stored on the blockchain, the process further includes:
[0015] According to business requirements, a target contract template is selected from the plurality of electronic contract templates;
[0016] An electronic contract is generated according to the target contract template and business parameters; wherein the electronic contract includes a contract ID, a template ID, contract parameters, a contract file hash, and a contract status.
[0017] Through the above application embodiments, the electronic contract negotiation can be started quickly, which greatly improves the efficiency of the contract negotiation process. In addition, according to the contract ID, template ID, contract parameters, contract file hash, and contract status in the electronic contract, the current information of the electronic contract can be obtained to facilitate related processing.
[0018] In a possible implementation manner, after generating the electronic contract, the method further includes:
[0019] If it is determined that the contract size of the electronic contract is greater than the size threshold or the contract storage space is greater than the storage space threshold, the electronic contract is stored in a distributed storage system IPFS system.
[0020] Through the above-mentioned application embodiments, when the contract size of an electronic contract is greater than a size threshold or the contract storage space is greater than a storage space threshold, the electronic contract is stored in an IPFS system to prevent the electronic contract from being tampered with, thereby ensuring the authenticity and reliability of the electronic contract, thereby further improving the security of the electronic contract and the transmission efficiency of the electronic contract.
[0021] In a possible implementation manner, after generating the electronic contract, the method further includes:
[0022] The signing record of the electronic contract is saved on the blockchain.
[0023] Through the above-mentioned application embodiments, the signing record of the electronic contract is saved on the blockchain so that the validity of the electronic contract can be proved at any time, and the electronic contract is traceable and auditable.
[0024] In a possible implementation, the method further includes:
[0025] Tracking the contract status of the electronic contract through the smart contract program, and executing operations corresponding to the contract status; wherein the electronic contract is a contract generated according to the electronic contract template; and
[0026] Through event monitoring, the key processes in the execution of the electronic contract are notified to the participants of the electronic contract; wherein the key processes at least include the contract drafting process, the contract signing process, and the contract cancellation process.
[0027] Through the above-mentioned application embodiments, the parties involved in the electronic contract can learn the key processes of the electronic contract in real time to facilitate monitoring of the electronic contract, and can obtain accurate information on the key processes of the electronic contract in advance to improve the execution efficiency of the key processes of the electronic contract.
[0028] In a second aspect, the present application further provides a data management device, the device comprising:
[0029] The on-chain module is used to save the electronic contract template and the corresponding version number on the blockchain;
[0030] The processing module is used to save the changed new electronic contract template and the corresponding version number on the blockchain when the electronic contract template is changed.
[0031] In a possible implementation, the on-chain module is specifically used to save the summary content of the electronic contract template, including the template identification code ID, template name, template file hash value hash, template creation time, template creator, template type, and template version number, to the blockchain.
[0032] In a possible implementation, the device further includes an access control module, and the access control module is used to control access rights to the electronic contract template by utilizing an access control mechanism of the blockchain.
[0033] In a possible implementation, the processing module is specifically used to select a target contract template from multiple electronic contract templates according to business needs; generate an electronic contract according to the target contract template and business parameters; wherein the electronic contract includes a contract ID, a template ID, contract parameters, a contract file hash, and a contract status.
[0034] In a possible implementation, the processing module is specifically used to store the electronic contract in a distributed storage system IPFS system if it is determined that the contract size of the electronic contract is greater than a size threshold or the contract storage space is greater than a storage space threshold.
[0035] In a possible implementation, the processing module is specifically configured to save a signing record of the electronic contract on the blockchain.
[0036] In one possible implementation, the processing module is specifically used to track the contract status of the electronic contract through a smart contract program and execute operations corresponding to the contract status; wherein the electronic contract is a contract generated according to the electronic contract template; and through event monitoring, the key processes in the execution of the electronic contract are notified to the participants of the electronic contract; wherein the key processes include at least a contract drafting process, a contract signing process, and a contract cancellation process.
[0037] In a third aspect, the present application provides an electronic device, including:
[0038] Memory, used to store computer programs;
[0039] The processor is used to implement the above-mentioned data management method steps when executing the computer program stored in the memory.
[0040] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above-mentioned data management method steps are implemented.
[0041] For each aspect from the second to the fourth aspect and the technical effects that may be achieved by each aspect, please refer to the above description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1A flowchart of a data management method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the processing process of the data management method provided in the embodiment of the present application;
[0044] Figure 3 A schematic diagram of a data management device provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0047] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0048] Traditional electronic contract templates are stored in a centralized database, which leads to difficulties in version control and supervision and auditing.
[0049] Therefore, the present application proposes a data management method, which saves the electronic contract template and the corresponding version number on the blockchain; when the electronic contract template is changed, the changed new electronic contract template and the corresponding version number are also saved on the blockchain, so that all versions of the electronic contract and the version number corresponding to each version are saved on the blockchain, so that the electronic contract template with the corresponding version number can be determined through the various version numbers of the electronic contract template. Even after the electronic contract template is modified, it can be rolled back to the previous version through the stored historical version number, thereby facilitating the control of the version of the electronic contract template, making version control simpler, and at the same time ensuring the traceability of the electronic contract template, facilitating audit tracing, so as to facilitate the supervision and audit of the entire process.
[0050] Reference Figure 1 The figure is a flow chart of a data management method provided by an embodiment of the present application, the method comprising:
[0051] S101, save the electronic contract template and the corresponding version number on the blockchain.
[0052] Among them, the structure definition of the electronic contract template can be as follows:
[0053] {
[0054] TemplateID / / Template identification code (English: Identity document, abbreviated as ID)
[0055] TemplateName / / Template name
[0056] TemplateFileHash / / Template file hash value (hash)
[0057] CreateTime / / Template creation time
[0058] Creator / / Template creator
[0059] TemplateType / / Template type
[0060] TemplateVersion / / Template version number
[0061] }
[0062] In an embodiment of the present application, the summary content of the electronic contract template may include template ID, template name, template file hash, template creation time, template creator, template type, and template version number.
[0063] Optionally, the electronic contract template and the corresponding version number can be saved on the blockchain by saving the summary content of the electronic contract template including the template ID, template name, template file hash, template creation time, template creator, template type, and template version to the blockchain, so as to ensure that the data of the electronic contract template is not tampered with during the off-chain exchange process, thereby ensuring the authenticity of the electronic contract template. In addition, only saving the above summary content of the electronic contract template to the blockchain can reduce the storage space occupied by invalid information, thereby reducing the waste of resources.
[0064] In the embodiment of the present application, the above template type is a public contract template or a private contract template. That is to say, the electronic contract template can be a public contract template or a private contract template.
[0065] The public contract template or private contract template can be obtained by adding supplementary terms to the built-in contract template (such as the general contract template) in the contract template management module. The supplementary terms can be determined according to specific business scenarios and business needs. The contract template management module can provide a variety of general contract templates and custom templates. The custom template can be the above-mentioned public contract template or private contract template.
[0066] In an embodiment of the present application, the template version number can be obtained by numbering iterative versions of the electronic contract template to obtain the version number corresponding to the current version of the electronic contract template (ie, the template version number).
[0067] For example, the electronic contract template has been changed three times. The version number corresponding to the original electronic contract template is set to v0, the version number corresponding to the electronic contract template after the first modification is v1, the version number corresponding to the electronic contract template after the second modification is v2, and the version number corresponding to the electronic contract template after the third modification is v3. The iterative versions are numbered in sequence, so that the number of times the electronic contract template is currently modified can be determined based on the version number, so that the modification order of each modification of the electronic contract template can be reflected, making supervision and auditing more convenient.
[0068] In addition, when saving the electronic contract template and the corresponding version number, you can also add the corresponding template modifier information, template modification time and other content to the version number, or record the corresponding modification information for each version number. The modification information includes the corresponding template modifier information, template modification time and other content, and the record information is also saved on the blockchain for better traceability, which helps to better conduct supervision and auditing.
[0069] Optionally, in the process of saving the electronic contract template and the corresponding version number on the blockchain, the electronic contract template and the corresponding version number can be saved on the blockchain in a hashing manner.
[0070] That is to say, the hash value of the electronic contract template and the hash value of the corresponding version number are saved on the blockchain, thereby ensuring the security, integrity, immutability and efficiency of the electronic contract template and the corresponding version number.
[0071] S102: When the electronic contract template is changed, the changed new electronic contract template and the corresponding version number are saved on the blockchain.
[0072] When the electronic contract template is changed, the new electronic contract template and the corresponding version number will also be saved on the blockchain, so that all versions of the electronic contract template and the version number corresponding to each version can be saved on the blockchain, which is convenient for controlling the version of the electronic contract template and facilitating supervision and auditing.
[0073] The process of saving the above-mentioned new electronic contract template and the corresponding version number to the blockchain is the same as the process of saving the electronic contract template and the corresponding version number to the blockchain in the aforementioned step S101, and will not be repeated here.
[0074] In addition, in order to improve the security of electronic contract templates (or new electronic contract templates), the access control mechanism of the blockchain can also be used to control the access rights of electronic contract templates (or new electronic contract templates) at different levels, so as to realize the refined permission management of electronic contract templates, thereby improving the security of electronic contract templates and reducing the risk of leakage of electronic contract templates.
[0075] Different access rights can be granted for different template types. For example, when the template type of an electronic contract template is a public contract template, all nodes on the blockchain can access the electronic contract template.
[0076] Optionally, after executing step S101 (i.e., saving the electronic contract template and the corresponding version number on the blockchain) or executing step S102 (i.e., saving the changed new electronic contract template and the corresponding version number on the blockchain), a target contract template can be selected from multiple electronic contract templates according to business needs to generate an electronic contract.
[0077] Specifically, according to business requirements, a target contract template is selected from multiple electronic contract templates. The target contract template meets the business requirements. Then, according to the target contract template and business parameters, an electronic contract is automatically generated, thereby realizing a quick start of electronic contract negotiations, greatly improving the efficiency of the contract negotiation process.
[0078] Among them, the structure definition of the electronic contract can be as follows:
[0079] {
[0080] ContractID / / Contract ID
[0081] TemplateID / / Template ID
[0082] ContractArgs / / Contract parameters
[0083] ContractFileHash / / Contract file hash
[0084] ContractStatus / / Contract status
[0085] }
[0086] Therefore, the electronic contract includes the contract ID, the template ID to which it belongs, the contract parameters, the contract file hash, and the contract status. Therefore, based on the contract ID, the template ID to which it belongs, the contract parameters, the contract file hash, and the contract status in the electronic contract, the current information of the electronic contract can be obtained to facilitate related processing.
[0087] The contract parameters may include information such as the storage location of the electronic contract, the properties of the electronic contract, etc. Therefore, the current information of the electronic contract can be obtained based on the contract parameters.
[0088] The contract status may include a drafting status, a signing status, an invalidation status, etc., so that the current status of the electronic contract can be known according to the contract status. For example, if the contract status is an invalidation status, it can be known that the electronic contract is currently invalidated according to the contract status.
[0089] In the embodiment of the present application, the target contract template is selected from multiple electronic contract templates according to business needs, and the target contract template can also be selected from multiple electronic contract templates and multiple built-in templates in the contract template management module according to business needs. That is, according to business needs, the target contract template that best meets the business needs is selected from multiple public contract templates, multiple private contract templates, and multiple built-in contract templates.
[0090] Optionally, in the process of selecting the target contract template from the electronic contract template according to business needs, it is also necessary to select the target contract template according to the template name, that is, select the target contract template from the electronic contract template according to business needs and the template name, so as to determine the required target contract template according to the template name.
[0091] Optionally, the above-mentioned electronic contract generation process can be automatically executed by a smart contract program, so that the business logic can be automatically executed through the smart contract program, and a template that meets business needs can be quickly generated, so that the efficiency of the electronic contract signing process can be improved. The smart contract program can be encoded according to the business logic. For example, the smart contract program can be encoded according to the electronic contract signing process.
[0092] Optionally, in the embodiment of the present application, the contract status of the electronic contract can also be tracked through the smart contract program, and the operation corresponding to the contract status can be executed. In addition, the key process in the automatic execution of the electronic contract can also be notified to the relevant parties (such as the participants of the electronic contract) through event notification, so that the participants of the electronic contract can know the status of the key process of the electronic contract in real time, so that they can make corresponding preparations for the key process to speed up the efficiency of the entire execution process of the electronic contract.
[0093] The above-mentioned key processes may include electronic contract signing processes such as contract drafting process, contract voting process, contract signing process, contract cancellation process, and contract storage process.
[0094] Furthermore, after the electronic contract is generated, each party to the electronic contract may be notified to digitally sign the electronic contract.
[0095] In the process of digitally signing electronic contracts by various participants, the electronic contracts can be digitally signed and verified based on the identity mechanism of the blockchain, thereby ensuring the correctness and security of the electronic contract signature.
[0096] In addition, in view of the large content of electronic contracts, a distributed storage system (English: InterPlanetary File System, abbreviated as IPFS system) is provided to store the generated electronic contracts.
[0097] The characteristic of the electronic contract having a large content is that the electronic contract has a large contract size or a large contract storage space. If it is determined that the contract size of the electronic contract is greater than the size threshold, then the contract size of the electronic contract is determined to be large; if it is determined that the contract storage space of the electronic contract is greater than the storage space threshold, then the contract storage space of the electronic contract is determined to be large.
[0098] That is to say, if it is determined that the contract size of the electronic contract is greater than the size threshold, or the contract storage space is greater than the storage space threshold, the electronic contract is stored in the IPFS system.
[0099] Since the IPFS system has the advantages of decentralization and efficient transmission, electronic contracts can be stored through the IPFS system, which prevents electronic contracts from being tampered with, ensures the authenticity and reliability of electronic contracts, further improves the security of electronic contracts, and at the same time improves the transmission efficiency of electronic contracts.
[0100] Optionally, after the electronic contract is generated, the signing record of the electronic contract can also be saved on the blockchain, so that the validity of the electronic contract can be proved at any time through the signing record, and the electronic contract can be traceable and auditable.
[0101] In addition, the electronic contract template in the embodiment of the present application has a scope of use. The scope of use can be adjusted according to the scope authorized by the creator of the electronic contract template, so that the electronic contract template is only used within the scope authorized by the creator of the electronic contract template to protect the rights and interests of the creator of the electronic contract template.
[0102] In summary, the data management method proposed in this application saves all versions of the electronic contract template and the version number corresponding to each version on the blockchain, making the version control of the electronic contract template simpler and convenient for audit traceability, so as to facilitate the supervision and audit of the entire process of the electronic contract template and ensure the data security in the electronic contract template.
[0103] In addition, uploading the summary content of the electronic contract template to the chain can prevent the electronic contract template from being tampered with, ensuring the authenticity of the electronic contract target. At the same time, the access control mechanism of the blockchain is used to control the access rights of the electronic contract template, realizing the refined permission management of the electronic contract template, which helps to reduce the risk of template leakage.
[0104] In addition, through the preset contract template structure data (such as electronic contract template), electronic contracts can be automatically generated according to business parameters, enabling the rapid start of electronic contract negotiations, greatly improving the efficiency of the contract negotiation process.
[0105] The technical solution of this application is further explained below in conjunction with a specific application process.
[0106] like Figure 2 The figure shows a processing diagram of the data management method. First, all versions of the electronic contract template and the corresponding version numbers are saved on the blockchain.
[0107] When the relevant party (such as the initiator of the electronic contract) initiates the contract signing, in the template generation module, according to the business needs corresponding to the contract signing initiated by the relevant party, the required built-in contract template is obtained from the contract template management module. Then, it is determined whether it is necessary to add supplementary clauses to the built-in contract template (that is, whether a personalized customized template is required). If it is necessary to add supplementary clauses to the built-in contract template (that is, a personalized customized template is required), the corresponding supplementary clauses are added to the built-in contract template, and then the template type is determined, which is a public contract template or a private contract template. If it is not necessary to add supplementary clauses to the built-in contract template (that is, no personalized customized template is required), the template type is directly determined. Then, according to the template type, a complete target contract template is obtained, and the target contract template is transmitted to the electronic contract generation module, so that the electronic contract generation module generates an electronic contract according to the target contract template. In addition, the target contract template and the corresponding version number are saved on the blockchain.
[0108] Alternatively, in the template generation module, according to the business requirements corresponding to the contract signing initiated by the relevant parties, the required version of the electronic contract template is directly obtained from the blockchain. The electronic contract template is used as the target contract template. The target contract template is then transmitted to the electronic contract generation module, so that the electronic contract generation module generates an electronic contract according to the target contract template.
[0109] In the electronic contract generation module, the target contract template generated in the template generation module is obtained, and then the electronic contract is automatically generated according to the target contract template and business parameters.
[0110] Furthermore, each party to the electronic contract digitally signs the electronic contract.
[0111] Next, in the smart contract module, each process of the electronic contract is executed and the contract status of the electronic contract is monitored.
[0112] Finally, the signing record of the electronic contract is saved on the blockchain.
[0113] Based on the same inventive concept, the present application also provides a data management device, such as Figure 3 The figure is a schematic diagram of the structure of a data management device provided by the present application, the device comprising:
[0114] In a second aspect, the present application further provides a data management device, the device comprising:
[0115] The on-chain module 301 is used to store the electronic contract template and the corresponding version number on the blockchain;
[0116] The processing module 302 is used to save the changed new electronic contract template and the corresponding version number on the blockchain when the electronic contract template is changed.
[0117] In a possible implementation, the on-chain module 301 is specifically used to save the summary content of the electronic contract template, including the template identification code ID, template name, template file hash value hash, template creation time, template creator, template type, and template version number, to the blockchain.
[0118] In a possible implementation, the device further includes an access control module, and the access control module is used to control access rights to the electronic contract template by utilizing an access control mechanism of the blockchain.
[0119] In a possible implementation, the processing module 302 is specifically used to select a target contract template from a plurality of electronic contract templates according to business needs; generate an electronic contract according to the target contract template and business parameters; wherein the electronic contract includes a contract ID, a template ID, contract parameters, a contract file hash, and a contract status.
[0120] In a possible implementation, the processing module 302 is specifically configured to store the electronic contract in a distributed storage system IPFS system if it is determined that the contract size of the electronic contract is greater than a size threshold or the contract storage space is greater than a storage space threshold.
[0121] In a possible implementation, the processing module 302 is specifically configured to save the signing record of the electronic contract on the blockchain.
[0122] In one possible implementation, the processing module 302 is specifically used to track the contract status of the electronic contract through a smart contract program and execute operations corresponding to the contract status; wherein the electronic contract is a contract generated according to the electronic contract template; and through event monitoring, the key processes in the execution of the electronic contract are notified to the participants of the electronic contract; wherein the key processes include at least a contract drafting process, a contract signing process, and a contract cancellation process.
[0123] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application. The electronic device can realize the function of the aforementioned data management device. Figure 4 , the electronic equipment includes:
[0124] At least one processor 401, and a memory 402 connected to the at least one processor 401. The specific connection medium between the processor 401 and the memory 402 is not limited in the embodiment of the present application. Figure 4 In the example, the processor 401 and the memory 402 are connected via the bus 400. The bus 400 is Figure 4 The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 400 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 401 can also be called a controller, and there is no limitation on the name.
[0125] In the embodiment of the present application, the memory 402 stores instructions that can be executed by at least one processor 401. The at least one processor 401 can execute the data management method discussed above by executing the instructions stored in the memory 402. The processor 401 can implement Figure 3 The functions of each module in the device shown.
[0126] Among them, the processor 401 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 402 and calling the data stored in the memory 402, the various functions of the device and process data, the device can be monitored as a whole.
[0127] In one possible design, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 401. In some embodiments, the processor 401 and the memory 402 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0128] Processor 401 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the data management method disclosed in the embodiments of the present application can be directly embodied as a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0129] The memory 402 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 402 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (English: Random Access Memory, abbreviated as RAM), a static random access memory (English: Static Random Access Memory, abbreviated as SRAM), a programmable read-only memory (English: Programmable Read Only Memory, abbreviated as PROM), a read-only memory (English: Read Only Memory, abbreviated as ROM), an electrically erasable programmable read-only memory (English: Electrically Erasable Programmable Read-Only Memory, abbreviated as EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 402 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 402 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0130] By designing and programming the processor 401, the code corresponding to the data management method described in the above embodiment can be fixed into the chip, so that the chip can execute the data management method when it is running. Figure 1 The steps of the data management method of the embodiment shown are as follows: How to design and program the processor 401 is a technique known to those skilled in the art and will not be described in detail here.
[0131] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the data management method discussed above.
[0132] In some possible implementations, various aspects of the data management method provided in the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the data management method according to various exemplary implementations of the present application described above in this specification.
[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may 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 may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0134] 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.
[0135] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0137] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data management method, characterized in that: include: Save the electronic contract template and the corresponding version number on the blockchain; When the electronic contract template is changed, the changed new electronic contract template and the corresponding version number are saved on the blockchain.
2. The method according to claim 1, characterized in that The electronic contract template and the corresponding version number are stored on the blockchain, including: The summary content of the electronic contract template including the template identification code ID, template name, template file hash value hash, template creation time, template creator, template type, and template version number is saved to the blockchain.
3. The method according to claim 1, characterized in that The method further comprises: The access control mechanism of the blockchain is utilized to control the access rights of the electronic contract template.
4. The method according to claim 1, characterized in that After the electronic contract template and the corresponding version number are stored on the blockchain, the following steps are also included: According to business requirements, a target contract template is selected from the plurality of electronic contract templates; An electronic contract is generated according to the target contract template and business parameters; wherein the electronic contract includes a contract ID, a template ID, contract parameters, a contract file hash, and a contract status.
5. The method according to claim 4, characterized in that After the electronic contract is generated, the method further includes: If it is determined that the contract size of the electronic contract is greater than the size threshold or the contract storage space is greater than the storage space threshold, the electronic contract is stored in a distributed storage system IPFS system.
6. The method according to claim 4, characterized in that After the electronic contract is generated, the method further includes: The signing record of the electronic contract is saved on the blockchain.
7. The method according to claim 1, characterized in that The method further comprises: Tracking the contract status of the electronic contract through the smart contract program, and executing operations corresponding to the contract status; wherein the electronic contract is a contract generated according to the electronic contract template; and Through event monitoring, the key processes in the execution of the electronic contract are notified to the participants of the electronic contract; wherein the key processes at least include the contract drafting process, the contract signing process, and the contract cancellation process.
8. A data management device, characterized in that: include: The on-chain module is used to save the electronic contract template and the corresponding version number on the blockchain; The processing module is used to save the changed new electronic contract template and the corresponding version number on the blockchain when the electronic contract template is changed.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method steps of any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.