CN109978687B - Event connection system and method of intelligent contract - Google Patents

Event connection system and method of intelligent contract Download PDF

Info

Publication number
CN109978687B
CN109978687B CN201711461269.XA CN201711461269A CN109978687B CN 109978687 B CN109978687 B CN 109978687B CN 201711461269 A CN201711461269 A CN 201711461269A CN 109978687 B CN109978687 B CN 109978687B
Authority
CN
China
Prior art keywords
event
intelligent contract
agent
address
contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711461269.XA
Other languages
Chinese (zh)
Other versions
CN109978687A (en
Inventor
林祐德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Modernity Financial Holdings Ltd
Original Assignee
Modernity Financial Holdings 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 Modernity Financial Holdings Ltd filed Critical Modernity Financial Holdings Ltd
Priority to CN201711461269.XA priority Critical patent/CN109978687B/en
Publication of CN109978687A publication Critical patent/CN109978687A/en
Application granted granted Critical
Publication of CN109978687B publication Critical patent/CN109978687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

An event connection system of intelligent contract and method thereof, by adding event agent intelligent contract with interface function between event transfer intelligent contract of transmission event and first intelligent contract of receiving event, providing event transfer intelligent contract to transmit event with interface function, and transferring event agent intelligent contract address through agent function of first intelligent contract, setting event agent intelligent contract as having authority to execute first intelligent contract, therefore, when designing event transfer intelligent contract, it need not know content of first intelligent contract in advance, and can make transmission and receiving event complete in same Block (Block) of Block chain, to achieve technical effect of improving design flexibility and transaction security of intelligent contract.

Description

Event connection system and method of intelligent contract
Technical Field
The present invention relates to an event linking system and method, and more particularly, to an event linking system and method for an intelligent contract in a block link environment.
Background
In recent years, with the popularization and vigorous development of the blockchain technology, various applications based on blockchains appear like bamboo shoots in the spring after rain, and the Smart Contract (Smart Contract) is the most spotlighted.
Generally, an intelligent contract on a blockchain is a computer program containing variable states and functions (functions), when an application needs to use multiple intelligent contracts, the intelligent contracts must be linked (or called connected) in series by using events (events), in actual implementation, a client program (e.g. web3. Js) can initiate a new transaction after receiving an Event to generate a series connection, or modify the content of the intelligent contract, so that the intelligent contract directly calls another intelligent contract. However, the former method of issuing a new transaction after receiving an event can cause the event and the transaction to be completed in different blocks, so that the client can directly drive the transaction after the event occurs by using a client program under the condition that no event occurs, or drive the transaction after the time lapse due to the delay of the client, thereby deriving the problem of security; as for the latter method of directly calling another intelligent contract from the intelligent contract, the content of the called intelligent contract must be known in advance, and once the intelligent contract is issued on the block chain, there is no way to add or remove the interactive logic between the intelligent contracts, that is, there is no way to add or remove the existing method of exchanging information through function call, which results in lack of flexibility, and thus there are problems of design flexibility of the intelligent contract and poor transaction security.
In summary, it is known that the prior art has a problem of poor design flexibility and transaction security of the smart contract for a long time, and therefore, it is necessary to provide an improved technical means to solve the problem.
Disclosure of Invention
The invention discloses an event connection system and method of an intelligent contract.
First, the present invention describes an event connection system for an intelligent contract, the system comprising: the system comprises an initial module, a connection module, a transaction module and an execution module. The system comprises an initialization module, a block chain module and a block chain module, wherein the initialization module is used for issuing an event transfer intelligent contract, a first intelligent contract and an event agent intelligent contract to the block chain in advance at the initialization time, the event agent intelligent contract has an event agent intelligent contract address and comprises an interface function for allowing the event transfer intelligent contract to transmit an event; the connection module is used for executing a registration function of the event transfer intelligent contract, setting the event transfer intelligent contract to transmit an event to the event agent intelligent contract through the interface function when the address transferred by the registration function is the address of the event agent intelligent contract, executing the agent function of the first intelligent contract, and enabling the event agent intelligent contract to have the authority of executing the first intelligent contract according to the address of the event agent intelligent contract transferred by the agent function; the transaction module is used for executing a sending function of the event transfer intelligent contract and executing transaction content when executing transaction, wherein the transaction content can be used for sending transaction amount to a receiving party address by taking digital currency as an example and transferring an event containing the sending party address, the receiving party address and the transaction amount to the event agent intelligent contract through an interface function; the execution module is used for executing a first transaction function in a first intelligent contract according to the received event after the event agent intelligent contract receives the event.
In addition, the invention discloses an event connection method of an intelligent contract, which comprises the following steps: at the beginning, issuing an event transfer intelligent contract, a first intelligent contract and an event agent intelligent contract to a block chain in advance, wherein the event agent intelligent contract has an event agent intelligent contract address and comprises an interface function to allow the event transfer intelligent contract to transmit an event; executing a registration function of the event transfer intelligent contract, setting the event transfer intelligent contract to transmit an event to the event agent intelligent contract through the interface function when the address transferred by the registration function is the address of the event agent intelligent contract, executing the agent function of the first intelligent contract, and enabling the event agent intelligent contract to have the authority of executing the first intelligent contract according to the address of the event agent intelligent contract transferred by the agent function; when executing transaction, executing a sending function of the event transfer intelligent contract, sending the transaction quantity to the receiving party address, and transferring the event containing the sending party address, the receiving party address and the transaction quantity to the event agent intelligent contract through the interface function; after the event agent intelligent contract receives the event, a first transaction function in the first intelligent contract is executed according to the received event.
The system and the method described in the present invention are different from the prior art in that the present invention adds an event agent intelligent contract with an interface function between an event transfer intelligent contract for transferring an event and a first intelligent contract for receiving an event, provides the event transfer intelligent contract to transfer the event by the interface function, and transfers an event agent intelligent contract address by the agent function of the first intelligent contract, and sets the event agent intelligent contract to have the authority for executing the first intelligent contract, so that when designing the event transfer intelligent contract, the content of the first intelligent contract does not need to be known in advance, and the event transmission and the event reception can be completed in the same block of the block chain.
Through the technical means, the invention can achieve the technical effects of improving the design flexibility and the transaction safety of the intelligent contract.
Drawings
FIG. 1 is a system block diagram of an event linking system for an intelligent contract according to the present invention.
FIG. 2 is a method flow diagram of an event linking method for an intelligent contract in accordance with the present invention.
FIG. 3 is a diagram illustrating a situation of renting a house according to the present invention.
FIG. 4 is a schematic diagram of the data flow of a connected intelligent contract to which the present invention is applied.
FIG. 5 is a schematic diagram of connecting multiple layers of event agent intelligence contracts using the present invention.
[ List of reference numerals ]
110. Initial module
120. Connection module
130. Transaction module
140. Execution module
311. 312 original code
410. Event-passing intelligent contracts
420. Event agent intelligent contracts
430. First intelligent contract
440 a-440 n second intelligent contracts
510. Intelligent contract for father event agent
511. 512 sub-event agent intelligent contract
521. Intelligent contract for renting book
522. Intelligent contract for renting house
523. Intelligent insurance contract
Detailed Description
The embodiments of the present invention will be described in detail with reference to the drawings and examples, so that how to implement the technical means for solving the technical problems and achieving the technical effects of the present invention can be fully understood and implemented.
Before describing the event connection system and method of the intelligent contract described in the present invention, the environment applied in the present invention is described, the present invention is applied in a block link environment with an intelligent contract, the intelligent contract refers to a computer program for driving and executing instructions according to predetermined conditions and transmitted information, and in actual implementation, the intelligent contract is implemented by a programming language, such as: the intelligent contracts are compiled to obtain Binary codes and Application Binary Interfaces (ABI) so as to broadcast the intelligent contracts to the block chain network, and wait miners (miners) put the intelligent contracts on the block chains and obtain corresponding addresses. Then, the corresponding intelligent contract can be executed according to the address, and the state of the intelligent contract on the block chain can be changed by different instructions.
In addition, the first intelligent contract, the second intelligent contract and the third intelligent contract are only nouns defined for distinguishing the intelligent contracts in different embodiments, and are the intelligent contracts on the block chain in nature. For example, a first intelligent contract is used when an event agent intelligent contract executes only one intelligent contract; the second intelligent contract is used when the event agent intelligent contract additionally executes other intelligent contracts besides the first intelligent contract; the third intelligent contract is used when multiple layers of event agents are connected in series.
Referring to fig. 1, fig. 1 is a block diagram of an event connection system of an intelligent contract according to the present invention, and the system includes: an initiation module 110, a connection module 120, a transaction module 130, and an execution module 140. The initialization module 110 is configured to issue an event transfer intelligent contract, a first intelligent contract (e.g., a house renting intelligent contract) and an event agent intelligent contract to the blockchain in advance at the initial time, wherein the event agent intelligent contract has an event agent intelligent contract address and includes an interface function to allow the event transfer intelligent contract to transmit an event. In practical implementation, the Event delivery intelligent contract refers to an intelligent contract that transmits an Event (Event), such as: application smart contracts, digital currency smart contracts, and the like, for example, digital currency smart contracts are smart contracts that process digital currency, including processes that set issuer rights for digital currency, define issuance of digital currency only by an issuer, authenticate a digital currency issuer, and send digital currency, where sending digital currency includes: sender address, receiver address, and transaction amount. The first intelligent contract is another intelligent contract on the blockchain, such as: house rental smart contracts, car rental smart contracts, book rental smart contracts, and the like. The event agent intelligent contract receives the event from the event transfer intelligent contract via the interface function and has the authority to execute the first intelligent contract according to the event. In particular, the initialization module 110 may also issue a second intelligent contract (e.g., a house rental insurance intelligent contract) in the blockchain when initializing, so that the execution module 140 executes a first transaction function (e.g., a house rental function) in the first intelligent contract and a second transaction function (e.g., a purchase insurance function) in the second intelligent contract according to the received events after the event agent intelligent contract receives the events, which represent program logic of transaction contents. In addition, in actual implementation, event agent intelligent contracts may also execute corresponding second intelligent contracts according to different recipient addresses, which will be described in detail later in conjunction with the figures.
The connection module 120 is configured to execute a registration function of the event transfer intelligent contract, and when the address transferred by the registration function is the event agent intelligent contract address, set the event transfer intelligent contract to transmit the event to the event agent intelligent contract through the interface function, and execute the agent function of the first intelligent contract, and enable the event agent intelligent contract to have the authority to execute the first intelligent contract according to the event agent intelligent contract address transferred by the agent function. In practical implementation, when the address transferred by the registration function is a preset value (for example: 0x 0), the connection between the event transfer intelligent contract and the event proxy contract is removed, and when the transferred address is an event proxy contract address (for example: 0x4d9e6d999e113b52ce96aee86a42f3279c115a 73), the event proxy contract address is written into the declared variable, namely, the registration, and at this time, the connection between the event transfer intelligent contract and the event proxy contract is established. The connection refers to that different intelligent contracts which are not directly related can transmit information through function calling, for example, an event transmission intelligent contract transmits an event to an event agent contract through an interface function, the event agent contract transmits an event agent intelligent contract address to a first intelligent contract through an agent function of the first intelligent contract so as to set the event agent intelligent contract address as an agent, or when the first intelligent contract is about a house intelligent contract, the event agent contract sets a sender address as a house guest (tenant) through a house function of the first intelligent contract, and can set the start Time and the end Time of the house guest tenant according to a Block Time Stamp (Block Time Stamp).
Transaction module 130 is configured to execute the send function of an event-conveyed smart contract when executing a transaction, such as: when the event transfer intelligent contract is a digital currency intelligent contract, the sender address is considered as a sending address, the receiver address is considered as a receiving address, and the transaction amount is considered as a transaction amount, executing the sending function sends the transaction amount to the receiving address, and transferring via the interface function comprises: and sending the event of the payment sending address, the collection address and the transaction amount to an event agent intelligent contract. In practical implementation, the transaction module 130 first determines whether the balance of the payment address is less than the transaction amount, if so, returns to not execute the transaction and does not transmit the event, otherwise, subtracts the transaction amount from the balance of the payment address, adds the transaction amount to the balance of the payment address, and then transmits the event.
The execution module 140 is configured to execute a first transaction function in a first smart contract according to the received event after the event is received by the event agent smart contract. In actual implementation, the first intelligent contract only allows the agent and the owner to execute, and judges whether the agent or the owner is the agent or the owner through the address. Since the event agent intelligent contract address has been communicated by the agent function of the first intelligent contract when the module 120 is connected, by which the event agent intelligent contract address is set as an agent, the first intelligent contract allows the event agent intelligent contract to execute the first transaction function in the first intelligent contract in accordance with the event. Assuming that the first intelligent contract is a house rental intelligent contract, it includes a first transaction function that may include: house renting functions, house refunding functions, and the like.
Next, referring to fig. 2, fig. 2 is a flowchart of a method for connecting events of an intelligent contract according to the present invention, which includes the steps of: at an initial time, pre-issuing an event delivery intelligent contract, a first intelligent contract and an event agent intelligent contract to a blockchain, wherein the event agent intelligent contract has an event agent intelligent contract address and includes an interface function to allow the event delivery intelligent contract to transmit an event (step 210); executing a registration function of the event transfer intelligent contract, setting the event transfer intelligent contract to transmit the event to the event agent intelligent contract through the interface function and executing the agent function of the first intelligent contract when the address transferred by the registration function is the address of the event agent intelligent contract, and enabling the event agent intelligent contract to have the authority of executing the first intelligent contract according to the address of the event agent intelligent contract transferred by the agent function (step 220); executing a sending function of the event transfer intelligent contract, sending the transaction amount to the receiver address, and transferring an event containing the sender address, the receiver address and the transaction amount to the event agent intelligent contract via the interface function when executing the transaction (step 230); after the event agent smart contract receives the event, a first trading function in the first smart contract is executed according to the received event (step 240). Through the steps, the event agent intelligent contract with the interface function is added between the event transfer intelligent contract for transferring the event and the first intelligent contract for receiving the event, the event transfer intelligent contract is provided to transfer the event by the interface function, and the event agent intelligent contract address is transferred by the agent function of the first intelligent contract, so that the event agent intelligent contract is set to have the authority for executing the first intelligent contract.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a situation of renting a house according to the present invention. And if house renting insurance needs to be purchased, the second intelligent contract is the house renting insurance intelligent contract. The first and second intelligent contracts may be implemented by raw code (311, 312) as illustrated in fig. 3. Initially, an event transfer intelligent contract, a first intelligent contract, an event agent intelligent contract and a second intelligent contract are issued in a blockchain, wherein issuing the event agent intelligent contract takes the event transfer intelligent contract entity to call a registration function, such as 'registerEventProxy', and brings in an address which, when the address is the event agent intelligent contract address, represents the registered event agent intelligent contract. Next, a first intelligent contract entity is retrieved to call the proxy function "setdelete" and bring it into the event proxy intelligent contract address to set the event proxy intelligent contract as a proxy, that is, the event proxy intelligent contract has the right to execute the first intelligent contract. Then, the block chain transaction is sent from the sender address (payer; tenant), the rent amount is sent to the receiver address (payee; owner), and after the event agent intelligent contract receives the event transmitted by the event transfer intelligent contract, the first transaction function in the first intelligent contract is executed according to the received event, if the rent room insurance needs to be purchased, the second transaction function in the second intelligent contract is executed, taking the situation of the rent room as an example, the first transaction function is the rent function 'percent'; the second transaction function is the purchase insurance function "RentalHomeInsurance". In the example of a rental-room scenario, in addition to executing the second transaction function in the second intelligent contract, an entity of the second intelligent contract may also be added on behalf of the purchase insurance contract and execute a Constructor (Constructor) in the second intelligent contract to change its parameter status. In this way, if the function needs to be extended or other situations (for example, renting a book, renting a car, etc.) need only to establish the corresponding event agent intelligent contract and the first intelligent contract, and the call registration function brings the new event agent intelligent contract address into the event transfer intelligent contract, so that the event transfer intelligent contract points to the new event agent intelligent contract, for example, if the block with the number of 100 originally uses the practice of the event agent intelligent contract on the address of "0x 0001". However, since the version of the event agent smart contract is upgraded later, when the block numbered 150 issues a new version, the new address is "0x0002", and at this time, the new event agent smart contract may be registered by the registration function, and if the blockchain transaction generated by the registration function is incorporated into the blockchain at the block numbered 160, the address is dynamically updated to "0x0002" at the block numbered 160, in other words, the pointed event agent smart contract may be changed by the registration function.
As illustrated in fig. 4, fig. 4 is a schematic diagram of the data flow of a connected intelligent contract to which the present invention is applied. First, the most basic connection is presented above fig. 4, namely: event delivery intelligent contract 410, event agent intelligent contract 420, and first intelligent contract 430. Event transfer intelligent contract 410 transfers events to event agent intelligent contract 420 via an interface function (such as proxySentEvent) of event agent intelligent contract 420, and data such as a payment sending address, a payment receiving address and a transaction amount are brought to event agent intelligent contract 420 by taking event transfer intelligent contract 410 as a digital currency intelligent contract example; event agent intelligent contracts 420 call a function of first intelligent contracts 430 to change the state of the respective parameters of first intelligent contracts 430. Specifically, in a different usage scenario, there are different event agent smart contracts 420 and first smart contracts 430, for example, in a house renting scenario, event agent smart contract 420 practices the logic of "house renting" and "buying insurance", and first smart contract 430 is a house renting smart contract that provides house renting functions (e.g., rents) for calling and changing the parameter status of the house renting smart contract, such as changing the parameter status of the tenant address, start time, and end time. In actual implementation, event agent intelligent contract 420 inherits (Inheritance) an intelligent contract having only interface functions, and overwrites the original interface functions with interface functions designed based on different contexts, thereby generating event agent intelligent contracts 420 corresponding to the different contexts.
Next, in the lower part of fig. 4, a connection mode is presented in which event agent smart contract 420 can execute a plurality of smart contracts (i.e., first smart contract 430 and second smart contracts 440 a-440 n) at the same time, and in actual implementation, event agent smart contract 420 may generate a new smart contract entity by instructing "new rentalhomeinstrument ()" assuming that second smart contract 440a is an house insurance smart contract. In addition, as mentioned above, the event agent intelligent contracts may also execute corresponding second intelligent contracts based on different recipient addresses. Taking the connection mode below fig. 4 as an example, assuming that the recipient address is "0x00001", the second intelligent contract 440a is executed; assuming the recipient address is "0x00002," a second intelligent contract 440b is executed, and so on, may be executed to a second intelligent contract 440n. In other words, an event agent smart contract may define different event processing logic from payee to payee.
FIG. 5 is a schematic diagram of a connection of multiple layers of event agent intelligence contracts, as illustrated in FIG. 5, to which the present invention is applied. In practical implementation, the event agent intelligent contracts may include a parent event agent intelligent contract 510 and child event agent intelligent contracts (511, 512), the parent event agent intelligent contract 510 receives the events transmitted by the event transfer intelligent contract 410 through an interface function, each child event agent intelligent contract (511, 512) inherits from the parent event agent intelligent contract 510 and has the authority to execute a corresponding third intelligent contract (for example, a rent house intelligent contract and an insurance intelligent contract, etc.), and in the example of fig. 5, the child event agent intelligent contract 511 has the authority to execute the rent house intelligent contract 521; the sub-event agent intelligent contracts 512 have the authority to execute the house renting intelligent contracts 522 and the insurance intelligent contracts 523, and similarly, the third intelligent contracts are respectively provided with corresponding agent functions so as to transmit the addresses of the sub-event agent intelligent contracts (511, 512), so that the sub-event agent intelligent contracts (511, 512) have the authority to execute the third intelligent contracts.
In summary, it can be seen that the difference between the present invention and the prior art is that an event agent intelligent contract with an interface function is added between an event transfer intelligent contract for transferring an event and a first intelligent contract for receiving an event, the event transfer intelligent contract is provided to transfer an event by the interface function, and the event agent intelligent contract is set to have the authority to execute the first intelligent contract by transferring an event agent intelligent contract address by the agent function of the first intelligent contract.
Although the present invention has been described with reference to the foregoing embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention.

Claims (10)

1. An event linking system for intelligent contracts, the system comprising:
an initialization module, for issuing in advance an event transfer intelligent contract, a first intelligent contract and an event agent intelligent contract to a blockchain at initialization, wherein the event agent intelligent contract has an event agent intelligent contract address and includes an interface function to allow the event transfer intelligent contract to transmit an event;
the connecting module is used for executing a registration function of the event transfer intelligent contract, setting the event transfer intelligent contract to transmit the event to the event agent intelligent contract through the interface function when the address transferred by the registration function is the address of the event agent intelligent contract, executing the agent function of the first intelligent contract, and enabling the event agent intelligent contract to have the authority of executing the first intelligent contract according to the address of the event agent intelligent contract transferred by the agent function;
the transaction module is used for executing a sending function of the event transfer intelligent contract when executing transaction, sending the transaction quantity to a receiver address and transferring the event containing the sender address, the receiver address and the transaction quantity to the event agent intelligent contract through the interface function; and
and the execution module is used for executing at least one first transaction function in the first intelligent contract according to the received event after the event agent intelligent contract receives the event.
2. The event connection system of an intelligent contract according to claim 1, wherein the connection between the event transfer intelligent contract and the event agent contract is removed when the address is a preset value, and the connection between the event transfer intelligent contract and the event agent contract is established when the address is the address of the event agent contract.
3. The system of claim 1, wherein the initialization module is further configured to issue at least one second intelligent contract at the beginning of the blockchain, and the execution module executes the first trading function of the first intelligent contract and the at least one second trading function of the second intelligent contract according to the received event after the event is received by the event agent intelligent contract.
4. An event linking system for intelligent contracts according to claim 3, characterized in that the event agent intelligent contracts execute corresponding second intelligent contracts according to different recipient addresses.
5. The event linking system of claim 1, wherein the event-agent intelligent contract comprises a parent event-agent intelligent contract and at least one child event-agent intelligent contract, the parent event-agent intelligent contract receiving the event transmitted by the event-passing intelligent contract via the interface function, each child event-agent intelligent contract inheriting from the parent event-agent intelligent contract and having a right to execute at least one third intelligent contract.
6. An event connection method of an intelligent contract, comprising the steps of:
at the beginning, issuing an event transfer intelligent contract, a first intelligent contract and an event agent intelligent contract to a block chain in advance, wherein the event agent intelligent contract has an event agent intelligent contract address and comprises an interface function to allow the event transfer intelligent contract to transmit an event;
executing a registration function of the event transfer intelligent contract, setting the event transfer intelligent contract to transmit the event to the event agent intelligent contract through the interface function when the address transferred by the registration function is the address of the event agent intelligent contract, executing an agent function of the first intelligent contract, and enabling the event agent intelligent contract to have the authority of executing the first intelligent contract according to the address of the event agent intelligent contract transferred by the agent function;
when executing transaction, executing a sending function of the event transfer intelligent contract, sending the transaction amount to a receiving party address, and transferring the event containing the sending party address, the receiving party address and the transaction amount to the event agent intelligent contract through the interface function; and
after the event agent intelligent contract receives the event, at least one first transaction function in the first intelligent contract is executed according to the received event.
7. The method for event linking of an intelligent contract according to claim 6, wherein the linking of the intelligent contract with the event transfer contract is removed when the address is a predetermined value, and the linking of the intelligent contract with the event transfer contract is established when the address is the address of the event proxy contract.
8. The method of claim 6, wherein the method further issues at least one second intelligent contract at the beginning of the blockchain, and after the event agent intelligent contract receives the event, executes the first transaction function of the first intelligent contract and at least one second transaction function of the second intelligent contract according to the received event.
9. An event linking method for intelligent contracts according to claim 8, characterized in that the event agent intelligent contract executes the corresponding second intelligent contract according to different recipient addresses.
10. The method of claim 6, wherein the event-agent intelligent contract comprises a parent event-agent intelligent contract and at least one child event-agent intelligent contract, the parent event-agent intelligent contract receiving the event transmitted by the event-passing intelligent contract via the interface function, each child event-agent intelligent contract inheriting from the parent event-agent intelligent contract and having a right to execute at least one third intelligent contract.
CN201711461269.XA 2017-12-28 2017-12-28 Event connection system and method of intelligent contract Active CN109978687B (en)

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 CN109978687A (en) 2019-07-05
CN109978687B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519277B (en) * 2019-08-29 2020-08-21 上海威尔立杰网络科技发展有限公司 Method for realizing control of other systems based on single-point execution contract
CN110580411B (en) * 2019-11-08 2020-03-06 支付宝(杭州)信息技术有限公司 Permission query configuration method and device based on intelligent contract
CN112650978B (en) * 2020-08-14 2023-01-20 支付宝(杭州)信息技术有限公司 Infringement detection method and device based on block chain and electronic equipment

Citations (4)

* 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
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
CN107423945A (en) * 2017-04-13 2017-12-01 葛武 Intelligent energy trade managing system and method based on block chain technology
CN107507005A (en) * 2017-08-01 2017-12-22 众安信息技术服务有限公司 Data access method and system outside a kind of chain based on alliance's chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11526938B2 (en) * 2016-03-31 2022-12-13 Refinitiv Us Organization Llc Systems and methods for providing financial data to financial instruments in a distributed ledger system
US10447478B2 (en) * 2016-06-06 2019-10-15 Microsoft Technology Licensing, Llc Cryptographic applications for a blockchain system

Patent Citations (4)

* 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
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)

