CN109978687A - The event of intelligent contract connects system and method - Google Patents
The event of intelligent contract connects system and method Download PDFInfo
- Publication number
- CN109978687A CN109978687A CN201711461269.XA CN201711461269A CN109978687A CN 109978687 A CN109978687 A CN 109978687A CN 201711461269 A CN201711461269 A CN 201711461269A CN 109978687 A CN109978687 A CN 109978687A
- Authority
- CN
- China
- Prior art keywords
- event
- contract
- intelligence
- intelligent contract
- agent
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Marketing (AREA)
- Economics (AREA)
- Development Economics (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)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
A kind of event connection system and method for intelligence contract, by being transmitted between intelligent contract and the first intelligent contract for receiving event in the event of transmission event, increase event agent's intelligence contract with interface function, offer event transmits intelligent contract and transmits event with interface function, and event agent's intelligence contract address is transmitted by the proxy function of the first intelligent contract, event agent's intelligence contract is set as with the permission for executing the first intelligent contract, therefore, when the event of design transmits intelligent contract, the content of the first intelligent contract need not be learnt in advance, and it can make to send and receive event completion in the same block (Block) of block chain, the intelligent design flexibility of contract and the technical effect of transaction security are improved to reach.
Description
Technical field
The present invention relates to a kind of events to connect system and method, the especially event in the intelligent contract of block chain environment
Connect system and method.
Background technique
In recent years, with universal and booming, the various applications based on block chain just spring after such as rain of block chain technology
Appearance as bamboo shoot, wherein attracted most attention with intelligent contract (Smart Contract).
In general, the intelligent contract on block chain is exactly the computer journey for including parameter state and function (Function)
Sequence, when application software is needed using multiple intelligent contracts, these intelligent contracts must using event (Event) series winding (or
For connection), in actual implementation, new transaction can be initiated again after receiving event by client-side program (such as: web3.js) and is produced
Raw series winding, or intelligent treaty content is modified, so that intelligent contract is directly called another intelligent contract.However, the former receives thing
The mode for initiating new transaction after part again will lead to event and be completed from transaction in different blocks, and client is not being had
In the case that event occurs, the transaction that just will do it after event occurs, or because visitor are directly driven using client-side program
The delay of family end leads to timeliness just driving transaction later, and then the problem of derivative safety;It is directly exhaled as the latter by intelligent contract
It is the mode of another intelligent contract, it is necessary to learn called intelligent treaty content in advance, and once intelligent contract publication exists
Interaction logic on block chain, between the intelligent contract of newly-increased or removal of just having no idea, that is to say, that can not increase newly or remove both
Have in such a way that function call exchanges information, cause to lack flexibility, therefore there is the design flexibility and transaction peace of intelligent contract
The bad problem of full property.
In summary, it is known that always exist the design flexibility and transaction security of intelligent contract for a long time in the prior art
The bad problem of property, it is therefore necessary to improved technological means is proposed, to solve the problems, such as this.
Summary of the invention
The present invention illustrates a kind of event connection system and method for intelligent contract.
Firstly, the present invention illustrates a kind of event connection system of intelligent contract, this system includes: initial module, connection mould
Block, transaction modules and execution module.Wherein, initial module transmits intelligent contract, first at the beginning, to issue event in advance
Intelligent contract and event agent's intelligence contract are to block chain, wherein event agent's intelligence contract has event agent's intelligence
Contract address, and include interface function to allow the event to transmit intelligent contract transmission event;Link block is to execute
Event transmits the registration function of intelligent contract, and when the address of registration function transmitting is event agent's intelligence contract address,
Setting event transmits intelligent contract by interface function transmission event to event agent's intelligence contract, and executes the first intelligence and close
Proxy function about, and the event agent's intelligence contract address transmitted according to this proxy function, close event agent intelligently
About there is the permission for executing the first intelligent contract;Transaction modules transmit intelligent contract when executing transaction, to execute event
Function is sent, and executes transaction content, by taking digital cash as an example, transaction content can be that number of transaction is sent to debit address,
And it is intelligently closed via event of the interface function transmitting comprising originating party address, debit address and number of transaction to the event agent
About;Execution module is to execute the first intelligence according to the event received and close after event agent's intelligence contract receives event
The first transaction function in about.
In addition, the present invention illustrates a kind of event connection method of intelligent contract, step includes: at the beginning, to send out in advance
Cloth event transmits intelligent contract, the first intelligent contract and event agent's intelligence contract to block chain, wherein event agent's intelligence
Energy contract has event agent's intelligence contract address, and includes interface function to allow event to transmit intelligent contract transmission thing
Part;Execution event transmits the registration function of intelligent contract, and when the address of registration function transmitting is event agent's intelligence contract
When address, setting event transmits intelligent contract by this interface function transmission event to event agent's intelligence contract, and executes
The proxy function of first intelligent contract, and the event agent's intelligence contract address transmitted according to this proxy function, make event
Acting on behalf of intelligent contract has the permission for executing the first intelligent contract;When executing transaction, the event that executes transmits the hair of intelligent contract
Function is sent, number of transaction is sent to debit address, and include originating party address, debit address and friendship via interface function transmitting
The event of easy quantity is to event agent's intelligence contract;After event agent's intelligence contract receives event, according to the thing received
Part executes the first transaction function in the first intelligent contract.
System and method for illustrated by the present invention is as above, is that the present invention is by transmission thing with the difference of the prior art
The event of part is transmitted between intelligent contract and the first intelligent contract of reception event, and event agent's intelligence with interface function is increased
Energy contract, the event that provides transmits intelligent contract and transmits event with interface function, and passes through the proxy function of the first intelligent contract
Event agent's intelligence contract address is transmitted, event agent's intelligence contract is set as with the permission for executing the first intelligent contract,
Therefore, when the event of design transmits intelligent contract, without learning the content of the first intelligent contract in advance, and can make to send with
Reception event is completed in the same block of block chain.
By above-mentioned technological means, the present invention can reach the design flexibility and transaction security for improving intelligent contract
Technical effect.
Detailed description of the invention
Fig. 1 is that the event of the intelligent contract of the present invention connects the system block diagram of system.
Fig. 2 is the method flow diagram of the event connection method of the intelligent contract of the present invention.
Fig. 3 is the schematic diagram using the present invention in the situation for renting room.
Fig. 4 is the schematic diagram that the data flow of intelligent contract is connected using the present invention.
Fig. 5 is the schematic diagram using present invention connection multilayer event agent intelligence contract.
[reference signs list]
110 initial modules
120 link blocks
130 transaction modules
140 execution modules
311,312 source code
410 events transmit intelligent contract
420 event agent's intelligence contracts
430 first intelligent contracts
The intelligent contract of 440a~440n second
510 father's event agent's intelligence contracts
511, intelligent contract is acted on behalf of in 512 subevents
521 rent book intelligence contract
522 rent room intelligence contract
523 insure intelligent contract
Specific embodiment
Carry out the embodiment that the present invention will be described in detail below in conjunction with schema and embodiment, how the present invention is applied whereby
Technological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
Before the event for illustrating intelligent contract illustrated by the present invention connects system and method, first the present invention is answered
Environment explains, and the present invention is the block chain environment applied having intelligent contract, and the intelligence contract refers to according to both
The information of fixed condition and transmission drives the computer program executed instruction, and in actual implementation, the intelligence contract passes through journey
Sequence language, such as: Solidity, Serpent, LLL, EtherScript, Sidechain write, may include it is various not
With function, parameter state etc., by taking block chain program " Ethereum " as an example, intelligent contract be it is compiled after obtain two into
System coding and Application Binary Interface (Application Binary Interface, ABI), so as to by intelligent contract broadcast to
Intelligent contract is put block chain and obtains corresponding address by block chain network, waiting miner (Miner).It later, can basis
This address executes corresponding intelligent contract, changes state of the intelligent contract on block chain by different instructions.
In addition, the of the present invention first intelligent contract, the second intelligent contract and third intelligence contract be not merely to
It is substantially exactly the intelligent contract on block chain with the noun distinguishing intelligent contract in embodiment and defining.For example, first
It is used when an intelligent contract that intelligent contract is that event agent's intelligence contract only executes;Second intelligent contract is event agent's intelligence
Contract also additionally executes used when other intelligent contracts other than the first intelligent contract;Third intelligence contract is then series winding multilayer
Event agent's intelligence contract when it is used.
Cooperation schema is described further the event connection system and method for intelligent contract of the invention below, please first joins
Fig. 1 is read, Fig. 1 is that the event of the intelligent contract of the present invention connects the system block diagram of system, this system includes: initial module 110 connects
Connection module 120, transaction modules 130 and execution module 140.Wherein, initial module 110 at the beginning, to issue event in advance
Intelligent contract, the first intelligent contract (such as: renting room intelligence contract) and event agent's intelligence contract are transmitted to block chain, the thing
Part, which acts on behalf of intelligent contract, has event agent's intelligence contract address, and includes interface function to allow event to transmit intelligent contract
Transmission event.In actual implementation, the event transmits intelligent contract and refers to the intelligent contract that can transmit event (Event), such as:
Application program intelligence contract, digital cash intelligence contract etc., for example, digital cash intelligence contract be to digital cash into
The intelligent contract of row processing, comprising setting publisher's permission of digital cash, limiting and only issue digital cash, verifying by publisher
The processing such as digital cash publisher and transmission digital cash, wherein including by submitting when sending digital cash: originating party address,
The event of debit address and number of transaction.Described first intelligent contract is another intelligent contract on block chain, such as: rent room
Intelligent contract, intelligent contract of hiring a car, rent book intelligence contract etc..It is then via interface letter as event agent's intelligence contract
Number receives the event that intelligent contract is transmitted from event, and has the permission that the first intelligent contract is executed according to this event.It is special
Not it is noted that initial module 110 at the beginning, can also issue the second intelligent contract (such as: renting room and insure intelligent contract)
It is held respectively so that execution module 140 is after event agent's intelligence contract receives event according to the event received in block chain
The first transaction function (such as: renting room function) in the intelligent contract of row first, and execute in the described second intelligent contract the
Two transaction functions (such as: purchase insurance function), these transaction function stands the programmed logic of transaction content.In addition, in reality
On border is implemented, event agent's intelligence contract can also execute the corresponding second intelligent contract according to different debit addresses, later will
Cooperation schema elaborates to this part.
Link block 120 transmits the registration function of intelligent contract to execute event, and when the ground of registration function transmitting
When location is event agent's intelligence contract address, setting event transmits intelligent contract and transmits event to event agent by interface function
Intelligent contract, and the proxy function of the first intelligent contract is executed, and intelligently close according to the event agent that this proxy function is transmitted
About address makes event agent's intelligence contract have the permission for executing the first intelligent contract.In actual implementation, when registration function passes
The address passed be preset value (such as: when 0x0), remove the connection that event transmits intelligent contract and event agent's contract, work as transmitting
Address be event agent's contract address (such as: when 0x4d9e6d999e113b52ce96aee86a42f3279c115a73),
The parameter of event agent's contract address write-in declaration is referred to as to register, at this point, establishing event transmits intelligent contract and thing
The connection of part correspondent contract.The connection refers to enables indirect relevant different intelligent contract to transmit letter by function call
Breath, for example, event transmits intelligent contract and gives event agent's contract by interface function transmitting event, and event agent's contract
Then by the proxy function of the first intelligent contract, event agent's intelligence contract address is passed into the first intelligent contract, to incite somebody to action
Event agent's intelligence contract address is set as agent, or when the first intelligent contract is to rent room intelligence contract, event
Originating party address is set as tenant (tenant) by correspondent contract by the rent room function of the first intelligent contract, and can be according to block when
Stamp (Block Time Stamp) is set at the beginning of tenant charters and the end time.
Transaction modules 130 transmit the transmission function of intelligent contract when executing transaction, to execute event, such as: in thing
When the intelligent contract of part transmitting is digital cash intelligence contract, hair money address is treated as in the originating party address, the debit address is treated as
Gathering address and the number of transaction treat as transaction amount, and transaction amount can be sent to gathering address by executing transmission function,
And include via interface function transmitting: the event of hair money address, gathering address and transaction amount to event agent's intelligence contract.
In actual implementation, transaction modules 130 can first judge whether the remaining sum for sending out money address is less than transaction amount, if so, returning not
It executes transaction and does not also transmit event, if it is not, the remaining sum for sending out money address is then subtracted transaction amount, and by the remaining sum for address of collecting money
In addition transaction amount, then transmits event again.
Execution module 140 executes the to after event agent's intelligence contract receives event, according to the event received
The first transaction function in one intelligent contract.In actual implementation, the first intelligent contract only allows agent and owner to execute,
It passes through address to determine whether being agent or owner.Due in link block 120, having passed through the first intelligent contract
Proxy function transmit event agent's intelligence contract address, event agent's intelligence contract address is set as acting on behalf of by this mode
People hands over so the first intelligent contract allows event agent's intelligence contract to execute first in the first intelligent contract according to the event
Easy function.Assuming that the first intelligent contract is to rent room intelligence contract, it includes the first transaction function may include: rent room function, move back
Room function etc..
Then, referring to Fig. 2, Fig. 2 is the method flow diagram of the event connection method of the intelligent contract of the present invention, step packet
It includes: at the beginning, preparatory publication event transmitting intelligence contract, the first intelligent contract and event agent's intelligence contract to block chain,
Wherein, event agent's intelligence contract has event agent's intelligence contract address, and includes interface function to allow event to transmit
Intelligent contract transmits event (step 210);Execution event transmits the registration function of intelligent contract, and when registration function transmitting
When address is event agent's intelligence contract address, setting event transmits intelligent contract and transmits event to event generation by interface function
Reason energy contract, and the proxy function of the first intelligent contract is executed, and intelligently close according to the event agent that proxy function is transmitted
About address makes event agent's intelligence contract have the permission (step 220) for executing the first intelligent contract;When executing transaction, hold
The transmission function that part transmits intelligent contract is acted, number of transaction is sent to debit address, and transmit and wrap via interface function
The event of address containing originating party, debit address and number of transaction is to event agent's intelligence contract (step 230);In event agent's intelligence
After contract receives event, the first transaction function (step 240) in the first intelligent contract is executed according to the event received.It is logical
Cross above-mentioned steps, can by being transmitted between intelligent contract and the first intelligent contract for receiving event in the event of transmission event,
Increasing event agent's intelligence contract with interface function, the event that provides transmits intelligent contract and transmits event with interface function, with
And event agent's intelligence contract address is transmitted by the proxy function of the first intelligent contract, event agent's intelligence contract is set as
Therefore permission with the intelligent contract of execution first when the event of design transmits intelligent contract, learns the first intelligence without preparatory
The content of contract, and can make to send and receive event and be completed in the same block of block chain.
Cooperation Fig. 3 to Fig. 5 is carried out as described below by way of examples below, is please using this hair referring initially to Fig. 3, Fig. 3
The bright schematic diagram in the situation for renting room.Assuming that the first intelligent contract is to rent room intelligence contract, if wanting under the situation for renting room
It buys again and rents room insurance, then the second intelligent contract is and rents room to insure intelligent contract.Described first intelligent contract and the second intelligence
Contract can pass through source code (311,312) Lai Shixian as schematically shown in Figure 3.At the beginning, event can be transmitted intelligent contract,
First intelligent contract, event agent's intelligence contract and the second intelligent contract publication are in block chain, wherein publication event agent's intelligence
Contract can obtain event and transmit intelligent contract entity, so as to time call registration function, such as " registerEventProxy " and band
Enter an address, when this address is event agent's intelligence contract address, that is, represents registered events and act on behalf of intelligent contract.Then,
The first intelligent contract entity is obtained, so as to Call Agent function " setDelegate " and brings event agent's intelligence contract address into,
So that event agent's intelligence contract is set as agent, that is to say, that event agent's intelligence contract, which has, executes first intelligence
The permission of energy contract.Next, from originating party address (hair money side;Tenant) transaction of block chain is sent, it sends and rents the room amount of money to debit
Address (beneficiary;House owner), and after event agent's intelligence contract receives the event that event transmits intelligent contract transmission, according to connecing
This event for receiving executes the first transaction function in the first intelligent contract, rents room insurance if to buy again, then executes the again
The second transaction function in two intelligent contracts, by taking the situation for renting room as an example, the first transaction function is to rent room function " rent ";The
Two transaction functions are to buy insurance function " RentalHomeInsurance ".In the example for renting room situation, in addition to executing the
Except the second transaction function in two intelligent contracts, the entity on behalf purchase insurance that can also increase one second intelligent contract newly is closed
About, and the constructor (Constructor) in the second intelligent contract is executed to change its parameter state.If in this way,
Want extended function or practice other situations (such as: renting book, hire a car etc.), it is only necessary to establish corresponding event agent's intelligence contract and
First intelligent contract, and new event agent's intelligence contract address strap incoming event is transmitted intelligent contract by time call registration function,
So that event is transmitted intelligent contract and be directed toward new event agent's intelligence contract, for example, assuming that the block for being 100 in number, former
Originally practice of event agent's intelligence contract on address " 0x0001 " is used.But the version of later event agent's intelligence contract
This upgrading, therefore the block for being 150 in number issues new version, obtained new address is " 0x0002 ", can at this time be led to
Registration function is crossed to register new event agent's intelligence contract, it is assumed that block chain caused by registration function, which is traded in number, is
Block chain is included into when 160 block, then event agent's intelligence contract, in the block that number is 160, address quilt dynamic is more
It is newly " 0x0002 " in other words, to pass through the variable event agent's intelligence contract being more directed to of registration function.
As schematically shown in Figure 4, Fig. 4 is the schematic diagram that the data flow of intelligent contract is connected using the present invention.Firstly, on Fig. 4
Fang Chengxian most basic connection type, it may be assumed that event transmitting intelligence and about 410, event agent intelligence and about 420 and the first intelligence are closed
About 430.Wherein, event transmitting intelligence and about 410 via event agent intelligence and about 420 interface function (such as:
It proxySentEvent), is digital goods with event transmitting intelligence and about 410 by event transmission to event agent's intelligence and about 420
For coin intelligence contract, hair money address, the gathering data such as address and transaction amount to event agent's intelligence and about 420 will be brought into;
Event agent's intelligence and about 420 the first intelligence of calling and about 430 functions, to change the first intelligence and about 430 corresponding each
Parameter state.Especially it is noted that in different use situations, with different event agent's intelligence and about 420 and first
Intelligence and about 430, for example, in the case where renting room situation, event agent's intelligence and about 420 practices " renting room " and " purchase is insured "
Logic, the first intelligence rent room intelligence contract with about 430, provide and rent room function (such as: rent) for calling and changing rent
The parameter state of room intelligence contract, for example, changing the parameter states such as tenant address, time started and end time.In reality
In implementation, event agent's intelligence and about 420 is succession (Inheritance) one only with the intelligent contract of interface function, and
And to override former interface function based on the interface function of different setting designings, and then generate event agent's intelligence of corresponding different situations
It can be with about 420.
Then, event agent's intelligence and about 420 is then presented below Fig. 4 can be performed simultaneously multiple intelligent contracts (that is: the
One intelligence and about 430 and second intelligence and about 440a~440n) connection type, in actual implementation, it is assumed that second intelligence close
About 440a is to rent room to insure intelligent contract, and event agent's intelligence and about 420 can pass through instruction " new
RentalHomeInsurance () " generates new intelligent contract entity.In addition, it is previously noted that event agent's intelligence contract also
The corresponding second intelligent contract can be executed according to different debit addresses.By taking the connection type below Fig. 4 as an example, it is assumed that debit
Location is " 0x00001 ", executes the second intelligence and about 440a;Assuming that debit address is " 0x00002 ", the second intelligent contract is executed
440b, and so on, it can be performed to the second intelligence and about 440n.In other words, event agent's intelligence contract can be according to difference
Payee define different event handling logics.
As schematically shown in Figure 5, Fig. 5 is the schematic diagram using present invention connection multilayer event agent intelligence contract.In practical reality
Shi Shang, event agent's intelligence contract may include father event agent intelligence and about 510 and subevent act on behalf of intelligent contract (511,
512), the father event agent intelligence and about 510 receives the event that event transmits intelligence and about 410 transmission by interface function,
Each subevent acts on behalf of intelligent contract (511,512) and is inherited from father event agent intelligence and about 510, and corresponding with executing
The permission of third intelligence contract (such as: renting book intelligence contract, rent room intelligence contract and insure intelligent contract etc.) is with Fig. 5
Example, subevent agency's intelligence and about 511 have the permission for executing and renting book intelligence and about 521;Subevent agency's intelligence and about 512 tools
Have execute rent room intelligence and about 522 and insurance intelligence and about 523 permissions, similarly, these third intelligence contracts are equally respective
With corresponding proxy function, to transmit the address that intelligent contract (511,512) is acted on behalf of in subevent, close subevent agency's intelligence
About (511,512) have the permission for executing third intelligence contract.
In summary, it is known that the difference between the present invention and the prior art is by transmitting intelligence in the event of transmission event
It can increase event agent's intelligence contract with interface function between contract and the first intelligent contract of reception event, thing is provided
Part transmits intelligent contract and transmits event with interface function, and transmits event agent's intelligence by the proxy function of the first intelligent contract
Event agent's intelligence contract is set as with the permission for executing the first intelligent contract, therefore, in design event by energy contract address
When transmitting intelligent contract, without learning the content of the first intelligent contract in advance, and it can make to send and receive event in block
It is completed in the same block of chain, can solve the problems of prior art by this technological means, and then reach raising
The design flexibility of intelligent contract and the technical effect of transaction security.
Although as above with embodiment above-mentioned explanation, however, it is not to limit the invention, any institute of the present invention by the present invention
Belong to those skilled in the art, without departing from the spirit and scope of the present invention, when can make some changes and embellishment, because
This scope of patent protection of the invention must regard subject to this specification scope of which is defined in the appended claims.
Claims (10)
1. a kind of event of intelligence contract connects system, which includes:
Initial module transmits intelligent contract, the first intelligent contract and event agent's intelligence at the beginning, to issue event in advance
Contract is to block chain, which is characterized in that event agent's intelligence contract has event agent's intelligence contract address, and includes to connect
Mouth function is to allow the event to transmit intelligent contract transmission event;
Link block transmits the registration function of intelligent contract to execute the event, and when the address of registration function transmitting
When for the event agent intelligence contract address, set the event transmit intelligent contract by the interface function transmit the event to this
Event agent's intelligence contract, and the proxy function of the first intelligent contract is executed, and the thing transmitted according to the proxy function
Part acts on behalf of intelligent contract address, and event agent's intelligence contract is made to have the permission for executing the first intelligent contract;
Transaction modules transmit the transmission function of intelligent contract when executing transaction, to execute the event, number of transaction are sent
It to debit address, and include the event of originating party address, the debit address and the number of transaction via interface function transmitting
To event agent's intelligence contract;And
Execution module, to after event agent's intelligence contract receives the event, being executed according to the event received should
At least one first transaction function in first intelligent contract.
2. the event of intelligence contract according to claim 1 connects system, which is characterized in that when the address is preset value,
The connection that the event transmits intelligence contract and event agent's contract is removed to build when the address is the event agent contract address
Stand the connection that the event transmits intelligent contract and event agent's contract.
3. the event of intelligence contract according to claim 1 connects system, which is characterized in that the initial module is initial
When, at least one second intelligent contract is also issued in the block chain, which receives this in event agent's intelligence contract
After event, the first transaction function in the first intelligent contract is executed according to the event received respectively, and execute
At least one second transaction function in described second intelligent contract.
4. the event of intelligence contract according to claim 3 connects system, which is characterized in that event agent's intelligence contract
The corresponding described second intelligent contract is executed according to the different debit addresses.
5. the event of intelligence contract according to claim 1 connects system, which is characterized in that event agent's intelligence contract
Intelligent contract is acted on behalf of comprising father's event agent's intelligence contract and an at least subevent, which is connect by this
Mouth function receives the event that the event transmits intelligent contract transmission, and each subevent acts on behalf of intelligence contract and is inherited from father's event
Intelligent contract is acted on behalf of, and there is the permission for executing an at least third intelligence contract.
6. a kind of event connection method of intelligence contract, step include:
At the beginning, publication event transmits intelligent contract, the first intelligent contract and event agent's intelligence contract to block chain in advance,
It it is characterized in that, event agent's intelligence contract has event agent's intelligence contract address, and include interface function to allow
The event transmits intelligent contract and transmits event;
The registration function that the event transmits intelligent contract is executed, and when the address of registration function transmitting is event agent's intelligence
Can contract address when, set the event and transmit intelligent contract the event is transmitted by the interface function and intelligently close to the event agent
About, the proxy function of the first intelligent contract, and the event agent's intelligence contract transmitted according to the proxy function are executed and
Address makes event agent's intelligence contract have the permission for executing the first intelligent contract;
When executing transaction, the transmission function that the event transmits intelligent contract is executed, number of transaction is sent to debit address, and
And via the event of interface function transmitting comprising originating party address, the debit address and the number of transaction to event agent's intelligence
It can contract;And
After event agent's intelligence contract receives the event, executed in the first intelligent contract according to the event received
At least one first transaction function.
7. the event connection method of intelligence contract according to claim 6, which is characterized in that when the address is preset value,
The connection that the event transmits intelligence contract and event agent's contract is removed to build when the address is the event agent contract address
Stand the connection that the event transmits intelligent contract and event agent's contract.
8. the event connection method of intelligence contract according to claim 6, which is characterized in that this method at the beginning, is gone back
The intelligent contract of publication at least one second is in the block chain, after event agent's intelligence contract receives the event, according to reception
To the event execute the first transaction function in the first intelligent contract respectively, and execute the described second intelligent contract
In at least one second transaction function.
9. the event connection method of intelligence contract according to claim 8, which is characterized in that event agent's intelligence contract
The corresponding described second intelligent contract is executed according to the different debit addresses.
10. the event connection method of intelligence contract according to claim 6, which is characterized in that the event agent intelligently closes
Intelligent contract about is acted on behalf of comprising father event agent intelligence contract and an at least subevent, father's event agent's intelligence contract is by being somebody's turn to do
Interface function receives the event that the event transmits intelligent contract transmission, and each subevent acts on behalf of intelligent contract and is inherited from father's thing
Part acts on behalf of intelligent contract, and has the permission for executing an at least third intelligence contract.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461269.XA CN109978687B (en) | 2017-12-28 | 2017-12-28 | Event connection system and method of intelligent contract |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461269.XA CN109978687B (en) | 2017-12-28 | 2017-12-28 | Event connection system and method of intelligent contract |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109978687A true CN109978687A (en) | 2019-07-05 |
CN109978687B CN109978687B (en) | 2022-12-27 |
Family
ID=67074882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711461269.XA Active CN109978687B (en) | 2017-12-28 | 2017-12-28 | Event connection system and method of intelligent contract |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109978687B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110580411A (en) * | 2019-11-08 | 2019-12-17 | 支付宝(杭州)信息技术有限公司 | permission query configuration method and device based on intelligent contract |
WO2021035791A1 (en) * | 2019-08-29 | 2021-03-04 | 上海威尔立杰网络科技发展有限公司 | Method for controlling other systems on the basis of single-point execution contract |
CN112650978A (en) * | 2020-08-14 | 2021-04-13 | 支付宝(杭州)信息技术有限公司 | Infringement detection method and device based on block chain and electronic equipment |
Citations (6)
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 |
CN107038242A (en) * | 2017-04-24 | 2017-08-11 | 杭州趣链科技有限公司 | It is a kind of towards the global intelligent contract business datum analytic method of block chain |
US20170287068A1 (en) * | 2016-03-31 | 2017-10-05 | Thomson Reuters Global Resources Unlimited Company | Systems and methods for providing financial data to financial instruments in a distributed ledger system |
CN107423945A (en) * | 2017-04-13 | 2017-12-01 | 葛武 | Intelligent energy trade managing system and method based on block chain technology |
US20170353309A1 (en) * | 2016-06-06 | 2017-12-07 | Microsoft Technology Licensing, Llc | Cryptographic applications for a blockchain system |
CN107507005A (en) * | 2017-08-01 | 2017-12-22 | 众安信息技术服务有限公司 | Data access method and system outside a kind of chain based on alliance's chain |
-
2017
- 2017-12-28 CN CN201711461269.XA patent/CN109978687B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170287068A1 (en) * | 2016-03-31 | 2017-10-05 | Thomson Reuters Global Resources Unlimited Company | Systems and methods for providing financial data to financial instruments in a distributed ledger system |
US20170353309A1 (en) * | 2016-06-06 | 2017-12-07 | Microsoft Technology Licensing, Llc | Cryptographic applications for a blockchain system |
CN105976231A (en) * | 2016-06-24 | 2016-09-28 | 深圳前海微众银行股份有限公司 | Asset management method based on intelligent block chain contracts and nodes |
CN107423945A (en) * | 2017-04-13 | 2017-12-01 | 葛武 | Intelligent energy trade managing system and method based on block chain technology |
CN107038242A (en) * | 2017-04-24 | 2017-08-11 | 杭州趣链科技有限公司 | It is a kind of towards the global intelligent contract business datum analytic method of block chain |
CN107507005A (en) * | 2017-08-01 | 2017-12-22 | 众安信息技术服务有限公司 | Data access method and system outside a kind of chain based on alliance's chain |
Non-Patent Citations (2)
Title |
---|
ŽIGA TURK等: "Potentials of Blockchain Technology for Construction Management", 《SCIENCEDIRECT》 * |
李智健: "区块链技术和智能合同在未来经济中企业联盟的应用", 《当代经济》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021035791A1 (en) * | 2019-08-29 | 2021-03-04 | 上海威尔立杰网络科技发展有限公司 | Method for controlling other systems on the basis of single-point execution contract |
US11537473B2 (en) | 2019-08-29 | 2022-12-27 | Shanghai Weierlijie Network Technology Development Co., Ltd. | Method for controlling other systems based on single-point execution contract |
CN110580411A (en) * | 2019-11-08 | 2019-12-17 | 支付宝(杭州)信息技术有限公司 | permission query configuration method and device based on intelligent contract |
WO2021088543A1 (en) * | 2019-11-08 | 2021-05-14 | 蚂蚁区块链科技(上海)有限公司 | Smart contract-based permission query configuration method and apparatus |
CN112650978A (en) * | 2020-08-14 | 2021-04-13 | 支付宝(杭州)信息技术有限公司 | Infringement detection method and device based on block chain and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109978687B (en) | 2022-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109978687A (en) | The event of intelligent contract connects system and method | |
CN107909475B (en) | Cross-chain transaction between different license chains | |
WO2004051399A3 (en) | Quality control for loan processing | |
CN104680363A (en) | Method and system for synchronous split payment transaction management | |
CN109785134B (en) | Management system and method for realizing stock exchange by block chain | |
CN109064168A (en) | Authority control method, device and computer readable storage medium based on block chain | |
CN111062805A (en) | Supply chain financial service management platform | |
CN109472699B (en) | Automatic artificial intelligence data sharing method and device based on block chain | |
CN107749930A (en) | It is the call processing method and server that main called party binds virtual-number respectively | |
CN111798308B (en) | Comprehensive decision platform based on decision engine and method for scheduling data source by comprehensive decision platform | |
CN109146401A (en) | Finishing service transacting method, system, equipment and medium based on block chain technology | |
CN109559219A (en) | A kind of loan fund monitoring method and device | |
CN108229925A (en) | The data matching method and system of electronic receipt | |
CN105488925A (en) | Multifunctional mobile POS machine and application method thereof | |
CN112734425A (en) | Identification method for phishing users in Ether house platform | |
CN106096958A (en) | A kind of IC-card unbinds method with bank card | |
CN109919414A (en) | P2P network loan platform risk analysis method, device and storage medium | |
CN109801131A (en) | Credit system data processing method and credit system data processing system | |
CN111666345A (en) | Financial derivative transaction information sharing method, distributed system and electronic terminal | |
CN114626938A (en) | Intelligent decision engine, decision system and decision method | |
CN104361519B (en) | A kind of implementation method of social networking service platform and social networking service platform | |
Botterman et al. | Standardization Issues | |
CN112101915A (en) | Financial service management and control data processing method and device | |
CN113689190A (en) | Small and micro financial loan approval process matching method and device | |
US8620787B2 (en) | Processor-based systems and computer-implemented methods for identification, sourcing, and acquisition of distressed debt |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40007525 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |