CN111159307A - Cross-link data subscription method and device - Google Patents

Cross-link data subscription method and device Download PDF

Info

Publication number
CN111159307A
CN111159307A CN202010254516.4A CN202010254516A CN111159307A CN 111159307 A CN111159307 A CN 111159307A CN 202010254516 A CN202010254516 A CN 202010254516A CN 111159307 A CN111159307 A CN 111159307A
Authority
CN
China
Prior art keywords
subscription
data
block chain
contract
chain
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
Application number
CN202010254516.4A
Other languages
Chinese (zh)
Other versions
CN111159307B (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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010927876.6A priority Critical patent/CN112182096A/en
Priority to CN202010254516.4A priority patent/CN111159307B/en
Publication of CN111159307A publication Critical patent/CN111159307A/en
Application granted granted Critical
Publication of CN111159307B publication Critical patent/CN111159307B/en
Priority to PCT/CN2021/081798 priority patent/WO2021197097A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present specification provides a method and an apparatus for cross-link data subscription, including: receiving a subscription contract code which is issued by a node device in a subscription block chain to the data source block chain in a cross-chain mode; the execution logic corresponding to the contract subscription code comprises data screening logic for screening out target data which is determined based on the data description from source data which are stored in the data source block chain and are related to the target service; calling a first intelligent contract, executing auditing logic of the subscription contract code, auditing the subscription contract code, and issuing the subscription contract code to the data source block chain when the auditing is passed so as to deploy a subscription contract corresponding to the subscription contract code on the data source block chain; and calling the subscription contract, executing the data screening logic, screening the target data from the source data, and sending the target data to the subscription block chain.

Description

Cross-link data subscription method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of block chain technologies, and in particular, to a method and an apparatus for subscribing to cross-chain data.
Background
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. The blockchain technology has been widely used in many fields due to its characteristics of decentralization, transparency, participation of each computing device in database records, and rapid data synchronization between computing devices. The cross-chain interaction technology among the multi-blockchains enables information to flow among different blockchains.
Disclosure of Invention
In view of this, one or more embodiments of the present specification provide a cross-chain data subscription method, which is applied to a multi-chain system including a data source block chain and a subscription block chain. Wherein the data source block chain is connected with the subscription block chain in a cross-chain manner; a first intelligent contract used for managing subscription contract codes issued to the data source block chain in a cross-chain mode by the subscription block chain is deployed on the data source block chain; the execution logic corresponding to the contract code of the first intelligent contract comprises auditing logic for subscribing the contract code; the method is executed by a node device of the data source block chain, and comprises the following steps:
in response to a data query request sent across chains from a node device in the subscription blockchain, sending a data description of source data related to a target service stored in the data source blockchain across chains to the subscription blockchain;
receiving a subscription contract code which is issued by a node device in a subscription block chain to the data source block chain in a cross-chain mode; the execution logic corresponding to the contract subscription code comprises data screening logic for screening out target data which is determined based on the data description from source data which are stored in the data source block chain and are related to the target service;
calling the first intelligent contract, executing auditing logic of the subscription contract code, auditing the subscription contract code, and issuing the subscription contract code to the data source block chain when the auditing is passed so as to deploy a subscription contract corresponding to the subscription contract code on the data source block chain;
and calling the subscription contract, executing the data screening logic, screening the target data from the source data, and sending the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
In a further illustrated embodiment, the data origination block chain is further deployed with a second intelligent contract for performing qualification audit result statistics on the subscription chain, and the method further includes:
before sending the data description of the source data related to the target service stored in the data source block chain to the subscription block chain, receiving a qualification audit application of the data source block chain, wherein the qualification audit application is issued by node equipment in the subscription block chain across chains;
based on the qualification auditing application, performing qualification auditing on the subscription block chain, and sending a qualification auditing result to the data source block chain;
calling the second intelligent contract, executing the qualification auditing result statistical logic declared by the second intelligent contract, and obtaining the qualification auditing result of the subscription block chain;
and when the qualification auditing result of the subscription block chain is passed, sending the data description of the source data which is stored in the data source block chain and is related to the target service to the subscription block chain.
In yet another illustrated embodiment, the execution logic corresponding to the contract code of the first intelligent contract further comprises subscription interface authorization logic; the method further comprises the following steps:
receiving a subscription interface authorization application of the data source block chain, which is issued by node equipment in the subscription block chain in a cross-chain manner;
and calling the first intelligent contract, executing the subscription interface authorization logic, and setting an interface calling authority for the subscription contract for the subscription block chain.
In yet another illustrative embodiment, the invoking the subscription contract, executing the data filtering logic, filtering the target data from the source data, and sending the filtered target data to the subscription blockchain to cause the subscription blockchain to execute the target service based on the target data includes:
calling the first intelligent contract, further calling the subscription contract after determining that the subscription block chain has the interface calling authority for the subscription contract, executing the data screening logic, and screening the target data from the source data;
and sending the screened target data to the subscription block chain so as to enable the subscription block chain to execute the target service based on the target data.
In another illustrated embodiment, the method further comprises:
and receiving a subscription contract invoking request message sent by the subscription block chain in a cross-chain mode, wherein the subscription contract invoking request message is used for requesting the node equipment of the data source block chain to invoke the subscription contract based on a preset time period or a preset trigger condition.
In yet another illustrated embodiment, the data description is generated based on the source data after being desensitized.
In yet another illustrated embodiment, the target business is a source tracing business for the target commodity, and the target data is source tracing information related to production or circulation of the target commodity.
In yet another illustrated embodiment, the data source block chain is a federation chain.
Correspondingly, the specification also provides a cross-chain data subscription device, which is applied to a multi-chain system comprising a data source block chain and a subscription block chain; wherein the data source block chain is connected with the subscription block chain in a cross-chain manner; a first intelligent contract used for managing subscription contract codes issued to the data source block chain in a cross-chain mode by the subscription block chain is deployed on the data source block chain; the execution logic corresponding to the contract code of the first intelligent contract comprises auditing logic for subscribing the contract code; the device is applied to a node device end of the data source block chain, and comprises:
a sending unit, configured to send a data description of source data related to a target service stored in the data source blockchain to the subscription blockchain in a cross-chain manner in response to a data query request sent from a node device in the subscription blockchain in a cross-chain manner;
the receiving unit is used for receiving a subscription contract code which is issued to the data source block chain by the node equipment in the subscription block chain in a cross-chain mode; the execution logic corresponding to the contract subscription code comprises data screening logic for screening out target data which is determined based on the data description from source data which are stored in the data source block chain and are related to the target service;
the intelligent contract execution unit is used for calling the first intelligent contract, executing auditing logic of the subscription contract code, auditing the subscription contract code, and issuing the subscription contract code to the data source block chain when the auditing is passed so as to deploy the subscription contract corresponding to the subscription contract code on the data source block chain;
the intelligent contract execution unit is further configured to invoke the subscription contract, execute the data screening logic, screen the target data from the source data, and send the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
In a further illustrated embodiment, the data origination block chain is further deployed with a second intelligent contract for performing qualification audit result statistics on the subscription chain;
the receiving unit is further configured to receive a qualification audit application of the data source block chain, which is issued by a node device in the subscription block chain across chains, before sending the data description of the source data related to the target service, stored in the data source block chain to the subscription block chain;
the auditing unit is used for executing qualification auditing of the subscription block chain based on the qualification auditing application and sending a qualification auditing result to the data source block chain;
the intelligent contract execution unit is further configured to invoke the second intelligent contract, execute the qualification audit result statistical logic declared by the second intelligent contract, and obtain the qualification audit result of the subscription block chain.
In yet another illustrated embodiment, the execution logic corresponding to the contract code of the first intelligent contract further comprises subscription interface authorization logic;
the receiving unit is further configured to receive a subscription interface authorization application of the data source block chain, where the subscription interface authorization application is issued by a node device in the subscription block chain across chains;
the intelligent contract execution unit further calls the first intelligent contract, executes the subscription interface authorization logic, and sets an interface calling authority for the subscription contract for the subscription block chain.
In yet another illustrated embodiment, the intelligent contract execution unit is further configured to:
calling the first intelligent contract, further calling the subscription contract after determining that the subscription block chain has the interface calling authority for the subscription contract, executing the data screening logic, and screening the target data from the source data;
the sending unit is further configured to send the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
In yet another illustrated embodiment, the receiving unit is further configured to receive a subscription contract invoking request message sent by the subscription block chain across chains, where the subscription contract invoking request message is used to request a node device of the data source block chain to invoke the subscription contract based on a preset time period or a preset trigger condition.
In yet another illustrated embodiment, the data description is generated based on the source data after being desensitized.
In yet another illustrated embodiment, the target business is a source tracing business for the target commodity, and the target data is source tracing information related to production or circulation of the target commodity.
In yet another illustrated embodiment, the data source block chain is a federation chain.
Accordingly, this specification also provides a computer device comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; when the computer program is executed by the processor, the cross-chain data subscription method executed by the node device of the data source block chain according to the embodiments is executed.
Accordingly, the present specification also provides a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, executes the cross-chain data subscription method executed by the node device of the data source block chain according to the above embodiments.
According to the cross-chain data subscription method, the device, the computer equipment and the computer readable storage medium provided by the embodiments of the specification, the subscription contract is utilized to customize target data required by the subscription block chain, the data source block chain calls and executes the subscription contract, and the execution result is pushed to the subscription block chain in a cross-chain manner, so that data circulation among the block chains is promoted, a data information island is broken, and the data utilization value is improved; and the subscription contract code is constructed based on the data description determined by the data source block chain, and because the subscription contract is deployed and called in the data source block chain, the leakage of privacy sensitive information can be effectively prevented, and the privacy safety of the user of the data source block chain is maintained.
Drawings
FIG. 1 is a schematic diagram of creating an intelligent contract provided by an exemplary embodiment;
FIG. 2 is a schematic diagram of a calling smart contract provided by an exemplary embodiment;
FIG. 3 is a schematic diagram of creating an intelligent contract and invoking an intelligent contract provided by an exemplary embodiment;
FIG. 4 is a flowchart illustration of a cross-chain data subscription method provided by an exemplary embodiment;
FIG. 5 is a schematic diagram of a cross-chain traceability data subscription method provided by an exemplary embodiment;
FIG. 6 is a schematic diagram of a cross-chain data subscription facility provided by an exemplary embodiment;
fig. 7 is a hardware block diagram for operating an embodiment of the cross-link data subscription device provided in the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the methods may include more or less steps than those described herein. Moreover, a single step described in this specification may be divided into multiple steps for description in other embodiments; however, in other embodiments, multiple steps described in this specification may be combined into a single step for description.
As the application business of the alliance chain is mature, the data in the alliance is more and more abundant; abundant data not only provide powerful guarantee for the normal operation of business, its data value is also showing gradually. Since the alliance chain is a block chain requiring authorization access, the ledger data can only be accessed by members in the alliance; this results in data islands, whose data can only be used throughout the federation; if the data value is utilized, the other alliance members are invited to join in an unlimited manner, on one hand, the data privacy of the alliance party participating in the business is leaked, and the rights and interests of the alliance party are damaged to a certain extent; on the other hand, the introduction of other services can also violate the convention created by creating the alliance at first, so that the data in the alliance chain is disordered and is difficult to manage.
In view of the above problems, one or more embodiments of the present specification provide a cross-chain data subscription method, which is applied to a multi-chain system including a data source blockchain and a subscription blockchain.
The block chain or block chain network described in one or more embodiments of the present specification may specifically refer to a P2P network system having a distributed data storage structure, where each node device achieves through a common recognition mechanism, the book data in the block chain is distributed within temporally consecutive "blocks", and the latter block may include a data digest of the former block, and according to a difference of a specific common recognition mechanism (such as POW, POS, DPOS, PBFT, or the like), a full backup of data of all or part of nodes is achieved.
The real data generated by the physical world can be constructed into a standard transaction (transaction) format supported by a block chain, then is issued to the block chain, the node equipment in the block chain performs consensus processing on the received transaction, and after the consensus is achieved, the node equipment serving as an accounting node in the block chain packs the transaction into a block and performs persistent evidence storage in the block chain.
Regardless of which consensus algorithm is adopted by the block chain, the accounting node can pack the received transaction to generate a latest block and send the generated latest block or a block header of the latest block to other node devices for consensus verification. If no problem is verified after other node equipment receives the latest block or the block header of the latest block, the latest block can be added to the tail of the original block chain, so that the accounting process of the block chain is completed. The transaction contained in the block may also be performed by other nodes in verifying the new block or block header sent by the accounting node.
Blockchains are generally divided into three types: public chain (Public Blockchain), private chain (PrivateBlockchain) and alliance chain (Consortium Blockchain). Furthermore, there may be a combination of the above types, such as private chain + federation chain, federation chain + public chain, and so on.
Among them, the most decentralized is the public chain. The public chain is represented by bitcoin and ether house, and participants (also called nodes in the block chain) joining the public chain can read data records on the chain, participate in transactions, compete for accounting rights of new blocks, and the like. Moreover, each node can freely join or leave the network and perform related operations.
Private chains are the opposite, with the network's write rights controlled by an organization or organization and the data read rights specified by the organization. Briefly, a private chain may be a weakly centralized system with strict restrictions on nodes and a small number of nodes. This type of blockchain is more suitable for use within a particular establishment.
A federation chain is a block chain between a public chain and a private chain, and "partial decentralization" can be achieved. Each node in a federation chain typically has a physical organization or organization corresponding to it; the nodes are authorized to join the network and form a benefit-related alliance, and block chain operation is maintained together.
It is contemplated that the embodiments provided herein can be implemented in any suitable type of blockchain network.
In practical applications, whether public, private, or alliance, it is possible to provide the functionality of a smart contract (Smartcontract). An intelligent contract on a blockchain is a contract on a blockchain that can be executed triggered by a transaction. An intelligent contract may be defined in the form of code.
Taking an Etherhouse as an example, a user is supported to create and call some complex logic in the Etherhouse network. The ethernet workshop is used as a programmable block chain, and the core of the ethernet workshop is an ethernet workshop virtual machine (EVM), and each ethernet workshop node can run the EVM. The EVM is a well-behaved virtual machine through which various complex logic can be implemented. The user issuing and invoking smart contracts in the etherhouse is running on the EVM. In fact, the EVM directly runs virtual machine code (virtual machine bytecode, hereinafter referred to as "bytecode"), so the intelligent contract deployed on the blockchain may be bytecode.
After Bob sends a Transaction (Transaction) containing information to create a smart contract to the ethernet network, each node can execute the Transaction in the EVM, as shown in fig. 1. The From field of the transaction in the figure is used for recording the address of the account initiating the creation of the intelligent contract, the contract code stored in the field value of the Data field of the transaction can be byte code, and the field value of the To field of the transaction is a null account. After the nodes reach the agreement through the consensus mechanism, the intelligent contract is successfully created, and the follow-up user can call the intelligent contract.
After the intelligent contract is established, a contract account corresponding to the intelligent contract appears on the block chain, and the block chain has a specific address; for example, "0 x68e12cf284 …" in each node in fig. 1 represents the address of the contract account created; the contract Code (Code) and account store (Storage) will be maintained in the account store for that contract account. The behavior of the intelligent contract is controlled by the contract code, while the account storage of the intelligent contract preserves the state of the contract. In other words, the intelligent contract causes a virtual account to be generated on the blockchain that contains the contract code and account storage.
As mentioned above, the Data field containing the transaction that created the intelligent contract may hold the byte code of the intelligent contract. A bytecode consists of a series of bytes, each of which can identify an operation. Based on the multiple considerations of development efficiency, readability and the like, a developer can select a high-level language to write intelligent contract codes instead of directly writing byte codes. For example, the high-level language may employ a language such as Solidity, Serpent, LLL, and the like. For intelligent contract code written in a high-level language, the intelligent contract code can be compiled by a compiler to generate byte codes which can be deployed on a blockchain.
Taking the Solidity language as an example, the contract code written by it is very similar to a Class (Class) in the object-oriented programming language, and various members including state variables, functions, function modifiers, events, etc. can be declared in one contract. A state variable is a value permanently stored in an account Storage (Storage) field of an intelligent contract to save the state of the contract.
As shown in FIG. 2, still taking the Etherhouse as an example, after Bob sends a transaction containing the information of the calling intelligent contract to the Etherhouse network, each node can execute the transaction in the EVM. The From field of the transaction in the figure is used for recording the address of the account initiating the intelligent contract calling, the To field is used for recording the address of the intelligent contract called, and the Data field of the transaction is used for recording the method and the parameters for calling the intelligent contract. After invoking the smart contract, the account status of the contract account may change. Subsequently, a certain client can check the account status of the contract account through the accessed block chain node.
The intelligent contract can be independently executed at each node in the blockchain network in a specified mode, and all execution records and data are stored on the blockchain, so that after the transaction is executed, transaction certificates which cannot be tampered and lost are stored on the blockchain.
A schematic diagram of creating an intelligent contract and invoking the intelligent contract is shown in fig. 3. An intelligent contract is created in an Ethernet workshop and needs to be subjected to the processes of compiling the intelligent contract, changing the intelligent contract into byte codes, deploying the intelligent contract to a block chain and the like. The intelligent contract is called in the Ethernet workshop, a transaction pointing to the intelligent contract address is initiated, the EVM of each node can respectively execute the transaction, and the intelligent contract code is distributed and operated in the virtual machine of each node in the Ethernet workshop network.
In one or more embodiments provided in this specification, a data source blockchain is a blockchain that stores data information that a subscription blockchain expects to acquire, and the subscription blockchain is connected with the data source blockchain across the chain. In this specification, the cross-chain connection manner between the subscription blockchain and the data source blockchain is not particularly limited. For example, subscription blockchain blockchains may implement cross-chain interfacing through cross-chain relays.
The cross-link relay can be respectively connected with the block chains through the bridging interfaces, and the cross-link data synchronization among the block chains is completed based on the realized data carrying logic. The chain-crossing technology used for realizing the chain-crossing relay is not particularly limited in this specification; for example, in practical applications, a plurality of block chains can be connected by a chain-crossing mechanism such as side chain technology, notary technology, and the like. After a plurality of block chains are connected in a butt joint mode through cross-chain relays, data on other block chains can be read and authenticated between the block chains, and intelligent contracts deployed on other block chains can be called through the cross-chain relays.
The inter-link relay is used only for transferring data between a plurality of block chains, and does not need to store the transferred data persistently or maintain the data state of the transferred data. In practical applications, the inter-link relay may be configured in a device, a node, a platform, or the like other than the plurality of block chains to which the inter-link relay is connected, or may be configured in a node device of the plurality of block chains to which the inter-link relay is connected, and is not particularly limited in this specification.
In the embodiment illustrated in fig. 4, a first intelligent contract is deployed on the data source blockchain for managing subscription contract code published by the subscription blockchain across chains to the data source blockchain; execution logic corresponding to the contract code of the first intelligent contract comprises auditing logic for subscribing to the contract code.
The embodiment of the cross-chain data subscription method illustrated in fig. 4 may be executed by a node device of a data source blockchain, and includes:
step 402, in response to a data query request sent across chains from a node device in the subscription blockchain, sending across chains a data description of source data related to a target service stored in the data source blockchain to the subscription blockchain.
The data source block chain stores source data information related to target services operated on the subscription chain.
In an illustrated embodiment, the data description of the source data may be included in a data query request sent by a node device subscribing to a block chain, and the data source node device queries whether the source data corresponding to the data description can be subscribed by the subscription block chain, and returns the data description (or a determination message for the data description) to the subscription block chain after determining that the source data can be subscribed.
In yet another illustrated embodiment, the data description of the source data may also be obtained by the data source blockchain node device in response to the data query request through querying, and the data description of the source data is generated based on the queried source data, and is sent to the subscription blockchain to inform the subscription blockchain of subscription data content that can be provided for the subscription blockchain.
It should be noted that, in order to protect the privacy security of some specific information in the source data, the data source block chain node device may perform desensitization processing on the source data obtained by query, that is, remove sensitive information related to the privacy security, and generate a corresponding data description based on the source data subjected to the desensitization processing.
Step 404, receiving a subscription contract code issued by a node device in a subscription blockchain to the data source blockchain across the chain; and the execution logic corresponding to the contract subscription code comprises data screening logic for screening out source data which are stored in the data source block chain and are related to the target service and determining target data based on the data description.
After receiving a data description of source data related to a target service sent by a data source block chain, a subscription contract, which is an intelligent contract for acquiring target data corresponding to the data description, may be customized based on the data description by the subscription block chain, where the execution logic corresponding to the subscription contract code includes a data screening logic for screening out source data related to the target service stored in the data source block chain and determining the target data based on the data description. In this embodiment, a specific process of specifying the subscription contract for the subscription block chain is not limited, and the node device of the subscription block chain may perform consensus on the subscription contract generated based on the data description, and send a code of the subscription contract obtained by the consensus to the data source block chain across the chain.
Step 406, invoking the first intelligent contract, executing an auditing logic of the subscription contract code, auditing the subscription contract code, and issuing the subscription contract code to the data source block chain when the auditing is passed, so as to deploy a subscription contract corresponding to the subscription contract code on the data source block chain.
The method comprises the steps of deploying a first intelligent contract used for managing the subscription contract codes on a data source block chain, responding to a call transaction which is published on the data source block chain and contains the subscription contract codes, calling the first intelligent contract, executing auditing logic of the subscription contract codes, auditing the subscription contract codes, and publishing the subscription contract codes to the data source block chain when the auditing is passed.
FIG. 1 and the associated description have illustrated in detail the specific process of creating a smart contract based on a smart contract creation transaction issued by a user; in this embodiment, the subscription contract is created by a first intelligent contract that manages subscription contract code, and thus, the transaction for creating the subscription contract is issued to the blockchain after the first intelligent contract passes the audit of the subscription contract code; after the node device of the block chain agrees with the establishment transaction of the subscription contract through the consensus mechanism, the subscription contract is successfully established, and the node device of the subsequent data source block chain can call the subscription contract.
After the subscription contract is created, a contract account corresponding to the subscription contract appears on the blockchain, and a specific address, namely a subscription contract identifier, is possessed. The data source blockchain can send the subscription contract identification back to the subscription blockchain across the chain, so that the subscription blockchain can conveniently register and manage the subscription contract.
Step 408, invoking the subscription contract, executing the data screening logic, screening the target data from the source data, and returning the screened target data to the subscription block chain, so as to execute the target service based on the target data.
The invoking of the subscription contract by the node device on the data source blockchain may be triggered by an invoking transaction sent by the node device of the data source blockchain and including the subscription contract address, or may be triggered by another intelligent contract sending an invoking message to the subscription contract during the execution of the invoked other intelligent contract (e.g., the first intelligent contract managing the subscription contract code).
The subscription contract may read source data from a specified address (e.g., a transaction address or an account address specified by the contract code) and perform the data screening logic on the read source data, e.g., screen out target data corresponding to data description information included in the subscription contract.
The target data screened out by the subscription contract can be stored in the account space of the data source block chain by the subscription contract through the calling execution of the subscription contract, and the node equipment of the data source block chain acquires the execution result of the subscription contract, namely the target data, by monitoring the account content of the subscription contract; the node device in the data source block chain, which is responsible for cross-chain communication with the subscription block chain, may push the target data obtained by the node device to the node device of the subscription block chain.
According to the cross-chain data subscription method provided by the embodiment, the subscription contract is utilized to customize the target data required by the subscription block chain, the subscription contract is called and executed by the data source block chain, and the execution result is pushed to the subscription block chain in a cross-chain manner, so that the data circulation among the block chains is promoted, the data information island is broken, and the data utilization value is improved; and the subscription contract code is constructed based on the data description determined by the data source block chain, the data description can be generated based on the desensitized data source, and the subscription contract is deployed and called in the data source block chain, so that the leakage of privacy sensitive information can be effectively prevented, and the privacy safety of a user of the data source block chain is maintained.
The following contents of this specification apply the cross-chain data subscription method described in the above embodiments to a commodity information tracing query scenario, and extend to more exemplary embodiments.
In the present embodiment, the data source block chain is a federation chain on which production place information, production process information, logistics information, distributor information, and the like of a plurality of commodities are stored; the e-commerce business with specified commodities operated on a subscription block chain is more and more in need of multiple users to prove the authenticity of the commodities by tracing the production places and logistics of the commodities in the existing e-commerce business. Because the data source block chain is rich in information and contains some privacy sensitive information (such as production process and distributor information, or uploader information and uploading location information for uploading various information to the data source block chain), the admission requirement of the data source block chain on node equipment of the alliance members is strict, and the rights and interests of the existing alliance members can be damaged by adding other nodes as the alliance member nodes at will; at this time, the node device of the subscription chain cannot obtain the authority to join the data source block chain, and is difficult to obtain the information related to the specific commodity operated by the node device.
In this embodiment, the subscription block chain may be connected with the data source block chain in a cross-chain manner through a relay node, and an intelligent contract for managing a subscription contract is deployed in the data source block chain, and the execution logic corresponding to the contract code of the intelligent contract may include a plurality of logics such as subscription contract code auditing logic, subscription chain qualification auditing result statistical logic, subscription interface authorization logic, and the like. Those skilled in the art should know that the subscription contract code auditing logic, the subscription chain qualification auditing result statistical logic, and the subscription interface authorization logic may be included in the same execution logic of the intelligent contract, and may be invoked and executed based on different invocation interfaces; or may be distributed in the execution logic of different intelligent contracts (such as the first intelligent contract and the second intelligent contract), and the node device may invoke different intelligent contracts to execute respectively, which is not limited in this specification.
In order to perform the tracing service on the specified commodity, the node device of the subscription block chain expects the data source block chain to perform the cross-chain data subscription method provided in the above embodiment, so as to obtain the tracing information related to the production or circulation of the specified commodity. FIG. 5 illustrates the flow steps of a cross-chain data subscription method used in a cross-chain traceability information query scenario, including:
step 501, the node device of the data source block chain receives a qualification audit application for tracing information subscription, which is sent by the subscription block chain in a cross-chain manner; and executing qualification audit on the subscription block chain based on the qualification audit application, and sending a qualification audit result to the data source block chain.
Since the data source blockchain is a federation chain, in order to protect the interests of each federation member party, in the present embodiment, each federation party of the data source blockchain can review the qualification of the subscription blockchain to determine whether to agree to provide the commodity tracing information for the subscription blockchain.
The qualification certification application sent by the subscription blockchain may specifically include a user or enterprise name, an identity, a data purpose, and the like related to each node device in the subscription blockchain.
After obtaining the qualification audit application sent by the block chain of the subscription zone in a cross-chain manner, the node device in the block chain of the data source, which is responsible for cross-chain communication with the block chain of the subscription zone, can send the qualification audit application to the block chain of the data source in a transaction manner, so that other node devices of the block chain of the data source can obtain the qualification audit application and perform qualification audit.
Step 502, a second intelligent contract is called, and the qualification auditing result statistical logic stated by the second intelligent contract is executed to obtain the qualification auditing result of the subscription block chain.
In another embodiment, the transaction including the qualification audit application may be used as a third intelligent contract call transaction, so that each node device of the data source block chain audits the qualification of the subscription block chain by calling a qualification audit logic of the third intelligent contract, and sends the audit result to the second intelligent contract, so as to facilitate the second intelligent contract to execute a qualification audit result statistical logic, and obtain a qualification audit result of the subscription block chain.
Optionally, the qualification audit result may be set in a form of a subscribeable right in a right control list of the second intelligent contract.
Step 503, in response to a data query request sent by a node device in the subscription block chain across chains, when it is determined that the qualification audit result of the subscription block chain passes or has the subscription right, sending the data description of the traceability information data of the specified commodity stored in the data source block chain to the subscription block chain.
The data query request is used for requesting to obtain data description of the traceability information data of the specified commodity, which is stored in the data source block chain, and the data description can be a content name (abstract) of the traceability information of the specified commodity, which can be provided by the data source block chain to the subscription block chain, such as a commodity name, a place of origin report, a logistics transfer station and the like. It should be noted that, when generating the data description for the traceability information data of the specified commodity, the data source block chain may select an information data generation data description which is not privacy sensitive and is more suitable for disclosure, and reject privacy information such as an uploader or an upload address of the traceability information data.
Step 504, receiving a subscription contract code issued by a node device in a subscription block chain to the data source block chain across the chain; the execution logic corresponding to the contract subscription code comprises data screening logic for screening the tracing information data of the specified commodity stored in the data source block chain and determining target data based on the data description.
After receiving the data description described in step 503, the subscription block chain may develop a writing and making of the subscription contract, but the present embodiment does not limit the writing and making manner of the subscription contract by the subscription block chain, for example, an intelligent contract deployed on the subscription block chain for making the subscription contract may be called, and a corresponding subscription contract is made based on the data description.
Step 505, a first intelligent contract is called, auditing logic of the subscription contract code is executed, the subscription contract code is audited, and when the auditing is passed, the subscription contract code is issued to the data source block chain, so as to deploy the subscription contract corresponding to the subscription contract code on the data source block chain.
The specific content for auditing the subscription contract code may include auditing whether the data description included in the subscription contract matches the data description content determined in step 503 by the data source block chain, so as to prevent the subscription contract from acquiring information beyond the data description content.
Step 506, receiving a subscription interface authorization application of the data source block chain, which is issued by the node device in the subscription block chain across chains; and calling the first intelligent contract, executing the subscription interface authorization logic, and setting an interface calling authority for the subscription contract for the subscription block chain.
After the subscription contract is deployed on the data source block chain, the data source block chain can transmit the subscription contract identifier (contract address) to the subscription block chain across the chain; in order to facilitate the subscription block chain to invoke the subscription contract or to facilitate the association between the subscription block chain and the subscription contract, an interface invoking right for the subscription contract may be set for the subscription block chain.
Specifically, the subscription interface authorization application may include a system identifier of the subscription block chain, a certificate of a node device in the subscription block chain that is responsible for cross-chain call, an identifier of a subscription contract, a name of a subscription interface, and the like, which is not limited in this embodiment.
Step 507, calling the subscription contract, executing the data screening logic, and screening the traceability information data of the specified commodity corresponding to the data description from the traceability information data;
and step 508, returning the screened tracing information data of the specified commodity to the subscription block chain, so that the subscription block chain can execute the tracing service of the specified commodity based on the tracing information data of the specified commodity.
In an illustrative embodiment, a node device of the data source blockchain may send a call transaction for the subscription contract to the data source blockchain to trigger the subscription contract to execute data screening logic.
In yet another illustrative embodiment, the node device of the block chain of data sources may send a call transaction to the first intelligent contract, and after determining that the block chain of subscription contracts has the interface call authority for the subscription contract, further send a call message to the subscription contract by the first intelligent contract, thereby triggering the subscription contract to execute the data screening logic.
In yet another illustrated embodiment, the subscription block chain may send across the chain a subscription contract invocation request message to the data source block chain, where the invocation request message may include an invocation timing requirement for a subscription contract, for example, an invocation of the subscription contract is performed every preset time period, or an invocation of the subscription contract is performed when a preset trigger condition is met, so as to facilitate a node device of the data source block chain to send an invocation transaction for the subscription contract, or the first smart contract, according to the invocation timing requirement.
Correspondingly, after the data screening logic of the subscription contract is invoked, the traceability information data of the specified commodity screened by the subscription contract can be stored in the account space of the data source block chain of the subscription contract, and the node device of the data source block chain acquires the traceability information data of the specified commodity by monitoring the account content of the subscription contract; the node device in the data source block chain, which is responsible for cross-chain communication with the subscription block chain, can push the obtained traceability information data of the specified commodity to the subscription block chain, so that the subscription information data is pushed in a form of meeting the requirement of the calling period.
Corresponding to the above flow implementation, the embodiment of the present specification further provides a cross-link data subscription device 60. The apparatus 60 may be implemented by software, or by hardware, or by a combination of software and hardware. Taking a software implementation as an example, the logical device is formed by reading a corresponding computer program instruction into a memory for running through a Central Processing Unit (CPU) of the device. In terms of hardware, the device in which the apparatus is located generally includes other hardware such as a chip for transmitting and receiving wireless signals and/or other hardware such as a board for implementing a network communication function, in addition to the CPU, the memory, and the storage shown in fig. 7.
As shown in fig. 6, the present specification further provides a cross-chain data subscription apparatus 60, which is applied to a multi-chain system including a data source block chain and a subscription block chain; wherein the data source block chain is connected with the subscription block chain in a cross-chain manner; a first intelligent contract used for managing subscription contract codes issued to the data source block chain in a cross-chain mode by the subscription block chain is deployed on the data source block chain; the execution logic corresponding to the contract code of the first intelligent contract comprises auditing logic for subscribing the contract code; the apparatus 60 is applied to the node device side of the data source block chain, and includes:
a sending unit 602, configured to send, in response to a data query request sent from a node device in the subscription blockchain across chains, a data description of source data related to a target service stored in the data source blockchain across chains to the subscription blockchain;
a receiving unit 604, configured to receive a subscription contract code issued by a node device in a subscription blockchain to the data source blockchain across the chain; the execution logic corresponding to the contract subscription code comprises data screening logic for screening out target data which is determined based on the data description from source data which are stored in the data source block chain and are related to the target service;
an intelligent contract execution unit 606, which invokes the first intelligent contract, executes an audit logic of the subscription contract code, audits the subscription contract code, and issues the subscription contract code to the data source block chain when the audit is passed, so as to deploy a subscription contract corresponding to the subscription contract code on the data source block chain;
the intelligent contract execution unit 606 is further configured to invoke the subscription contract, execute the data screening logic, screen the target data from the source data, and send the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
In a further illustrated embodiment, the data origination block chain is further deployed with a second intelligent contract for performing qualification audit result statistics on the subscription chain;
the receiving unit 604 is further configured to receive a qualification audit application of the data source block chain, which is issued by a node device in the subscription block chain across chains, before sending the data description of the source data related to the target service, stored in the data source block chain to the subscription block chain;
an auditing unit 608, configured to perform qualification auditing on the subscription block chain based on the qualification auditing application, and send a qualification auditing result to the data source block chain;
the intelligent contract execution unit 606 is further configured to invoke the second intelligent contract, execute the qualification audit result statistical logic declared by the second intelligent contract, and obtain the qualification audit result of the subscription block chain.
In yet another illustrated embodiment, the execution logic corresponding to the contract code of the first intelligent contract further comprises subscription interface authorization logic;
the receiving unit 604 is further configured to receive a subscription interface authorization application of the data source block chain, where the subscription interface authorization application is issued by a node device in the subscription block chain across chains;
the intelligent contract execution unit 606 further invokes the first intelligent contract, executes the subscription interface authorization logic, and sets an interface invocation authority for the subscription contract for the subscription block chain.
In yet another illustrated embodiment, the intelligent contract execution unit 606 is further configured to:
calling the first intelligent contract, further calling the subscription contract after determining that the subscription block chain has the interface calling authority for the subscription contract, executing the data screening logic, and screening the target data from the source data;
the sending unit 602 is further configured to send the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
In yet another illustrated embodiment, the receiving unit 604 is further configured to receive a subscription contract invoking request message sent by the subscription block chain across chains, where the subscription contract invoking request message is used to request a node device of the data source block chain to invoke the subscription contract based on a preset time period or a preset trigger condition.
In yet another illustrated embodiment, the data description is generated based on the source data after being desensitized.
In yet another illustrated embodiment, the target business is a source tracing business for the target commodity, and the target data is source tracing information related to production or circulation of the target commodity.
In yet another illustrated embodiment, the data source block chain is a federation chain.
The implementation process of the function and the action of each unit in the apparatus 60 is specifically described in the implementation process of the corresponding step in the cross-link data subscription method executed by the node device of the data source block chain, and related points may refer to part of the description of the method embodiment, which is not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The apparatuses, units and modules described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
Corresponding to the above method embodiment, the embodiment of the present specification further provides a computer device, as shown in fig. 7, including a memory and a processor. Wherein the memory has stored thereon a computer program executable by the processor; the processor, when executing the stored computer program, executes the steps of the cross-chain data subscription method executed by the node device of the data source block chain in the embodiment of the present specification. For a detailed description of each step of the cross-chain data subscription method executed by the node device of the data source block chain, please refer to the previous contents, which is not repeated.
Corresponding to the above method embodiments, the embodiments of the present specification also provide a computer readable storage medium, on which computer programs are stored, which, when executed by a processor, perform the steps of the cross-chain data subscription method performed by the node device of the data source block chain in the embodiments of the present specification. For a detailed description of each step of the cross-chain data subscription method executed by the node device of the data source block chain, please refer to the previous contents, which is not repeated.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data.
Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.

Claims (18)

1. A cross-chain data subscription method is applied to a multi-chain system comprising a data source block chain and a subscription block chain; wherein the data source block chain is connected with the subscription block chain in a cross-chain manner; a first intelligent contract used for managing subscription contract codes issued to the data source block chain in a cross-chain mode by the subscription block chain is deployed on the data source block chain; the execution logic corresponding to the contract code of the first intelligent contract comprises auditing logic for subscribing the contract code; the method is executed by a node device of the data source block chain, and comprises the following steps:
in response to a data query request sent across chains from a node device in the subscription blockchain, sending a data description of source data related to a target service stored in the data source blockchain across chains to the subscription blockchain;
receiving a subscription contract code which is issued by a node device in a subscription block chain to the data source block chain in a cross-chain mode; the execution logic corresponding to the contract subscription code comprises data screening logic for screening out target data which is determined based on the data description from source data which are stored in the data source block chain and are related to the target service;
calling the first intelligent contract, executing auditing logic of the subscription contract code, auditing the subscription contract code, and issuing the subscription contract code to the data source block chain when the auditing is passed so as to deploy a subscription contract corresponding to the subscription contract code on the data source block chain;
and calling the subscription contract, executing the data screening logic, screening the target data from the source data, and sending the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
2. The method of claim 1, the data origination block chain further deployed with a second intelligent contract for qualifying audit result statistics for the subscription chain, the method further comprising:
before sending the data description of the source data related to the target service stored in the data source block chain to the subscription block chain, receiving a qualification audit application of the data source block chain, wherein the qualification audit application is issued by node equipment in the subscription block chain across chains;
based on the qualification auditing application, performing qualification auditing on the subscription block chain, and sending a qualification auditing result to the data source block chain;
calling the second intelligent contract, executing the qualification auditing result statistical logic declared by the second intelligent contract, and obtaining the qualification auditing result of the subscription block chain;
and when the qualification auditing result of the subscription block chain is passed, sending the data description of the source data which is stored in the data source block chain and is related to the target service to the subscription block chain.
3. The method of claim 1 or 2, wherein the execution logic corresponding to the contract code of the first intelligent contract further comprises subscription interface authorization logic; the method further comprises the following steps:
receiving a subscription interface authorization application of the data source block chain, which is issued by node equipment in the subscription block chain in a cross-chain manner;
and calling the first intelligent contract, executing the subscription interface authorization logic, and setting an interface calling authority for the subscription contract for the subscription block chain.
4. The method of claim 3, the invoking the subscription contract, executing the data screening logic, screening the target data from the source data, and sending the screened target data to the subscription blockchain to cause the subscription blockchain to perform the target service based on the target data, comprising:
calling the first intelligent contract, further calling the subscription contract after determining that the subscription block chain has the interface calling authority for the subscription contract, executing the data screening logic, and screening the target data from the source data;
and sending the screened target data to the subscription block chain so as to enable the subscription block chain to execute the target service based on the target data.
5. The method of claim 1, further comprising:
and receiving a subscription contract invoking request message sent by the subscription block chain in a cross-chain mode, wherein the subscription contract invoking request message is used for requesting the node equipment of the data source block chain to invoke the subscription contract based on a preset time period or a preset trigger condition.
6. The method of claim 1, the data description being generated based on the source data after being desensitized.
7. The method of claim 1, wherein the target business is a traceability business for a target commodity, and the target data is traceability information related to production or circulation of the target commodity.
8. The method of claim 1, the data source blockchain is a federation chain.
9. A cross-chain data subscription device is applied to a multi-chain system comprising a data source block chain and a subscription block chain; wherein the data source block chain is connected with the subscription block chain in a cross-chain manner; a first intelligent contract used for managing subscription contract codes issued to the data source block chain in a cross-chain mode by the subscription block chain is deployed on the data source block chain; the execution logic corresponding to the contract code of the first intelligent contract comprises auditing logic for subscribing the contract code; the device is applied to a node device end of the data source block chain, and comprises:
a sending unit, configured to send a data description of source data related to a target service stored in the data source blockchain to the subscription blockchain in a cross-chain manner in response to a data query request sent from a node device in the subscription blockchain in a cross-chain manner;
the receiving unit is used for receiving a subscription contract code which is issued to the data source block chain by the node equipment in the subscription block chain in a cross-chain mode; the execution logic corresponding to the contract subscription code comprises data screening logic for screening out target data which is determined based on the data description from source data which are stored in the data source block chain and are related to the target service;
the intelligent contract execution unit is used for calling the first intelligent contract, executing auditing logic of the subscription contract code, auditing the subscription contract code, and issuing the subscription contract code to the data source block chain when the auditing is passed so as to deploy the subscription contract corresponding to the subscription contract code on the data source block chain;
the intelligent contract execution unit is further configured to invoke the subscription contract, execute the data screening logic, screen the target data from the source data, and send the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
10. The apparatus according to claim 9, wherein the data origination block chain is further deployed with a second intelligent contract for performing qualification audit result statistics on the subscription chain;
the receiving unit is further configured to receive a qualification audit application of the data source block chain, which is issued by a node device in the subscription block chain across chains, before sending the data description of the source data related to the target service, stored in the data source block chain to the subscription block chain;
the auditing unit is used for executing qualification auditing of the subscription block chain based on the qualification auditing application and sending a qualification auditing result to the data source block chain;
the intelligent contract execution unit is further configured to invoke the second intelligent contract, execute the qualification audit result statistical logic declared by the second intelligent contract, and obtain the qualification audit result of the subscription block chain.
11. Apparatus according to claim 9 or 10, wherein the execution logic for contract code corresponding to the first intelligent contract further comprises subscription interface authorization logic;
the receiving unit is further configured to receive a subscription interface authorization application of the data source block chain, where the subscription interface authorization application is issued by a node device in the subscription block chain across chains;
the intelligent contract execution unit further calls the first intelligent contract, executes the subscription interface authorization logic, and sets an interface calling authority for the subscription contract for the subscription block chain.
12. The apparatus of claim 11, the smart contract execution unit further to:
calling the first intelligent contract, further calling the subscription contract after determining that the subscription block chain has the interface calling authority for the subscription contract, executing the data screening logic, and screening the target data from the source data;
the sending unit is further configured to send the screened target data to the subscription block chain, so that the subscription block chain executes the target service based on the target data.
13. The apparatus according to claim 9, the receiving unit is further configured to receive a subscription contract invocation request message sent across the subscription block chain, where the subscription contract invocation request message is used to request a node device of the data source block chain to invoke the subscription contract based on a preset time period or a preset trigger condition.
14. The apparatus of claim 9, the data description generated based on the source data after being desensitized.
15. The apparatus of claim 9, wherein the target business is a traceability business for a target commodity, and the target data is traceability information related to production or circulation of the target commodity.
16. The apparatus of claim 9, the data source blockchain is a federation chain.
17. A computer device, comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; the processor, when executing the computer program, performs the method of any of claims 1 to 8.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202010254516.4A 2020-04-02 2020-04-02 Cross-link data subscription method and device Active CN111159307B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202010927876.6A CN112182096A (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device
CN202010254516.4A CN111159307B (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device
PCT/CN2021/081798 WO2021197097A1 (en) 2020-04-02 2021-03-19 Cross-chain data subscription

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010254516.4A CN111159307B (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010927876.6A Division CN112182096A (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device

Publications (2)

Publication Number Publication Date
CN111159307A true CN111159307A (en) 2020-05-15
CN111159307B CN111159307B (en) 2020-07-24

Family

ID=70567691

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010927876.6A Pending CN112182096A (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device
CN202010254516.4A Active CN111159307B (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010927876.6A Pending CN112182096A (en) 2020-04-02 2020-04-02 Cross-link data subscription method and device

Country Status (2)

Country Link
CN (2) CN112182096A (en)
WO (1) WO2021197097A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214802A (en) * 2020-09-30 2021-01-12 电子科技大学 Block chain intelligent contract message publishing and subscribing method
CN112507028A (en) * 2020-12-18 2021-03-16 杭州趣链科技有限公司 Data storage method, device, equipment and storage medium
CN113077342A (en) * 2021-04-06 2021-07-06 立旃(上海)科技有限公司 Method and device for cross-border data use based on block chain
CN113301132A (en) * 2021-05-12 2021-08-24 苏州域乎区块链科技有限公司 Transaction subscription system and method based on alliance chain
WO2021197097A1 (en) * 2020-04-02 2021-10-07 支付宝(杭州)信息技术有限公司 Cross-chain data subscription
CN114116883A (en) * 2020-08-28 2022-03-01 京东方科技集团股份有限公司 Data management method, data management device, block chain network and system
WO2023040498A1 (en) * 2021-09-15 2023-03-23 支付宝(杭州)信息技术有限公司 User service utilization
CN116523518A (en) * 2023-07-03 2023-08-01 中铱数字科技有限公司 Cross-channel data access method, system and storage medium based on blockchain
US11848937B2 (en) * 2020-09-18 2023-12-19 Booz Allen Hamilton Inc. Secure communication using blockchain technology

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553882B (en) * 2022-01-18 2024-03-19 广西壮族自治区信息中心 Government affair data treatment platform based on blockchain
CN114519078B (en) * 2022-04-19 2022-08-09 北京理工大学 Cross-chain credible query method and system based on block chain
CN114726548B (en) * 2022-05-19 2022-11-11 国网数字科技控股有限公司 Cross-chain-supported green electricity tracing method and system
CN114938392B (en) * 2022-06-23 2023-06-30 成都质数斯达克科技有限公司 Distributed subscription and release system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180005186A1 (en) * 2016-06-30 2018-01-04 Clause, Inc. System and method for forming, storing, managing, and executing contracts
CN108366105A (en) * 2018-01-30 2018-08-03 百度在线网络技术(北京)有限公司 Data access method, device, system and the computer-readable medium of transregional piece of chain
CN108415784A (en) * 2018-02-27 2018-08-17 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
CN108848119A (en) * 2018-04-03 2018-11-20 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
CN110311790A (en) * 2019-06-28 2019-10-08 阿里巴巴集团控股有限公司 A kind of method and apparatus that message can be certified in across chain transmission

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170223589A1 (en) * 2016-02-01 2017-08-03 Qualcomm Incorporated Managing Data Reception Following a Tune-Away
CN114866543B (en) * 2017-06-27 2023-11-17 华为技术有限公司 Information transmission method, device and system
CN109981641B (en) * 2019-03-26 2020-10-02 北京邮电大学 Block chain technology-based safe publishing and subscribing system and publishing and subscribing method
CN110417905B (en) * 2019-08-02 2022-06-07 深圳市迅雷网络技术有限公司 Contract issuing method, device, equipment and union chain system
CN112182096A (en) * 2020-04-02 2021-01-05 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180005186A1 (en) * 2016-06-30 2018-01-04 Clause, Inc. System and method for forming, storing, managing, and executing contracts
CN108366105A (en) * 2018-01-30 2018-08-03 百度在线网络技术(北京)有限公司 Data access method, device, system and the computer-readable medium of transregional piece of chain
CN108415784A (en) * 2018-02-27 2018-08-17 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
CN108848119A (en) * 2018-04-03 2018-11-20 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
CN110311790A (en) * 2019-06-28 2019-10-08 阿里巴巴集团控股有限公司 A kind of method and apparatus that message can be certified in across chain transmission

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021197097A1 (en) * 2020-04-02 2021-10-07 支付宝(杭州)信息技术有限公司 Cross-chain data subscription
CN114116883A (en) * 2020-08-28 2022-03-01 京东方科技集团股份有限公司 Data management method, data management device, block chain network and system
WO2022042517A1 (en) * 2020-08-28 2022-03-03 京东方科技集团股份有限公司 Data management method, data management device, blockchain network and system
US11848937B2 (en) * 2020-09-18 2023-12-19 Booz Allen Hamilton Inc. Secure communication using blockchain technology
CN112214802B (en) * 2020-09-30 2023-04-28 电子科技大学 Block chain intelligent contract message publishing and subscribing method
CN112214802A (en) * 2020-09-30 2021-01-12 电子科技大学 Block chain intelligent contract message publishing and subscribing method
CN112507028A (en) * 2020-12-18 2021-03-16 杭州趣链科技有限公司 Data storage method, device, equipment and storage medium
CN112507028B (en) * 2020-12-18 2023-02-21 杭州趣链科技有限公司 Data storage method, device, equipment and storage medium
CN113077342A (en) * 2021-04-06 2021-07-06 立旃(上海)科技有限公司 Method and device for cross-border data use based on block chain
CN113077342B (en) * 2021-04-06 2023-01-20 立旃(上海)科技有限公司 Method and device for cross-border data use based on block chain
CN113301132A (en) * 2021-05-12 2021-08-24 苏州域乎区块链科技有限公司 Transaction subscription system and method based on alliance chain
WO2023040498A1 (en) * 2021-09-15 2023-03-23 支付宝(杭州)信息技术有限公司 User service utilization
CN116523518A (en) * 2023-07-03 2023-08-01 中铱数字科技有限公司 Cross-channel data access method, system and storage medium based on blockchain
CN116523518B (en) * 2023-07-03 2023-09-15 中铱数字科技有限公司 Cross-channel data access method, system and storage medium based on blockchain

Also Published As

Publication number Publication date
WO2021197097A1 (en) 2021-10-07
CN111159307B (en) 2020-07-24
CN112182096A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN111159307B (en) Cross-link data subscription method and device
CN110471984B (en) Service processing method and device based on block chain and electronic equipment
CN110162470B (en) Block chain testing method and device
CN110163590B (en) Payment withholding method and device based on block chain, electronic equipment and storage medium
CN110147990B (en) Payment withholding subscription method and device based on block chain and electronic equipment
CN110458631B (en) Bill number distribution method and device based on block chain and electronic equipment
CN112200571B (en) Resource distribution method and device based on block chain and electronic equipment
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
CN112200569B (en) Digital seal using method and device based on block chain and electronic equipment
CN111639125A (en) Resource circulation method and device based on block chain
CN112200568B (en) Block chain based account creation method and device and electronic equipment
CN112560114B (en) Method and device for calling intelligent contract
CN112883109B (en) Block chain-based digital commodity transaction method and device
CN112766854B (en) Block chain-based digital commodity transaction method and device
CN112200567A (en) Resource management method and device based on block chain and electronic equipment
CN112100588A (en) Block chain-based digital seal application method and device and electronic equipment
CN112200572A (en) Resource distribution method and device based on block chain and electronic equipment
CN110443612B (en) Block chain-based reimbursement expense segmentation method and device and electronic equipment
CN110458541B (en) Object replacement method and device based on block chain
CN111679902B (en) Intelligent contract calling method and device based on block chain and electronic equipment
CN113469811A (en) Block chain transaction processing method and device
CN116645061A (en) Customs clearance data processing method based on block chain system and consensus node
CN113849191B (en) Intelligent contract deployment method, system, device and storage medium
CN113536384B (en) Block chain-based private data mapping method, block chain-based private data mapping device, block chain-based private data mapping medium and electronic equipment
CN113469656A (en) Block chain-based physical seal destroying method and device 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
GR01 Patent grant
GR01 Patent grant