CN113837753A - Intelligent contract template design method based on block chain contract model - Google Patents

Intelligent contract template design method based on block chain contract model Download PDF

Info

Publication number
CN113837753A
CN113837753A CN202110845410.6A CN202110845410A CN113837753A CN 113837753 A CN113837753 A CN 113837753A CN 202110845410 A CN202110845410 A CN 202110845410A CN 113837753 A CN113837753 A CN 113837753A
Authority
CN
China
Prior art keywords
contract
intelligent contract
intelligent
block chain
normal form
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.)
Pending
Application number
CN202110845410.6A
Other languages
Chinese (zh)
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.)
China Three Gorges University CTGU
Original Assignee
China Three Gorges University CTGU
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 China Three Gorges University CTGU filed Critical China Three Gorges University CTGU
Priority to CN202110845410.6A priority Critical patent/CN113837753A/en
Publication of CN113837753A publication Critical patent/CN113837753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Abstract

An intelligent contract template design method based on a block chain contract model comprises the following steps: step 1, generating a block chain contract normal form through a contract normal form generator; step 2, learning a block chain contract normal form through an intelligent contract designer; step 3, generating an intelligent contract template through a block chain contract model; step 4, designing an intelligent contract through an intelligent contract template; step 5, operating the intelligent contract to convert the value voucher; step 6, paying the digital currency by the digital currency generator; step 7, accounting is carried out in the blocks through the block chain; and 8, returning the intelligent contract execution result to the contract normal form generator. The invention aims to provide a design method for solving the problem that the intelligent contract design based on a block chain is lack of templates and paradigms, and the standardization and the safety of the intelligent contract design are improved through a contract paradigms and a contract template.

Description

Intelligent contract template design method based on block chain contract model
Technical Field
The invention belongs to the field of block chain contract model and intelligent contract template design, and particularly relates to an intelligent contract template design method based on a block chain contract model.
Background
With the rise and the continuous development of the internet, a block chain is generated. A blockchain is a data structure that groups blocks together in a chain, cryptographically ensuring that the data is not tampered and counterfeitable. Intelligent contracts were proposed in 1996 by Nick Szabo, and block-chain technology not only supports programmable contracts, but also provides decentralized, non-tamper-able, and stable features that are well-suited to intelligent contracts. Each block is connected with the previous block in a hash mode, so that traceability is realized; meanwhile, the intelligent contract ensures that a distributed peer-to-peer network is constructed by using a distributed collective operation method under the condition that no central control node exists. The generation of each block is the consensus established by the participants on the sequence and the current state of the events of the transaction records of the whole system, and the malicious tampering and interference encountered in normal execution can be prevented through an intelligent contract.
Smart contracts currently on the market present some security risks. First, current blockchain intelligent contracts do not have uniform standards and specifications. Each participant can participate in the design of intelligent contracts, which are also very different for use in different blockchains. Second, current intelligent contracts lack the development of specialized blockchain architectures. The intelligent contracts are born in the digital currency transaction process, but the characteristics of the blockchain are not completely considered, so that some bugs are inevitably possessed. Third, existing intelligent contracts lack a rigid compliance check. An attacker may have a backup of the data of the whole block chain by cracking the intelligent contract codes and recording and storing the data, so that the block chain is attacked through the contract bugs. Finally, some contract failures and service failures occur in the intelligent contracts. Because the intelligent contracts are not provided with an effective means for guaranteeing the safety and the integrity before being issued, privacy disclosure, transaction overflow and abnormity and safety risks are easily caused, and the perfection and issuing of the intelligent contracts are seriously influenced.
Therefore, it is important how to create a standardized set of design templates and platforms for blockchain intelligent contracts. However, it is very difficult to establish a standardized set of intelligent contract templates and paradigms.
Disclosure of Invention
The invention aims to provide a design method for solving the problem that the intelligent contract design based on a block chain is lack of templates and paradigms, and the standardization and the safety of the intelligent contract design are improved through a contract paradigms and a contract template.
An intelligent contract template design method based on a block chain contract model comprises the following steps:
step 1, a contract normal form generator generates a block chain contract normal form; the method comprises the following steps: substep 1-1, learning an intelligent contract by a contract normal form generator; substep 1-2, establishing a universal rule of a block chain intelligent contract by a contract normal form generator; substep 1-3, establishing a block chain contract normal form;
step 2, the intelligent contract designer learns a block chain contract normal form; the method comprises the following steps: a substep 2-1, inputting a block chain contract normal form by the intelligent contract designer; in the substep 2-2, the intelligent contract designer establishes intelligent contract grammar and semantic rules; substep 2-3, the intelligent contract designer establishes an intelligent contract logic rule;
step 3, generating an intelligent contract template by the block chain contract normal form; the method comprises the following steps: substep 3-1, designing an intelligent contract algorithm process by a block chain contract normal form; substep 3-2, designing an intelligent contract data structure by using a block chain contract normal form; 3-3, designing an intelligent contract template by an intelligent contract designer;
step 4, designing an intelligent contract by an intelligent contract template; the method comprises the following steps: substep 4-1, calling an intelligent contract template by a user; substep 4-2, adjusting an algorithm flow and a data structure by the intelligent contract template; a substep 4-3, designing an intelligent contract by an intelligent contract designer;
step 5, operating the intelligent contract to convert the value voucher; the method comprises the following steps: substep 5-1, inputting the value object certificate into an intelligent contract; substep 5-2, the intelligent contract carries out certification processing on the value voucher; substep 5-3, the intelligent contract describes the asset credentials as a data structure;
step 6, the digital currency generator pays the digital currency; the method comprises the following steps: substep 6-1, the smart contract sends a request for a digital currency transaction; substep 6-2, the digital currency generator runs a specified algorithm; substep 6-3, returning the digital currency to the intelligent contract;
step 7, accounting the block chain in the block; the method comprises the following steps: substep 7-1, the smart contract performs the transaction; substep 7-2, the transaction ledger is identified in the blockchain; substep 7-3, adding the block chain into the successfully identified block;
8, returning an intelligent contract execution result to the contract normal form generator; the method comprises the following steps: substep 8-1, collecting an intelligent contract data result by a contract normal form generator; substep 8-2, collecting an intelligent contract algorithm flow by a contract normal form generator; and a substep 8-3, collecting intelligent contract faults and alarm messages by the contract normal form generator.
Step 1, generating a block chain contract normal form by a contract normal form generator, wherein the contract normal form generator comprises the following sub-steps:
substep 1-1, learning an intelligent contract by a contract normal form generator;
preferably, the contract normal form generator mainly comprises three parts of input, classification prediction and output; the input part reads contract codes and data from the intelligent contracts, the classification prediction part runs a neural network algorithm or a deep learning algorithm, the codes and the data of the intelligent contracts are classified and regressed for prediction, and the output part comprises different intelligent contract classification learning results and prediction learning results;
substep 1-2, establishing a universal rule of a block chain intelligent contract by a contract normal form generator;
preferably, the contract normal form generator further learns the classification learning result and the prediction learning result of different intelligent contracts, runs a neural network algorithm or a deep learning algorithm, and refines the common characteristics of the different intelligent contracts and the common characteristics of the intelligent contracts in different classifications; further, the contract normal form generator establishes a characteristic matrix for the basic characteristics, the basic mode, the basic structure and the basic functions of the intelligent contract, and describes the general rule of the intelligent contract by using a matrix vector;
substep 1-3, establishing a block chain contract normal form;
preferably, the contract normal form generator further performs normal form conversion according to a feature matrix established by the basic features, the basic mode, the basic structure and the basic functions of the intelligent contract and a universal rule described by a matrix vector, and establishes a grammar standard of the intelligent contract to generate the block chain contract normal form.
Step 2, the intelligent contract designer learns a block chain contract normal form;
a substep 2-1, inputting a block chain contract normal form by the intelligent contract designer;
preferably, the intelligent contract designer needs to lead into a block chain contract normal form generated by the contract normal form generator during running, and the block chain contract normal form comprises a characteristic matrix established by basic characteristics, basic modes, basic structures and basic functions of the intelligent contract and a universal rule described by a matrix vector;
in the substep 2-2, the intelligent contract designer establishes intelligent contract grammar and semantic rules;
preferably, the intelligent contract designer sets the blockchain contract normal form as a grammatical standard which must be observed in the intelligent contract design process, and configures the intelligent contract design and operation environment according to the grammatical standard; further, the intelligent contract designer sets the block chain contract normal form as a default intelligent contract grammar and semantic rule, and automatically performs grammar and semantic check on the intelligent contract in the design process; furthermore, in the intelligent contract design process, if the intelligent contract codes input by the user do not accord with the configured grammar and semantic rules, the intelligent contract designer automatically classifies and prompts corresponding error warning information; furthermore, the intelligent contract designer can be configured to automatically correct the syntax and semantic rules which are not in accordance with the requirements in the intelligent contract design process;
substep 2-3, the intelligent contract designer establishes an intelligent contract logic rule;
preferably, the intelligent contract designer generates intelligent contract logic rules according to the blockchain contract paradigm, and the intelligent contract logic rules comprise how each step of the intelligent contract is defined, which functions, data and variables are needed in different steps, how different functions, data and variables are interacted, the executed functions, data and variables need extra installed supporting software and environment configuration parameters, a certified method, a signature and encryption means, nesting and calling of the intelligent contract, logic error classification, checking and alarming in the intelligent contract, and automatic correction of logic errors in the intelligent contract.
Step 3, generating an intelligent contract template by the block chain contract normal form;
substep 3-1, designing an intelligent contract algorithm process by a block chain contract normal form;
the intelligent contract designer designs an algorithm flow of an intelligent contract according to a block chain contract normal form, and the algorithm flow comprises data input required by an intelligent contract algorithm, access control and read-write control authority of the intelligent contract on data, a step of data processing on the intelligent contract, a calling relation among intelligent contract functions, a result output mode and a file storage mode of the intelligent contract, and a mode and a process of interaction between the intelligent contract and a digital currency generator and a block chain;
substep 3-2, designing an intelligent contract data structure by using a block chain contract normal form;
the intelligent contract designer designs a data structure of an intelligent contract according to a block chain contract normal form, wherein the data structure comprises a data type used by the intelligent contract, the length of data, access rights of data in different functions, the survival time of the data and association and nesting relations among different data structures; furthermore, the intelligent contract designer can establish a contract data mapping table for classifying and preprocessing transaction data generated by both transaction parties, and distributing mapping addresses to the classified data, so that the key value pairs of the data names and the mapping addresses are conveniently stored in a distributed manner, and are stored in a block chain;
3-3, designing an intelligent contract template by an intelligent contract designer;
the intelligent contract designer integrates an algorithm flow and a data structure according to the block chain contract normal form and generates corresponding intelligent contract templates according to different categories; furthermore, the intelligent contract template provides an interface for receiving detailed transaction information of both parties of the transaction, and sets intelligent contract algorithm flow parameters and data structure parameters for adjustment, so that the intelligent contract algorithm flow parameters and the data structure parameters can be adjusted according to the actual transaction information obtained by the interface, and intelligent contracts meeting the requirements of both parties of the transaction are generated; preferably, after the intelligent contract designer finishes the design of the intelligent contract template, the intelligent contract template can be subjected to rationality analysis and test through the block chain contract normal form and the generated random data, and only the intelligent contract template which passes the test successfully can be used for subsequent intelligent contract design; furthermore, an intelligent contract template library can be established according to different classifications through the tested multiple intelligent contract templates, so that a user can select and use the intelligent contract templates in different scenes;
step 4, designing an intelligent contract by an intelligent contract template;
substep 4-1, calling an intelligent contract template by a user;
preferably, when designing a specific intelligent contract, a user can select a required intelligent contract template in an intelligent contract template library, and design an intelligent contract according to the intelligent contract template; furthermore, the selected intelligent contract template needs to meet the characteristics and classification of the transaction, the whole process of the transaction can be smoothly completed, and the transaction result can be successfully booked and stored in the block chain;
substep 4-2, adjusting an algorithm flow and a data structure by the intelligent contract template;
preferably, the user inputs transaction information from an intelligent contract designer interface according to the need of the transaction, and the algorithm flow parameters and the data structure parameters in the intelligent contract template are adjusted through the transaction information; furthermore, the intelligent contract designer automatically detects the parameter content input by the user, compares the parameter content with the block chain contract model and the intelligent contract template, and comprises grammar, semantics and logic check to ensure the correctness, the integrity and the conformity rule of the information input by the user;
a substep 4-3, designing an intelligent contract by an intelligent contract designer;
preferably, the user uses the intelligent contract designer to carry out intelligent contracts and carries out secondary development on algorithm flow parameters and data structure parameters input by the interface; furthermore, the secondary development of the user is strictly limited, the intelligent contract designer monitors the intelligent contract design process of the user in real time, detects whether the intelligent contract designed by the user can meet the requirements of the block chain contract specification and the intelligent contract template and conforms to the grammatical, semantic and logic rules of the intelligent contract, judges whether the intelligent contract can ensure that two trading parties carry out normal trading legally and reasonably through trial operation, and obtains a correct trading result; further, the intelligent contract designer automatically classifies, checks and alarms grammatical, semantic and logic errors in the intelligent contract designed by the user, and automatically corrects the errors found in the intelligent contract; further, only smart contracts that are successfully checked and commissioned by the smart contract designer can be used by the user for actual transactions.
Step 5, operating the intelligent contract to convert the value voucher;
substep 5-1, inputting the value object certificate into an intelligent contract; the intelligent contract comprises software and hardware interfaces for receiving the valuables, can read various valuable assets in the real world and generates a unique code for each valuables which are successfully input into the intelligent contract; further, the encoding of the asset voucher depends on the type of asset; further, the intelligent contract records the unique code, date, place of production, value, and important attributes of each asset voucher;
substep 5-2, the intelligent contract carries out certification processing on the value voucher; the intelligent contract converts the value of the valuables into the corresponding digital currency quantity through the specified algorithm operation according to the certification method specified by the block chain contract normal form; furthermore, the intelligent contract can provide programming characteristics for the value document, can automatically pass the value document and can be intervened and adjusted by a user according to needs;
substep 5-3, the intelligent contract describes the asset credentials as a data structure; according to the result of the certification, the intelligent contract records the value object certificate in the block chain database again, and the record information comprises the unique code, date, production place and certification value of each value object.
Step 6, the digital currency generator pays the digital currency;
substep 6-1, the smart contract sends a request for a digital currency transaction; the user runs the designed intelligent contract and submits a transaction request to the block chain through the intelligent contract; further, the blockchain confirms the identity of the transaction party, checks whether the user transaction request is legal or not, and sends the user transaction request checked to be legal to the digital currency generator; for the user transaction request which is checked to be illegal, the block chain stops the operation of the intelligent contract;
substep 6-2, the digital currency generator runs a specified algorithm; after receiving a legal user transaction request sent by the block chain, the digital currency generator operates a specified algorithm according to the agreement of the intelligent contract to complete the payment of the transaction request;
substep 6-3, returning the digital currency to the intelligent contract; the digital currency generator generates and calculates a certain amount of digital currency according to a specified algorithm according to a transaction request payment result, and returns an operation result to the intelligent contract;
step 7, accounting the block chain in the block;
substep 7-1, the smart contract performs the transaction; after receiving the message that the digital currency generator successfully generates the digital currency, the intelligent contract checks whether the transaction request message is consistent with the generated digital currency quantity; if the check result is consistent, executing the transaction, paying the corresponding digital currency to the user, and returning the payment ledger to the intelligent contract; if the check result is not consistent, the transaction is interrupted;
substep 7-2, the transaction ledger is identified in the blockchain; after receiving the payment account book, the intelligent contract broadcasts the payment account book in the whole block chain network, and all the block chain link points participating in the consensus check and the consensus on the account book;
substep 7-3, adding the block chain into the successfully identified block; adding the blocks which are commonly identified by all the block chain link points into a block chain; blocks that fail to pass consensus will be deleted;
8, returning an intelligent contract execution result to the contract normal form generator;
substep 8-1, collecting an intelligent contract data result by a contract normal form generator; the contract normal form generator can publicly access transaction data on the blockchain, and collect data results generated by the intelligent contracts for the use of learning and designing the blockchain contract normal form next time;
substep 8-2, collecting an intelligent contract algorithm flow by a contract normal form generator; the contract normal form generator can input an intelligent contract algorithm flow, detect whether the intelligent contract algorithm flow is consistent with the block chain contract normal form or not, and judge whether the intelligent contract algorithm flow and the block chain contract normal form have places needing to be adjusted and learned or not;
a substep 8-3, collecting intelligent contract fault and alarm information by a contract normal form generator; the contract normal form generator detects faults and alarm messages generated in the design and operation processes of the intelligent contract, provides reference suggestions for the modification of the intelligent contract, and also provides reference for the design and operation of the next block chain contract normal form, the intelligent contract template and the intelligent contract.
An intelligent contract template design system based on a blockchain contract rule comprises an intelligent contract designer, wherein the intelligent contract designer is respectively connected with a contract rule generator, a value document, a digital currency generator and a blockchain; the contract normal form generator can generate a block chain contract normal form; the intelligent contract designer can design an intelligent contract template and an intelligent contract; the digital currency generator is connected with the intelligent contract, and the block chain is connected with the intelligent contract.
The contract normal form generator can learn various different intelligent contracts, extract the basic characteristics, basic modes, basic structures and basic functions of the intelligent contracts from the intelligent contracts and establish the universal rules of the block chain intelligent contracts; the contract normal form generator can establish a block chain contract normal form which accords with the general transaction rule, carries out rationality analysis on the block chain contract normal form, and applies the contract normal form to carry out standardized guidance and safety inspection on the intelligent contract template and the intelligent contract.
The block chain contract normal form is generated by a contract normal form generator through learning an intelligent contract to generate a general contract rule, and the general contract rule describes basic characteristics, a basic mode, a basic structure, basic functions and a general rule of the intelligent contract; further, the blockchain contract normal form can be used as a design standard and specification of an intelligent contract template and an intelligent contract and becomes a basic criterion which must be observed in the contract design process; further, the intelligent contract template and the intelligent contract generated by the blockchain contract normal form do not deviate or violate the general rule requirements of the blockchain contract normal form;
the intelligent contract designer can learn the block chain contract normal form, and design a series of intelligent contract templates and a series of specific intelligent contracts according to the basic characteristics, basic modes, basic structures, basic functions and general rules described by the block chain contract normal form; further, the intelligent contract designer can design a plurality of intelligent contract templates and intelligent contracts according to a block chain contract normal form;
the intelligent contract template is generated based on a general blockchain contract normal form generated in the contract normal form generator and transaction types and characteristics of different blockchains; furthermore, one block chain contract normal form can correspond to a plurality of intelligent contract templates under different conditions, including different regions, different industries, different enterprises, cross-country transactions, special transactions and the like;
intelligent contracts, specific contracts for transactions, in particular, contract methods and rules described using computer code; furthermore, one intelligent contract template can correspond to a plurality of intelligent contracts under different conditions, including different transaction time, different transaction places, different transaction parties and different products or services;
value document, electronic document for various valuable assets in transaction, including document of tangible real estate, vehicle, equipment, facilities, precious metals, collectibles, legal currency, commodities, etc.; but also intangible services, important data, document data, digital currency, etc.; furthermore, the value object certificate can be certified by an intelligent contract, and is converted into a general equivalent by the intelligent contract, and the value object can be seamlessly transacted on a block chain platform;
the digital currency generator comprises a device for generating digital currency and an algorithm, and can obtain corresponding digital currency after running on the device according to the specified digital currency generation algorithm; further, the digital currency generator can be accessed by the intelligent contract to produce corresponding digital currency according to the transaction terms and rules of the intelligent contract;
digital currency, which refers to a publicly acceptable virtual payment means, can be transferred, stored or transacted in electronic form, including virtual currency, electronic currency, cryptocurrency; further, a digital currency generator that may produce one or more digital currencies in accordance with a specified algorithm and smart contract transaction terms;
the block chain is a distributed data structure and is a shared account book and a database for recording the success of the intelligent contract transaction; furthermore, the block chain is formed by sequentially connecting a plurality of blocks according to a specified rule, and all the blocks form a decentralized, non-falsifiable, whole-process trace-keeping, traceable, collective maintenance and public transparent data structure;
the block is an independent data structure unit in a block chain and records a shared account book of the intelligent contract with successful one-time transaction; furthermore, only the blocks which are commonly identified by all nodes on the block chain can be added to the block chain; furthermore, the blocks added to the block chain cannot be tampered, and can be traced in the whole process, so that the block chain can be accessed in a transparent and open mode in the whole network.
The invention can bring the following technical effects:
firstly, the invention can establish a set of uniform template and standard for the intelligent contract of the block chain. The intelligent contract generation method combines the contract normal form generator with the intelligent contract designer, so that the generation of the intelligent contract is more standardized, transparent and simplified, and the designed block chain intelligent contract has the advantage of cost efficiency. The block chain contract normal form provides general standardized description for block chain intelligent contracts, the intelligent contract template provides compatible templates for intelligent contracts of different classifications, and users can generate standard intelligent contracts according to specific transaction conditions. The intelligent contract template is generated through the block chain contract model, and then the intelligent contract is generated, so that the complex intelligent contract template planning simplification and the contract design standardization are realized, and the operability of the intelligent contract is improved.
Secondly, the intelligent contracts developed by the invention are purposefully improved aiming at the characteristics of the block chain architecture. The intelligent contract design method is combined with the block chain through the intelligent contract design device, and the combination degree of the intelligent contract design device and the block chain is improved through repeated design and test. The block chain technology provides a decentralized, distributed, distrust, data non-tampering and traceable platform for the intelligent contract, and the intelligent contract provides an automatic transaction process for the block chain, so that the block chain can be automatically executed according to a preset contract protocol without trusting a third party.
Thirdly, the intelligent contract designed by the invention has a set of strict compliance checking program. The contract normal form generator can carry out compliance check on the generated block chain compliance normal form, the intelligent contract designer can carry out compliance check on the designed intelligent contract template, and the intelligent contract template can also carry out compliance check on the designed intelligent contract, so that bugs or errors which possibly appear in the design process are reduced. In addition, the intelligent contract designer also can check and test the trial run result and the execution result of the digital currency generator and the block chain, and further reduces errors possibly generated in the running process.
Finally, the intelligent contract of the invention is more secure. The invention can realize the normalization and the integrity detection of contract data by means of the block chain contract normal form. All the intelligent contract normal forms and the contract template modules comprise links for detecting contract flows and data normativity. After completing all contract flows and data standardized detection, the contract normal form generator and the intelligent contract designer can also perform overall test run detection on all transaction processes by test run, detect whether flaws and defects influencing safe operation of the contracts exist, have the function of automatically correcting errors and ensure that the operation of the intelligent contracts meets the requirements of normativity and safety.
Drawings
The invention is further illustrated with reference to the accompanying drawings and examples;
FIG. 1 is a block diagram of the present invention;
fig. 2 is a flow chart of the operation of the present invention.
Detailed Description
FIG. 1 is a block diagram of the present invention; it includes a contract paradigm generator 100, an intelligent contract designer 200, asset credentials 300, a digital currency generator 400, and a blockchain 500.
The contract normal form generator 100 is used for generating a contract normal form which is in accordance with contract data, the contract normal form is automatically generated by a program according to a block chain rule and in combination with a contract object data model and a contract data mapping table model, when the contract normal form is generated, preprocessing is firstly carried out on the contract data through analysis, and the preprocessing comprises removing redundancy of the contract data and checking whether the data are in accordance with the basic requirements for generating the intelligent contract normal form; after the data are preprocessed, all contract data, contract object data and a contract data mapping table are used as input parameters of a contract normal form establishing model, and the contract normal form is generated through the established contract normal form establishing model. Further, the intelligent contract normal form can be comprehensively and accurately analyzed by running a deep learning algorithm without manual operation, and the generated contract normal form conforms to the basic characteristics of the intelligent contract, namely: autonomy, self-sufficiency, and decentralization, and the generated contractual paradigm has the public transparency, traceability, and forgery characteristics of blockchains. And monitoring the generated contract normal form, if the characteristics are met, inputting the contract normal form into a next module as an input parameter of the next module, and if the characteristics are not met, correcting the generated data of the contract normal form and regenerating the contract normal form.
The contract paradigm generator 100, preferably using a server, has a network interface to connect to a plurality of computers; preferably, two or more servers with model numbers E7-4800V3/E7-8800V3 are used; the processor of the server is 4 processors in the series of E7-4800v3/E7-8800v3, and the chip set comprises: C602J, QPI: 9.6 GT/s; the memory type is as follows: 32 DIMM slots supporting DDR 42133/1866/1600 MHz ECC RDIMM memory; memory capacity: 64GB, 16GB, 8GB, 4GB, maximum 1 TB; and (3) storing: 6 3.5 inch/2.5 inch SATA/SAS hot plug hard disks; RAID: RAID 0, 1, 10(R5 mating); network: 2 i350GE, high-level functions of virtualization acceleration, network acceleration, load balancing, redundancy and the like; PCIe expansion: 2 PCIe 3.0 x8, 2 PCIe 3.0 x 16; displaying: aspeed AST 2400; the system has independent interfaces, supports IPMI, can provide management characteristics such as GUI user management interface, virtual KVM, virtual media SOL, remote control, hardware monitoring and the like, and comprises 3 USB 2.0 interfaces and 10 CN 109658772B 101 COM interfaces; the power supply is 1400W redundant power supply.
The intelligent contract designer 200 can generate an available intelligent contract template; furthermore, the intelligent contract template generation system is provided with an intelligent contract template output interface and a contract normal form input interface, can learn the intelligent contract normal form of the block chain, generates an intelligent contract template meeting the requirements of the intelligent contract normal form, and generates a series of available intelligent contract templates by using intelligent contract normal form parameters and intelligent contract application types. Furthermore, a deep learning algorithm can be operated to comprehensively and accurately analyze the intelligent contract template; furthermore, quantitative evaluation can be carried out on the intelligent contract template, and a conformity threshold value is set; for example, if the generated intelligent contract template meets the contract paradigm and the user requirement by 95% or more of the threshold value specification, the generated intelligent contract template is considered to have high accuracy and is transmitted to the template output interface as an output result, otherwise, the generated intelligent contract template returns to the contract paradigm generator 100 to regenerate a new contract template.
The intelligent contract designer 200, preferably using a personal computer, and providing a portal for distributed design of trading contracts; preferably, the processor uses Intel Saiyang G1840, the processor is used in a desktop computer, the CPU main frequency is 2.8GHz, the third-level cache is 2MB, the processor has double-core and double-thread, the bus specification is DMI25GT/s, the thermal design power consumption TDP is 53W, the maximum supported memory is 32GB, the maximum memory channel number is 2, the maximum memory bandwidth is 21.3GB/s, the slot type is LGA1150, the virtualization technology is Intel VT-x, the enhanced SpeedStep technology is supported, the idle state, the temperature monitoring technology, the security key and the execution disable bit; the storage device is a mixed hard disk (SSD + HDD) with the memory capacity of 16GB, the memory type DDR3, the maximum memory capacity of 16GB and the hard disk capacity of 2TB +128GB, and the optical drive type is a built-in optical drive; the display card type is an independent display card, a display card chip GeForce GTX 1060, and a display memory type GDDR 5; a display screen with a screen size of 27 inches, a screen resolution of 2560x1440, a screen ratio of 16:9, a backlight type QHD, a screen description IPS screen, a narrow bezel, ultra-thin, touch-enabled; the network communication comprises a Bluetooth function, a wireless network card supports an 802.11 ac wireless protocol, a wired network card 1000Mbps Ethernet card I/O interface, a data interface 1 xUSB3.0Type-C, a 2 xUSB 2.0, a 2 xUSB 3.0, an audio interface earphone/microphone dual-purpose interface, a video interface HDMI, a network interface RJ45 (network interface), and other interfaces comprising a power supply interface.
The value object certificate 300 refers to the actual assets of both trading parties for the blockchain trading, and can be input into the intelligent contract designer 200; preferably, the identity authentication information of both transaction parties needs to be recorded and stored when the value document 300 is input, and the value document comprises a contract first party data model and a contract second party data model, wherein the first party data model comprises a digital identity of a contract provider which passes digital identity authentication and basic description of the identity of the contract provider, and also comprises address information of the contract first party in the blockchain network; the second party data model comprises the digital identity of the contract signing party which passes the digital identity authentication and the basic description of the contract signing party identity, and also comprises the address information of the contract second party in the block chain network. All data entered by asset credential 300 needs to be checked by smart contract designer 200 before it can be used and used directly for online transactions of blockchain smart contracts, and the actual asset credential 300 is delivered and accepted after the online transaction is successful.
The asset credential 300, preferably using a personal computer, and providing a portal for the distributed design of trading contracts; preferably, the processor uses Intel Saiyang G1840, the processor is used in a desktop computer, the CPU main frequency is 2.8GHz, the third-level cache is 2MB, the processor has double-core and double-thread, the bus specification is DMI25GT/s, the thermal design power consumption TDP is 53W, the maximum supported memory is 32GB, the maximum memory channel number is 2, the maximum memory bandwidth is 21.3GB/s, the slot type is LGA1150, the virtualization technology is Intel VT-x, the enhanced SpeedStep technology is supported, the idle state, the temperature monitoring technology, the security key and the execution disable bit; the storage device is a mixed hard disk (SSD + HDD) with the memory capacity of 16GB, the memory type DDR3, the maximum memory capacity of 16GB and the hard disk capacity of 2TB +128GB, and the optical drive type is a built-in optical drive; the display card type is an independent display card, a display card chip GeForce GTX 1060, and a display memory type GDDR 5; a display screen with a screen size of 27 inches, a screen resolution of 2560x1440, a screen ratio of 16:9, a backlight type QHD, a screen description IPS screen, a narrow bezel, ultra-thin, touch-enabled; the network communication comprises a Bluetooth function, a wireless network card supports an 802.11 ac wireless protocol, a wired network card 1000Mbps Ethernet card I/O interface, a data interface 1 xUSB3.0Type-C, a 2 xUSB 2.0, a 2 xUSB 3.0, an audio interface earphone/microphone dual-purpose interface, a video interface HDMI, a network interface RJ45 (network interface), and other interfaces comprising a power supply interface.
The digital currency generator 400 is capable of generating digital currency 401 that meets the requirements. The digital currency generator 400 analyzes and determines the value and quantity of the value voucher 300 for the contract transaction, determines whether the contract transaction is reasonable, and if not, stops generating the digital currency 401. If the contract transaction is legitimate, a corresponding amount of digital currency 401 is generated based on the value and amount of the value token 300 of the contract transaction.
The digital currency generator 400, preferably using a personal computer, and providing a portal for the distributed design of trading contracts; preferably, the processor uses Intel Saiyang G1840, the processor is used in a desktop computer, the CPU main frequency is 2.8GHz, the third-level cache is 2MB, the processor has double-core and double-thread, the bus specification is DMI25GT/s, the thermal design power consumption TDP is 53W, the maximum supported memory is 32GB, the maximum memory channel number is 2, the maximum memory bandwidth is 21.3GB/s, the slot type is LGA1150, the virtualization technology is Intel VT-x, the enhanced SpeedStep technology is supported, the idle state, the temperature monitoring technology, the security key and the execution disable bit; the storage device is a mixed hard disk (SSD + HDD) with the memory capacity of 16GB, the memory type DDR3, the maximum memory capacity of 16GB and the hard disk capacity of 2TB +128GB, and the optical drive type is a built-in optical drive; the display card type is an independent display card, a display card chip GeForce GTX 1060, and a display memory type GDDR 5; a display screen with a screen size of 27 inches, a screen resolution of 2560x1440, a screen ratio of 16:9, a backlight type QHD, a screen description IPS screen, a narrow bezel, ultra-thin, touch-enabled; the network communication comprises a Bluetooth function, a wireless network card supports an 802.11 ac wireless protocol, a wired network card 1000Mbps Ethernet card I/O interface, a data interface 1 xUSB3.0Type-C, a 2 xUSB 2.0, a 2 xUSB 3.0, an audio interface earphone/microphone dual-purpose interface, a video interface HDMI, a network interface RJ45 (network interface), and other interfaces comprising a power supply interface.
The block 501 is used for recording and storing basic information and a transaction ledger of both sides of an intelligent contract transaction, the transaction side can fill in the required basic information by setting an intelligent contract, and the filled information needs to include a transaction type, a transaction order number, a value document 300 name, a used intelligent contract template number, parameters of an intelligent contract and a timestamp; the data for ensuring billing records the transaction process, especially the value and amount of the value voucher 300 and the value and amount of the digital currency 401, truly and completely. The data of all the blocks 501 in the block chain 500 can be broadcasted and accounted only after passing the consensus detection of all the blocks; accounting for blockchain 500 and adding blocks 501 may also be done using intelligence contracts 202, without manual intervention at all.
In the block 501, the input device is an output interface of the intelligent contract, and is mainly responsible for the input process of the contract transaction result and the ledger data, and the input device can respectively input the data into different blocks according to the content and the type of the information input by the user. In the block 501, the output device is a query interface of the user, preferably, a keyboard, a mouse, or a touch screen is used, and is mainly responsible for the transaction result queried by the user and outputting the transaction result, and the output device can publicly access the non-private data on the block chain and output the non-private data to the user.
The block 501, using a personal computer, has performance parameters similar to those of the digital currency generator 400; further, with the power module, the enclosed independent component installed in the computer case of the block 501, preferably, the EPS12V 2.92 power supply is used, the power rating of the power supply is 1250W, the redundant use of more than 2 power supplies is supported, the efficiency is 90%, and relatively speaking, the enclosed independent component has the advantages of low power consumption and high efficiency. The input voltage is 100-240 v; the active PFC (power factor correction) has the advantages of high power factor of 0.99, low loss, high reliability, input voltage of 90V to 270V (wide input), and the like, and because the output DC voltage ripple is very small, a power supply adopting the active PFC does not need to adopt a filter capacitor with large capacity. The AC power supply is used for converting AC power into stable DC power of 5V, -5V, +12V, -12V, + 3.3V and the like through a switching power supply transformer so as to be used by system components such as a system board in a server box, a floppy disk, a hard disk drive, various adapter expansion cards and the like.
The block 501 is implemented in a computer of the block 501 by using a memory bank, preferably a KHX1866C9D3/4G memory bank, the memory bank capacity is 4GB, the memory frequency is 1866MHz, and the transmission type is DDR 3. The operation of the memory also determines the stable operation of the computer.
The block 501 uses a hard disk, preferably, a stage electrode light a850, a hard disk capacity 256GB, a buffer 256MB, a read speed 550MB/s, a write speed 240MB/s, an interface type of SATA 3.0 (6 Gbps), and a flash memory architecture of a TLC triple-layer unit. The SATA interface has strong anti-interference performance and supports hot plug and the like.
The block 501 uses a video card, preferably, GeForce GTX 1060, the number of which is 6, the video memory capacity is 6GB, the video memory frequency is 8000MHz, the video memory type is GDDR5, the video memory bit width is 192bit, and the maximum resolution is 7680 × 4320; the display card interface types are as follows: PCI Express 3.016X, I/O interface is 1 × HDMI interface, 1 × DVI interface, 3 × DisplayPort interface, maximum power consumption 120W.
As shown in fig. 2, a method for designing an intelligent contract template based on a blockchain contract model includes the following steps:
step 1, a contract normal form generator 100 generates a block chain contract normal form 101; the method comprises the following steps:
substep 1-1, the contract paradigm generator 100 learns an intelligent contract 202; the computer or server of the contract paradigm generator 100 inputs and preprocesses the intelligent contracts 202.
Substep 1-2, the contract paradigm generator 100 establishes a universal rule of the blockchain intelligent contract; the computer or server of the contract paradigm generator 100 runs a neural network algorithm or a deep learning algorithm to establish an intelligent contract feature matrix.
Substeps 1-3, establishing a block chain contract paradigm 101; the computer or the server of the contract normal form generator 100 establishes a grammar standard of an intelligent contract and generates a block chain contract normal form 101; further, in the contract normal form generator 100, the related blockchain contract normal form 101 pre-stored in the server may be called, and the contract normal form blockchain generator performs similarity matching using a learning algorithm, and generates the required blockchain contract normal form after learning and refinement.
Step 2, the intelligent contract designer 200 learns a block chain contract normal form 101; the method comprises the following steps:
sub-step 2-1, intelligent contract designer 200 inputs block chain contract paradigm 101; the computer of the intelligent contract designer 200 imports the blockchain contract paradigm 101 generated by the contract paradigm generator 100;
in substep 2-2, the intelligent contract designer 200 establishes intelligent contract grammars and semantic rules; the computer of the intelligent contract designer 200 generates intelligent contract grammar and semantic rules according to the block chain contract paradigm 101, and the intelligent contract grammar and the semantic rules are imported into the intelligent contract designer 200 and used for automatic check in the intelligent contract design process;
in substep 2-3, intelligent contract designer 200 establishes intelligent contract logic rules; the computer of the intelligent contract designer 200 establishes an intelligent contract logic rule according to the block chain contract normal form 101 and is used for automatically checking the logic rule in the intelligent contract design process;
step 3, generating an intelligent contract template 201 by the block chain contract normal form 101; the method comprises the following steps:
substep 3-1, designing an intelligent contract algorithm process by using a block chain contract normal form 101; the computer of the intelligent contract designer 200 establishes an intelligent contract algorithm flow according to the block chain contract normal form 101;
substep 3-2, the block chain contract paradigm 101 designs an intelligent contract data structure; the computer of the intelligent contract designer 200 establishes an intelligent contract data structure according to the blockchain contract paradigm 101;
in substep 3-3, the intelligent contract designer 200 designs an intelligent contract template 201; the computer of the intelligent contract designer 200 generates a series of intelligent contract templates 201 according to the blockchain contract normal form 101 and different transaction types, and tests and debugs the intelligent contract templates; further, the intelligent contract designer 200 takes the generated blockchain contract paradigm 101 as a standard, and the intelligent contract designer 200 generates a final intelligent contract template 201 by analyzing rules in the blockchain contract paradigm; further, the computer of the intelligent contract designer 200 detects the generated contract template, and outputs the template as a final output result if the intelligent contract template is required, otherwise, returns to the previous step.
Step 4, designing an intelligent contract 202 by the intelligent contract template 201; the method comprises the following steps:
in substep 4-1, the user invokes the intelligent contract template 201; the computer of the intelligent contract designer 200 responds to the user request and provides a series of intelligent contract templates 201 with successful tests for the user to select; a user firstly needs to input data according to the data types needed by contract data, and respectively transmits contract first-party input data and contract second-party input data into an intelligent contract designer 200 for data preprocessing according to the identity address information of the user, and transmits the preprocessed data into an intelligent contract template 201 to obtain an intelligent contract 202 which can be accurately described;
in substep 4-2, the intelligent contract template 201 adjusts the algorithm flow and the data structure; a user selects a required intelligent contract template 201 on a computer of the intelligent contract designer 200, and adjusts algorithm flow parameters and data structure parameters according to transaction requirements; further, the computer of the intelligent contract designer 200 can detect the adjusted algorithm flow and data structure of the intelligent contract 202 through the block chain contract normal form 101 and the intelligent contract template 201 to ensure that the generated intelligent contract meets the normal form requirement;
sub-step 4-3, intelligent contract designer 200 designs intelligent contract 202; designing, running, debugging, testing and modifying an intelligent contract 202 on a computer of the intelligent contract designer 200 by a user; further, the computer of the intelligent contract designer 200 adjusts parameters through a series of intelligent contract templates 201 to generate an intelligent contract 202, which has development complexity of contract codes to a great extent, and the intelligent contract 202 suitable for the current transaction can be quickly obtained after testing.
Step 5, operating intelligent contract 202 to convert value voucher 300; the method comprises the following steps:
substep 5-1, entering asset credential 300 into intelligent contract 202; the computer of intelligent contract designer 200 running intelligent contract 202 inputs asset credentials 300; the computer of the intelligent contract designer 200 records and stores the identity authentication information of both contract parties, records and stores basic transaction information through an intelligent contract, and maps the basic information of the value object certificate 300 to the computer world through the intelligent contract 202; further, the intelligent contract designer 200 allocates corresponding address spaces according to the type of the value document 300 and the transaction type, and encrypts and stores the address spaces and the data names in a key-value pair mode; further, the computer of the intelligent contract designer 200 tests the legitimacy of the asset credential 300 data;
substep 5-2, intelligent contract 202 performs a certification process on value document 300; the computer of the intelligent contract designer 200 runs the intelligent contract 202 to carry out certification processing on the value document 300;
substep 5-3, intelligent contract 202 describes asset credential 300 as a data structure; the computer of intelligent contract designer 200 checks the validation results and runs intelligent contract 202 to describe asset credentials 300 as a data structure;
step 6, the digital currency generator 400 pays the digital currency 401; the method comprises the following steps:
substep 6-1, smart contract 202 sends a request for a digital currency transaction; the computer of intelligent contract designer 200 sends a digital currency transaction request to the computer of digital currency generator 400 via intelligent contract 202;
substep 6-2, the digital currency generator 400 runs a specified algorithm; the computer of the digital money generator 400 operates a designated algorithm to make a payment;
substep 6-3, digital currency 401 returns to smart contract 202; the computer of the digital currency generator 400 checks the digital currency 401 production results and returns the generated digital currency 401 to the smart contract 202;
step 7, block chain 500 is booked in block 501; the method comprises the following steps:
substep 7-1, smart contract 202 executes the transaction; the intelligent contract 202 runs, calls related calculation and storage resources according to the execution requirement, executes the transaction process, and forms a transaction ledger on a node computer of a block 501; further, intelligent contracts 202 are posted to the ledger as transaction data sets along with contract data generated in the transaction;
substep 7-2, the transaction ledgers are identified together in the blockchain 500; the blockchain 501 node computer broadcasts the transaction ledger to the blockchain 500 for consensus over the network using the intelligent contracts 202;
substep 7-3, adding the successfully identified block 501 into the block chain 500; blocks 501 that are common across all block chain 500 nodes are added to the block chain 500; blocks 501 that fail consensus will be deleted;
step 8, the execution result of the intelligent contract 202 is returned to the contract normal form generator 100; the method comprises the following steps:
substep 8-1, the contract paradigm generator 100 collects intelligent contract 202 data results; the contract normal form generator 100 computer can guide the design and generation of the intelligent contract normal form by collecting the intelligent contract 202 and the contract data of the transaction; further, the more intelligent contract 202 data collected by the contract paradigm generator 100, the more accurate and more convenient the formulated blockchain contract paradigm 101 is;
substep 8-2, the contract paradigm generator 100 collects an intelligent contract 202 algorithm flow; the computer of the contract normal form generator 100 utilizes the collected intelligent contract 202 algorithm flow to carry out security and integrity detection, and can guide the generation of the intelligent contract template 201 and the design of the block chain contract normal form 101;
substep 8-3, the contract paradigm generator 100 collects intelligent contract 202 failure and alarm messages; the contract normal form generator 100 can collect failure and alarm information in the design and operation process, improve the block chain contract normal form to enable the intelligent contract template to have better universality, and classify and alarm the parameters which do not accord with the intelligent contract normal form; furthermore, the intelligent contract parameters generated by the contract paradigm generator 100 can be stored in a chain manner in the form of a block chain 500, and the finally generated paradigm is configured into a chain storage structure based on the block chain; due to the stability of the normal form and the programmability of the block chain technology, the intelligent contract template can be modified properly according to requirements without frequent modification, and when a user uses the intelligent contract template generated by the normal form, the corresponding parameters are modified only in a small range; furthermore, if the same or similar contract parameters are adopted, the user can use the template even without modifying the template parameters, so that the universality of the intelligent contract paradigm and the intelligent contract template is greatly improved.
Further, the intelligent contract template design method based on the blockchain contract model can have transparent public, traceable and non-falsifiable characteristics and extremely high safety by combining the intelligent contract designer 200 with the blockchain 500. The intelligent contract based on the block chain contract model completely inherits the basic characteristics of the block chain, the block chain network system maintains a continuous and growing ordered data block without center through the intelligent contract, all information exchange data in the system in a period of time is calculated and recorded into one data block through a cryptographic algorithm, the fingerprint of the data block is generated to be used for linking the next data block and checking, all participating nodes in the system jointly determine whether the record is true, and therefore the information in the block cannot be forged and changed. The distributed network, the cryptology account book with non-falsification time sequence and the distributed consensus mechanism establish the trust relationship between two transaction parties, and the intelligent contract consisting of the automatic script is used for programming and operating data, so that the evolution from information interconnection to value interconnection is finally realized. Further, the blockchain technology adopts an asymmetric cryptography principle to sign the transaction, so that the transaction cannot be forged; meanwhile, the Hash algorithm is utilized to ensure that the transaction data cannot be easily tampered, strong calculation force is formed by means of consensus algorithms such as workload certification and the like of all nodes of the distributed system to resist the attack of a destroyer, and blocks in a block chain and the transaction data in the blocks are ensured to be unchangeable and unforgeable, so that the method has extremely high safety.
The invention can improve the security of the intelligent contract template by means of the block chain contract normal form. The intelligent contract parameters and the intelligent contract normal form adopt a chain type storage structure based on the block chain, and the cost of illegally tampering the block chain information is greatly improved due to the non-tampering property of the block chain, so that the overall safety of the intelligent contract template is improved. Meanwhile, the block chain technology has the characteristic of anonymous data interaction, because the same data interaction mode is adopted among all nodes of the block chain, namely the block chain networks do not need to trust each other, the data exchange based on the address among the block chains can be realized, the personal identity exchange is not needed, and the intelligent contract template ensures the fairness of contract signing parties and the safety of duplicate identity information by utilizing the characteristic. The intelligent contract drawing method is more operable. Most scenes of intelligent contract use need to be capable of automatically generating an intelligent contract without human operation and providing the intelligent contract for a consumer or a user to use, the intelligent contract template design method based on the block chain contract model has the programmability of the block chain technology, and only by associating relevant parameters required by the intelligent contract into the computing logic of the intelligent contract model generation algorithm, the transaction between two or more nodes can be carried out in an automatic triggering mode, so that the automatic generation of the intelligent contract model and the automatic design of the intelligent contract template are completed.

Claims (9)

1. An intelligent contract template design method based on a block chain contract model is characterized by comprising the following steps:
step 1, generating a block chain contract normal form (101) through a contract normal form generator (100);
step 2, learning a block chain contract normal form (101) through an intelligent contract designer (200);
step 3, generating an intelligent contract template (201) through the block chain contract normal form (101);
step 4, designing an intelligent contract (202) through an intelligent contract template (201);
step 5, operating the intelligent contract (202) to convert the value document (300);
step 6, paying digital currency (401) by the digital currency generator (400);
step 7, accounting is carried out in a block (501) through a block chain (500);
and 8, returning the execution result of the intelligent contract (202) to the contract normal form generator (100).
2. The method according to claim 1, characterized in that in step 1, it comprises in particular the following sub-steps:
substep 1-1, the contract paradigm generator (100) learns an intelligent contract (202);
substep 1-2, the contract paradigm generator (100) establishes a universal rule of a blockchain intelligent contract;
substep 1-3, a block chain contract paradigm (101) is established.
3. The method according to claim 1, characterized in that in step 2, it comprises in particular the steps of:
sub-step 2-1, the intelligent contract designer (200) inputs the blockchain contract paradigm (101);
substep 2-2, the intelligent contract designer (200) establishes intelligent contract grammar and semantic rules;
in sub-step 2-3, the intelligent contract designer (200) establishes intelligent contract logic rules.
4. The method according to claim 1, characterized in that in step 3, it comprises in particular the steps of:
substep 3-1, designing an intelligent contract algorithm process by using a block chain contract normal form (101);
substep 3-2, the blockchain contract paradigm (101) designs an intelligent contract data structure;
and a substep 3-3, the intelligent contract designer (200) designs an intelligent contract template (201).
5. The method according to claim 1, characterized in that in step 4, it comprises in particular the steps of:
substep 4-1, the user invokes an intelligent contract template (201);
substep 4-2, the intelligent contract template (201) adjusts the algorithm flow and the data structure;
sub-step 4-3, the intelligent contract designer (200) designs an intelligent contract (202).
6. The method according to claim 1, characterized in that in step 5, it comprises in particular the steps of:
substep 5-1, entering the asset credential (300) into the intelligent contract (202);
substep 5-2, the intelligent contract (202) carries out certification processing on the value voucher (300);
in sub-step 5-3, the intelligent contract (202) describes the asset credential (300) as a data structure.
7. The method of claim 1,
in step 6, the method specifically comprises the following steps:
substep 6-1, the smart contract (202) sending a request for a digital currency transaction;
substep 6-2, the digital currency generator (400) runs a specified algorithm;
substep 6-3, returning the digital currency (401) to the smart contract (202);
in step 7, the method specifically comprises the following steps:
sub-step 7-1, the smart contract (202) performing the transaction;
substep 7-2, the transaction ledgers are identified together in the blockchain (500);
substep 7-3, joining the block chain (500) with the successfully identified block (501);
in step 8, the method specifically comprises the following steps:
substep 8-1, the contract paradigm generator (100) collects intelligent contract (202) data results;
substep 8-2, the contract paradigm generator (100) collects the algorithm flow of the intelligent contract (202);
and a substep 8-3, collecting intelligent contract (202) failure and alarm messages by the contract paradigm generator (100).
8. An intelligent contract template design system based on a blockchain contract rule is characterized by comprising an intelligent contract designer (200), wherein the intelligent contract designer (200) is respectively connected with a contract normal form generator (100), a value document (300), a digital currency generator (400) and a blockchain (500); the contract normal form generator (100) can generate a block chain contract normal form (101); the intelligent contract designer (200) can design an intelligent contract template (201) and an intelligent contract (202); the digital currency generator (400) is connected to the intelligent contract (202), and the blockchain (500) is connected to the intelligent contract (202).
9. The system of claim 8,
the contract normal form generator (100) can learn various different intelligent contracts (202), extract the basic characteristics, basic modes, basic structures and basic functions of the intelligent contracts (202) from the intelligent contracts, and establish the universal rules of the block chain intelligent contracts; the contract normal form generator (100) can establish a block chain contract normal form (101) which accords with the general transaction rule, conduct rationality analysis on the block chain contract normal form, and conduct standardized guidance and safety check on the intelligent contract template (201) and the intelligent contract (202) by applying the contract normal form;
generating general contract rules by a contract normal form generator (100) through learning an intelligent contract (202), wherein the general contract rules describe basic characteristics, basic modes, basic structures, basic functions and general rules of the intelligent contract (202); the block chain contract paradigm (101) can be used as a design standard and a specification of an intelligent contract template (201) and an intelligent contract (202) and becomes a basic criterion which must be observed in the contract design process;
the intelligent contract designer (200) can learn the block chain contract normal form (101), and design an intelligent contract template (201) and an intelligent contract (202) according to basic features, basic modes, basic structures, basic functions and general rules described by the block chain contract normal form (101);
the intelligent contract template (201) is generated based on the general blockchain contract paradigm (101) generated in the contract paradigm generator (100) and the transaction types and characteristics of different blockchains;
an intelligent contract (202) for a specific contract for a transaction;
an asset voucher (300) for electronic vouchers for transacting various types of valuable assets; the value object certificate (300) can be certified by the intelligent contract (202) and converted into a general equivalent by the intelligent contract (202), and can be seamlessly transacted on a block chain platform;
a digital currency generator (400) comprising a device for generating digital currency (401) and an algorithm, capable of generating the algorithm in accordance with a specified digital currency (401), and obtaining the corresponding digital currency (401) after running on the device; the digital currency generator (400) is accessible to the smart contract (202) for producing corresponding digital currency (401) in accordance with the smart contract (202) transaction terms and rules.
CN202110845410.6A 2021-07-26 2021-07-26 Intelligent contract template design method based on block chain contract model Pending CN113837753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110845410.6A CN113837753A (en) 2021-07-26 2021-07-26 Intelligent contract template design method based on block chain contract model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110845410.6A CN113837753A (en) 2021-07-26 2021-07-26 Intelligent contract template design method based on block chain contract model

Publications (1)

Publication Number Publication Date
CN113837753A true CN113837753A (en) 2021-12-24

Family

ID=78962954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110845410.6A Pending CN113837753A (en) 2021-07-26 2021-07-26 Intelligent contract template design method based on block chain contract model

Country Status (1)

Country Link
CN (1) CN113837753A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116452199A (en) * 2023-06-16 2023-07-18 江西五十铃汽车有限公司 VCU control algorithm optimization method and program product based on block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116452199A (en) * 2023-06-16 2023-07-18 江西五十铃汽车有限公司 VCU control algorithm optimization method and program product based on block chain

Similar Documents

Publication Publication Date Title
Zheng et al. Xblock-eth: Extracting and exploring blockchain data from ethereum
Vacca et al. A systematic literature review of blockchain and smart contract development: Techniques, tools, and open challenges
Chen et al. Big data based fraud risk management at Alibaba
WO2020073491A1 (en) Blockchain-based supply chain payment method, payment collection method, device, apparatus, and medium
US7693767B2 (en) Method for generating predictive models for a business problem via supervised learning
CN112883116A (en) Supply chain finance AI DaaS algorithm warehouse platform based on block chain
CN102243748A (en) Electronic debt management operation system device and realization method of electronization and financial commercialization of claim and debt
CN108829581A (en) Applied program testing method, device, computer equipment and storage medium
CN111639914A (en) Block chain case information management method and device, electronic equipment and storage medium
WO2022100349A1 (en) Artificial intelligence-based dual-recording quality inspection method and apparatus, computer device and medium
CN110866822B (en) Wind control management method and device for securitization of assets, electronic equipment and storage medium
Udokwu et al. An exploration of blockchain enabled smart-contracts application in the enterprise
Luo et al. Overview of intelligent online banking system based on HERCULES architecture
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN109753783A (en) A kind of single-point logging method based on machine learning, device and computer readable storage medium
CN112070608A (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN113837753A (en) Intelligent contract template design method based on block chain contract model
WO2019220251A1 (en) Automatic inter-bank reconciliation system
CN106997322A (en) Method and apparatus for automatic test
CN113612766A (en) Data management device, method, computer equipment and storage medium
US20200344111A1 (en) System and method for obtaining consensus in a distributed ledger network
Wang Research on University Financial Accounting Management System Based on Big Data and Blockchain Data Fusion
WO2023060150A1 (en) Data compression techniques for machine learning models
CN109344658A (en) It audits in a kind of energy internet design method and device of block chain
CN114331105A (en) Electronic draft processing system, method, electronic device 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