CN111581279B - Intelligent contract construction method, device and storage medium - Google Patents

Intelligent contract construction method, device and storage medium Download PDF

Info

Publication number
CN111581279B
CN111581279B CN202010327491.6A CN202010327491A CN111581279B CN 111581279 B CN111581279 B CN 111581279B CN 202010327491 A CN202010327491 A CN 202010327491A CN 111581279 B CN111581279 B CN 111581279B
Authority
CN
China
Prior art keywords
chain
original chain
intelligent contract
asset
node
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
CN202010327491.6A
Other languages
Chinese (zh)
Other versions
CN111581279A (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.)
Aolin Technology Co ltd
Original Assignee
Aolin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aolin Technology Co ltd filed Critical Aolin Technology Co ltd
Priority to CN202010327491.6A priority Critical patent/CN111581279B/en
Publication of CN111581279A publication Critical patent/CN111581279A/en
Application granted granted Critical
Publication of CN111581279B publication Critical patent/CN111581279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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/03Credit; Loans; Processing thereof

Abstract

The invention provides a method, a device and a storage medium for constructing intelligent contracts of a multi-block chain, wherein the method comprises the following steps: when receiving a service request issued by any service issuing node, acquiring a target original chain corresponding to the service request from a plurality of original chains according to the service request intelligent contract, wherein different original chains execute different intelligent contracts; and constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain. By implementing the invention, different original chain access is completed according to different service request intelligent contracts, different intelligent contracts are executed, the on-demand construction of the intelligent contracts is realized, each node of the cooperative chain represents a specific private chain, a alliance chain or a cross-chain network, the consensus of a group is represented, and the decentralization of the whole intelligent contract is ensured.

Description

Intelligent contract construction method, device and storage medium
Technical Field
The invention relates to the technical field of blockchain, in particular to an intelligent contract construction method, an intelligent contract construction device and a storage medium.
Background
Cross-chain technology is a technology used to facilitate interworking between blockchains to enable asset data interactions for different blockchain systems. Among the problems faced by blockchains, interoperability between blockchains greatly limits the application space of blockchains, whether for public, federated, or private chains, the cross-chain technique becomes a bridge for blockchain outward expansion and connection. The existing cross-chain technology mainly comprises a notary mechanism, a relay and side chain technology, a hash locking technology, a distributed key control technology and the like.
However, the existing cross-chain technology can only perform asset circulation of a blockchain system according to the well-deployed intelligent contracts in the determined blockchain system, related parties participating in asset circulation are preset, intelligent contracts cannot be dynamically established to realize cross-chain asset circulation of participants of the uncertain blockchain system, and therefore the cross-chain flexibility is poor.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect of low flexibility of intelligent contract establishment in the prior art, thereby providing a multi-block chain intelligent contract construction method, a multi-block chain intelligent contract construction device and a storage medium.
According to a first aspect, the present embodiment provides an intelligent contract construction method, including the steps of: when receiving a service request issued by any service issuing node, acquiring a target original chain corresponding to the service request from a plurality of original chains according to the service request intelligent contract, wherein different original chains execute different intelligent contracts; and constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain.
With reference to the first aspect, in a first implementation manner of the first aspect, when receiving a service request issued by any service issuing node, according to the service request intelligent contract, acquiring a target original chain corresponding to the service request from a plurality of original chains, including: establishing an asset discovery node; sending the business request intelligent contract to a corresponding original chain through the asset discovery node; when shared state information of the asset agent nodes established in the original chains is received, the original chains corresponding to the asset agent nodes are taken as target original chains, wherein the asset agent nodes synchronously record asset data in the corresponding original chains.
With reference to the first aspect, in a second implementation manner of the first aspect, when receiving a service request issued by any service issuing node, according to the service request intelligent contract, acquiring a target original chain corresponding to the service request from a plurality of original chains, including: establishing an asset discovery node; sending the business request intelligent contract to a corresponding original chain through the asset discovery node; when asset information in any original chain is received, the asset information is taken as a target original chain with the original chain.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain includes: determining that the obtained target original chain meets the intelligent contract of the service request; and returning the asset information of any obtained original chain when the obtained target original chain does not meet the business request intelligent contract.
According to a second aspect, the present embodiment provides an intelligent contract construction apparatus, including: the target original chain acquisition module is used for acquiring target original chains corresponding to the service requests from a plurality of original chains according to the service request intelligent contracts when receiving the service requests issued by any service issuing node, and executing different intelligent contracts by different original chains; and the intelligent contract construction module is used for constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain.
With reference to the second aspect, in a first implementation manner of the second aspect, the target raw chain acquisition module includes: a first node establishing module for establishing an asset discovery node; a first intelligent contract sending module, configured to send, through the asset discovery node, the service request intelligent contract to a corresponding original chain; and the first target original chain acquisition module is used for taking an original chain corresponding to the asset agent node as a target original chain when receiving the shared state information of the asset agent node established in the original chain, wherein the asset agent node synchronously records asset data in the corresponding original chain.
With reference to the second aspect, in a second implementation manner of the first aspect, the target raw chain acquisition module includes: the second node building module is used for building an asset discovery node; the second intelligent contract sending module is used for sending the business request intelligent contract to the corresponding original chain through the asset discovery node; and the second target original chain acquisition module is used for taking the original chain as a target original chain when receiving the asset information in any original chain.
With reference to the second aspect and the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the smart contract construction module includes: the determining module is used for determining that the obtained target original chain meets the business request intelligent contract; and the return module is used for returning the obtained asset information of any original chain when the obtained target original chain does not meet the business request intelligent contract.
According to a third aspect, the present embodiment provides an electronic device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the smart contract construction method according to the first aspect or any implementation manner of the first aspect.
According to a fourth aspect, the present embodiment provides a non-transitory computer readable storage medium storing computer instructions which, when executed by a processor, implement the smart contract construction method according to the first aspect or any implementation of the first aspect.
The technical scheme of the invention has the following advantages:
according to the intelligent contract construction method/device, different original chain accesses are completed according to different service requests of intelligent contracts, different intelligent contracts are executed, the intelligent contracts are constructed according to needs, each node of a cooperative chain represents a specific private chain, a alliance chain or a cross-chain network, a group consensus is represented, and the decentralization of the whole intelligent contract is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart showing a specific example of a method for constructing a smart contract according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a specific example of a method for constructing a smart contract according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a specific example of an intelligent contract construction apparatus in an embodiment of the present invention;
fig. 4 is a schematic block diagram of a specific example of an electronic device in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, or can be communicated inside the two components, or can be connected wirelessly or in a wired way. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The embodiment provides an intelligent contract construction method, which can be applied to a multi-block chain structure as shown in fig. 2, wherein the multi-block chain structure in fig. 2 can comprise a plurality of original chains and cooperative chains, different original chains correspond to different service types, different service types correspond to different service participants, the cooperative chains are used for issuing service requests, and corresponding service participants are obtained from the original chains according to the issued service requests to complete corresponding service request operations. The original chain can be any one or more of a alliance chain, a private chain and a cross-chain network, and the composition of the original chain is not limited in the embodiment of the application, and is determined by a person skilled in the art according to the need. As shown in fig. 1, the method comprises the following steps:
s110, when receiving a service request issued by any service issuing node, acquiring a target original chain corresponding to the service request from a plurality of original chains according to the service request intelligent contract, wherein different original chains execute different intelligent contracts.
The service publishing node may be any node on the collaboration chain that sends out service requests, and for different service requests, the service publishing node publishes different service request intelligent contracts. The target raw chain representation specifies the raw chain required to complete this service request in the service request intelligent contract. The service issuing node issues the service request and simultaneously broadcasts and triggers the service request intelligent contract, wherein the original chain required for completing the service request is specified in the service request intelligent contract. The method for acquiring the target original chain corresponding to the service request from the plurality of original chains can be to realize the cross-chain interaction of the target original chain and the cooperative chain through a proxy technology or a side chain technology.
For example, taking a supply chain financial loan as an example, when a loan party needs to loan to a bank to participate in a certain business of a core enterprise, the loan business can comprise four parties, a loan party, a bank, the core enterprise and a logistics merchant, at this time, the bank serves as a business issuing node to issue a loan business request, and at the same time, a business request intelligent contract is triggered, which clearly indicates that the business needs to participate in the loan party, the bank, the core enterprise and the logistics merchant, and then the original chains required for completing the business request specified in the business request intelligent contract comprise four original chains of the loan party, the bank, the core enterprise and the logistics merchant, and the cross-chain interaction of the four original chains and the collaborative chains is realized through a side chain technology or a proxy technology.
S120, constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain.
The method of constructing the intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain may be that when all original chains required for completing the service request in the intelligent contract of the service issuing node are interacted with the collaborative chain in a cross-chain manner, that is, after forming consensus on the collaborative chain, each original chain starts to automatically execute the respective intelligent contract, thereby completing the construction of the whole intelligent contract.
Taking the supply chain financial loan as an example, when four original chains of a lender, a bank, a core enterprise and a logistics merchant are used as target original chains to realize cross-chain interaction with a collaborative chain, and the intelligent contract of the original chains is automatically executed in the original chains corresponding to the lender, the bank, the core enterprise and the logistics merchant respectively when the intelligent contract condition of the business request is met, so that the integral construction of the intelligent contract is realized.
According to the intelligent contract construction method, different original chain accesses are completed according to different service requests, different intelligent contracts are executed, the intelligent contracts are constructed according to needs, each node of the cooperative chain represents a specific private chain, a alliance chain or a cross-chain network, the consensus of a group is represented, and the decentralization of the whole intelligent contract is guaranteed.
As an optional implementation manner of this embodiment, step S110 includes:
first, an asset discovery node is established.
Illustratively, the asset discovery node may be any node on the cooperative chain excluding the service publishing node, and the method for establishing the plurality of asset discovery nodes may be to connect any node on the cooperative chain with the original chain through a proxy technology or a side chain technology, and use the node on the cooperative chain connected with the original chain as the asset discovery node.
And secondly, sending the business request intelligent contract to the corresponding original chain through the asset discovery node.
Illustratively, the asset discovery node on the collaboration chain may correspond to the asset agent node in the original chain, the asset discovery node and the asset agent node may be "flexibly connected" through a service discovery mechanism, where the service discovery mechanism is used to implement mutual positioning between the service party and the application party, the service party may represent the resource discovery node of the collaboration chain in this embodiment, the application party may represent the resource agent node on the original chain, and the service party and the application party may be in a one-to-one manner or in a one-to-many manner, that is, one resource discovery node on the collaboration chain may connect to resource agent nodes on multiple original chains, or may be in a one-to-one correspondence, which is not limited in this embodiment. The service side and the application side of the service discovery mechanism are not limited in this embodiment, and can be determined by those skilled in the art according to requirements. The manner in which the asset discovery node sends the business request smart contract to the corresponding original chain may be through a "soft connection" between the resource broker node and the resource discovery node as described above.
Again, when the shared state information of the asset agent node established in the original chain is received, the original chain corresponding to the asset agent node is taken as a target original chain, wherein the asset agent node synchronously records asset data in the corresponding original chain.
Illustratively, the status information may include whether the original chain corresponding to the asset agent node agrees with the service request. The asset agent node realizes the sharing and synchronization of state information through soft connection with the asset discovery node, when the original chain corresponding to the asset agent node agrees to the service request, the asset discovery node synchronously receives a signal of the original chain agreeing to the service request while recording the behavior in an account book of the original chain, and at the moment, the original chain is determined to be a target original chain.
When the asset data is requested again by another service request, whether the asset data is occupied or not can be known according to the content recorded in the account book of the original chain, so that the occurrence of repeated mass-pressing events such as multiple times of confirmation of the asset data by a plurality of block chains, such as invoices, is avoided.
When the resource agent node and the cooperative chain only share state information, the intelligent contract and the asset data are not transferred, and when the intelligent contract is constructed, the original chain corresponding to the service request completes execution of the intelligent contract and asset circulation in the original chain under the whole strategy of the cooperative chain.
According to the intelligent contract construction method, the target original chain is determined through the shared state information of the asset discovery node, the asset agent node synchronously records the asset data in the corresponding original chain, repeated quality pressing events such as multiple times of weight confirmation of one asset data by a plurality of block chains can be avoided, and the safety of the whole business is improved.
As an optional implementation manner of this embodiment, step S110 includes:
first, an asset discovery node is established. And secondly, sending the business request intelligent contract to the corresponding original chain through the asset discovery node. The specific implementation manner is shown in the corresponding parts of the embodiment, and will not be described herein.
Then, when asset information in any of the original chains is received, the original chain is taken as a target original chain.
Illustratively, the asset information may include smart contract information, digital assets, contracts, business credits, transaction vouchers, and the like in the original chain. When the asset discovery node receives asset information transferred by an original chain, the original chain is determined as a target original chain.
It should be noted that when the original chain transfers part or all of the asset information to the asset discovery node and the smart contract establishment is completed, all the execution processes of the smart contract and the asset circulation are performed on the collaboration chain.
As an optional implementation manner of this embodiment, step S120 includes:
first, it is determined that the resulting target raw chain satisfies the business request smart contract.
For example, the determining manner of whether the target original chain meets the service request intelligent contract may be to check whether each asset discovery node corresponding to the original chain required for completing the service request exists transfer asset information corresponding to the original chain in the service request intelligent contract, and when all asset discovery nodes participating in the service request exist transfer asset information corresponding to the original chain, determining that the service request intelligent contract is completed.
Secondly, when the obtained target original chain does not meet the business request intelligent contract, returning the asset information of any obtained original chain.
Illustratively, a target original chain not satisfying a business request smart contract may be expressed as not having transferred asset information for the corresponding original chain present in all asset discovery nodes participating in the business request. When one or more asset discovery nodes participating in the business request do not have the transfer asset information of the original chain, and the intelligent contract is not successfully constructed, all the transfer asset information participating in the business request is returned to the original chain from the asset discovery nodes.
According to the intelligent contract construction method provided by the embodiment, when the target original chain does not meet the business request intelligent contract, the collaborative chain returns the original chain asset information of the asset discovery nodes, so that each asset discovery node and the original chain resource can be reused by different business requests, and reusability of contract construction only is improved.
The present embodiment provides an intelligent contract construction apparatus, as shown in fig. 3, including:
the target original chain acquiring module 210 is configured to acquire a target original chain corresponding to a service request from a plurality of original chains according to a service request intelligent contract when receiving the service request issued by any service issuing node, where different original chains execute different intelligent contracts; the specific implementation manner is shown in the corresponding portion of step S110 of the method in this embodiment, and will not be described herein.
The intelligent contract construction module 220 is configured to construct an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain. The specific implementation manner is shown in the corresponding portion of step S120 of the method in this embodiment, and will not be described herein.
According to the intelligent contract construction device provided by the embodiment, different original chain accesses are completed according to different service requests of intelligent contracts, different intelligent contracts are executed, the on-demand construction of the intelligent contracts is realized, each node of the cooperative chain represents a specific private chain, a alliance chain or a cross-chain network, the consensus of a group is represented, and the decentralization of the whole intelligent contract is ensured.
As an alternative implementation of this embodiment, the target raw chain acquisition module 210 includes:
a first node establishing module for establishing an asset discovery node; specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
The first intelligent contract sending module is used for sending the business request intelligent contracts to the corresponding original chains through the asset discovery nodes; specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
And the first target original chain acquisition module is used for taking an original chain corresponding to the asset agent node as a target original chain when receiving the shared state information of the asset agent node established in the original chain, wherein the asset agent node synchronously records asset data in the corresponding original chain. Specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
As an alternative implementation of this embodiment, the target raw chain acquisition module 210 includes:
the second node building module is used for building an asset discovery node; specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
The second intelligent contract sending module is used for sending a business request intelligent contract to the corresponding original chain through the asset discovery node; specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
And the second target original chain acquisition module is used for taking the original chain as a target original chain when receiving the asset information in any original chain. Specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
As an alternative implementation manner of this embodiment, the smart contract construction module 220 includes:
the determining module is used for determining that the obtained target original chain meets the business request intelligent contract; specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
And the return module is used for returning the asset information of any one obtained original chain when the obtained target original chain does not meet the business request intelligent contract. Specific implementation manner is shown in the corresponding parts of the method in this embodiment, and will not be described herein.
Embodiments of the present application also provide an electronic device, as shown in fig. 4, a processor 310 and a memory 320, where the processor 310 and the memory 320 may be connected by a bus or other means.
The processor 310 may be a central processing unit (Central Processing Unit, CPU). The processor 310 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), field programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
The memory 320 is used as a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the smart contract construction method in the embodiment of the present invention. The processor executes various functional applications of the processor and data processing by running non-transitory software programs, instructions, and modules stored in memory.
Memory 320 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by the processor, etc. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 320 may optionally include memory located remotely from the processor, which may be connected to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 320 that, when executed by the processor 310, perform the smart contract construction method of the embodiment shown in fig. 1.
The details of the above electronic device may be understood correspondingly with respect to the corresponding related descriptions and effects in the embodiment shown in fig. 1, which are not repeated herein.
The present embodiment also provides a computer storage medium storing computer executable instructions that can perform the method for constructing a smart contract in any of the above method embodiments. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (8)

1. An intelligent contract construction method is characterized by comprising the following steps:
establishing an asset discovery node; sending a business request intelligent contract to a corresponding original chain through the asset discovery node; when shared state information of an asset agent node established in an original chain is received, taking the original chain corresponding to the asset agent node as a target original chain, or taking the original chain as a target original chain when asset information in any original chain is received, wherein the asset agent node synchronously records asset data in the corresponding original chain, and different intelligent contracts are executed by different original chains;
and constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain.
2. The method of claim 1, wherein the constructing the smart contract corresponding to the service request from the smart contract of the service issuing node and the smart contract of the target raw chain comprises:
determining that the obtained target original chain meets the intelligent contract of the service request;
and returning the asset information of any obtained original chain when the obtained target original chain does not meet the business request intelligent contract.
3. An intelligent contract construction apparatus, comprising:
the target original chain acquisition module is used for establishing an asset discovery node; sending a business request intelligent contract to a corresponding original chain through the asset discovery node; when shared state information of an asset agent node established in an original chain is received, taking the original chain corresponding to the asset agent node as a target original chain, or taking the original chain as a target original chain when asset information in any original chain is received, wherein the asset agent node synchronously records asset data in the corresponding original chain, and different intelligent contracts are executed by different original chains;
and the intelligent contract construction module is used for constructing an intelligent contract corresponding to the service request according to the intelligent contract of the service issuing node and the intelligent contract of the target original chain.
4. The apparatus of claim 3, wherein the target raw chain acquisition module comprises:
a first node establishing module for establishing an asset discovery node;
a first intelligent contract sending module, configured to send, through the asset discovery node, the service request intelligent contract to a corresponding original chain;
and the first target original chain acquisition module is used for taking an original chain corresponding to the asset agent node as a target original chain when receiving the shared state information of the asset agent node established in the original chain, wherein the asset agent node synchronously records asset data in the corresponding original chain.
5. The apparatus of claim 3, wherein the target raw chain acquisition module comprises:
the second node building module is used for building an asset discovery node;
the second intelligent contract sending module is used for sending the business request intelligent contract to the corresponding original chain through the asset discovery node;
and the second target original chain acquisition module is used for taking the original chain as a target original chain when receiving the asset information in any original chain.
6. The apparatus of claim 5, wherein the smart contract construction module comprises:
the determining module is used for determining that the obtained target original chain meets the business request intelligent contract;
and the return module is used for returning the obtained asset information of any original chain when the obtained target original chain does not meet the business request intelligent contract.
7. An electronic device comprising a memory and a processor, said memory and said processor being communicatively coupled to each other, said memory having stored therein computer instructions, said processor executing said computer instructions to perform the smart contract construction method of any of claims 1-2.
8. A non-transitory computer readable storage medium storing computer instructions which, when executed by a processor, implement the smart contract construction method of any of claims 1-2.
CN202010327491.6A 2020-04-23 2020-04-23 Intelligent contract construction method, device and storage medium Active CN111581279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010327491.6A CN111581279B (en) 2020-04-23 2020-04-23 Intelligent contract construction method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010327491.6A CN111581279B (en) 2020-04-23 2020-04-23 Intelligent contract construction method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111581279A CN111581279A (en) 2020-08-25
CN111581279B true CN111581279B (en) 2024-02-06

Family

ID=72111672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010327491.6A Active CN111581279B (en) 2020-04-23 2020-04-23 Intelligent contract construction method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111581279B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256864A (en) * 2018-02-13 2018-07-06 中链科技有限公司 Between a kind of block chain across the foundation of chain alliance and communication means, system
CN109345387A (en) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, across chain communication device and storage medium
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095822A (en) * 2018-06-27 2021-07-09 创新先进技术有限公司 Intelligent contract calling method and device based on block chain and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256864A (en) * 2018-02-13 2018-07-06 中链科技有限公司 Between a kind of block chain across the foundation of chain alliance and communication means, system
CN109345387A (en) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, across chain communication device and storage medium
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain

Also Published As

Publication number Publication date
CN111581279A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN110650189B (en) Relay-based block chain interaction system and method
CN110311790B (en) Method and device for sending authenticable message in cross-link mode
EP3698537B1 (en) Iot cloud to cloud architecture
CN110866825A (en) Public link-based block chain information storage method and system
US8874686B2 (en) DDS structure with scalability and adaptability and node constituting the same
CN110166409A (en) Equipment cut-in method, related platform and computer storage medium
CN111213340A (en) Selecting and securing attestation delegations for cryptographic functions
EP4318362A1 (en) Blockchain-based data processing method, apparatus and device, and storage medium
CN111598531B (en) Multi-block-chain service cooperation method and device and electronic equipment
CN111711526B (en) Method and system for consensus of block chain nodes
CN110196843B (en) File distribution method based on container cluster and container cluster
CN110933173B (en) Block chain technology-based networking method and device
CN104468299A (en) Enterprise service bus system based on user rule
CN115883669A (en) Data distribution method, system, equipment and medium
CN111581279B (en) Intelligent contract construction method, device and storage medium
CN103001962A (en) Business support method and system
CN111667255B (en) Digital asset transfer system and method based on alliance chain
CN117370460A (en) Block chain storage optimization method and device based on double-chain storage
WO2023246187A1 (en) Management method for blockchain network, and related device
CN110417742B (en) Method, device and storage medium for cross-link sending, transferring and receiving authenticable message
CN111327447A (en) Distributed system, arbitration method, node device and storage medium
CN114356606A (en) Block chain cross-chain method, device, equipment and product
US10771242B2 (en) Blockchain-based data processing
CN112116466A (en) Unified platform system for stock futures financial data exchange
CN113297281A (en) Account consistency processing method and server

Legal Events

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