CN113407188B - Intelligent contract construction method and device, computer equipment and storage medium - Google Patents

Intelligent contract construction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113407188B
CN113407188B CN202110622351.6A CN202110622351A CN113407188B CN 113407188 B CN113407188 B CN 113407188B CN 202110622351 A CN202110622351 A CN 202110622351A CN 113407188 B CN113407188 B CN 113407188B
Authority
CN
China
Prior art keywords
contract
content
intelligent
blockchain network
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110622351.6A
Other languages
Chinese (zh)
Other versions
CN113407188A (en
Inventor
易朝刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Chenyi Info Technology Co ltd
Original Assignee
Guangdong Chenyi Info Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Chenyi Info Technology Co ltd filed Critical Guangdong Chenyi Info Technology Co ltd
Priority to CN202110622351.6A priority Critical patent/CN113407188B/en
Publication of CN113407188A publication Critical patent/CN113407188A/en
Application granted granted Critical
Publication of CN113407188B publication Critical patent/CN113407188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to the field of intelligent contracts of blockchains, and discloses a method, a device, computer equipment and a storage medium for constructing the intelligent contracts, wherein the method comprises the following steps: acquiring a contract template to be uplink; compiling the contract template in an explanatory language to obtain contract contents; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content; sending the compiled contract content to a blockchain network for uplink deployment; obtaining authorization information of contract participants for the contract content from the blockchain network; and generating an intelligent contract based on the authorization information and the contract content, and completing the intelligent contract to be up-linked in a blockchain network to execute the intelligent contract. According to the method and the system, the content of the intelligent contract is presented to the contract participants through the explanatory language, so that the convenience of intelligent contract construction and intelligent contract use is improved.

Description

Intelligent contract construction method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of intelligent contracts of blockchain, and in particular, to a method and apparatus for constructing an intelligent contract, a computer device, and a storage medium.
Background
In the prior art, the intelligent contract is authorized by the party when the intelligent contract is executed, the specific content of the intelligent contract cannot be known by the party after the intelligent contract is compiled, the content of the intelligent contract can be known only by acquiring the source code of the intelligent contract and analyzing the source code, so that the reading efficiency of the party on the content of the contract is low, and the method is difficult to develop for frequent intelligent contract uplink business, so that the construction efficiency of the intelligent contract is greatly reduced.
Disclosure of Invention
The main purpose of the application is to provide a method, a device, a computer device and a storage medium for constructing an intelligent contract, which aim to solve the problems of low reading efficiency and low construction efficiency of the existing intelligent contract.
In order to achieve the above object, the present application proposes a method for constructing an intelligent contract, including:
acquiring a contract template to be uplink;
compiling the contract template in an explanatory language to obtain contract contents; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content;
sending the compiled contract content to a blockchain network for uplink deployment;
obtaining authorization information of contract participants for the contract content from the blockchain network;
and generating an intelligent contract based on the authorization information and the contract content, and completing the intelligent contract to be up-linked in a blockchain network to execute the intelligent contract.
Further, the compiling the contract template in an explanatory language to obtain contract content includes:
identifying contract terms in a preset format contained in the contract template;
acquiring explanatory sentences of each contract term;
and compiling the contract template in an explanatory language according to the explanatory statement to obtain contract content.
Further, the method for completing the uplink of the intelligent contract in the blockchain network to execute the intelligent contract comprises the following steps:
acquiring triggering conditions of the intelligent contract execution from the contract content;
when the triggering condition is met, acquiring text content contained in the triggering condition;
executing the text content to obtain a contract result;
and linking the contract result with the intelligent contract in a blockchain network.
Further, after the compiled contract content is sent to a blockchain network for uplink deployment, the method further includes:
acquiring authorization conditions of the contract content;
determining a contract participant according to the authorization condition;
and sending authorization reminding information to the contract participants.
Further, the authorization information includes a digital certificate of the contract participant; after the intelligent contract is generated based on the authorization information and the contract content and the intelligent contract is completely uplink in the blockchain network to execute the intelligent contract, the method further comprises the following steps:
acquiring the effective time of the digital certificate;
selecting the minimum value of the effective time, and configuring the minimum value as the effective time of the intelligent contract;
and suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
Further, after the suspending the execution of the smart contract, the method further includes:
acquiring a target contract participant; the target contract participant is a contract participant for the valid time of the digital certificate;
and sending prompt information of the digital certificate reaching the effective time to the target contract participant.
Further, before compiling the contract template in an explanatory language to obtain the contract content, the method further includes:
acquiring the language type of a target client;
and determining the explanatory language type according to the language type of the target client.
The application also provides a construction device of the intelligent contract, which comprises:
the template acquisition module is used for acquiring a contract template to be uplink;
the content compiling module is used for compiling the contract template in an explanatory language to obtain contract content; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content;
the contract deployment module is used for sending the compiled contract content to a blockchain network for uplink deployment;
the authorization verification module is used for acquiring authorization information of contract participants for the contract content from the blockchain network;
and the contract executing module is used for generating an intelligent contract based on the authorization information and the contract content, and completing the uplink of the intelligent contract in a blockchain network so as to execute the intelligent contract.
The application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method for constructing a smart contract according to any one of the above-mentioned claims when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of constructing a smart contract as described in any of the above.
The embodiment of the application provides a construction method of intelligent contracts based on an interpretable language, which comprises the steps of firstly obtaining a contract template to be uplinked, compiling the contract template in the interpretative language, and displaying the contract template in the interpretative language through compiling so as to obtain contract contents displayed in the interpretative language; the explanatory language comprises Chinese, the contract content comprises Chinese-culture contract content, the compiled contract content is sent to a blockchain network for uplink deployment, when the contract content is sent to the blockchain network for uplink deployment, the contract content is sent to a contract participant for the contract participant to browse the contract content, the contract participant can acquire and check the contract content comprising the explanatory language from the blockchain network, then the contract participant authorizes the part requiring self authorization in the contract content, thereby acquiring the authorization information of the contract participant for the contract content from the blockchain network, after the authorization information of the contract participant for the contract content is acquired, the contract content is regarded as legal and trusted contract content, then an intelligent contract is generated based on the authorization information and the contract content, the intelligent contract is then finished uplink in the blockchain network, the contract participant is executed in the blockchain network, the contract content is presented to the contract participant by the interpretable language, the authorization information of the participant is acquired, the intelligent contract can be ensured, the intelligent contract can be effectively executed, and the intelligent operation of the contract is not really performed, and the intelligent operation is convenient.
Drawings
FIG. 1 is a flow chart of an embodiment of a method for constructing a smart contract according to the present application;
FIG. 2 is a flow chart of another embodiment of a method of constructing a smart contract of the present application;
FIG. 3 is a schematic structural diagram of an embodiment of an apparatus for constructing smart contracts according to the present application;
FIG. 4 is a block diagram schematically illustrating the structure of an embodiment of a computer device according to the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a method for constructing an intelligent contract, including steps S10-S50, and each step of the method for constructing an intelligent contract is described in detail below.
S10, acquiring a contract template to be uplinked.
In this embodiment, the intelligent contract is a computer protocol for propagating, verifying or executing a contract in an informationized manner, and by formulating a set of contract rules, the contract rules include execution processes and expected execution results of the contract, and the formulated contract rules are defined as contract templates, which are to be uplink contract templates, that is, the contract templates need to be deployed and uplink on the blockchain in the following.
S20, performing interpreted language compiling on the contract template to obtain contract content; the interpreted language includes chinese and the contract content includes chinese-cultural contract content.
In this embodiment, after obtaining the contract template to be uplinked, compiling the contract template is required, including compiling the contract template in an explanatory language to obtain contract content, and by compiling the contract template can be presented in the explanatory language to obtain the contract content presented in the explanatory language, where in an embodiment, the explanatory language includes chinese, and when compiling the contract template using the explanatory language to chinese, the contract content includes machine language content and corresponding content having the explanatory language, that is, the contract content includes chinese-cultural contract content. The compiled contract content comprises contracts presented in machine language and explanatory language for each contract, so that the contract content can be more transparent and clearly displayed in the blockchain network, and participants in the blockchain network can browse and edit the contract content conveniently.
S30, sending the compiled contract content to a blockchain network for uplink deployment.
In this embodiment, after compiling the contract template to obtain the contract content, in order to ensure that the contract content has attribute characteristics of a blockchain, the compiled contract content is sent to the blockchain network for uplink deployment, that is, preparation before uplink is performed, when the contract content is sent to the blockchain network for uplink deployment, the contract content is sent to a contract participant, so that the contract participant can browse the contract content, and because the contract content includes the contract content of a Chinese culture, the contract participant can intuitively and clearly know specific information of the contract content, thereby improving the reading efficiency of the contract content.
S40, acquiring authorization information of contract participants for the contract content from the blockchain network.
In this embodiment, after the compiled contract content is sent to the blockchain network for uplink deployment, a participant on the blockchain network may confirm the contract content, and then determine whether the participant can agree on the contract content, that is, the participant on the blockchain network may view the contract content, and understand the triggering condition, the preset condition, the authorization condition, the contract text, and the like of the contract, and the contract content further includes a plurality of parts requiring the contract participant to perform authorization, that is, the contract participant may acquire and view the contract content including the explanatory language from the blockchain network, and then perform authorization on the parts requiring the self authorization in the contract content, that is, perform authorization on the contract content through the blockchain network.
S50, generating an intelligent contract based on the authorization information and the contract content, and completing the uplink of the intelligent contract in a blockchain network to execute the intelligent contract.
In this embodiment, after obtaining the authorization information of the contract participants for the contract content, the contract content is considered as legal and trusted contract content, then an intelligent contract is generated based on the authorization information and the contract content, that is, the authorization information is associated with the contract content, so as to generate an intelligent contract, in one embodiment, after receiving the authorization information of all the contract participants, the intelligent contract is generated based on the authorization information and the contract content, wherein the intelligent contract not only comprises the contract content, but also comprises the authorization information of the contract participants for authorizing related parts in the contract content, and meanwhile, the contract content also comprises the contract content of an explanatory language, then the intelligent contract is completed to be linked in a blockchain network, and the intelligent contract after being linked has the characteristics of non-falsification and falsification, and is executed in the blockchain network, so that the effective execution of the intelligent contract is ensured.
The embodiment provides a method for constructing intelligent contracts based on an interpretable language, which comprises the steps of firstly obtaining a contract template to be uplinked, compiling the contract template in the interpretative language, and displaying the contract template in the interpretative language through compiling so as to obtain contract contents displayed in the interpretative language; the explanatory language comprises Chinese, the contract content comprises Chinese-culture contract content, the compiled contract content is sent to a blockchain network for uplink deployment, when the contract content is sent to the blockchain network for uplink deployment, the contract content is sent to a contract participant for the contract participant to browse the contract content, the contract participant can acquire and check the contract content comprising the explanatory language from the blockchain network, then the contract participant authorizes the part requiring self authorization in the contract content, thereby acquiring the authorization information of the contract participant for the contract content from the blockchain network, after the authorization information of the contract participant for the contract content is acquired, the contract content is regarded as legal and trusted contract content, then an intelligent contract is generated based on the authorization information and the contract content, the intelligent contract is then finished uplink in the blockchain network, the contract participant is executed in the blockchain network, the contract content is presented to the contract participant by the interpretable language, the authorization information of the participant is acquired, the intelligent contract can be ensured, the intelligent contract can be effectively executed, and the intelligent operation of the contract is not really performed, and the intelligent operation is convenient.
In one embodiment, the compiling the contract template in an explanatory language to obtain contract content includes:
identifying contract terms in a preset format contained in the contract template;
acquiring explanatory sentences of each contract term;
and compiling the contract template in an explanatory language according to the explanatory statement to obtain contract content.
In this embodiment, when compiling the contract template, firstly, contract terms of a preset format contained in the contract template are identified, the contract template is written in a contract style and format, including a business name, a contract name, preset conditions and contract contents, by identifying the contract template, contract terms of the preset format contained in the contract template are determined, then the explanatory statements are matched according to the contract terms, in the process of compiling the contract template, the contract terms are compiled through a scripting language, after different explanatory statements are matched, the contract template is compiled according to the scripting language, then the explanatory statements are added at corresponding positions to obtain contract contents, in one embodiment, when the explanatory languages contain multiple types, the contract templates are compiled according to different explanatory languages to obtain contract contents containing different explanatory languages, for example, when the used explanatory languages are Chinese, the obtained contract contents contain the contract contents presented by a machine and the explanatory language is the explanatory language, and the explanatory language of each piece of the contract is quickly compiled according to the different explanatory languages, the explanatory language is identified, and the importance information of the contract terms in the contract template can be quickly compiled in the contract format, and the explanatory language can be improved.
In one embodiment, the method of completing the smart contract to be uplinked in a blockchain network to execute the smart contract includes:
acquiring triggering conditions of the intelligent contract execution from the contract content;
when the triggering condition is met, acquiring text content contained in the triggering condition;
executing the text content to obtain a contract result;
and linking the contract result with the intelligent contract in a blockchain network.
In this embodiment, after the intelligent contract completes the uplink in the blockchain network, the triggering condition of the execution of the intelligent contract is obtained from the contract content, the triggering condition supports setting of the contract triggering time and the contract execution times, and after the triggering condition is satisfied, the text content contained in the triggering condition is obtained, because the contract content of the intelligent contract has passed the authorization of the contract participant, that is, the contract participant knows the contract content participated by himself and what the executed contract content is, after the triggering condition is satisfied, the text content can be automatically executed, the authorization of the contract participant is not needed any more, the contract result of the execution of the contract is obtained after the execution of the text content, and then the contract result is linked with the intelligent contract in the blockchain network, thereby ensuring the traceability and non-falsification of the execution result of the intelligent contract, and ensuring the correct and legal execution of the intelligent contract.
In one embodiment, after the sending the compiled contract content to the blockchain network for uplink deployment, the method further includes:
acquiring authorization conditions of the contract content;
determining a contract participant according to the authorization condition;
and sending authorization reminding information to the contract participants.
In this embodiment, after the compiled contract content is sent to the blockchain network for uplink deployment, the related contract participants need to be notified to authorize the contract content, so that the contract content can be automatically executed, authorization conditions of the contract content are obtained, the contract participants are determined according to the authorization conditions, authorization notification is sent to the contract participants, specifically, the authorization conditions include parameters of the contract participants, the parameters are public key information of the contract participants, when the public key information is filled, the unique contract participants can be determined through the public key information, and therefore authorization notification is sent to the contract participants, the contract participants are notified quickly, and the construction efficiency of the intelligent contract is improved.
In one embodiment, as shown in FIG. 2, the authorization information includes a digital certificate of the contract party; after the intelligent contract is generated based on the authorization information and the contract content and the intelligent contract is completely uplink in the blockchain network to execute the intelligent contract, the method further comprises the following steps:
s51: acquiring the effective time of the digital certificate;
s52: selecting the minimum value of the effective time, and configuring the minimum value as the effective time of the intelligent contract;
s53: and suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
In this embodiment, the authorization information includes a digital certificate of the contract participant, the digital certificate is identity information of the contract participant and is issued based on the authorization mechanism after verification, the identity of the contract participant can be verified through the digital certificate, after the intelligent contract is generated based on the authorization information and the contract content, the intelligent contract is confirmed to be legal and valid, and after the intelligent contract is completed and is uplink in a blockchain network to execute the intelligent contract, the valid time of the digital certificate is acquired, because the valid times of the digital certificates of different contract participants are different, the valid time of the intelligent contract is required to be determined according to the valid times of the digital certificates of different contract participants, in one embodiment, the minimum value of the valid time is selected, the minimum value is configured as the valid time of the intelligent contract, when the valid time of the intelligent contract is reached, the intelligent contract is regarded as an invalid intelligent contract, execution of the intelligent contract is suspended, and after the valid time of the intelligent contract is confirmed, the valid time of the intelligent contract is prevented from exceeding the valid execution time of the intelligent contract, and validity of the intelligent contract is prevented from being executed.
In one embodiment, after the suspending execution of the smart contract, the method further includes:
acquiring a target contract participant; the target contract participant is a contract participant for the valid time of the digital certificate;
and sending prompt information of the digital certificate reaching the effective time to the target contract participant.
In this embodiment, after the execution of the intelligent contract is suspended, prompt information needs to be sent to a contract participant whose digital certificate reaches the valid time, specifically, a target authorized participant is obtained, and the digital certificate of the target contract participant reaches the contract participant whose valid time, because the digital certificate contains information of the owner of the certificate, the target contract participant can be quickly obtained through the digital certificate, then the prompt information that the digital certificate reaches the valid time is sent to the target contract participant, and the digital certificate is reminded to reach the target contract participant whose valid time through the prompt information, so that the digital certificate is updated or delayed, and the intelligent contract can be timely restored.
In one embodiment, before compiling the contract template in an explanatory language to obtain contract content, the method further includes:
acquiring the language type of a target client;
and determining the explanatory language type according to the language type of the target client.
In this embodiment, before the explanatory language compiling is performed on the contract template, the language type of the target client is obtained, and since the first languages used by different clients are different, in order to enable different clients to browse and view the contract content more conveniently, the explanatory language type is determined according to the language type of the target client, and by adapting to different clients, the different explanatory languages are used to compile the contract template, so that the viewing, editing and authorizing efficiency of the contract content can be improved, and the efficiency of intelligent contract construction is improved.
Referring to fig. 3, the present application further provides an apparatus for constructing an intelligent contract, including:
a template acquisition module 10, configured to acquire a contract template to be uplink;
a content compiling module 20, configured to compile the contract template in an explanatory language to obtain contract content; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content;
the contract deployment module 30 is configured to send the compiled contract content to a blockchain network for uplink deployment;
an authorization verification module 40, configured to obtain authorization information of a contract participant for the contract content from the blockchain network;
and a contract executing module 50, configured to generate a smart contract based on the authorization information and the contract content, and complete the smart contract to be uplink in a blockchain network to execute the smart contract.
As described above, it will be understood that each component of the smart contract construction apparatus set forth in the present application may implement the functions of any one of the smart contract construction methods described above.
In one embodiment, the authorization verification module 40 further includes performing:
acquiring the sequence relation of contract variables to be signed;
and sequentially sending the intelligent contracts to the authorized participants of the contract variables to be signed according to the sequence relation.
In one embodiment, the content compilation module 20 further includes performing:
identifying contract terms in a preset format contained in the contract template;
acquiring explanatory sentences of each contract term;
and compiling the contract template in an explanatory language according to the explanatory statement to obtain contract content.
In one embodiment, the contract execution module 50 further includes executing:
acquiring triggering conditions of the intelligent contract execution from the contract content;
when the triggering condition is met, acquiring text content contained in the triggering condition;
executing the text content to obtain a contract result;
and linking the contract result with the intelligent contract in a blockchain network.
In one embodiment, the authorization verification module 40 further includes performing:
acquiring authorization conditions of the contract content;
determining a contract participant according to the authorization condition;
and sending authorization reminding information to the contract participants.
In one embodiment, the contract execution module 50 further includes executing:
acquiring the effective time of the digital certificate;
selecting the minimum value of the effective time, and configuring the minimum value as the effective time of the intelligent contract;
and suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
In one embodiment, the contract execution module 50 further includes executing:
acquiring a target contract participant; the target contract participant is a contract participant for the valid time of the digital certificate;
and sending prompt information of the digital certificate reaching the effective time to the target contract participant.
In one embodiment, the content compilation module 20 further includes performing:
acquiring the language type of a target client;
and determining the explanatory language type according to the language type of the target client.
Referring to fig. 4, a computer device is further provided in the embodiment of the present application, where the computer device may be a mobile terminal, and the internal structure of the computer device may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a display device and an input device connected by a system bus. The network interface of the computer device is used for communicating with an external terminal through network connection. The input means of the computer device is for receiving input from a user. The computer is designed to provide computing and control capabilities. The memory of the computer device includes a storage medium. The storage medium stores an operating system, computer programs, and a database. The database of the computer device is used for storing data. The computer program, when executed by a processor, implements a method of constructing a smart contract.
The method for constructing the intelligent contract executed by the processor comprises the following steps: acquiring a contract template to be uplink; compiling the contract template in an explanatory language to obtain contract contents; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content; sending the compiled contract content to a blockchain network for uplink deployment; obtaining authorization information of contract participants for the contract content from the blockchain network; and generating an intelligent contract based on the authorization information and the contract content, and completing the intelligent contract to be up-linked in a blockchain network to execute the intelligent contract. The computer equipment provides a construction method of intelligent contracts based on an interpretable language, which comprises the steps of firstly obtaining a contract template to be uplinked, compiling the contract template in the interpretative language, and displaying the contract template in the interpretative language through compiling so as to obtain contract contents displayed in the interpretative language; the explanatory language comprises Chinese, the contract content comprises Chinese-culture contract content, the compiled contract content is sent to a blockchain network for uplink deployment, when the contract content is sent to the blockchain network for uplink deployment, the contract content is sent to a contract participant for the contract participant to browse the contract content, the contract participant can acquire and check the contract content comprising the explanatory language from the blockchain network, then the contract participant authorizes the part requiring self authorization in the contract content, thereby acquiring the authorization information of the contract participant for the contract content from the blockchain network, after the authorization information of the contract participant for the contract content is acquired, the contract content is regarded as legal and trusted contract content, then an intelligent contract is generated based on the authorization information and the contract content, the intelligent contract is then finished uplink in the blockchain network, the contract participant is executed in the blockchain network, the contract content is presented to the contract participant by the interpretable language, the authorization information of the participant is acquired, the intelligent contract can be ensured, the intelligent contract can be effectively executed, and the intelligent operation of the contract is not really performed, and the intelligent operation is convenient.
An embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program, which when executed by the processor, implements a method for constructing a smart contract, including the steps of: acquiring a contract template to be uplink; compiling the contract template in an explanatory language to obtain contract contents; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content; sending the compiled contract content to a blockchain network for uplink deployment; obtaining authorization information of contract participants for the contract content from the blockchain network; and generating an intelligent contract based on the authorization information and the contract content, and completing the intelligent contract to be up-linked in a blockchain network to execute the intelligent contract.
The computer readable storage medium provides a method for constructing intelligent contracts based on an interpretable language, which comprises the steps of firstly obtaining a contract template to be uplinked, compiling the contract template in the interpretative language, and displaying the contract template in the interpretative language by compiling so as to obtain contract contents displayed in the interpretative language; the explanatory language comprises Chinese, the contract content comprises Chinese-culture contract content, the compiled contract content is sent to a blockchain network for uplink deployment, when the contract content is sent to the blockchain network for uplink deployment, the contract content is sent to a contract participant for the contract participant to browse the contract content, the contract participant can acquire and check the contract content comprising the explanatory language from the blockchain network, then the contract participant authorizes the part requiring self authorization in the contract content, thereby acquiring the authorization information of the contract participant for the contract content from the blockchain network, after the authorization information of the contract participant for the contract content is acquired, the contract content is regarded as legal and trusted contract content, then an intelligent contract is generated based on the authorization information and the contract content, the intelligent contract is then finished uplink in the blockchain network, the contract participant is executed in the blockchain network, the contract content is presented to the contract participant by the interpretable language, the authorization information of the participant is acquired, the intelligent contract can be ensured, the intelligent contract can be effectively executed, and the intelligent operation of the contract is not really performed, and the intelligent operation is convenient.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above.
Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory.
The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing is merely a preferred embodiment of the present application and is not intended to limit the scope of the patent application.
All equivalent structures or equivalent flow changes made by the specification and the drawings of the application or directly or indirectly applied to other related technical fields are included in the protection scope of the application.

Claims (9)

1. A method of constructing an intelligent contract, comprising:
acquiring a contract template to be uplink;
compiling the contract template in an explanatory language to obtain contract contents; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content; the method comprises the steps of performing interpreted language compiling on the contract template to obtain contract content, wherein the method comprises the following steps: identifying contract terms in a preset format contained in the contract template; acquiring explanatory sentences of each contract term; compiling the contract template in an explanatory language according to the explanatory statement to obtain contract content;
sending the compiled contract content to a blockchain network for uplink deployment;
obtaining authorization information of contract participants for the contract content from the blockchain network;
and generating an intelligent contract based on the authorization information and the contract content, and completing the intelligent contract to be up-linked in a blockchain network to execute the intelligent contract.
2. The method of claim 1, wherein the step of completing the smart contract to be uplinked in a blockchain network to execute the smart contract comprises:
acquiring triggering conditions of the intelligent contract execution from the contract content;
when the triggering condition is met, acquiring text content contained in the triggering condition;
executing the text content to obtain a contract result;
and linking the contract result with the intelligent contract in a blockchain network.
3. The method for constructing an intelligent contract according to claim 1, wherein after the compiled contract content is sent to a blockchain network for uplink deployment, the method further comprises:
acquiring authorization conditions of the contract content;
determining a contract participant according to the authorization condition;
and sending authorization reminding information to the contract participants.
4. The method of claim 1, wherein the authorization information includes a digital certificate of the contract party; after the intelligent contract is generated based on the authorization information and the contract content and the intelligent contract is completely uplink in the blockchain network to execute the intelligent contract, the method further comprises the following steps:
acquiring the effective time of the digital certificate;
selecting the minimum value of the effective time, and configuring the minimum value as the effective time of the intelligent contract;
and suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
5. The method for building a smart contract according to claim 4, further comprising, after the suspending execution of the smart contract:
acquiring a target contract participant; the target contract participant is a contract participant for the valid time of the digital certificate;
and sending prompt information of the digital certificate reaching the effective time to the target contract participant.
6. The method for constructing an intelligent contract according to claim 1, wherein before compiling the contract template in an explanatory language to obtain contract contents, the method further comprises:
acquiring the language type of a target client;
and determining the explanatory language type according to the language type of the target client.
7. An intelligent contract construction apparatus, comprising:
the template acquisition module is used for acquiring a contract template to be uplink;
the content compiling module is used for compiling the contract template in an explanatory language to obtain contract content; the interpreted language includes Chinese, and the contract content includes Chinese-cultural contract content; the method comprises the steps of performing interpreted language compiling on the contract template to obtain contract content, wherein the method comprises the following steps: identifying contract terms in a preset format contained in the contract template; acquiring explanatory sentences of each contract term; compiling the contract template in an explanatory language according to the explanatory statement to obtain contract content;
the contract deployment module is used for sending the compiled contract content to a blockchain network for uplink deployment;
the authorization verification module is used for acquiring authorization information of contract participants for the contract content from the blockchain network;
and the contract executing module is used for generating an intelligent contract based on the authorization information and the contract content, and completing the uplink of the intelligent contract in a blockchain network so as to execute the intelligent contract.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of constructing a smart contract according to any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of constructing a smart contract according to any one of claims 1 to 6.
CN202110622351.6A 2021-06-03 2021-06-03 Intelligent contract construction method and device, computer equipment and storage medium Active CN113407188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110622351.6A CN113407188B (en) 2021-06-03 2021-06-03 Intelligent contract construction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110622351.6A CN113407188B (en) 2021-06-03 2021-06-03 Intelligent contract construction method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113407188A CN113407188A (en) 2021-09-17
CN113407188B true CN113407188B (en) 2024-02-09

Family

ID=77676307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110622351.6A Active CN113407188B (en) 2021-06-03 2021-06-03 Intelligent contract construction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113407188B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943469A (en) * 2017-11-17 2018-04-20 深圳圣马歌科技有限公司 A kind of dissemination method and device of intelligence contract
CN108632045A (en) * 2018-05-10 2018-10-09 阿里巴巴集团控股有限公司 A kind of block chain data processing method, device, processing equipment and system
CN108921696A (en) * 2018-06-26 2018-11-30 广州友谱网络科技有限公司 Intelligent contract based on block chain calls and the method for contract transaction verification
CN109272335A (en) * 2018-09-17 2019-01-25 深圳市元征科技股份有限公司 A kind of intelligence contract administration method, system, equipment and computer storage medium
CN109358859A (en) * 2018-09-27 2019-02-19 上海点融信息科技有限责任公司 The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN110210968A (en) * 2019-05-21 2019-09-06 北京航空航天大学 Intelligent Service transaction system
CN110806982A (en) * 2019-11-12 2020-02-18 北京芯际科技有限公司 Contract formal verification method with automatic verification
CN111583045A (en) * 2020-04-30 2020-08-25 腾讯科技(深圳)有限公司 Information processing method and device and computer readable storage medium
CN111865936A (en) * 2020-06-30 2020-10-30 深圳前海益链网络科技有限公司 Intelligent contract implementation method and device, computer equipment and storage medium
CN112335214A (en) * 2018-08-22 2021-02-05 环球互连及数据中心公司 Intelligent contract interpreter
CN112596754A (en) * 2021-03-01 2021-04-02 腾讯科技(深圳)有限公司 Block chain intelligent contract deployment method and device
CN112686671A (en) * 2021-01-07 2021-04-20 腾讯科技(深圳)有限公司 Intelligent contract deployment method, device, equipment and medium based on block chain
CN112819468A (en) * 2021-02-24 2021-05-18 浙江蓝景科技有限公司 Intelligent contract processing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190132130A1 (en) * 2017-10-27 2019-05-02 Sap Se Authoring and Embedding Blockchain Based Smart Contracts in B2B Contract Managements Systems

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943469A (en) * 2017-11-17 2018-04-20 深圳圣马歌科技有限公司 A kind of dissemination method and device of intelligence contract
CN108632045A (en) * 2018-05-10 2018-10-09 阿里巴巴集团控股有限公司 A kind of block chain data processing method, device, processing equipment and system
CN108921696A (en) * 2018-06-26 2018-11-30 广州友谱网络科技有限公司 Intelligent contract based on block chain calls and the method for contract transaction verification
CN112335214A (en) * 2018-08-22 2021-02-05 环球互连及数据中心公司 Intelligent contract interpreter
CN109272335A (en) * 2018-09-17 2019-01-25 深圳市元征科技股份有限公司 A kind of intelligence contract administration method, system, equipment and computer storage medium
CN109358859A (en) * 2018-09-27 2019-02-19 上海点融信息科技有限责任公司 The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN110210968A (en) * 2019-05-21 2019-09-06 北京航空航天大学 Intelligent Service transaction system
CN110806982A (en) * 2019-11-12 2020-02-18 北京芯际科技有限公司 Contract formal verification method with automatic verification
CN111583045A (en) * 2020-04-30 2020-08-25 腾讯科技(深圳)有限公司 Information processing method and device and computer readable storage medium
CN111865936A (en) * 2020-06-30 2020-10-30 深圳前海益链网络科技有限公司 Intelligent contract implementation method and device, computer equipment and storage medium
CN112686671A (en) * 2021-01-07 2021-04-20 腾讯科技(深圳)有限公司 Intelligent contract deployment method, device, equipment and medium based on block chain
CN112819468A (en) * 2021-02-24 2021-05-18 浙江蓝景科技有限公司 Intelligent contract processing method and device and electronic equipment
CN112596754A (en) * 2021-03-01 2021-04-02 腾讯科技(深圳)有限公司 Block chain intelligent contract deployment method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SmartBugs: A Framework to Analyze Solidity Smart Contracts;J. F. Ferreira等;《2020 35th IEEE/ACM International Conference on Automated Software Engineering (ASE)》;1349-1352 *
基于区块链的智能合约技术研究进展;朱岩等;《网络空间安全》;第11卷(第9期);19, 24, 54 *

Also Published As

Publication number Publication date
CN113407188A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN109743390A (en) Method for scheduling task, device, computer equipment and storage medium
CN112328482A (en) Test method and device based on script template, computer equipment and storage medium
CN111737963B (en) Configuration file based form filling method and device and computer equipment
CN110119489A (en) The automatic register method of information, device, computer equipment and storage medium
WO2014189552A1 (en) Methods and systems for validating multiple methods of input using a unified rule set
CN109766264A (en) Method of calibration, device, computer equipment and the storage medium of interface parameters
CN111736811A (en) Form data verification method, system, server and user terminal
CN111245841A (en) Account authorization method and system
CN112528201A (en) Method and device for calling third-party platform, computer equipment and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN112612695A (en) Functional test environment verification method, device, equipment and medium based on RPA
CN109819014B (en) Project deployment method and device, computer equipment and storage medium
CN113126955A (en) Random data generation method and device, intelligent terminal and storage medium
CN113407188B (en) Intelligent contract construction method and device, computer equipment and storage medium
CN113282515A (en) System testing method, device, computer equipment and storage medium
CN112527286A (en) Service code generation method and device, computer equipment and storage medium
CN114978671A (en) Method and device for accessing front-end resources, computer equipment and storage medium
CN112667273A (en) Authority management method and device of page button, computer equipment and storage medium
CN114429408B (en) Method, device, equipment and system for checking configuration file of intelligent substation
CN111143399B (en) Data processing method, device, storage medium and computer equipment
CN114780399A (en) Verification method, device, equipment and medium for page submitted data
CN113254832A (en) Webpage menu configuration method and device, computer equipment and storage medium
CN113139713A (en) Intelligent service scene generation method and system based on template
CN111310141A (en) Authentication management method, device, computer equipment and storage medium
CN109255108B (en) Method and device for managing running data, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant