CN110266686B - Data sharing method, device, equipment and computer readable storage medium - Google Patents

Data sharing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110266686B
CN110266686B CN201910541962.0A CN201910541962A CN110266686B CN 110266686 B CN110266686 B CN 110266686B CN 201910541962 A CN201910541962 A CN 201910541962A CN 110266686 B CN110266686 B CN 110266686B
Authority
CN
China
Prior art keywords
mall server
sensitive information
product
information
public
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
CN201910541962.0A
Other languages
Chinese (zh)
Other versions
CN110266686A (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910541962.0A priority Critical patent/CN110266686B/en
Publication of CN110266686A publication Critical patent/CN110266686A/en
Priority to PCT/CN2020/096542 priority patent/WO2020253714A1/en
Application granted granted Critical
Publication of CN110266686B publication Critical patent/CN110266686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The invention relates to the field of block chains of financial science and technology, and discloses a data sharing method, which comprises the following steps: the method comprises the steps of obtaining public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server; when a resource access request corresponding to a first mall server initiated by a user side of a second mall server is received, determining an information type corresponding to the resource access request; if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server; and if the target sensitive information is carried, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user side. The invention also discloses a data sharing device, equipment and a computer readable storage medium. The invention realizes selective sharing of data, ensures data sharing safety and improves data sharing flexibility.

Description

Data sharing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of block chain technology of financial technology (Fintech), and in particular, to a data sharing method, apparatus, device, and computer-readable storage medium.
Background
In recent years, with the development of financial technology (Fintech), especially internet finance, Blockchain (Blockchain) technology has been gradually introduced into business transactions of financial institutions such as financial institutions and banks. In the retail industry or the financial industry, a place where a plurality of merchants are gathered and a trading platform is provided externally is called a mall, the merchants can set up and sell corresponding products or services in stores of the mall, and users can purchase the corresponding products or services in the stores of the mall.
Because the malls are relatively independent from each other, and respective data is not shared, a merchant wants own products or services to be seen by users in a plurality of malls, the same products or services need to be put on shelves in the plurality of malls, and if the merchant only puts on shelves in the current mall, the user can only purchase the corresponding products or services in the current mall, but cannot purchase the corresponding products or services across the malls.
In order to avoid that merchants repeatedly put on shelves products or services and to facilitate users to purchase the products or services, the conventional theoretical approach is to link the shopping malls together based on a block chain technology, so that data of the shopping malls are shared, thereby realizing the cross-shopping-mall putting on shelves products or services, and enabling users to purchase corresponding products or services across the shopping malls.
However, in fact, not all the shopping malls are willing to share their own data, and for relatively sensitive information such as orders and prices, the sharing willingness among the shopping malls is relatively low, and obviously, the existing data sharing method is poor in effect, so that how to selectively share data is a problem faced by the current shopping malls.
Disclosure of Invention
The invention mainly aims to provide a data sharing method, a data sharing device, data sharing equipment and a computer readable storage medium, and aims to realize selective data sharing and improve the flexibility of data sharing.
In order to achieve the above object, the present invention provides a data sharing method, including the following steps:
the method comprises the steps of obtaining public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server;
when a resource access request corresponding to a first mall server initiated by a user side of a second mall server is received, determining an information type corresponding to the resource access request;
if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server;
and if the user terminal carries the target sensitive information, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user terminal.
Preferably, if the mobile terminal carries the target sensitive information, the step of obtaining the target sensitive information corresponding to the resource access request from the service chain and sending the target sensitive information to the user side includes:
if the user terminal carries the target sensitive information, acquiring target sensitive information corresponding to the resource access request, and acquiring a public key of a merchant corresponding to the user terminal;
and encrypting the target sensitive information into encrypted sensitive information based on the public key, and sending the encrypted sensitive information to the second mall server so that the second mall server can decrypt the encrypted sensitive information into the target sensitive information by using a corresponding private key, and sending the target sensitive information to the user side.
Preferably, before the step of obtaining the target sensitive information corresponding to the resource access request and obtaining the public key of the merchant corresponding to the user side if the user terminal carries the target sensitive information, the method further includes:
when detecting that a merchant corresponding to the user side is resident in the second mall server, acquiring a public and private key pair corresponding to the merchant created by the second mall server;
and uploading a public key in the public and private key pair to the interconnection chain, and storing a private key in the public and private key pair in a service chain corresponding to the second mall server.
Preferably, after the step of determining the information type corresponding to the resource access request when receiving the resource access request corresponding to the first mall server initiated by the user side of the second mall server, the method further includes:
if the information type is the public information type, determining whether the second mall server and the first mall server are in the same interconnection chain;
and if so, acquiring target public information corresponding to the resource access request in the interconnection chain, and sending the target public information to the user side.
Preferably, the method further comprises:
when a purchase request initiated by the user side through the second mall server is detected, determining whether products corresponding to the purchase request are on shelf on the second mall server;
if not, determining an upper shopping mall server corresponding to the product in the interconnection chain, and sending the purchasing request to the upper shopping mall server so as to complete the transaction corresponding to the purchasing request based on the upper shopping mall server.
Preferably, the product includes a virtual product, and the step of completing the transaction corresponding to the purchase request based on the shopping mall server includes:
receiving the virtual product and a purchase order corresponding to the virtual product, which are sent by the upper shopping mall server based on the purchase request;
and sending the virtual product to the user side through the second mall server, and deducting the account amount of the user side corresponding to the second mall server based on the purchase order.
Preferably, before the step of determining whether a product corresponding to the purchase request is on-shelf at the second mall server when the purchase request initiated by the user side through the second mall server is detected, the method further includes:
if the product is detected to be created by the shopping mall server, determining the product category of the product based on the product information of the product, wherein the product category comprises a public product and a private product;
and if the product is a public product, uploading the public product to the interconnection chain, and if the product is a private product, uploading the private product to a service chain corresponding to the on-shelf mall server.
In addition, to achieve the above object, the present invention also provides a data sharing apparatus, including:
the uplink module is used for acquiring public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server;
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for determining an information type corresponding to a resource access request when receiving the resource access request corresponding to a first mall server initiated by a user side of a second mall server;
the determining module is used for determining whether the resource access request carries authorization information corresponding to the first mall server or not if the information type is a sensitive information type;
and the sending module is used for acquiring the target sensitive information corresponding to the resource access request from the service chain and sending the target sensitive information to the user side if the user terminal carries the target sensitive information.
Preferably, the sending module is further configured to:
if the user terminal carries the target sensitive information, acquiring target sensitive information corresponding to the resource access request, and acquiring a public key of a merchant corresponding to the user terminal;
and encrypting the target sensitive information into encrypted sensitive information based on the public key, and sending the encrypted sensitive information to the second mall server so that the second mall server can decrypt the encrypted sensitive information into the target sensitive information by using a corresponding private key, and sending the target sensitive information to the user side.
Preferably, the data sharing apparatus further comprises an ingress module, the ingress module is configured to:
when detecting that a merchant corresponding to the user side is resident in the second mall server, acquiring a public and private key pair corresponding to the merchant created by the second mall server;
and uploading a public key in the public and private key pair to the interconnection chain, and storing a private key in the public and private key pair in a service chain corresponding to the second mall server.
Preferably, the determining module is further configured to:
if the information type is the public information type, determining whether the second mall server and the first mall server are in the same interconnection chain;
the sending module is further configured to:
and if so, acquiring target public information corresponding to the resource access request in the interconnection chain, and sending the target public information to the user side.
Preferably, the data sharing apparatus further includes a purchasing module, and the purchasing module is configured to:
when a purchase request initiated by the user side through the second mall server is detected, determining whether products corresponding to the purchase request are on shelf on the second mall server;
if not, determining an upper shopping mall server corresponding to the product in the interconnection chain, and sending the purchasing request to the upper shopping mall server so as to complete the transaction corresponding to the purchasing request based on the upper shopping mall server.
Preferably, the product comprises a virtual product, and the data sharing apparatus further comprises a transaction module configured to:
receiving the virtual product and a purchase order corresponding to the virtual product, which are sent by the upper shopping mall server based on the purchase request;
and sending the virtual product to the user side through the second mall server, and deducting the account amount of the user side corresponding to the second mall server based on the purchase order.
Preferably, the data sharing apparatus further includes a creating module, and the creating module is configured to:
if the product is detected to be created by the shopping mall server, determining the product category of the product based on the product information of the product, wherein the product category comprises a public product and a private product;
and if the product is a public product, uploading the public product to the interconnection chain, and if the product is a private product, uploading the private product to a service chain corresponding to the on-shelf mall server.
In addition, to achieve the above object, the present invention further provides a data sharing device, including: a memory, a processor and a data sharing program stored on the memory and executable on the processor, the data sharing program when executed by the processor implementing the steps of the data sharing method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a data sharing program, which when executed by a processor, implements the steps of the data sharing method as described above.
The data sharing method provided by the invention comprises the steps of acquiring public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server; when a resource access request corresponding to a first mall server initiated by a user side of a second mall server is received, determining an information type corresponding to the resource access request; if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server; and if the user terminal carries the target sensitive information, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user terminal. According to the invention, the public information is uploaded to the interconnection chain, all the mall servers in the interconnection chain can access the public information, the sensitive information is stored in the respective mall servers, and only the mall servers and authorized user terminals can access the sensitive information, so that the data can be selectively shared, more data can be shared on the premise of ensuring the data sharing safety, and the data sharing is more flexible.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data sharing method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The data sharing device of the embodiment of the invention can be a PC or a server device.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data sharing program.
The operating system is a program for managing and controlling the data sharing equipment and software resources and supports the running of a network communication module, a user interface module, a data sharing program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the data sharing apparatus shown in fig. 1, the data sharing apparatus calls a data sharing program stored in a memory 1005 through a processor 1001 and performs operations in various embodiments of the data sharing method described below.
Based on the above hardware structure, the embodiment of the data sharing method of the present invention is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a data sharing method of the present invention, where the method includes:
step S10, obtaining public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server;
step S20, when a resource access request corresponding to the first mall server initiated by a user side of a second mall server is received, determining an information type corresponding to the resource access request;
step S30, if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server;
step S40, if the mobile terminal is carried, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user side.
It should be noted that, in the existing data sharing, if the data sharing is performed through a block chain, all the shopping malls are linked to one block chain, and a data account book is shared among all the shopping malls, but all the resources among the shopping malls that are opened across the chain are shared, which easily causes a problem of an excessive authority, and even if some of the resources in the shopping malls are unwilling to share, all the resources cause the authority sharing because the block chain shares the characteristic of the account book. Based on this situation, the data sharing method of the present embodiment is proposed.
In the embodiment, the data of the mall server is divided into the public information and the sensitive information, and the public information is uploaded to the interconnection chain, the mall servers in the interconnection chain can access the interconnection chain, the sensitive information is uploaded to the local business chain, and only the local mall server and the authorized user side can access the local mall server, so that the data can be selectively shared.
The respective steps will be described in detail below:
step S10, public information and sensitive information of a first mall server are obtained, the public information is uploaded to an interconnection chain corresponding to the first mall server, and the sensitive information is uploaded to a service chain corresponding to the first mall server.
The data sharing method is applied to data sharing equipment of financial institutions or bank systems and other financial institutions, and for convenience in description, the data sharing equipment is hereinafter referred to as sharing equipment for short, wherein the sharing equipment is connected with each mall server in a butt joint mode; the business chain is a block chain shared between the mall server and the user side corresponding to the merchant, and sensitive information which is unwilling to be disclosed in the mall server is stored through the business chain, so that the sensitive information is private relative to other mall servers.
In this embodiment, the public information and the sensitive information of the first mall server are obtained, and the public information is uploaded to the interconnection chain corresponding to the first mall server, so that other mall servers in the interconnection chain can access the interconnection chain, and the sensitive information is uploaded to the service chain corresponding to the first mall server, so that the first mall server can access the first mall server itself, where the first mall server may be a mall server newly accessed to the current interconnection chain or a mall server generating new data in the current interconnection chain.
Step S20, when receiving a resource access request corresponding to the first mall server initiated by the user side of the second mall server, determining an information type corresponding to the resource access request.
In this embodiment, when a resource access request initiated by a user side of a second mall server based on a first mall server is received, that is, when other mall servers access a current mall server, an information type corresponding to the resource access request is determined, which can be understood that the information type includes a public information type and a sensitive information type, the public information type can be freely accessed in an interconnection chain, and the sensitive information type has conditional restrictions.
Further, after step S20, the method further includes:
step a, if the information type is a public information type, determining whether the second mall server and the first mall server are in the same interconnection chain;
in this step, if it is determined that the target information accessed by the resource access request belongs to the public information class, it is first determined whether the second mall server and the first mall server are in the same interconnection chain, and it can be understood that the mall servers of the same interconnection chain can implement data sharing, and the mall servers of different interconnection chains cannot implement data sharing.
And b, if yes, acquiring target public information corresponding to the resource access request in the interconnection chain, and sending the target public information to the user side.
In this step, if it is determined that the second mall server and the first mall server are in the same interconnection chain, the target public information corresponding to the resource access request may be obtained in the current interconnection, and the target public information is sent to the user side corresponding to the second mall server.
Step S30, if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server.
In this embodiment, if it is determined that the target information accessed by the resource access request belongs to the sensitive information class, the user side is verified, that is, in this embodiment, the user sides of other mall servers need to pass the authorization of the current mall server if the user sides want to access the sensitive information of the current mall server. Specifically, whether the current resource access request carries authorization information corresponding to the first mall server is determined, and the authorization information is given by the first mall server. In a specific implementation, the authorization information may be identification information with an identifier of the first mall server.
Therefore, if the user side of the second mall server wants to access the sensitive information of the first mall server, an authorization application is firstly initiated to the first mall server, when the first mall server determines that the access is available, the corresponding authorization information is sent to the user side of the second mall server, and when the user side initiates a resource access request, the user side carries the received authorization information.
Step S40, if the mobile terminal is carried, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user side.
In this embodiment, if it is determined that the authorization information of the first mall server is carried in the current resource access request, which indicates that the current user side also has the right to access the service chain, the target sensitive information corresponding to the resource access request is obtained from the service chain, and the target sensitive information is sent to the user side corresponding to the second mall server.
Further, step S40 includes:
step c, if the user terminal carries the target sensitive information, acquiring target sensitive information corresponding to the resource access request, and acquiring a public key of a merchant corresponding to the user terminal;
in this step, in order to ensure that only authorized user terminals can access the sensitive information, the target sensitive information needs to be encrypted, and in the specific implementation, the target sensitive information is encrypted in an asymmetric encryption manner, so that when it is determined that the authorization information of the first mall server is carried in the current resource access request, the public key of the merchant corresponding to the current user terminal is obtained in addition to the target sensitive information corresponding to the resource access request, so as to encrypt the target sensitive information by using the public key.
And d, encrypting the target sensitive information into encrypted sensitive information based on the public key, and sending the encrypted sensitive information to the second mall server so that the second mall server can decrypt the encrypted sensitive information into the target sensitive information by using a corresponding private key, and sending the target sensitive information to the user side.
In the step, the target sensitive information is encrypted into encrypted sensitive information based on the obtained public key, the encrypted sensitive information is sent to the second mall server, so that the second mall server can obtain a private key of a merchant corresponding to the current user side in a corresponding service chain, the private key is used for decrypting the encrypted sensitive information into the target sensitive information, and finally the target sensitive information is sent to the current user side.
The target sensitive information is encrypted into encrypted sensitive information which can be decrypted only by the second mall server, and even if other mall servers obtain the encrypted sensitive information, the encrypted sensitive information cannot be decrypted, because the private key of the merchant corresponding to the current user side is reserved in the service chain of the second mall server, only the user side corresponding to the second mall server can access and view the private key.
Further, before step c, the method further comprises:
step e, when detecting that the merchant corresponding to the user side is resident in the second mall server, acquiring a public and private key pair corresponding to the merchant created by the second mall server;
in this step, in order to implement asymmetric encryption on the target sensitive information, when the merchant corresponding to the user side resides in the second mall server, the second mall server automatically creates a public and private key pair corresponding to the current merchant, that is, as long as there is a new merchant residing in the mall server, the second mall server automatically creates a corresponding public and private key pair for the merchant, so that when the merchant corresponding to the user side is detected to reside, the corresponding public and private key pair can be obtained.
And f, uploading the public key in the public and private key pair to the interconnection chain, and storing the private key in the public and private key pair in the service chain corresponding to the second mall server.
In the step, the public key in the obtained public and private key pair is uploaded to an interconnection chain, and the private key in the public and private key pair is stored in a business chain corresponding to a second mall server, so that the sharing device can directly obtain the public key of the current merchant in the interconnection chain and encrypt the sensitive information by using the public key when a user side of the subsequent current merchant accesses sensitive data of other mall servers, and only the second mall server storing the corresponding private key can decrypt the sensitive information.
The method includes the steps that public information and sensitive information of a first mall server are obtained, the public information is uploaded to an interconnection chain corresponding to the first mall server, and the sensitive information is uploaded to a service chain corresponding to the first mall server; when a resource access request corresponding to a first mall server initiated by a user side of a second mall server is received, determining an information type corresponding to the resource access request; if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server; and if the user terminal carries the target sensitive information, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user terminal. According to the invention, the public information is uploaded to the interconnection chain, all the mall servers in the interconnection chain can access the public information, the sensitive information is stored in the respective mall servers, and only the mall servers and authorized user terminals can access the sensitive information, so that the data can be selectively shared, more data can be shared on the premise of ensuring the data sharing safety, and the data sharing is more flexible.
Further, based on the first embodiment of the data sharing method of the present invention, a second embodiment of the data sharing method of the present invention is provided.
The second embodiment of the data sharing method differs from the first embodiment of the data sharing method in that the method further comprises:
step g, when detecting a purchase request initiated by the user side through the second mall server, determining whether a product corresponding to the purchase request is put on shelf by the second mall server;
and h, if not, determining an upper shopping mall server corresponding to the product in the interconnection chain, and sending the purchasing request to the upper shopping mall server so as to complete the transaction corresponding to the purchasing request based on the upper shopping mall server.
When cross-mall purchasing is encountered, the corresponding purchasing request can be sent to the corresponding mall server through the interconnection chain, so that cross-mall purchasing is realized.
The respective steps will be described in detail below:
and g, when detecting that the user side initiates a purchase request through the second mall server, determining whether products corresponding to the purchase request are on shelf on the second mall server.
In this embodiment, the user may log in the local mall server of the user side by using the user side, and purchase a product in the local mall server, or may initiate a purchase request to the remote mall server through an interconnection chain corresponding to the local mall server, thereby implementing cross-mall shopping.
When detecting that a user side corresponding to the second mall server initiates a purchase request through the second mall server, determining whether a product corresponding to the current purchase request is uploaded in the second mall server, if so, the current purchase request is a purchase for the local mall server, and then the transaction can be performed in the local mall server.
And h, if not, determining an upper shopping mall server corresponding to the product in the interconnection chain, and sending the purchasing request to the upper shopping mall server so as to complete the transaction corresponding to the purchasing request based on the upper shopping mall server.
In this embodiment, if it is determined that the product corresponding to the current purchase request is not on shelf in the second mall server, the current purchase request is a purchase for a different-place mall server, the sharing device first determines in the interconnection chain which mall server the product corresponding to the current purchase request is on shelf in, the mall server is the on shelf server, and after the on shelf mall server is determined, the purchase request can be sent to the on shelf mall server through the interconnection chain shared by the second mall server and the on shelf mall server, so that the transaction is completed based on the on shelf mall server, and thereby the cross-mall purchase is realized.
It can be understood that, when the product corresponding to the current purchasing request is an entity product, the merchant corresponding to the shopping mall server needs to perform offline shipment, and the user at the current user side performs operations such as receiving, so that when the product corresponding to the purchasing request is an entity product, the transaction cannot be completed online immediately. The specific transaction process may refer to the transaction in the existing mall, and is not described herein.
If the on-shelf mall server corresponding to the current product is not found in the interconnection chain, it is determined that the product is not on-shelf, and even if the product exists in other service chains, the product is regarded as not on-shelf.
Further, before step g, the method further comprises:
step i, if the product is detected to be created by the shopping mall server, determining the product type of the product based on the product information of the product, wherein the product type comprises a public product and a private product;
in this step, if it is detected that the on-shelf mall server creates a product, that is, a corresponding merchant puts a product on the on-shelf mall server, product information of the product is obtained, and based on the product information, a product category of the current product is determined, that is, the current product is classified, where the product category includes a public product and a private product, the public product is visible to all mall servers, and the private product is visible to only the current mall server.
And j, if the product is a public product, uploading the public product to the interconnection chain, and if the product is a private product, uploading the private product to a service chain corresponding to the built-in mall server.
And if the current product is a public product, uploading the current product to an interconnection chain, and if the current product is a private product, uploading the current product to a service chain corresponding to the shelf mall server.
Taking a card ticket as an example, if the current card ticket is a universal card ticket, that is, the card ticket can be used by all mall servers, determining that the card ticket is an open card ticket, and uploading the card ticket to an interconnection chain; and if the current card ticket is a special card ticket, namely the card ticket can be only used in the current mall server, determining that the card ticket is a private card ticket, and uploading the card ticket to a service chain corresponding to the current mall server.
Further, when there are at least two shopping mall servers, one of the shopping mall servers can be randomly selected, the current product inventory of all the shopping mall servers can be obtained, and the shopping mall server with the highest inventory is used as the shopping mall server corresponding to the purchase request.
Further, the product includes a virtual product, and the step of completing the transaction corresponding to the purchase request based on the shopping mall server includes:
step k, receiving the virtual product and a purchase order corresponding to the virtual product, which are sent by the built-in mall server based on the purchase request;
in this step, because the product corresponding to the current purchase request is a virtual product, an instant transaction can be realized, wherein the virtual product includes a card ticket directly exchanging value, such as a rechargeable card, and the like, and a card ticket indirectly exchanging value, such as a product discount ticket, and the like, and also includes a virtual service and the like.
The method comprises the steps that when a purchase request is received by an upper shopping mall server, a virtual product corresponding to the purchase request is determined, the virtual product is traded to a current user side, and a corresponding purchase order is generated at the same time to record the transaction.
And step l, sending the virtual product to the user side through the second mall server, and deducting the account amount of the user side corresponding to the second mall server based on the purchase order.
In this step, the sharing device sends the virtual product to the current user end through the second mall server, and deducts the account amount of the current user corresponding to the second mall server based on the received purchase order, thereby completing the transaction.
In this embodiment, when a purchase request is detected, if the local mall server does not have a corresponding product to be put on shelf, a cross-mall transaction can be completed with the remote mall server through the interconnection chain, and the user side does not need to switch the mall server to perform purchase, so that intelligent purchase is realized.
The invention also provides a data sharing device. The data sharing apparatus of the present invention comprises:
the uplink module is used for acquiring public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server;
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for determining an information type corresponding to a resource access request when receiving the resource access request corresponding to a first mall server initiated by a user side of a second mall server;
the determining module is used for determining whether the resource access request carries authorization information corresponding to the first mall server or not if the information type is a sensitive information type;
and the sending module is used for acquiring the target sensitive information corresponding to the resource access request from the service chain and sending the target sensitive information to the user side if the user terminal carries the target sensitive information.
Further, the sending module is further configured to:
if the user terminal carries the target sensitive information, acquiring target sensitive information corresponding to the resource access request, and acquiring a public key of a merchant corresponding to the user terminal;
and encrypting the target sensitive information into encrypted sensitive information based on the public key, and sending the encrypted sensitive information to the second mall server so that the second mall server can decrypt the encrypted sensitive information into the target sensitive information by using a corresponding private key, and sending the target sensitive information to the user side.
Further, the data sharing apparatus further includes an ingress module, the ingress module is configured to:
when detecting that a merchant corresponding to the user side is resident in the second mall server, acquiring a public and private key pair corresponding to the merchant created by the second mall server;
and uploading a public key in the public and private key pair to the interconnection chain, and storing a private key in the public and private key pair in a service chain corresponding to the second mall server.
Further, the determining module is further configured to:
if the information type is the public information type, determining whether the second mall server and the first mall server are in the same interconnection chain;
the sending module is further configured to:
and if so, acquiring target public information corresponding to the resource access request in the interconnection chain, and sending the target public information to the user side.
Further, the data sharing device further comprises a purchasing module, and the purchasing module is used for:
when a purchase request initiated by the user side through the second mall server is detected, determining whether products corresponding to the purchase request are on shelf on the second mall server;
if not, determining an upper shopping mall server corresponding to the product in the interconnection chain, and sending the purchasing request to the upper shopping mall server so as to complete the transaction corresponding to the purchasing request based on the upper shopping mall server.
Further, the product comprises a virtual product, and the data sharing apparatus further comprises a transaction module, the transaction module is configured to:
receiving the virtual product and a purchase order corresponding to the virtual product, which are sent by the upper shopping mall server based on the purchase request;
and sending the virtual product to the user side through the second mall server, and deducting the account amount of the user side corresponding to the second mall server based on the purchase order.
Further, the data sharing apparatus further includes a creating module, where the creating module is configured to:
if the product is detected to be created by the shopping mall server, determining the product category of the product based on the product information of the product, wherein the product category comprises a public product and a private product;
and if the product is a public product, uploading the public product to the interconnection chain, and if the product is a private product, uploading the private product to a service chain corresponding to the on-shelf mall server.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention has stored thereon a data sharing program which, when executed by a processor, implements the steps of the data sharing method as described above.
The method implemented when the data sharing program running on the processor is executed may refer to each embodiment of the data sharing method of the present invention, and details are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. 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 system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A data sharing method, characterized in that the data sharing method comprises the steps of:
the method comprises the steps of obtaining public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server, wherein each mall server of the same interconnection chain can share data, and each mall server of different interconnection chains cannot share data;
when a resource access request corresponding to a first mall server initiated by a user side of a second mall server is received, determining an information type corresponding to the resource access request;
if the information type is a sensitive information type, determining whether the resource access request carries authorization information corresponding to the first mall server;
if the resource access request carries the target sensitive information, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user side;
if the mobile terminal carries the target sensitive information, acquiring the target sensitive information corresponding to the resource access request from the service chain, and sending the target sensitive information to the user side, wherein the steps of:
if the user terminal carries the target sensitive information, acquiring target sensitive information corresponding to the resource access request, and acquiring a public key of a merchant corresponding to the user terminal;
and encrypting the target sensitive information into encrypted sensitive information based on the public key, and sending the encrypted sensitive information to the second mall server so that the second mall server can decrypt the encrypted sensitive information into the target sensitive information by using a corresponding private key, and sending the target sensitive information to the user side.
2. The data sharing method according to claim 1, wherein before the step of obtaining the target sensitive information corresponding to the resource access request and obtaining the public key of the merchant corresponding to the user side if the user carries the target sensitive information, the method further comprises:
when detecting that a merchant corresponding to the user side is resident in the second mall server, creating a public and private key pair corresponding to the merchant;
and uploading a public key in the public and private key pair to the interconnection chain, and storing a private key in the public and private key pair in a service chain corresponding to the second mall server.
3. The data sharing method according to claim 1, wherein after the step of determining the information type corresponding to the resource access request when receiving the resource access request corresponding to the first mall server initiated by the user side of the second mall server, the method further comprises:
if the information type is the public information type, determining whether the second mall server and the first mall server are in the same interconnection chain;
and if so, acquiring target public information corresponding to the resource access request in the interconnection chain, and sending the target public information to the user side.
4. A method of data sharing according to any one of claims 1 to 3, the method further comprising:
when a purchase request initiated by the user side through the second mall server is detected, determining whether products corresponding to the purchase request are on shelf on the second mall server;
if not, determining an upper shopping mall server corresponding to the product in the interconnection chain, and sending the purchasing request to the upper shopping mall server so as to complete the transaction corresponding to the purchasing request based on the upper shopping mall server.
5. The data sharing method of claim 4, wherein the product comprises a virtual product, and the step of completing the transaction corresponding to the purchase request based on the on-shelf mall server comprises:
receiving the virtual product and a purchase order corresponding to the virtual product, which are sent by the upper shopping mall server based on the purchase request;
and sending the virtual product to the user side through the second mall server, and deducting the account amount of the user side corresponding to the second mall server based on the purchase order.
6. The data sharing method according to claim 4, wherein when detecting a purchase request initiated by the user terminal through the second mall server, the method further comprises, before the step of determining whether a product corresponding to the purchase request is shelved on the second mall server:
if the product is detected to be created by the shopping mall server, determining the product category of the product based on the product information of the product, wherein the product category comprises a public product and a private product;
and if the product is a public product, uploading the public product to the interconnection chain, and if the product is a private product, uploading the private product to a service chain corresponding to the on-shelf mall server.
7. A data sharing apparatus, characterized in that the data sharing apparatus comprises:
the system comprises a chaining module, a service chain module and a service module, wherein the chaining module is used for acquiring public information and sensitive information of a first mall server, uploading the public information to an interconnection chain corresponding to the first mall server, and uploading the sensitive information to a service chain corresponding to the first mall server, each mall server of the same interconnection chain can share data, and each mall server of different interconnection chains cannot share data;
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for determining an information type corresponding to a resource access request when receiving the resource access request corresponding to a first mall server initiated by a user side of a second mall server;
the determining module is used for determining whether the resource access request carries authorization information corresponding to the first mall server or not if the information type is a sensitive information type;
the sending module is used for acquiring the target sensitive information corresponding to the resource access request from the service chain and sending the target sensitive information to the user side if the user side carries the target sensitive information;
the sending module is further configured to:
if the user terminal carries the target sensitive information, acquiring target sensitive information corresponding to the resource access request, and acquiring a public key of a merchant corresponding to the user terminal;
and encrypting the target sensitive information into encrypted sensitive information based on the public key, and sending the encrypted sensitive information to the second mall server so that the second mall server can decrypt the encrypted sensitive information into the target sensitive information by using a corresponding private key, and sending the target sensitive information to the user side.
8. A data sharing device, characterized in that the data sharing device comprises: memory, a processor and a data sharing program stored on the memory and executable on the processor, the data sharing program when executed by the processor implementing the steps of the data sharing method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, having stored thereon a data sharing program which, when executed by a processor, implements the steps of the data sharing method according to any one of claims 1 to 6.
CN201910541962.0A 2019-06-20 2019-06-20 Data sharing method, device, equipment and computer readable storage medium Active CN110266686B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910541962.0A CN110266686B (en) 2019-06-20 2019-06-20 Data sharing method, device, equipment and computer readable storage medium
PCT/CN2020/096542 WO2020253714A1 (en) 2019-06-20 2020-06-17 Data sharing method and apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910541962.0A CN110266686B (en) 2019-06-20 2019-06-20 Data sharing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110266686A CN110266686A (en) 2019-09-20
CN110266686B true CN110266686B (en) 2021-06-15

Family

ID=67920126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910541962.0A Active CN110266686B (en) 2019-06-20 2019-06-20 Data sharing method, device, equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110266686B (en)
WO (1) WO2020253714A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266686B (en) * 2019-06-20 2021-06-15 深圳前海微众银行股份有限公司 Data sharing method, device, equipment and computer readable storage medium
CN111339173A (en) * 2020-02-21 2020-06-26 深圳市酷开网络科技有限公司 Data sharing method, server and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462587A (en) * 2018-11-09 2019-03-12 四川虹微技术有限公司 Block chain is layered common recognition method, block chain network system and block chain node
CN109792553A (en) * 2016-08-07 2019-05-21 多特区块链音乐有限公司 For managing the distributed data storage of media
CN109788060A (en) * 2019-01-22 2019-05-21 曲阜师范大学 Cloud data sharing and update method based on block chain

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10402792B2 (en) * 2015-08-13 2019-09-03 The Toronto-Dominion Bank Systems and method for tracking enterprise events using hybrid public-private blockchain ledgers
US20170357966A1 (en) * 2016-06-09 2017-12-14 Mastercard International Incorporated Method and system for use of a proprietary private blockchain
US11146535B2 (en) * 2016-10-12 2021-10-12 Bank Of America Corporation System for managing a virtual private ledger and distributing workflow of authenticated transactions within a blockchain distributed network
WO2018069566A1 (en) * 2016-10-14 2018-04-19 Nokia Technologies Oy Method, device and system for validating sensitive user data transactions within trusted circle
US10158611B2 (en) * 2016-11-17 2018-12-18 Bank Of America Corporation System for multiplexing and demultiplexing blockchain ledgers via a cryptographic hash
US11258582B2 (en) * 2017-05-01 2022-02-22 Qbrics, Inc. Distributed system and method for encryption of blockchain payloads
TWI688907B (en) * 2017-11-20 2020-03-21 歐簿客科技股份有限公司 Blockchain-based room inventory management system
CN109325870B (en) * 2018-10-10 2022-11-22 上海保险交易所股份有限公司 Method and system for sharing private data
CN109886695A (en) * 2019-03-26 2019-06-14 阿里巴巴集团控股有限公司 Information sharing method and device and electronic equipment between different blocks chain
CN110266686B (en) * 2019-06-20 2021-06-15 深圳前海微众银行股份有限公司 Data sharing method, device, equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109792553A (en) * 2016-08-07 2019-05-21 多特区块链音乐有限公司 For managing the distributed data storage of media
CN109462587A (en) * 2018-11-09 2019-03-12 四川虹微技术有限公司 Block chain is layered common recognition method, block chain network system and block chain node
CN109788060A (en) * 2019-01-22 2019-05-21 曲阜师范大学 Cloud data sharing and update method based on block chain

Also Published As

Publication number Publication date
WO2020253714A1 (en) 2020-12-24
CN110266686A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
US11681998B2 (en) System and method for integrating data from a remote server with a client application
CA2933021C (en) Systems, apparatus and methods for improved authentication
US9530126B2 (en) Secure mobile payment processing
US8886937B2 (en) PCI DSS compliant proxy service
KR100860628B1 (en) A mobile phone for wireless computing device authenticable transactions, a computer system and a method thereof
US20210049579A1 (en) Multi-factor identity authentication
US10115141B1 (en) Secure proxy service
US20160132846A1 (en) Online payment processing method, apparatus and system
US20060167819A1 (en) Payment information security for multi-merchant purchasing environment for downloadable products
US20090171847A2 (en) Multi-merchant purchasing environment for downloadable products
CN106899552A (en) Authentication method, certification terminal and system
CN109257321B (en) Secure login method and device
US20150052062A1 (en) E-commerce shopping and payment process
KR20170046690A (en) Using a wireless beacon to provide access credentials to a secure network
JP2002269425A (en) Electronic coupon method, electronic coupon system, sales server, orderer terminal, order receiver terminal and program
US20060167809A1 (en) Software assistant for multi-merchant purchasing environment for downloadable products
KR101218807B1 (en) Authorization/transaction system using near field communication tag and operating method thereof
CN110266686B (en) Data sharing method, device, equipment and computer readable storage medium
CN110969465A (en) Sales promotion method and system based on block link certificate
KR20200000595A (en) Blockchain based certificate management method and device, server and system thereof
JP2020187589A (en) Information processing device, information processing method and program
CN106716401A (en) Data interaction processing method, device and system
JP6680733B2 (en) Generation device, generation method, and generation program
KR20120076692A (en) Method of managing payment channel
KR101827480B1 (en) Apparatus and system for recommending products using user's mobile access log and method thereof

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