CN108694669A - A kind of block chain intelligence contract implementation method and device - Google Patents

A kind of block chain intelligence contract implementation method and device Download PDF

Info

Publication number
CN108694669A
CN108694669A CN201810790407.7A CN201810790407A CN108694669A CN 108694669 A CN108694669 A CN 108694669A CN 201810790407 A CN201810790407 A CN 201810790407A CN 108694669 A CN108694669 A CN 108694669A
Authority
CN
China
Prior art keywords
data
chain
contract
under
transaction
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
CN201810790407.7A
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.)
Matrix Technology (shenzhen) Co Ltd
Original Assignee
Matrix Technology (shenzhen) 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 Matrix Technology (shenzhen) Co Ltd filed Critical Matrix Technology (shenzhen) Co Ltd
Priority to CN201810790407.7A priority Critical patent/CN108694669A/en
Publication of CN108694669A publication Critical patent/CN108694669A/en
Priority to PCT/CN2019/096149 priority patent/WO2020015633A1/en
Pending legal-status Critical Current

Links

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of block chain intelligence contract implementation methods and device, method to include:Receive Client-initiated intelligence contract transaction request;The data separation that the transaction request is related to is data source under data source on chain and chain;Common recognition processing is carried out to data on the chain by the common recognition node of block chain;Calculation processing is carried out to data under chain by the calculation power provider under chain and verification is provided proving.The present invention supports to access heterogeneous data source, and the common recognition and computation decoupling of intelligent contract are improved execution efficiency and handling capacity, greatly strengthen the professional ability of intelligent contract by data source, blended data source under data source, chain on chain.

Description

A kind of block chain intelligence contract implementation method and device
Technical field
The present invention relates to data processing techniques, are concretely a kind of block chain intelligence contract implementation method and device.
Background technology
Intelligent contract is one of the main feature that block chain 2.0 and 3.0 is applied, however, the TPS (handling capacity) of system is universal It is relatively low, such as 15 transactions of general processing per second of ether mill, it is applied compared to conventional centerization as VISA or Taobao are per second up to ten thousand Or even hundreds thousand of TPS, there is prodigious gaps, cannot meet application demand.To find out its cause, traditional block chain such as we are ripe In the ether mill platform known, in order to ensure decentralization and safety, transaction executes and block common recognition all heavy dependence common recognition nodes Serial process, entire block chain network only have the calculated performance of single machine, the whole network to calculate power and cannot make full use of, cause performance bottleneck.
Meanwhile traditional block chain is a closed computing environment, intelligent contract can only access block chain internal data.One Aspect causes data on chain drastically to be expanded, and block expansion eventually leads to performance of transaction and further declines.On the other hand data are based on Sovereignty and data-privacy consider that data owning side is unwilling to store data on chain, can be caused using cryptography encrypting storing The reduction of the expansion of data and intelligent contract processing capacity.
Enterprise block chain of the prior art based on ether mill proposes the scheme of privately owned transaction, for ensureing transaction and data Privacy.The related side that merchandises only accesses the number in privately owned State Tree in the locally privately owned State Tree of preservation, the privately owned transaction of intelligent contract According to.This mode ensure that the privacy of data, also reduce the scale of publicly-owned block data.But privately owned State Tree needs to merchandise The data that related side reaches common understanding still fall within data on chain.
Currently, the mode that intelligent contract obtains data from external service is:By third party by data-pushing into block chain, and It is not that data pull is entered by intelligent contract.This passive mode for receiving data, third party is depended on external interaction, How to ensure that the credible of third party and data, current solution are to use prophesy machine, the prophesy machine scheme of mainstream has following Two kinds:Reality Keys:The prophesy machine scheme that prophesy is submitted can be checked and encrypt automatically by providing one.Oraclize:It is The prophesy machine service of one evincible honesty is notarized (TLSnotary) dependent on TLS, provide one it is evincible it is honest from Internet page obtains safely the ability of information, can allow intelligent contract that can access internet, obtain valuable information.
But the prophesy machine scheme of the prior art still allows intelligent contract passively to receive data, while its still introduce Tripartite eventually leads to being of limited application for intelligent contract, while the confidence level of data is also limited.
Invention content
To improve the processing capacity of block chain intelligence contract, an embodiment of the present invention provides a kind of block chain intelligence contract realities Existing method, including:
Receive Client-initiated intelligence contract transaction request;
The data separation that the transaction request is related to is data under data on chain and chain;
Common recognition processing is carried out to data on the chain by the common recognition node of block chain;
Calculation processing is carried out to data under chain by the calculation power provider under chain and verification is provided proving.
In the embodiment of the present invention, include for data under data on chain and chain by the data separation that the transaction request is related to:
The data that current intelligent contract transaction is related to are determined according to the transaction request;
The source of data being related to according to transaction by the data separation that current intelligent contract transaction is related to be on chain data and Data under chain.
In the embodiment of the present invention, data include on the chain:The number of distributed account book from block chain when executing contract According to;
Data include under the chain:The number provided by the database of at least one data providing under chain when executing contract According to.
In the embodiment of the present invention, when the data providing includes multiple data providings, each data providing utilizes MPC algorithm carries out cooperated computing.
In the embodiment of the present invention, the conode by block chain carries out common recognition processing to data on the chain and includes:
According to transaction request from data on the acquisition chain on the distributed account book;
Being calculated data on the chain by matched calculation power provider according to contract request and providing calculating proves life At result of calculation;Wherein, the result of calculation includes:Transaction Information, calculates proof, contract Status Change at result of calculation;
Common recognition processing is carried out according to the result of calculation change distributed account book.
Meanwhile the present invention also provides a kind of block chain intelligence contract realization devices, including:
Request receiving module, for receiving Client-initiated intelligence contract transaction request;
Discriminating module, the data separation for the transaction request to be related to are data under data on chain and chain;
It knows together on chain module, common recognition processing is carried out to data on the chain by the common recognition node of block chain;
Data processing module under chain carries out calculation processing to data under chain by the calculation power provider under chain and provides verification card It is bright.
In the embodiment of the present invention, the discriminating module includes:
Transaction data determination unit, the data for being related to according to the current intelligent contract transaction of transaction request determination;
Discrimination unit, the data separation that current intelligent contract transaction is related to by the source for the data being related to according to transaction is chain Data under upper data and chain.
In the embodiment of the present invention, data include on chain:The data of distributed account book from block chain when executing contract;Chain Lower data include:The data provided by least one data providing under chain when contract are provided.
In the embodiment of the present invention, when the data providing includes multiple data providings, each data providing utilizes MPC algorithm carries out cooperated computing.
In the embodiment of the present invention, on the chain know together module by block chain common recognition node to data source on the chain into Row common recognition is handled:
According to transaction request from data on the acquisition chain on the distributed account book;
Being calculated data on chain by matched calculation power provider according to contract request and providing calculating proves to generate meter Calculate result;Wherein, the result of calculation includes:Transaction Information, calculates proof, contract Status Change at result of calculation;
Common recognition processing is carried out according to the result of calculation change distributed account book.
Meanwhile the present invention also provides a kind of computer equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, the processor realize the above method when executing the computer program.
Meanwhile the present invention also provides a kind of computer readable storage medium, computer-readable recording medium storage has execution The computer program of the above method.
The implementation method and device of intelligence contract proposed by the present invention, support to access heterogeneous data source, data source, chain on chain Lower data source, blended data source.For data under chain, in such a way that Secure calculates (MPC) and can verify that calculating (VC) Ensure the privacy of data and the correctness that verification calculates.
For the above and other objects, features and advantages of the present invention can be clearer and more comprehensible, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
The flow chart of Fig. 1 block chain intelligence contract implementation methods disclosed by the invention;
Fig. 2 is the structure chart of block chain intelligence contract implementation method disclosed by the invention;
Fig. 3 is schematic diagram disclosed by the embodiments of the present invention;
Fig. 4 is schematic diagram disclosed by the embodiments of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The present invention provides a kind of block chain intelligence contract implementation method, as shown in Figure 1, method includes:
Step S101 receives Client-initiated intelligence contract transaction request;
Step S102, the data separation that transaction request is related to are data under data on chain and chain;
Step S103 carries out common recognition processing by the common recognition node of block chain to data on the chain;
Step S104 carries out calculation processing to data under chain by the calculation power provider under chain and provides verification to prove.
The innovation of technical solution of the present invention is common recognition and computation decoupling so that intelligent contract can support data on chain simultaneously The access of data source under source, chain, i.e., by the clearing of data under data on the chain for needing common recognition to handle in the request of intelligent contract and chain It is decoupled, is illustrated in figure 2 the structure chart of one embodiment of the application.
The present invention will know together and computation decoupling, and enables the system to support simultaneously on chain and data under chain, from system tray Contract is divided into I/O logic related with state on chain and the calculating logic unrelated with state on chain on structure, and is referred to as member intelligence Contract.
I/O logic related with state is handled on block chain by common recognition node, and state change and result are broadcasted To block chain, local data base is written to after each node verification;
The calculating logic part unrelated with state is distributed to and calculates power provider progress parallel computation, greatly improve calculating effect Rate.Further, Secure is carried out using encrypted circuit in the embodiment of the present invention and calculate MPC, ensure the privacy of data.This Shen Common Boolean circuit please can be used to calculate in embodiment, for data-privacy need not be protected.Circuit logic is (either No encryption, can) can be accelerated using specialized hardware, the utilization rate of slack resources is on the one hand improved, while improving meter Calculate efficiency.
In the embodiment of the present invention, according to the difference of data source, intelligent contract is divided into three in the present embodiment specific implementation Class:State contract, stateless contract and mixing contract.
State contract:State contract processing procedure is similar to traditional intelligence contract, as shown in figure 3, for the shape in the present embodiment The schematic diagram that state contract executes, state contract needs preserve state on chain, and the data that state contract inputs when executing come from chain Upper distribution account book, each contract execute the Status Change that can lead to contract, and distributed account book can be recorded in by having altered In.The calculating of contract splits into multiple subtasks and is distributed to multiple calculate nodes, and contract developer can select privacy to calculate Mode ensures data non-disclosre to calculate node.
Contract developer issues in intelligent contract to block chain, and user initiates intelligent contract transaction request, if this is intelligently closed The data that about transaction request is related to are all from chain, then execute the state contract in the embodiment of the present application.Shape in the present embodiment The execution of state contract is as follows:
1. algorithm provider exploitation and deployable state contract;
2. calculating initiator initiates transaction request, some state contract of meet demand is called, data source is on chain;
3. state contract receives transaction request, a special calculating channel contract can be triggered first and is called, effect is Certain assets are done to transaction initiator to pledge;
4. contract searches matching calculation power provider according to transaction request, request is distributed to one or more sons Task is given to suitable calculation power provider;
5. calculating power provider to calculate and provide calculating proof;
6. after calculating, a transaction can be sent from any participant toward channel contract is calculated, it is logical to close this Road simultaneously starts a settlement process, but calculating channel will not be settled accounts at once, can first start a time interval, in the section Interior any participant can submit calculating process objection statement;
7. task terminates and completes that remaining assets are returned to transaction initiator after settling accounts;
8. transaction, result of calculation, calculating proof, contract Status Change etc. are packaged into block by common recognition node;
9. local account book is written in block by block node.
Stateless contract:Stateless contract does not preserve any state on chain, as shown in figure 4, for the shape in the present embodiment The schematic diagram that state contract executes.The data that stateless contract inputs when executing, can from data providing local data base under chain Can also be multiple data providings to be individual data provider.If it is multiple data providings, then MPC is used in many ways Algorithm carries out cooperated computing, ensures each side to the ownership of data, actual calculating split into multiple subtasks be distributed to it is multiple Calculate node, contract developer can select the mode that privacy calculates, and ensure data non-disclosre to calculate node.The present embodiment In, steps are as follows for the execution of stateless contract:
1. algorithm provider develops and disposes stateless contract;
2. calculating initiator initiates transaction request, some stateless contract of meet demand is called, data source is in chain Under;
3. stateless contract receives transaction request, a special calculating channel contract can be triggered first and is called, effect It is to do certain assets to transaction initiator to pledge;
4. contract searches matching calculation power provider according to transaction request, request is distributed to one or more sons Task is given to suitable calculation power provider, and if it is multiple data providings, contract developer can select the side that privacy calculates Formula, to ensure data non-disclosre to calculate node:It such as selects to carry out cooperated computing using MPC algorithm, ensures each side to data Ownership;
5. data providing carries out cooperated computing with power provider is calculated, and provides and can verify that calculating proves;
6. after calculating, a transaction can be sent from any participant toward channel contract is calculated, it is logical to close this Road simultaneously starts a settlement process, but calculating channel will not be settled accounts at once, can first start a time interval, in the section Interior any participant can submit calculating process objection statement;
7. task terminates and completes that remaining assets are returned to transaction initiator after settling accounts;
8. common recognition node proves transaction, result of calculation, calculating to be packaged into block;
9. local account book is written in block by block node.
Mix contract:Allow intelligent contract to preserve state on chain, and there are data under chain to participate in calculating, this kind of contract is known as Contract is mixed, i.e., intelligent contract executes the data being related to both including data on chain or including the data providing under chain.Mixing is closed About it is a kind of multi-source data calculating in fact, common recognition node participates in calculating as the data providing of status data on chain.Mixing is closed About typical usage scenario is that the data result of calculation under chain is saved on chain, and is participated in calculating next time.
The realization method of intelligence contract provided by the invention, by common recognition and computation decoupling so that the common recognition portion of intelligent contract Divide on chain and does, and calculating section can be calculated the processing of power nodal parallels by one or more, to improve intelligent contract execution efficiency And handling capacity.Correspondingly, intelligent contract individually either can be executed individually under chain cochain on chain under chain or simultaneously, held under chain Row intelligence contract partial function executes complete intelligent contract, can be that distributed parallel executes;Or in several nodes It is executed between inside, each participant safeguards state under the chain of a multi-signature jointly.All it is necessary to when may return on chain and do Common recognition and write-in chain state etc..
The execution of processing or intelligent contract for data under chain, by can verify that the various ways such as proof or multi-signature, Block chain is returned to, can verify that proof, the state of transaction or result accordingly, block can be written in the change etc. of contract as needed Chain, by the way that by the decoupling of common recognition and calculating in intelligent contract implementation procedure, data are by the calculation under chain under the chain that calculating is related to Power provider executes, and extends the application range of intelligent contract, can greatly strengthen the business of intelligent contract with data under process chain Ability, can also be used as a kind of technology of dilatation under chain, while may return on chain, ensure that safety identical with traditional contract Characteristic, such as non-repudiation can not be changed, the characteristics such as reliability.
To reduce developer's threshold, the present embodiment devises the high-level language of the complete C styles of figure spirit, for writing intelligent conjunction About, and it is compiled into Boolean circuit.In the present embodiment, intelligent contract language key property is as follows:
1. data type:
1.1 basic data types, as shown in table 1:
Table 1
Type Digit Numberical range
bool 8 Value is 0 and 1
int8 8 - 128~127
uint8 8 0~255
int16 16 - 32768~32767
uint16 16 0~65535
int32 32 - 2147483648~2147483647
uint32 32 0~4294967295
int64 64 - 9223372036854775808~9223372036854775807
uint64 64 0~18446744073709551615
1.2 user-defined dada type:
Structure:The Struct for supporting class C language, carrys out definition structure body.Structure allows definition that can store different type number According to the variable of item.
Array:Support array data structure, it can store the sequence set of the same type element of a fixed size, It can support Multidimensional numerical.
2. operator:
Arithmetic operator is as shown in table 2:
Table 2
2.2 relational operator:
In the present embodiment, operator and corresponding it is described as follows shown in table 3:
Table 3
2.3 bit arithmetics accord with, as shown in table 4:
Table 4
2.4 assignment operators, as shown in table 5:
Table 5
Operator Description
= The value of the right operand is assigned to left side operand by simple assignment operator
3. control statement:
Condition judgment sentence, as shown in table 6:
Table 6
3.2 Do statement
Do statement allows that a sentence is performed a plurality of times or sentence group, Do statement are as follows:
For (int32i=0;i<max;i++)
{
}
4. function defines:
Function is one group of sentence for executing a task together.Function is defined as follows:
functionreturn_typefoo(paramtype1name1,paramtype2name2,paramtype3[5] name3){
return blah;
}
The present invention is mainly suitable for the Related product of block chain or service, the application with intelligent contract or system, packets Include the scheme of public chain or alliance's chain.The present invention proposes a kind of intelligent contract method, supports to access data under chain cochain, slowing-down area The expansion of block number evidence ensures the personal secrets of data.
Meanwhile the present invention also provides a kind of block chain intelligence contract realization devices, including:
Request receiving module, for receiving Client-initiated intelligence contract transaction request;
Discriminating module, the data separation for the transaction request to be related to are data under data on chain and chain;
It knows together on chain module, common recognition processing is carried out to data on the chain by the common recognition node of block chain;
Data processing module under chain carries out calculation processing to data under chain by the calculation power provider under chain and provides verification card It is bright.
In the embodiment of the present invention, the discriminating module includes:
Transaction data determination unit, the data for being related to according to the current intelligent contract transaction of transaction request determination;
Discrimination unit, the data separation that current intelligent contract transaction is related to by the source for the data being related to according to transaction is chain Data under upper data and chain.
To those skilled in the art, it can be understood according to the embodiment previously with regard to method and know the embodiment of the present invention Therefore the realization rate of middle block chain intelligence contract realization device herein no longer further repeats the embodiment of device.
Meanwhile the present invention also provides a kind of computer equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, the processor realize the above method when executing the computer program.
Meanwhile the present invention also provides a kind of computer readable storage medium, computer-readable recording medium storage has execution The computer program of the above method.
The implementation method and device of intelligent contract disclosed by the invention can support on chain, data or be supported simultaneously under chain Data under chain cochain, I/O logic are responsible for data in process chain, including read data from chain, carry out common recognition processing, and will processing Result or state later is written on chain.The outer data of calculating logic process chain, including calculating task publication are appointed with distribution, calculating Business, which splits into multiple subtasks, calculating task is compiled into Boolean circuit and is accelerated using specialized hardware, calculates power node receives an assignment Can verify that calculating, return to result of calculation and can verify that proof, result of calculation verification etc..
If being related to multiple data sources (including data that multiple data sides provide under data, chain on chain), in order to ensure Data-privacy, each data providing (common recognition node is as data providing on chain) can combine progress Secure and calculate Obtain result of calculation.
By the common recognition and computation decoupling of contract, common recognition part executes on chain (is known together by common recognition node, and is written the application Block chain), calculating section, which is distributed to, calculates power provider progress parallel computation.Such benefit is:Extend contract applies model It encloses, while accelerating the execution speed of contract, improve the handling capacity of block chain.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specific embodiment is applied in the present invention, and principle and implementation of the present invention are described, above example Explanation be merely used to help understand the present invention method and its core concept;Meanwhile for those of ordinary skill in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (12)

1. a kind of block chain intelligence contract implementation method, which is characterized in that the method includes:
Receive Client-initiated intelligence contract transaction request;
The data separation that the transaction request is related to is data under data on chain and chain;
Common recognition processing is carried out to data on the chain by the common recognition node of block chain;
Calculation processing is carried out to data under chain by the calculation power provider under chain and verification is provided proving.
2. block chain intelligence contract implementation method as described in claim 1, which is characterized in that the transaction request to be related to Data separation is that data include under data and chain on chain:
The data that current intelligent contract transaction is related to are determined according to the transaction request;
The data separation that current intelligent contract transaction is related to by the source for the data being related to according to transaction is under data and chain on chain Data.
3. block chain intelligence contract implementation method as claimed in claim 2, which is characterized in that
Data include on the chain:The data of distributed account book from block chain when executing contract;
Data include under the chain:The data provided by least one data providing under chain when contract are provided.
4. block chain intelligence contract implementation method as claimed in claim 3, which is characterized in that the data providing includes When multiple data providings, each data providing carries out cooperated computing using MPC algorithm.
5. block chain intelligence contract implementation method as claimed in claim 3, which is characterized in that the total section by block chain Point carries out common recognition processing to data on the chain:
According to transaction request from data on the acquisition chain on the distributed account book;
Being calculated data on the chain by matched calculation power provider according to contract request and providing calculating proves to generate meter Calculate result;Wherein, the result of calculation includes:Transaction Information, calculates proof, contract Status Change at result of calculation;
Common recognition processing is carried out according to the result of calculation change distributed account book.
6. a kind of block chain intelligence contract realization device, which is characterized in that the device includes:
Request receiving module, for receiving Client-initiated intelligence contract transaction request;
Discriminating module, the data separation for the transaction request to be related to are data under data on chain and chain;
It knows together on chain module, common recognition processing is carried out to data on the chain by the common recognition node of block chain;
Data processing module under chain carries out calculation processing to data under chain by the calculation power provider under chain and provides verification to prove.
7. block chain intelligence contract realization device as claimed in claim 6, which is characterized in that the discriminating module includes:
Transaction data determination unit, the data for being related to according to the current intelligent contract transaction of transaction request determination;
Discrimination unit, the data separation that current intelligent contract transaction is related to by the source for the data being related to according to transaction is number on chain According to data under chain.
8. block chain intelligence contract realization device as claimed in claim 7, which is characterized in that
Data include on the chain:The data of distributed account book from block chain when executing contract;
Data include under the chain:The data provided by least one data providing under chain when contract are provided.
9. block chain intelligence contract realization device as claimed in claim 8, which is characterized in that the data providing includes When multiple data providings, each data providing carries out cooperated computing using MPC algorithm.
10. block chain intelligence contract realization device as claimed in claim 8, which is characterized in that module of knowing together on the chain Carrying out common recognition processing to data source on the chain by the common recognition node of block chain includes:
According to transaction request from data on the acquisition chain on the distributed account book;
Being calculated data on the chain by matched calculation power provider according to contract request and providing calculating proves to generate meter Calculate result;Wherein, the result of calculation includes:Transaction Information, calculates proof, contract Status Change at result of calculation;
Common recognition processing is carried out according to the result of calculation change distributed account book.
11. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes any side of claim 1 to 5 when executing the computer program Method.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has perform claim It is required that the computer program of 1 to 5 any the method.
CN201810790407.7A 2018-07-18 2018-07-18 A kind of block chain intelligence contract implementation method and device Pending CN108694669A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810790407.7A CN108694669A (en) 2018-07-18 2018-07-18 A kind of block chain intelligence contract implementation method and device
PCT/CN2019/096149 WO2020015633A1 (en) 2018-07-18 2019-07-16 Method and apparatus for realizing smart contract of blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810790407.7A CN108694669A (en) 2018-07-18 2018-07-18 A kind of block chain intelligence contract implementation method and device

Publications (1)

Publication Number Publication Date
CN108694669A true CN108694669A (en) 2018-10-23

Family

ID=63850074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810790407.7A Pending CN108694669A (en) 2018-07-18 2018-07-18 A kind of block chain intelligence contract implementation method and device

Country Status (2)

Country Link
CN (1) CN108694669A (en)
WO (1) WO2020015633A1 (en)

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446273A (en) * 2018-12-04 2019-03-08 深圳前海环融联易信息科技服务有限公司 Method of data synchronization, device, computer equipment and the storage medium of block chain
CN109558750A (en) * 2018-11-30 2019-04-02 北京八分量信息科技有限公司 A kind of data processing system and method based on multi-party computations
CN109584066A (en) * 2018-10-31 2019-04-05 阿里巴巴集团控股有限公司 Privacy transaction and its application method and device based on block chain
CN109582737A (en) * 2018-11-30 2019-04-05 北京八分量信息科技有限公司 A kind of battery data management system and method based on multi-party computations
CN109598599A (en) * 2018-10-26 2019-04-09 阿里巴巴集团控股有限公司 A kind of refund processing method, device and equipment based on block chain
CN109829718A (en) * 2019-01-30 2019-05-31 缀初网络技术(上海)有限公司 A kind of block chain multi-layer framework and its operation method based on storage application scenarios
CN109885612A (en) * 2018-12-26 2019-06-14 联动优势科技有限公司 The synchronization take-effective method and device of block chain intelligence contract
CN109889498A (en) * 2019-01-16 2019-06-14 余炀 Calculating verification method and system based on block chain
CN109886687A (en) * 2019-02-28 2019-06-14 矩阵元技术(深圳)有限公司 A kind of result verification method and system for realizing multi-party computations based on block chain
CN110009337A (en) * 2018-12-21 2019-07-12 阿里巴巴集团控股有限公司 A kind of data processing method and device based on block chain
CN110020543A (en) * 2018-12-21 2019-07-16 阿里巴巴集团控股有限公司 A kind of data processing method and device based on block chain
CN110033243A (en) * 2019-03-06 2019-07-19 华南师范大学 Main chain based on block chain intelligence contract deposits card method, system and storage medium
CN110111104A (en) * 2019-04-23 2019-08-09 矩阵元技术(深圳)有限公司 Block chain intelligence contract implementation method, device, computer equipment and storage medium
CN110149323A (en) * 2019-05-06 2019-08-20 山东公链信息科技有限公司 A kind of processing unit with millions TPS contract processing capacity
CN110288179A (en) * 2019-05-10 2019-09-27 深圳壹账通智能科技有限公司 Administering method and device, computer equipment, the storage medium of alliance's chain
CN110298190A (en) * 2019-04-19 2019-10-01 矩阵元技术(深圳)有限公司 Decentralization Secure data processing method, device and storage medium
CN110335037A (en) * 2019-04-19 2019-10-15 矩阵元技术(深圳)有限公司 Method of commerce, device and the storage medium calculated based on block chain and Secure
CN110414977A (en) * 2019-06-12 2019-11-05 阿里巴巴集团控股有限公司 A kind of method and apparatus to lock an account in block chain
CN110442456A (en) * 2019-08-06 2019-11-12 上海浦东发展银行股份有限公司信用卡中心 A kind of load-balancing method of the multichannel based on Hyperledger-fabric
CN110520884A (en) * 2018-12-13 2019-11-29 阿里巴巴集团控股有限公司 Intelligent bond service outside chain based on credible performing environment
CN110544092A (en) * 2019-08-22 2019-12-06 杭州趣链科技有限公司 Dynamic newly-added multi-type database data operation chaining method for block chain
WO2020015633A1 (en) * 2018-07-18 2020-01-23 云图有限公司 Method and apparatus for realizing smart contract of blockchain
CN110851127A (en) * 2019-10-28 2020-02-28 杭州趣链科技有限公司 Universal evidence storage method based on block chain
CN110942300A (en) * 2019-11-14 2020-03-31 杭州复杂美科技有限公司 Transfer certificate submitting method, device and storage medium
CN111061713A (en) * 2019-12-11 2020-04-24 北京时代云链信息科技有限公司 Block chain data fusion method, device, equipment and storage medium
CN111090874A (en) * 2020-03-18 2020-05-01 支付宝(杭州)信息技术有限公司 Contract calling method and device
CN111311255A (en) * 2020-01-19 2020-06-19 杭州云象网络技术有限公司 Intelligent contract formalization verification and error correction method based on prediction machine
CN111612453A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN111666337A (en) * 2020-05-19 2020-09-15 武汉理工大学 Patent technology conversion operation platform and transaction method based on block chain technology
CN111737011A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Method and device for realizing secure multi-party computation
WO2020215195A1 (en) * 2019-04-23 2020-10-29 云图有限公司 Blockchain smart contract realization method and apparatus, computer device and storage medium
CN112166445A (en) * 2019-04-16 2021-01-01 华为技术有限公司 Joint learning method and joint learning equipment based on block chain network
CN112184434A (en) * 2020-09-02 2021-01-05 上海树图区块链研究院 Block chain system, data interaction and processing method, node and storage medium
WO2021011082A1 (en) * 2019-07-12 2021-01-21 Microsoft Technology Licensing, Llc Lightweight blockchain based on split-trust
CN112801797A (en) * 2021-03-30 2021-05-14 支付宝(杭州)信息技术有限公司 Method and apparatus for processing ticket data using a down-link trusted device
CN112927083A (en) * 2021-03-30 2021-06-08 上海万向区块链股份公司 Block chain-based batch settlement method, system and medium
CN113064729A (en) * 2021-04-16 2021-07-02 上海边界智能科技有限公司 Safe multi-party computing method based on block chain technology
CN113065167A (en) * 2021-04-06 2021-07-02 北京瑞卓喜投科技发展有限公司 Method and device for updating downlink data authorization prediction machine and electronic equipment
CN113129149A (en) * 2021-04-23 2021-07-16 中国工商银行股份有限公司 Transaction risk identification method and device based on block chain and safe multi-party calculation
CN114048264A (en) * 2021-09-28 2022-02-15 中诚区块链研究院(南京)有限公司 Consensus intelligent contract algorithm
CN114546632A (en) * 2020-11-26 2022-05-27 中国电信股份有限公司 Calculation force distribution method, calculation force distribution platform, calculation force distribution system and computer readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112132686B (en) * 2020-11-19 2021-03-16 国网区块链科技(北京)有限公司 Energy storage power station electricity charge settlement method and system based on block chain
CN112600887B (en) * 2020-12-03 2023-03-24 中国联合网络通信集团有限公司 Computing power management method and device
CN114297643B (en) * 2022-03-10 2022-07-08 众连智能科技有限公司 Defense method and device of intelligent contract and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN107657438A (en) * 2017-09-18 2018-02-02 联动优势科技有限公司 A kind of block chain generation method, data verification method, node and system
CN108200203A (en) * 2018-02-06 2018-06-22 北京奇虎科技有限公司 Block catenary system based on double-layer network
CN108282539A (en) * 2018-02-06 2018-07-13 北京奇虎科技有限公司 Decentralization storage system based on double-layer network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107408174B (en) * 2015-01-30 2021-10-01 E·马伊姆 System and method for managing networking commitments for secure entities
CN107169765B (en) * 2017-05-11 2020-07-31 电子科技大学 Method for dynamically adjusting block chain consensus based on business trust
CN108694669A (en) * 2018-07-18 2018-10-23 矩阵元技术(深圳)有限公司 A kind of block chain intelligence contract implementation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN107657438A (en) * 2017-09-18 2018-02-02 联动优势科技有限公司 A kind of block chain generation method, data verification method, node and system
CN108200203A (en) * 2018-02-06 2018-06-22 北京奇虎科技有限公司 Block catenary system based on double-layer network
CN108282539A (en) * 2018-02-06 2018-07-13 北京奇虎科技有限公司 Decentralization storage system based on double-layer network

Cited By (61)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020015633A1 (en) * 2018-07-18 2020-01-23 云图有限公司 Method and apparatus for realizing smart contract of blockchain
CN109598599A (en) * 2018-10-26 2019-04-09 阿里巴巴集团控股有限公司 A kind of refund processing method, device and equipment based on block chain
CN109584066A (en) * 2018-10-31 2019-04-05 阿里巴巴集团控股有限公司 Privacy transaction and its application method and device based on block chain
CN109584066B (en) * 2018-10-31 2020-09-01 阿里巴巴集团控股有限公司 Privacy transaction based on block chain and application method and device thereof
CN109558750A (en) * 2018-11-30 2019-04-02 北京八分量信息科技有限公司 A kind of data processing system and method based on multi-party computations
CN109582737A (en) * 2018-11-30 2019-04-05 北京八分量信息科技有限公司 A kind of battery data management system and method based on multi-party computations
CN109558750B (en) * 2018-11-30 2021-11-02 北京八分量信息科技有限公司 Data processing system and method based on secure multi-party computing
CN109446273B (en) * 2018-12-04 2022-07-22 深圳前海环融联易信息科技服务有限公司 Data synchronization method and device of block chain, computer equipment and storage medium
CN109446273A (en) * 2018-12-04 2019-03-08 深圳前海环融联易信息科技服务有限公司 Method of data synchronization, device, computer equipment and the storage medium of block chain
CN110520884A (en) * 2018-12-13 2019-11-29 阿里巴巴集团控股有限公司 Intelligent bond service outside chain based on credible performing environment
CN110520884B (en) * 2018-12-13 2023-09-29 创新先进技术有限公司 Out-of-chain intelligent contract service based on trusted execution environment
CN110020543A (en) * 2018-12-21 2019-07-16 阿里巴巴集团控股有限公司 A kind of data processing method and device based on block chain
US11321783B2 (en) 2018-12-21 2022-05-03 Advanced New Technologies Co., Ltd. Method and device for data processing based on blockchain
CN110009337A (en) * 2018-12-21 2019-07-12 阿里巴巴集团控股有限公司 A kind of data processing method and device based on block chain
CN110009337B (en) * 2018-12-21 2020-04-21 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
US11270388B2 (en) 2018-12-21 2022-03-08 Advanced New Technologies Co., Ltd. Blockchain-based data processing method and apparatus
CN109885612B (en) * 2018-12-26 2021-04-20 联动优势科技有限公司 Synchronous validation method and device for intelligent contracts of block chains
CN109885612A (en) * 2018-12-26 2019-06-14 联动优势科技有限公司 The synchronization take-effective method and device of block chain intelligence contract
CN109889498A (en) * 2019-01-16 2019-06-14 余炀 Calculating verification method and system based on block chain
CN109829718B (en) * 2019-01-30 2022-12-23 缀初网络技术(上海)有限公司 Block chain multi-level framework based on storage application scene and operation method thereof
CN109829718A (en) * 2019-01-30 2019-05-31 缀初网络技术(上海)有限公司 A kind of block chain multi-layer framework and its operation method based on storage application scenarios
CN111612453A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN109886687A (en) * 2019-02-28 2019-06-14 矩阵元技术(深圳)有限公司 A kind of result verification method and system for realizing multi-party computations based on block chain
CN109886687B (en) * 2019-02-28 2023-12-05 矩阵元技术(深圳)有限公司 Result verification method and system for realizing secure multiparty calculation based on blockchain
CN110033243B (en) * 2019-03-06 2023-01-10 华南师范大学 Main chain evidence storing method, system and storage medium based on block chain intelligent contract
CN110033243A (en) * 2019-03-06 2019-07-19 华南师范大学 Main chain based on block chain intelligence contract deposits card method, system and storage medium
CN112166445A (en) * 2019-04-16 2021-01-01 华为技术有限公司 Joint learning method and joint learning equipment based on block chain network
CN110335037A (en) * 2019-04-19 2019-10-15 矩阵元技术(深圳)有限公司 Method of commerce, device and the storage medium calculated based on block chain and Secure
CN110298190A (en) * 2019-04-19 2019-10-01 矩阵元技术(深圳)有限公司 Decentralization Secure data processing method, device and storage medium
CN110111104A (en) * 2019-04-23 2019-08-09 矩阵元技术(深圳)有限公司 Block chain intelligence contract implementation method, device, computer equipment and storage medium
WO2020215195A1 (en) * 2019-04-23 2020-10-29 云图有限公司 Blockchain smart contract realization method and apparatus, computer device and storage medium
CN110149323A (en) * 2019-05-06 2019-08-20 山东公链信息科技有限公司 A kind of processing unit with millions TPS contract processing capacity
CN110288179A (en) * 2019-05-10 2019-09-27 深圳壹账通智能科技有限公司 Administering method and device, computer equipment, the storage medium of alliance's chain
CN110414977A (en) * 2019-06-12 2019-11-05 阿里巴巴集团控股有限公司 A kind of method and apparatus to lock an account in block chain
US11405181B2 (en) 2019-07-12 2022-08-02 Microsoft Technology Licensing, Llc Lightweight blockchain based on split-trust
WO2021011082A1 (en) * 2019-07-12 2021-01-21 Microsoft Technology Licensing, Llc Lightweight blockchain based on split-trust
CN110442456B (en) * 2019-08-06 2023-02-28 上海浦东发展银行股份有限公司信用卡中心 Multi-channel load balancing method based on Hyperridge-fabric
CN110442456A (en) * 2019-08-06 2019-11-12 上海浦东发展银行股份有限公司信用卡中心 A kind of load-balancing method of the multichannel based on Hyperledger-fabric
CN110544092B (en) * 2019-08-22 2022-04-01 杭州趣链科技有限公司 Dynamic newly-added multi-type database data operation chaining method for block chain
CN110544092A (en) * 2019-08-22 2019-12-06 杭州趣链科技有限公司 Dynamic newly-added multi-type database data operation chaining method for block chain
CN110851127B (en) * 2019-10-28 2023-10-24 杭州趣链科技有限公司 Universal evidence-storing method based on blockchain
CN110851127A (en) * 2019-10-28 2020-02-28 杭州趣链科技有限公司 Universal evidence storage method based on block chain
CN110942300B (en) * 2019-11-14 2023-04-14 杭州复杂美科技有限公司 Transfer certificate submitting method, device and storage medium
CN110942300A (en) * 2019-11-14 2020-03-31 杭州复杂美科技有限公司 Transfer certificate submitting method, device and storage medium
CN111061713A (en) * 2019-12-11 2020-04-24 北京时代云链信息科技有限公司 Block chain data fusion method, device, equipment and storage medium
CN111311255B (en) * 2020-01-19 2023-07-25 杭州云象网络技术有限公司 Intelligent contract formalization verification and error correction method based on prophetic machine
CN111311255A (en) * 2020-01-19 2020-06-19 杭州云象网络技术有限公司 Intelligent contract formalization verification and error correction method based on prediction machine
CN111090874A (en) * 2020-03-18 2020-05-01 支付宝(杭州)信息技术有限公司 Contract calling method and device
CN111666337A (en) * 2020-05-19 2020-09-15 武汉理工大学 Patent technology conversion operation platform and transaction method based on block chain technology
CN111666337B (en) * 2020-05-19 2023-04-25 武汉理工大学 Patent technology conversion operation platform and transaction method based on blockchain technology
CN111737011A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Method and device for realizing secure multi-party computation
CN111737011B (en) * 2020-07-31 2021-01-29 支付宝(杭州)信息技术有限公司 Method and device for realizing secure multi-party computation
CN112184434A (en) * 2020-09-02 2021-01-05 上海树图区块链研究院 Block chain system, data interaction and processing method, node and storage medium
CN114546632A (en) * 2020-11-26 2022-05-27 中国电信股份有限公司 Calculation force distribution method, calculation force distribution platform, calculation force distribution system and computer readable storage medium
CN112927083A (en) * 2021-03-30 2021-06-08 上海万向区块链股份公司 Block chain-based batch settlement method, system and medium
CN112801797A (en) * 2021-03-30 2021-05-14 支付宝(杭州)信息技术有限公司 Method and apparatus for processing ticket data using a down-link trusted device
CN113065167A (en) * 2021-04-06 2021-07-02 北京瑞卓喜投科技发展有限公司 Method and device for updating downlink data authorization prediction machine and electronic equipment
CN113064729A (en) * 2021-04-16 2021-07-02 上海边界智能科技有限公司 Safe multi-party computing method based on block chain technology
CN113129149A (en) * 2021-04-23 2021-07-16 中国工商银行股份有限公司 Transaction risk identification method and device based on block chain and safe multi-party calculation
CN114048264A (en) * 2021-09-28 2022-02-15 中诚区块链研究院(南京)有限公司 Consensus intelligent contract algorithm
WO2023050556A1 (en) * 2021-09-28 2023-04-06 中诚区块链研究院(南京)有限公司 Smart contract consensus algorithm

Also Published As

Publication number Publication date
WO2020015633A1 (en) 2020-01-23

Similar Documents

Publication Publication Date Title
CN108694669A (en) A kind of block chain intelligence contract implementation method and device
US20230028606A1 (en) Method and apparatus for vertical federated learning
US20220038289A1 (en) Multi-access edge computing node with distributed ledger
KR20190070163A (en) Resources operating method of each of nodes communicating one another and computer device operating as one of nodes
CN109669986A (en) Blacklist sharing method, device, equipment and storage medium based on block chain
CN109377224A (en) Block chain method of commerce and device, electronic equipment
CN110032598A (en) Method for updating field and device, electronic equipment
CN104937544A (en) Computing regression models
CN102890625A (en) Arithmetic and control unit, arithmetic and control method, program and parallel processor
CN112559635B (en) Service processing method, device, equipment and medium for Ethernet alliance chain node
CN109325055A (en) The screening of business association tables of data and checking method, device, electronic equipment
CN103164529B (en) A kind of anti-k nearest neighbor query method based on Voronoi diagram
CN109447636A (en) A kind of assets transfer method and device
CN113994324B (en) Block chain system with efficient world state data structure
CN112084218A (en) Cloud data management method and system based on block chain
CN109035018A (en) The data record statistical method and device of intelligent contract in a kind of block chain
CN103294556A (en) Method and system for host system admission control
Deng et al. A distributed PDP model based on spectral clustering for improving evaluation performance
CN114175011A (en) Block chain system with efficient world state data structure
CN113902127A (en) Asynchronous federal learning method with block chain enabled
Yu et al. Accelerating evolutionary computation using a convergence point estimated by weighted moving vectors
Huang et al. Optimized CPU–GPU collaborative acceleration of zero-knowledge proof for confidential transactions
CN109829566A (en) Method for generating combat action sequence
CN112087518A (en) Consensus method, apparatus, computer system, and medium for blockchains
CN115358728B (en) ERP data processing method based on cloud computing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181023