* Cited by examiner, † Cited by third party
Title
Potentials of Blockchain Technology for Construction Management;Žiga Turk等;《ScienceDirect》;20170622;第638-645页 *
区块链技术和智能合同在未来经济中企业联盟的应用;李智健;《当代经济》;20170930;第116-122页 *

Also Published As

Publication number Publication date
CN109978687A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109978687B (en) Event connection system and method of intelligent contract
CN108197944B (en) Resource transaction method and device based on block chain technology
KR100601633B1 (en) Digital contents superdistribution system and method
JP6355141B2 (en) Online payment method, system, and apparatus
TWI614712B (en) Event linking system for smart contract and method thereof
CN101004694B (en) Method and apparatus for data transfer between isolated execution contexts
CN110430235B (en) Method, apparatus, storage medium and computing device for cross-chain transmission of authenticatable messages
CN100461889C (en) Method for providing package of mobile terminal service
CN110544097A (en) Intelligent contract version control, calling and upgrading method, equipment and storage medium
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN111985007A (en) Contract signing and executing method and device based on block chain
CN108776756A (en) Access authorization for resource management method and device
CN110263580B (en) Data processing method and device based on block chain and block chain link points
CN108830101A (en) Application permission configuration method and device based on tables of data
CN1696911B (en) Patching method and computation system
CN111311407A (en) Data processing method and device based on block chain system and electronic equipment
CN1647484B (en) Protocol for entering, disabling and/or erasing scrambled data access rights and the corresponding access control module
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN114723449B (en) Block chain piece payment method and electronic equipment
CN110489151A (en) A kind of terminal staging method and system
CN113486114B (en) Block chain intelligent contract calling management method
CN112699170B (en) Query method and system based on multi-source data structure block chain
CN115033853A (en) Function access authority control method and device based on intelligent contract
CN114637525A (en) Method, device, equipment and medium for compatibility of SDK and access application
CN111273897A (en) Block chain resource consumption method and device, storage medium and electronic equipment

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