CN113077342B - Method and device for cross-border data use based on block chain - Google Patents

Method and device for cross-border data use based on block chain Download PDF

Info

Publication number
CN113077342B
CN113077342B CN202110368495.3A CN202110368495A CN113077342B CN 113077342 B CN113077342 B CN 113077342B CN 202110368495 A CN202110368495 A CN 202110368495A CN 113077342 B CN113077342 B CN 113077342B
Authority
CN
China
Prior art keywords
transaction
contract
user data
blockchain
data
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
CN202110368495.3A
Other languages
Chinese (zh)
Other versions
CN113077342A (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.)
Lizhan Shanghai Technology Co ltd
Original Assignee
Lizhan Shanghai 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 Lizhan Shanghai Technology Co ltd filed Critical Lizhan Shanghai Technology Co ltd
Priority to CN202110368495.3A priority Critical patent/CN113077342B/en
Publication of CN113077342A publication Critical patent/CN113077342A/en
Application granted granted Critical
Publication of CN113077342B publication Critical patent/CN113077342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • 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)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Health & Medical Sciences (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Medical Informatics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the specification provides a method and a device for cross-border data use based on a block chain. In the method, an overseas data user can issue an intelligent contract to an internal block chain, and the intelligent contract limits a processing mode of a plurality of user data stored in the internal block chain through contract codes; service providers deployed in the environment can process a plurality of user data according to a processing mode defined by an intelligent contract by calling the intelligent contract, obtain a corresponding processing result and perform target business based on the processing result. In this way, for the user data which is stored in the environment and does not allow cross-border flow, the user data can be processed according to the processing mode expected by the data user to obtain the processing result without sending the user data to the overseas data user, the target service which needs to be realized in the environment and is realized based on the processing result can be ensured to be normally carried out, and the requirement of national security and the protection of personal privacy are met.

Description

Method and device for cross-border data use based on block chain
Technical Field
One or more embodiments of the present disclosure relate to the field of computers, and more particularly, to a method and apparatus for cross-border data usage based on blockchains.
Background
With the increasingly deeper knowledge of data cross-border flow, the international society recognizes not only the benefits that may be brought by data cross-border flow, but also the impact that the data cross-border flow may have on national security and personal privacy. Correspondingly, based on the factors such as the requirement of national security, the protection of personal privacy and the like, corresponding supervision rules or systems are gradually formed for the cross-border flow of data; for example, user data generated by a user within a home using services provided by service providers, typically requires localized storage within the home without allowing for cross-border flow.
When the user data stored in the home environment is not allowed to flow across the border, the user data cannot be obtained by the data users deployed outside, so that the user data cannot be processed according to the expected processing mode, and the business which needs to be realized in the home environment and is realized based on the corresponding processing result is influenced.
Disclosure of Invention
One or more embodiments of the present specification provide a method and apparatus for cross-border usage data based on blockchains.
In a first aspect, a method for cross-border usage data based on a blockchain is provided, including:
a blockchain deployed within an environment receives a first transaction from a service provider deployed within the environment for invoking a first intelligent contract, the first intelligent contract being published into the blockchain by a data consumer deployed overseas, the first intelligent contract comprising a first contract code, the first transaction comprising a first function identification indicating the first contract code;
the blockchain executes the first contract code in accordance with the first transaction to implement: the method comprises the steps of obtaining a plurality of user data stored in the environment, processing the user data according to a preset algorithm to obtain a processing result, and returning the processing result to the service provider, so that the service provider performs a target service according to the processing result.
In one possible embodiment, the method further comprises: the blockchain receiving a second transaction from the data consumer for deploying the first smart contract, the second transaction including the first contract code and including a number of rights vouchers held by a first account registered by the data consumer on the blockchain;
the obtaining the user data stored in the environment specifically includes obtaining the user data stored in the environment and corresponding to the rights and interests certificates.
In one possible embodiment, the method further comprises:
the blockchain receiving a third transaction from the data consumer for invoking a second smart contract, the third transaction including the first account and at least one of the rights voucher;
the blockchain executes the second intelligent contract in accordance with the third transaction to effect allocation of at least one of the rights voucher included with the third transaction to the first account.
In one possible embodiment, the number of user data is stored at the service provider; the rights and interests corresponding to the user data are set by the service provider and provided to the user corresponding to the user data by the service provider.
In a possible implementation, the processing result is used to indicate a number of target user data included in the number of user data.
In one possible embodiment, the first intelligent contract further comprises a second contract code, and the data consumer is registered with a first account on the blockchain, the method further comprising:
the blockchain receives a fourth transaction for invoking the first intelligent contract from the service provider, wherein the fourth transaction comprises a second account registered on the blockchain by the service provider, an execution result corresponding to the target service and a second function identifier indicating the second contract code;
the blockchain executes the second contract code in accordance with the fourth transaction to effect a transfer of digital rights from the first account to the second account in accordance with the execution result.
In one possible embodiment, the digital rights include a plurality of digital legal coins or at least one rights voucher, and the at least one rights voucher corresponds to at least one piece of current user data in a one-to-one manner.
In a second aspect, an apparatus for cross-border usage data based on blockchains is provided, the apparatus being deployed in a blockchain node included in a blockchain within a border, the apparatus comprising:
a transaction receiving unit configured to receive a first transaction from a service provider deployed within an environment for invoking a first intelligent contract, the first intelligent contract issued into the blockchain by an overseas data consumer deployed, the first intelligent contract comprising a first contract code, the first transaction comprising a first function identification indicating the first contract code;
a contract execution unit configured to execute the first contract code in accordance with the first transaction to implement: the method comprises the steps of obtaining a plurality of user data stored in the environment, processing the user data according to a preset algorithm to obtain a processing result, and returning the processing result to the service provider, so that the service provider performs a target service according to the processing result.
In one possible implementation, the transaction receiving unit is further configured to receive a second transaction for deploying the first smart contract from the data consumer, the second transaction including the first contract code and including a number of rights vouchers held by a first account registered by the data consumer on the blockchain; the apparatus further includes a contract deployment unit configured to deploy the first smart contract in accordance with the second transaction; wherein the plurality of entitlement credentials correspond to the plurality of user data.
In one possible embodiment, the transaction receiving unit is further configured to receive a third transaction for invoking a second smart contract from the data consumer, the third transaction including the first account and at least one of the rights voucher; the contract execution unit is further configured to execute the second intelligent contract according to the third transaction to realize allocation of at least one rights voucher included in the third transaction to the first account.
In one possible embodiment, the number of user data is stored at the service provider; the rights and interests corresponding to the user data are set by the service provider and provided to the user corresponding to the user data by the service provider.
In a possible implementation, the processing result is used to indicate a number of target user data included in the number of user data.
In one possible embodiment, the first intelligent contract further includes a second contract code, and the data consumer registers with a first account on the blockchain; the transaction receiving unit is further configured to receive a fourth transaction for invoking the first intelligent contract from the service provider, wherein the fourth transaction comprises a second account registered by the service provider on the blockchain, an execution result corresponding to the target service, and a second function identifier indicating the second contract code;
the contract execution unit is further configured to execute the second contract code in accordance with the fourth transaction to effect a transfer of a digital right from the first account to the second account in accordance with the execution result.
By the method and the device provided in one or more embodiments of the present specification, a data user deployed outside the country can issue an intelligent contract to a blockchain inside the country, wherein the intelligent contract defines a processing mode of a plurality of user data stored inside the country through contract codes; the service provider deployed in the environment can process a plurality of user data according to the processing mode defined by the intelligent contract by calling the intelligent contract, obtain a corresponding processing result and perform target business based on the processing result. In this way, for the user data which is stored in the environment and is not allowed to flow across the environment, the user data can be processed according to the processing mode expected by the data user to obtain the processing result without sending the user data to the overseas data user, the target business which needs to be realized in the environment and is realized based on the processing result can be ensured to be normally carried out, and the requirement of national security and the protection of personal privacy are met.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a system framework diagram of the solution provided in the examples of this specification;
FIG. 2 is a flowchart illustrating a method for cross-border usage of data based on a blockchain in an embodiment of the present specification;
FIG. 3 is a diagram of a block chain for data usage direction issuing intelligent contracts in an embodiment of the present specification;
FIG. 4 is a schematic diagram of an embodiment of the present specification for enabling an account of a data consumer to obtain a rights voucher;
FIG. 5 is a schematic diagram illustrating an embodiment of the present description for incentivizing accounts of service providers;
fig. 6 is a schematic structural diagram of an apparatus for performing cross-border usage data based on a blockchain in an embodiment of the present specification.
Detailed Description
Various non-limiting embodiments provided by the present specification are described in detail below with reference to the attached figures.
Fig. 1 is a system framework diagram of the technical solution provided in the embodiment of the present specification. As shown in fig. 1, for a service provider 10 deployed within an area a, it can be said that the service provider 10 is deployed within the environment. When a user uses a target service provided by the service provider 10, the service provider 10 will generate user data corresponding to the user according to the usage of the target service by the user. The user data may include the identity assigned to the user by the service provider 10 and may also include information such as the user's age, address, telephone, and academic calendar. The target services may include online shopping, information recommendation/provision, and the like. It should be noted that, when the target service includes online shopping, the user data may further include: one or more items of information such as the accumulated amount of consumption of the user, the average amount of consumption of the user per unit time, the accumulated amount of consumption of the user for purchasing the product belonging to the target item, and the average amount of consumption of the user for purchasing the product belonging to the target item per unit time.
User data generated by the service provider 10 may need to be stored locally within region a without allowing cross-border flow based on national security needs and/or protection of personal privacy. Then, the user data may be stored by the service provider 10 itself, or may be stored by a trusted third party deployed within the area a, such as by a blockchain 20 deployed within the area a and including a plurality of blockchain nodes; user data cannot be sent to data consumers that are not deployed within area a, such as data consumer 30 within area B. It should be noted that, with respect to the service provider 10, the data consumer 30 may be expressed as a data provider 30 deployed abroad.
In an actual business scenario, the service provider 10 and the data consumer 30 may each be implemented as any computer device, computing platform, and device cluster having computing and storage capabilities. Region a may characterize a particular administrative region, and region B may characterize other regions than the particular administrative region; for example, region a may represent china and region B may represent other regions than china. The area a and the area B may correspond to different and interconnected communication networks, for example, the area a corresponds to a communication network a accessed by the service provider 10 and the blockchain 20, and the area B corresponds to a communication network B accessed by the data consumer 30; accordingly, user data generated by the service provider 10 is not allowed to flow across the border, essentially including not allowing user data generated by the service provider 10 to be transmitted from the communication network a into the communication network b.
In the embodiment of the present specification, the data user 30 deployed outside the country may issue an intelligent contract to the blockchain 20 inside the country, the intelligent contract defining, by contract code, a manner of processing a number of user data stored inside the country; the service provider 10 deployed in the environment can process a plurality of user data according to the processing mode defined by the intelligent contract by calling the intelligent contract, obtain the corresponding processing result and perform the target service based on the processing result. In this way, for the user data which is stored in the environment and is not allowed to flow across the environment, the user data can be processed to obtain a processing result according to the processing mode expected by the data user without sending the user data to the overseas data user, the target service which needs to be realized in the environment and is realized based on the processing result can be ensured to be normally carried out, and the requirement of national security and the protection of personal privacy are met.
Fig. 2 is a flowchart of a method for cross-border usage data based on a blockchain provided in an embodiment of the present specification. As shown in fig. 2, the method may include at least step 201 and step 203.
At step 201, a blockchain 20 deployed within a home receives a transaction T1 for invoking an intelligent contract C1 from a service provider 10 deployed within the home.
The intelligent contract C1 may be expressed as a first intelligent contract. The intelligent contracts C1 are issued into the blockchain 20 by the party of the data usage 30 deployed outside, the intelligent contracts C1 including at least a first contract code. Referring to FIG. 3, the deployment of intelligent contracts C1 in blockchain 20 may be accomplished through steps 301 and 303.
At step 301, the data consumer 30 sends a transaction T2 for deploying the smart contract C1 to the blockchain 20. Wherein transaction T2 may be expressed as a second transaction, transaction T2 including at least the aforementioned first contract code. Specifically, the From field of transaction T2 may include a first account of the Data consumer 30 registered on the blockchain 20, and the Data field of transaction T2 may include a contract file of the intelligent contract C1, including at least the aforementioned first contract code therein. The predetermined transaction in which the first contract code is able to be implemented will be described in detail in a subsequent process.
In some embodiments, transaction T2 may also include several entitlement credentials held by the first account. For any single equity certificate, any account registered on the blockchain 20 has the authority to use the user data corresponding to the equity certificate when the equity certificate is held by the account.
The transaction T2 may include a number of rights vouchers that are located in the contract file of the intelligent contract C1 independently of the first contract code or may be embedded in the first contract code included in the contract file.
A single entitlement credential may be set by the service provider 10 that generated its corresponding user data and provided to the user for that user data by the service provider 10. As such, when the data consumer 30 desires to use user data generated by the service provider 10, the collection of entitlement credentials from the user may be purposefully implemented, enabling the first account registered on the blockchain 20 to hold the entitlement credentials that it obtained from the user.
In a first possible embodiment, the service provider 10 setting the equity voucher may allocate the equity voucher to a third account registered on the blockchain 20 by the corresponding user by invoking a specific intelligent contract deployed on the blockchain 20, and the data consumer 30 may utilize the first account to purposely transact with the third account on the blockchain 20 to obtain the equity voucher originally held by the third account.
In a second possible embodiment, the service provider 10 configured with the right certificate may provide the right certificate to a corresponding user through a preset communication manner (e.g., a short message service, a mailbox, or other communication tools). When the data consumer 30 needs to use the user data generated by the service provider 10, a rights voucher can be collected from the user in various possible ways, e.g. in connection with the user's line or through a corresponding transaction platform. In this case, referring to fig. 4, the first account can hold the rights voucher collected by the data consumer 30 through the following steps 401 and 403.
Blockchain 20 receives transaction T3 from data consumer 30 for invoking intelligent contract C2, step 401. Where the pre-deployed smart contract C2 may be expressed as a second smart contract and the transaction T3 may be expressed as a third transaction. Transaction T3 may include a first account of the data consumer 30 registered on the blockchain 20, and one or more entitlement credentials. For example, the From field of transaction T3 may include a first account that data consumer 30 registered on blockchain 20; the Data field of transaction T3 includes one or more rights credentials obtained by the Data consumer 30, optionally a first account; the To field of transaction T3 may include the contract address of intelligent contract C2.
At step 403, the blockchain 20 executes the intelligent contract C2 according to the transaction T3 to implement the distribution of the respective entitlement credential included in the transaction T3 to the first account of the data consumer 30 registered on the blockchain 20.
It should be noted that the first account may hold several entitlement certificates contained in the transaction T2 by performing steps 401 and 403 one or more times.
In some embodiments, in addition to the aforementioned first contract code, and optionally a number of entitlement credentials, in transaction T2 may also include a second contract code different from the first contract code, i.e., the smart contract may also include a second contract code different from the first contract code. The predetermined transaction in which the second contract code is implemented will be described in detail in a subsequent process.
With continued reference to FIG. 3, at step 303, blockchain 20 deploys smart contracts C1 in accordance with transaction T2.
The specific process of blockchain 20 deploying intelligent contracts C1 may include, but is not limited to, assigning a contract address to intelligent contract C1 and storing the contract address in association with Data in the Data field of transaction T2. As previously described, the Data field of transaction T2 may include a contract file for smart contract C1, the contract file including at least a first contract code, and optionally a second contract code and/or a number of entitlement credentials; then, the blockchain 20 may complete the deployment of the intelligent contracts C1 in the blockchain 20 by associating the contract addresses of the intelligent contracts C1 with the storage of the contract file.
It should be noted that when the transaction T2 for deploying the intelligent contract C1 includes a plurality of right vouchers, the blockchain 20 may further verify that the data user 30 registers the first account on the blockchain 20, determine whether all right vouchers held by the first account include a plurality of right vouchers included in the transaction T2, if so, deploy the intelligent contract C1 normally, otherwise, terminate deploying the intelligent contract C1.
In the case of normal deployment of the smart contract C1, it may be stated as the first transaction for the transaction T1 for invoking the smart contract C1. The transaction T1 includes at least a first function identification indicative of a first contract code. For example, the From field of transaction T1 may include the second account that the service provider 10 registered on the blockchain 20, the To field of transaction T1 may include the contract address of the intelligent contract C1, and the Data field of transaction T1 may include a first function identification for indicating a first contract code, which may be an identification of an entry function of the first contract code.
Returning to FIG. 2, at step 203, the blockchain 20 executes the first contract code according to transaction T1.
In the event that transaction T2 for deploying smart contract C1 does not include several entitlement credentials, the first contract code, when executed, may implement the following predetermined transaction: acquires a plurality of user data stored in the environment, processes the plurality of user data according to a preset algorithm to obtain a processing result, and returns the processing result to the service provider 10.
In the case where transaction T2 for deploying smart contract C1 includes several entitlement credentials, the first contract code, when executed, may implement the following predetermined transaction: acquires a plurality of user data stored in the home environment and corresponding to the plurality of right vouchers, processes the plurality of user data according to a preset algorithm to obtain a processing result, and returns the processing result to the service provider 10. In this way, the rights voucher is actually used as an index of the user data to be acquired, the user data actually used by the data consumer 30 is limited to the user data corresponding to each of the rights voucher included in the transaction T2, and the data consumer 10 is not used and cannot use other user data stored in the service provider 10.
The preset algorithm can be flexibly configured by the data consumer 30.
In a more specific example, the single piece of user data includes at least an identification assigned to the user data by the service provider 10, and field values corresponding to a number of predetermined fields, such as the aforementioned age, address, telephone number, and cumulative amount of money spent purchasing items belonging to the target category. Accordingly, the predetermined algorithm may include, but is not limited to: firstly, carrying out specific mathematical operation on field values which are included in single user data and correspond to a plurality of preset fields to obtain a service score of the single user data; for example, a plurality of field values included in the singled user data are quantized (for example, when the field value in the age field is greater than a first preset threshold, the field value is quantized to a preset value k1, otherwise, the field value is quantized to a preset value k 2), and a weighted average value is calculated for a result of the quantization processing to serve as a service score corresponding to the user data. Then determining a processing result according to the size of the service score; for example, the user data corresponding to the service score greater than the second preset threshold is determined as the target user data, and the identity identifiers included in the target user data constitute the processing result to be returned to the service provider 10.
After receiving the processing result, the service provider 10 may perform the target service according to the processing result. Still taking the processing result including the identity identifiers respectively included in the target user data as an example, the target service may recommend a message that may be interested in the target user data to the target users corresponding to the target user data according to the identity identifiers respectively included in the target user data, where the recommended message may be a news message or advertisement information of a specified product, and the like.
Accordingly, the service provider 10 may also obtain a corresponding incentive from the data consumer 30 according to the execution result of the target service performed by the service provider. Specifically, continuing with fig. 5, the service provider 10 may be prompted by the data consumer 30 by steps 501 and 503 as follows.
At step 501, the blockchain 20 receives a transaction T4 from the service provider 10 for invoking the intelligent contract C1. Transaction T4 may be expressed as a fourth transaction, and transaction T4 includes a second account registered by service provider 10 on blockchain 20, an execution result corresponding to the target service, and a second function identifier indicating the aforementioned second contract code, where the second function identifier may specifically be an identifier of an entry function of the second contract code.
The meaning of the execution result may be different depending on the target service executed by the service provider 10. For example, when the target service is recommending news messages to the user, the execution results may include, but are not limited to, one or more of the following items of information: the cumulative frequency with which news messages are successfully read by several target users, the cumulative time, and other metrics calculated based on the cumulative frequency and the cumulative time. For another example, when the target service is to recommend advertisement information for a specified product to the user, the execution result may include, but is not limited to, one or more of the following items of information: and the target users purchase the appointed products according to the advertisement information, accumulate the quantity of the appointed products purchased and accumulate the money for purchasing the appointed products.
At step 503, the blockchain 20 executes the second contract code according to the transaction T4 to effect a transfer of the digital rights from the first account registered on the blockchain 20 by the data consumer 30 to the second account registered on the blockchain 20 by the service provider 10 according to the execution result.
The digital rights may include several digital french coins.
The digital rights may include at least one rights voucher. It can be understood that after the rights voucher is transferred from the first account to the second account, the first account will no longer have the right to use the current user data corresponding to the second rights voucher.
The single entitlement credential transferred from the first account to the second account may be different from any entitlement credential contained in the smart contract C1/transaction T2. In other words, its corresponding current user data is different from the user data corresponding to any entitlement credential in the smart contract C1/transaction T2; the current user data may be other user data generated by the service provider 10 or user data generated by a third party other than the service provider 10.
The number of digital legal coins or right vouchers to be transferred from the first account to the second account is calculated according to the execution result. For example, the execution result includes the number m1 of the specified products purchased by the target users according to the advertisement information, and the preset value m2 can be multiplied by the number m1 to obtain the number of the digital legal coins or the right vouchers to be transferred.
Based on the same concept as the foregoing method embodiment, an embodiment of the present specification further provides a device for performing cross-border usage data based on a blockchain, where the device is deployed in a blockchain node included in a blockchain 20 in a border. Referring to fig. 6, the apparatus includes:
a transaction receiving unit 601 configured to receive a first transaction from a service provider deployed within an environment for invoking a first intelligent contract, the first intelligent contract being issued into the blockchain by a data consumer deployed overseas, the first intelligent contract comprising a first contract code, the first transaction comprising a first function identification indicating the first contract code;
a contract execution unit 603 configured to execute the first contract code according to the first transaction to implement: the method comprises the steps of obtaining a plurality of user data stored in the environment, processing the user data according to a preset algorithm to obtain a processing result, and returning the processing result to the service provider, so that the service provider performs a target service according to the processing result.
In a possible implementation, the transaction receiving unit 601 is further configured to receive a second transaction for deploying the first smart contract from the data user, where the second transaction includes the first contract code and includes a number of rights vouchers held by a first account registered on the blockchain by the data user; the apparatus further comprises a contract deployment unit 605 configured to deploy the first smart contract in accordance with the second transaction; wherein the plurality of entitlement credentials correspond to the plurality of user data.
In a possible embodiment, the transaction receiving unit 601 is further configured to receive a third transaction for invoking a second smart contract from the data consumer, the third transaction including the first account and at least one of the rights voucher; the contract execution unit 603 is further configured to execute the second smart contract according to the third transaction to enable allocation of at least one of the rights voucher included in the third transaction to the first account.
In one possible embodiment, the number of user data is stored at the service provider; the rights and interests corresponding to the user data are set by the service provider and provided to the user corresponding to the user data by the service provider.
In a possible implementation, the processing result is used to indicate a number of target user data included in the number of user data.
In one possible embodiment, the first intelligent contract further includes a second contract code, and the data consumer registers with a first account on the blockchain; the transaction receiving unit 601 is further configured to receive a fourth transaction for invoking the first intelligent contract from the service provider, where the fourth transaction includes a second account registered by the service provider on the blockchain, an execution result corresponding to the target service, and a second function identifier indicating the second contract code;
the contract execution unit 603 is further configured to execute the second contract code according to the fourth transaction, and to transfer a digital right from the first account to the second account according to the execution result.
Those skilled in the art will recognize that in one or more of the examples described above, the functions described in this specification can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, a computer program corresponding to these functions may be stored in a computer-readable medium or transmitted as one or more instructions/codes on the computer-readable medium, so that when the computer program corresponding to these functions is executed by a computer, the method described in any one of the embodiments of the present specification is implemented by the computer.
Also provided in an embodiment of the present specification is a computer-readable storage medium having a computer program stored thereon, which, when executed in a computing device, performs the method provided in any one of the embodiments of the present specification.
The embodiment of the present specification further provides a computing device, which includes a memory and a processor, where the memory stores executable codes, and when the processor executes the executable codes, the computing device implements the method provided in any one embodiment of the present specification.
In the present specification, each embodiment is described in a progressive manner, and the same and similar parts in each embodiment are referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for cross-border use of data based on blockchains, comprising:
a blockchain deployed within an environment receives, from a service provider deployed within the environment, a first transaction for invoking a first intelligent contract, the first intelligent contract published into the blockchain by an overseas data consumer, the first intelligent contract comprising a first contract code, the first transaction comprising a first function identification indicating the first contract code;
the blockchain executes the first contract code in accordance with the first transaction to implement: the method comprises the steps of obtaining a plurality of user data stored in the environment, processing the user data according to a preset algorithm to obtain a processing result, and returning the processing result to a service provider, so that the service provider performs a target service according to the processing result, wherein the user data cannot be sent to a data user.
2. The method of claim 1, further comprising:
the blockchain receiving a second transaction from the data consumer for deploying the first smart contract, the second transaction including the first contract code and including a number of rights vouchers held by a first account registered by the data consumer on the blockchain;
the blockchain deploys the first smart contract according to the second transaction;
the obtaining the user data stored in the home environment may specifically include obtaining the user data stored in the home environment and corresponding to the rights credentials.
3. The method of claim 2, further comprising:
the blockchain receiving a third transaction from the data consumer for invoking a second smart contract, the third transaction including the first account and at least one of the rights voucher;
the blockchain executes the second smart contract in accordance with the third transaction to effect allocation of at least one of the rights voucher included with the third transaction to the first account.
4. The method of claim 2, wherein the number of user data is stored at the service provider; the rights and interests corresponding to the user data are set by the service provider and provided to the user corresponding to the user data by the service provider.
5. The method according to any one of claims 1 to 4, wherein the processing result is used to indicate a number of target user data satisfying a preset condition in the number of user data.
6. The method of any of claims 1-4, wherein the first intelligent contract further comprises a second contract code, and wherein the data consumer is registered with a first account on the blockchain, the method further comprising:
the blockchain receives a fourth transaction for invoking the first intelligent contract from the service provider, wherein the fourth transaction comprises a second account registered on the blockchain by the service provider, an execution result corresponding to the target service and a second function identifier indicating the second contract code;
the blockchain executes the second contract code in accordance with the fourth transaction to effect a transfer of a digital rights benefit from the first account to the second account in accordance with the execution result.
7. The method of claim 6, wherein the digital rights include digital legal coins or at least one rights voucher, the at least one rights voucher corresponding to at least one piece of current user data one to one.
8. An apparatus for cross-border usage data based on blockchains, the apparatus being deployed in a blockchain node comprised by the blockchain, the apparatus comprising:
a transaction receiving unit configured to receive a first transaction from a service provider deployed within an environment for invoking a first intelligent contract, the first intelligent contract issued into the blockchain by an overseas data consumer deployed, the first intelligent contract comprising a first contract code, the first transaction comprising a first function identification indicating the first contract code;
a contract execution unit configured to execute the first contract code in accordance with the first transaction to implement: the method comprises the steps of obtaining a plurality of user data stored in the environment, processing the user data according to a preset algorithm to obtain a processing result, and returning the processing result to a service provider, so that the service provider performs a target service according to the processing result, wherein the user data cannot be sent to a data user.
9. The apparatus of claim 8, wherein the transaction receiving unit is further configured to receive a second transaction from the data consumer for deploying the first intelligent contract, the second transaction including the first contract code and including a number of rights vouchers held by a first account registered by the data consumer on the blockchain;
the apparatus further includes a contract deployment unit configured to deploy the first smart contract in accordance with the second transaction;
wherein the plurality of entitlement credentials correspond to the plurality of user data.
10. The apparatus of claim 9,
the transaction receiving unit is further configured to receive a third transaction for invoking a second smart contract from the data consumer, the third transaction including the first account and at least one of the rights voucher;
the contract execution unit is further configured to execute the second intelligent contract according to the third transaction to realize the allocation of at least one right certificate included in the third transaction to the first account;
and/or the presence of a gas in the gas,
the user data are stored in the service provider; the rights and interests corresponding to the user data are set by the service provider and provided to the user corresponding to the user data by the service provider.
CN202110368495.3A 2021-04-06 2021-04-06 Method and device for cross-border data use based on block chain Active CN113077342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110368495.3A CN113077342B (en) 2021-04-06 2021-04-06 Method and device for cross-border data use based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110368495.3A CN113077342B (en) 2021-04-06 2021-04-06 Method and device for cross-border data use based on block chain

Publications (2)

Publication Number Publication Date
CN113077342A CN113077342A (en) 2021-07-06
CN113077342B true CN113077342B (en) 2023-01-20

Family

ID=76615144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110368495.3A Active CN113077342B (en) 2021-04-06 2021-04-06 Method and device for cross-border data use based on block chain

Country Status (1)

Country Link
CN (1) CN113077342B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159307A (en) * 2020-04-02 2020-05-15 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device
CN111709029A (en) * 2020-05-14 2020-09-25 哈希森林(北京)科技有限公司 Data operation and privacy transaction method based on block chain and trusted computing network
CN111738724A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Cross-border resource transfer authenticity auditing method and device, and electronic equipment
CN111738725A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN112288412A (en) * 2019-11-27 2021-01-29 立旃(上海)科技有限公司 Block chain-based digital legal note management method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366105B (en) * 2018-01-30 2019-12-10 百度在线网络技术(北京)有限公司 Cross-block-chain data access method, device, system and computer readable medium
CN111787072B (en) * 2018-04-03 2023-02-28 创新先进技术有限公司 Cross-block-chain interaction method, device, system and electronic equipment
CN109003078B (en) * 2018-06-27 2021-08-24 创新先进技术有限公司 Intelligent contract calling method and device based on block chain and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112288412A (en) * 2019-11-27 2021-01-29 立旃(上海)科技有限公司 Block chain-based digital legal note management method and device
CN111159307A (en) * 2020-04-02 2020-05-15 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device
CN112182096A (en) * 2020-04-02 2021-01-05 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device
CN111709029A (en) * 2020-05-14 2020-09-25 哈希森林(北京)科技有限公司 Data operation and privacy transaction method based on block chain and trusted computing network
CN111738724A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Cross-border resource transfer authenticity auditing method and device, and electronic equipment
CN111738725A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Cross-border resource transfer authenticity auditing method and device and electronic equipment

Also Published As

Publication number Publication date
CN113077342A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN109558748B (en) Data processing method and device, electronic equipment and storage medium
CN109118219B (en) Transaction data processing method and device
US20210049579A1 (en) Multi-factor identity authentication
WO2020106639A1 (en) Cryptocurrency based malware and ransomware detection systems and methods
CN105099675A (en) Method and device for generating authentication data for identity authentication and method and device for identity authentication
CN107527222B (en) Information processing method, device and system
TW201828212A (en) Method for adjusting risk parameter, and method and device for risk identification
CN111008335B (en) Information processing method, device, equipment and storage medium
CN111461763A (en) Resource allocation method and device
CN111914279B (en) Efficient and accurate privacy intersection system, method and device
US20230050176A1 (en) Method of processing a transaction request
CN113179282A (en) Method and device for merging account numbers and server
CN110838041B (en) Virtual resource activity processing method and device, computer equipment and storage medium
CN112132691A (en) Account data processing method, device and equipment and readable storage medium
CN111582935A (en) Block chain-based integral mutual identification method and system
CN109872223B (en) Virtual article transaction method, device, equipment and storage medium
CN107682376A (en) Air control data interactive method and device
KR101719198B1 (en) Method for managing personal information and payment information in user terminal or device and recommendation system using the same
CN115470512A (en) Method, device and system for carrying out multi-party algorithm negotiation aiming at privacy calculation
CN113077342B (en) Method and device for cross-border data use based on block chain
CN110351345B (en) Method and device for processing service request
EP3912117A1 (en) Real time user matching using purchasing behavior
CN107679871B (en) List management method, device, system and computer readable storage medium
CN113273139B (en) Database device, generation system, and generation method
WO2021216820A1 (en) Methods and systems for privacy protection verification

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