CN110266686A - Data sharing method, device, equipment and computer readable storage medium - Google Patents
Data sharing method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110266686A CN110266686A CN201910541962.0A CN201910541962A CN110266686A CN 110266686 A CN110266686 A CN 110266686A CN 201910541962 A CN201910541962 A CN 201910541962A CN 110266686 A CN110266686 A CN 110266686A
- Authority
- CN
- China
- Prior art keywords
- mall server
- information
- product
- data sharing
- user terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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/0442—Network 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to the block chain fields of financial technology, and disclose a kind of data sharing method, it include: the public information and sensitive information for obtaining the first mall server, and public information is uploaded to the corresponding interconnection chain of the first mall server, sensitive information is uploaded to the corresponding business chain of the first mall server;When the corresponding resource access request of the first mall server that the user terminal for receiving the second mall server is initiated, the corresponding information type of resource access request is determined;If information type is sensitive information class, it is determined that whether resource access request carries the corresponding authorization message of the first mall server;If carrying, the corresponding target susceptibility information of resource access request is obtained from business chain, and target susceptibility information is sent to user terminal.The invention also discloses a kind of data sharing device, equipment and computer readable storage mediums.Present invention realization selectively shares data, guarantees data sharing safety, improves the flexibility of data sharing.
Description
Technical field
The present invention relates to the block chain technical field of financial technology (Fintech) more particularly to data sharing methods, dress
It sets, equipment and computer readable storage medium.
Background technique
In recent years, with financial technology (Fintech), the especially continuous development of internet finance, block chain
(Blockchain) technology is gradually introduced in the business transaction of financing mechanism, bank and other financial mechanism.In retail trade or
In financial industry, assemble more trade companies, and the place for externally providing transaction platform is known as store, trade company can be in the shop in store
Restocking simultaneously sells corresponding product perhaps service user can then buy corresponding product or service in the shop in store.
Due to relatively independent between store and store, respective data are not shared, trade company want oneself product or
Service is seen by the user in multiple stores, then is needed in the identical product of multiple store restockings or service, if trade company only exists
Perhaps then user can only buy corresponding product or clothes to the corresponding product of current store restocking in current store for service
Business, and corresponding product or service can not be bought across store.
It to avoid trade company from repeating restocking product or service, and is bought convenient for user, existing theoretical mode is based on block
Each store is linked together by chain technology, makes the data sharing in each store, and from realizing across store restocking product or service,
And user can the corresponding product of across store purchase or service.
However in fact, not all store is all ready to share the data of oneself, relatively for order and price etc.
Sensitive information, the shared wish between store are relatively low, it is clear that and existing data sharing mode effect is poor, then how
Selectively data are carried out shared being current store problems faced.
Summary of the invention
It is a primary object of the present invention to propose a kind of data sharing method, device, equipment and computer-readable storage medium
Matter, it is intended to which realization selectively shares data, improves the flexibility of data sharing.
To achieve the above object, the present invention provides a kind of data sharing method, and the data sharing method includes following step
It is rapid:
The public information and sensitive information of the first mall server are obtained, and the public information is uploaded to described first
The sensitive information is uploaded to the corresponding business chain of first mall server by the corresponding interconnection chain of mall server;
When the corresponding resource access of first mall server that the user terminal for receiving the second mall server is initiated
When request, the corresponding information type of the resource access request is determined;
If the information type is sensitive information class, it is determined that whether the resource access request carries first store
The corresponding authorization message of server;
If carrying, the corresponding target susceptibility information of the resource access request is obtained from the business chain, and by institute
It states target susceptibility information and is sent to the user terminal.
Preferably, if described carry, the corresponding target susceptibility of the resource access request is obtained from the business chain
Information, and the step of target susceptibility information is sent to the user terminal includes:
If carrying, the corresponding target susceptibility information of the resource access request is obtained, and it is corresponding to obtain the user terminal
Trade company public key;
Based on the public key, the target susceptibility information is encrypted to encrypted sensitive information, and the encrypted sensitive is believed
Breath is sent to second mall server, so that second mall server uses corresponding private key by the encrypted sensitive
Information is decrypted into the target susceptibility information, and the target susceptibility information is sent to the user terminal.
Preferably, if described carry, the corresponding target susceptibility information of the resource access request is obtained, and described in acquisition
Before the step of public key of the corresponding trade company of user terminal, the method also includes:
When detecting that the corresponding trade company of the user terminal enters second mall server, second store is obtained
The corresponding public private key pair of the trade company of server creation;
Public key in the public private key pair is uploaded to the interconnection chain, the private key in the public private key pair is stored in institute
State the corresponding business chain of the second mall server.
Preferably, first mall server initiated when the user terminal for receiving the second mall server is corresponding
Resource access request when, after the step of determining the resource access request corresponding information type, the method also includes:
If the information type is public information class, it is determined that second mall server and first store service
Whether device is in same interconnection chain;
If so, obtaining the corresponding target public information of the resource access request in the interconnection chain, and will be described
Target public information is sent to the user terminal.
Preferably, the method also includes:
When detecting the procurement request that the user terminal is initiated by second mall server, the buying is determined
Request whether corresponding product has in the second mall server restocking;
If it is not, then determining the corresponding restocking mall server of the product in the interconnection chain, and the buying is asked
It asks and is sent to the restocking mall server, to complete the corresponding friendship of the procurement request based on the restocking mall server
Easily.
Preferably, the product includes virtual product, described to be asked based on the restocking mall server completion buying
The step of asking corresponding transaction include:
Receive the virtual product and the virtual production that the restocking mall server is sent based on the procurement request
The corresponding purchase order of product;
The virtual product is sent to the user terminal by second mall server, and is ordered based on the buying
It is single to deduct the user terminal in the corresponding account amount of money of second mall server.
It is preferably, described when detecting the procurement request that the user terminal is initiated by second mall server,
Before determining whether the corresponding product of the procurement request has the second mall server restocking the step of, the method is also
Include:
If detecting, the restocking mall server creates the product, based on the product information of the product, determines
The product category of the product, the product category include open product and secret product;
If the product is open product, the open product is uploaded to the interconnection chain, if the product is private
The secret product is then uploaded to the corresponding business chain of the restocking mall server by close product.
In addition, to achieve the above object, the present invention also provides a kind of data sharing device, the data sharing device packet
It includes:
Cochain module, for obtaining the public information and sensitive information of the first mall server, and by the public information
It is uploaded to the corresponding interconnection chain of first mall server, the sensitive information is uploaded to first mall server pair
The business chain answered;
Receiving module, first mall server pair for being initiated when the user terminal for receiving the second mall server
When the resource access request answered, the corresponding information type of the resource access request is determined;
Determining module, if being sensitive information class for the information type, it is determined that whether the resource access request is taken
With the corresponding authorization message of first mall server;
Sending module, if it is quick to obtain the corresponding target of the resource access request from the business chain for carrying
Feel information, and the target susceptibility information is sent to the user terminal.
Preferably, the sending module is also used to:
If carrying, the corresponding target susceptibility information of the resource access request is obtained, and it is corresponding to obtain the user terminal
Trade company public key;
Based on the public key, the target susceptibility information is encrypted to encrypted sensitive information, and the encrypted sensitive is believed
Breath is sent to second mall server, so that second mall server uses corresponding private key by the encrypted sensitive
Information is decrypted into the target susceptibility information, and the target susceptibility information is sent to the user terminal.
Preferably, the data sharing device further includes entering module, and the module of entering is used for:
When detecting that the corresponding trade company of the user terminal enters second mall server, second store is obtained
The corresponding public private key pair of the trade company of server creation;
Public key in the public private key pair is uploaded to the interconnection chain, the private key in the public private key pair is stored in institute
State the corresponding business chain of the second mall server.
Preferably, the determining module is also used to:
If the information type is public information class, it is determined that second mall server and first store service
Whether device is in same interconnection chain;
The sending module is also used to:
If so, obtaining the corresponding target public information of the resource access request in the interconnection chain, and will be described
Target public information is sent to the user terminal.
Preferably, the data sharing device further includes procurement module, and the procurement module is used for:
When detecting the procurement request that the user terminal is initiated by second mall server, the buying is determined
Request whether corresponding product has in the second mall server restocking;
If it is not, then determining the corresponding restocking mall server of the product in the interconnection chain, and the buying is asked
It asks and is sent to the restocking mall server, to complete the corresponding friendship of the procurement request based on the restocking mall server
Easily.
Preferably, the product includes virtual product, and the data sharing device further includes transaction modules, the transaction mould
Block is used for:
Receive the virtual product and the virtual production that the restocking mall server is sent based on the procurement request
The corresponding purchase order of product;
The virtual product is sent to the user terminal by second mall server, and is ordered based on the buying
It is single to deduct the user terminal in the corresponding account amount of money of second mall server.
Preferably, the data sharing device further includes creation module, and the creation module is used for:
If detecting, the restocking mall server creates the product, based on the product information of the product, determines
The product category of the product, the product category include open product and secret product;
If the product is open product, the open product is uploaded to the interconnection chain, if the product is private
The secret product is then uploaded to the corresponding business chain of the restocking mall server by close product.
In addition, to achieve the above object, the present invention also provides a kind of data sharing device, the data sharing device packet
It includes: memory, processor and being stored in the data sharing program that can be run on the memory and on the processor, it is described
The step of data sharing program realizes data sharing method as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Data sharing program is stored on storage medium, the data sharing program realizes data as described above when being executed by processor
The step of sharing method.
Data sharing method proposed by the present invention obtains the public information and sensitive information of the first mall server, and will
The public information is uploaded to the corresponding interconnection chain of first mall server, and the sensitive information is uploaded to described first
The corresponding business chain of mall server;When first mall server that the user terminal for receiving the second mall server is initiated
When corresponding resource access request, the corresponding information type of the resource access request is determined;If the information type is sensitivity
Info class, it is determined that whether the resource access request carries the corresponding authorization message of first mall server;If carrying,
The corresponding target susceptibility information of the resource access request is then obtained from the business chain, and the target susceptibility information is sent out
It send to the user terminal.The present invention is by being uploaded to interconnection chain for public information, and all mall servers in interconnection chain are all
Accessible public information, and sensitive information is stored in respective mall server, only this mall server and acquisition
The user terminal of authorization is just accessible, selectively shares data to realize, and is guaranteeing data sharing safety
Under the premise of realize it is more multidata shared so that data sharing is more flexible.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of data sharing method first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Data sharing device of the embodiment of the present invention can be PC machine or server apparatus.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and data sharing program.
Wherein, operating system is to manage and control the program of data sharing device and software resource, supports network communication mould
The operation of block, Subscriber Interface Module SIM, data sharing program and other programs or software;Network communication module is for managing and controlling
Network interface 1002 processed;Subscriber Interface Module SIM is for managing and controlling user interface 1003.
In data sharing device shown in Fig. 1, the data sharing device calls memory by processor 1001
The data sharing program stored in 1005, and execute the operation in each embodiment of following data sharing methods.
Based on above-mentioned hardware configuration, data sharing method embodiment of the present invention is proposed.
It is the flow diagram of data sharing method first embodiment of the present invention referring to Fig. 2, Fig. 2, which comprises
Step S10, obtains the public information and sensitive information of the first mall server, and the public information is uploaded to
The corresponding interconnection chain of first mall server, is uploaded to the corresponding industry of first mall server for the sensitive information
Business chain;
Step S20, when first mall server that the user terminal for receiving the second mall server is initiated is corresponding
When resource access request, the corresponding information type of the resource access request is determined;
Step S30, if the information type is sensitive information class, it is determined that whether the resource access request carries described
The corresponding authorization message of first mall server;
Step S40 obtains the corresponding target susceptibility letter of the resource access request if carrying from the business chain
Breath, and the target susceptibility information is sent to the user terminal.
It should be noted that existing data sharing, if to be shared by block chain, then being by all quotient
City is linked on a block chain, the data sharing account book in all stores, and the whole between this store got through across chain
Resource-sharing, the problem for being easy to cause permission excessive in this way, even if being partially unwilling shared resource in store, also because of block
Chain shares the characteristic of account book, and whole cochains lead to Authority sharing.In view of the situation, the data sharing side of the present embodiment is proposed
Method.
The data of mall server are divided into public information and sensitive information by the present embodiment, and public information is uploaded to mutually
Join chain, the mall server interconnected in chain can access, and sensitive information is uploaded to local business chain, only local quotient
City server and the user terminal for obtaining authorization are just accessible, selectively share data to realize.
Each step will be described in detail below:
Step S10, obtains the public information and sensitive information of the first mall server, and the public information is uploaded to
The corresponding interconnection chain of first mall server, is uploaded to the corresponding industry of first mall server for the sensitive information
Business chain.
The data sharing that the present embodiment data sharing method is applied to the financing financial institutions such as mechanism or banking system is set
In standby, for convenience of description, data sharing device hereinafter referred to as shared device, wherein shared device docks each mall server,
In the present embodiment, before carrying out data sharing, each mall server is first constructed into an interconnection chain jointly, meanwhile, to each quotient
City server itself also constructs a business chain, wherein the block chain that interconnection chain shares between each mall server, each store
Public information is all uploaded to interconnection chain between server, becomes shared information, and each mall server can be realized by interconnection chain
Shared account book, all mall servers for being linked into interconnection chain can pull shared information;And business chain is mall server
The block chain shared between user terminal corresponding with trade company, disclosed sensitive information of being unwilling inside mall server, passes through industry
Chain be engaged in save, therefore, sensitive information is relative to other mall servers with regard to secret.
In the present embodiment, by obtaining the public information and sensitive information of the first mall server, and by public information
It is uploaded to the corresponding interconnection chain of the first mall server, it, will be sensitive so that other mall servers access in interconnection chain
Information is uploaded to the corresponding business chain of the first mall server, for the first mall server itself access, wherein the first store
Server can be the mall server of the current interconnection chain of new access, be also possible to currently interconnect the quotient of the generation new data in chain
City server.
Step S20, when first mall server that the user terminal for receiving the second mall server is initiated is corresponding
When resource access request, the corresponding information type of the resource access request is determined.
In the present embodiment, when the money that the user terminal for receiving the second mall server is initiated based on the first mall server
When the access request of source namely when other mall servers access current mall server, first determine that resource access request is corresponding
Information type, it is possible to understand that, information type includes public information class and sensitive information class, and public information class is in interconnection chain
Can random access, the limitation and sensitive information class is then had ready conditions.
Further, after step S20, the method also includes:
Step a, if the information type is public information class, it is determined that second mall server and first quotient
Whether city server is in same interconnection chain;
In this step, however, it is determined that the target information of resource access request access belongs to public information class, then first determines the
Whether two mall servers and the first mall server are in same interconnection chain, it is possible to understand that, each quotient of same interconnection chain
City server can realize data sharing, and the mall server of difference interconnection chain can not then realize data sharing.
Step b, if so, the corresponding target public information of the resource access request is obtained in the interconnection chain, and
The target public information is sent to the user terminal.
In this step, however, it is determined that the second mall server and the first mall server are in same interconnection chain, then may be used
The corresponding target public information of resource access request is obtained in current interconnection, and target public information is sent to the second store
The corresponding user terminal of server.
Step S30, if the information type is sensitive information class, it is determined that whether the resource access request carries described
The corresponding authorization message of first mall server.
In the present embodiment, however, it is determined that the target information of resource access request access belongs to sensitive information class, then to user
End is verified, namely in the present embodiment, the user terminal of other mall servers wants access to the quick of current mall server
Feel information, then needs the authorization by current mall server.It is specific to determine whether Current resource access request carries the first quotient
The corresponding authorization message of city server, the authorization message are assigned by the first mall server.In the specific implementation, authorization letter
Breath can be the identification information identified with the first mall server.
Therefore, if the user terminal of the second mall server is wanted to access the sensitive information of the first mall server, first to the
One mall server initiates authorized application and sends corresponding authorization message when the first mall server determines accessible
To the user terminal of the second mall server, user terminal carries the authorization message received when initiating resource access request.
Step S40 obtains the corresponding target susceptibility letter of the resource access request if carrying from the business chain
Breath, and the target susceptibility information is sent to the user terminal.
In the present embodiment, however, it is determined that the authorization message that the first mall server is carried in Current resource access request is said
Bright active user end also has permission to access business chain, then the corresponding target susceptibility letter of resource access request is obtained from business chain
Breath, and target susceptibility information is sent to the corresponding user terminal of the second mall server.
Further, step S40 includes:
Step c obtains the corresponding target susceptibility information of the resource access request, and obtain the user if carrying
Hold the public key of corresponding trade company;
In this step, it to ensure that sensitive information only has the user terminal authorized accessible, needs to target susceptibility information
It is encrypted, in the specific implementation, target susceptibility information is encrypted by the way of asymmetric encryption, therefore, in determination
When carrying the authorization message of the first mall server in Current resource access request, in addition to obtaining the corresponding mesh of resource access request
It marks except sensitive information, also the public key of the corresponding trade company in acquisition active user end, to use public key to carry out target susceptibility information
Encryption.
Step d is based on the public key, and the target susceptibility information is encrypted to encrypted sensitive information, and by the encryption
Sensitive information is sent to second mall server, so that second mall server described will be added using corresponding private key
Close sensitive information is decrypted into the target susceptibility information, and the target susceptibility information is sent to the user terminal.
In this step, based on the public key of acquisition, target susceptibility information is encrypted to encrypted sensitive information, and will encrypt quick
Sense information is sent to the second mall server, so that the second mall server is in corresponding business chain, obtains active user end
The private key of corresponding trade company, and encrypted sensitive information is decrypted into target susceptibility information using the private key, finally by target susceptibility
Information is sent to active user end.
Target susceptibility information is encrypted to the encrypted sensitive information that only the second mall server can be decrypted, other stores
Server can not be decrypted it obtaining encrypted sensitive information, this is because the private of the corresponding trade company in active user end
Key is retained in the business chain of the second mall server, and therefore, the corresponding user terminal of only the second mall server may have access to and look into
It sees.
Further, before step c, the method also includes:
Step e obtains described the when detecting that the corresponding trade company of the user terminal enters second mall server
The corresponding public private key pair of the trade company of two mall servers creation;
In this step, asymmetric encryption is carried out to target susceptibility information to realize, corresponding trade company enters in user terminal
When the second mall server, the second mall server automatically creates the corresponding public private key pair of current trade company, as long as namely having new
Trade company enter mall server, the second mall server creates corresponding public private key pair automatically for trade company and is therefore detecting
When entering to the corresponding trade company of user terminal, corresponding public private key pair can be obtained.
Public key in the public private key pair is uploaded to the interconnection chain by step f, and the private key in the public private key pair is protected
There are the corresponding business chains of second mall server.
In this step, the public key in public private key pair that will acquire is uploaded to interconnection chain, and the private key in public private key pair is protected
There are the corresponding business chains of the second mall server, so that the user terminal of subsequent current trade company is accessing other mall servers
When sensitive data, shared device can directly acquire the public key of current trade company in interconnection chain, and with the public key to sensitive information into
Row encryption, and it could be decrypted in the second mall server for only saving corresponding private key.
The present embodiment obtains the public information and sensitive information of the first mall server, and the public information is uploaded to
The corresponding interconnection chain of first mall server, is uploaded to the corresponding industry of first mall server for the sensitive information
Business chain;When the corresponding resource access request of first mall server that the user terminal for receiving the second mall server is initiated
When, determine the corresponding information type of the resource access request;If the information type is sensitive information class, it is determined that the money
Whether source access request carries the corresponding authorization message of first mall server;If carrying, obtained from the business chain
The corresponding target susceptibility information of the resource access request is taken, and the target susceptibility information is sent to the user terminal.This
By the way that public information is uploaded to interconnection chain, all mall servers in interconnection chain can access public information for invention,
And sensitive information is stored in respective mall server, only this mall server and obtain the user terminal of authorization just can be with
Access, data are selectively shared, realize under the premise of guaranteeing data sharing safety most to realize
According to it is shared so that data sharing is more flexible.
Further, it is based on data sharing method first embodiment of the present invention, proposes data sharing method second of the present invention
Embodiment.
The difference of the first embodiment of the second embodiment and data sharing method of data sharing method is, the method
Further include:
Step g determines institute when detecting the procurement request that the user terminal is initiated by second mall server
State whether the corresponding product of procurement request has in the second mall server restocking;
Step h, if it is not, then determining the corresponding restocking mall server of the product in the interconnection chain, and will be described
Procurement request is sent to the restocking mall server, corresponding to complete the procurement request based on the restocking mall server
Transaction.
Corresponding procurement request can be sent to corresponding by the present embodiment when encountering across store buying by interconnecting chain
Mall server, to realize across store buying.
Each step will be described in detail below:
Step g determines institute when detecting the procurement request that the user terminal is initiated by second mall server
State whether the corresponding product of procurement request has in the second mall server restocking.
In the present embodiment, user terminal login user end mall server can be used in user, and takes in local store
It is engaged in carrying out the buying of product in device, can also be sent out by the corresponding interconnection chain of local mall server to strange land mall server
Procurement request is played, to realize across store shopping.
When detecting that the corresponding user terminal of the second mall server initiates procurement request by the second mall server, first
Determine the corresponding product of current procurement request whether the restocking in the second mall server, if so, current procurement request is one
The secondary buying for local mall server, then this transaction can be carried out in local mall server.
Step h, if it is not, then determining the corresponding restocking mall server of the product in the interconnection chain, and will be described
Procurement request is sent to the restocking mall server, corresponding to complete the procurement request based on the restocking mall server
Transaction.
In the present embodiment, however, it is determined that the current corresponding product of the procurement request not restocking in the second mall server, then
Current procurement request is the primary buying for being directed to strange land mall server, then shared device first work as in the interconnection chain by determination
For the corresponding product of preceding procurement request in which mall server restocking, which is restocking server, is being determined
After restocking mall server, the interconnection chain that can be shared by the second mall server and restocking mall server asks buying
It asks and is sent to restocking mall server, to complete this transaction based on restocking mall server, to realize across store buying.
It should be understood that needing restocking mall server pair when the corresponding product of current procurement request is physical product
The trade company answered deliver under line and the user at active user end carries out the operation such as receive, therefore, when procurement request is corresponding
When product is physical product, this transaction can not be completed on line immediately.Specific process of exchange can refer to the friendship in existing store
Easily, details are not described herein.
It should be noted that if not finding the corresponding restocking mall server of current production in interconnection chain, it is determined that should
The non-restocking of product is also considered as non-restocking even if there is the product in other business chains.
Further, before step g, the method also includes:
Step i, if detecting, the restocking mall server creates the product, the product letter based on the product
Breath determines that the product category of the product, the product category include open product and secret product;
In this step, if detecting restocking mall server creation product namely corresponding trade company in the restocking store
Server restocking product then obtains the product information of product, and is based on product information, determines the product category of current production,
Classify to current production, wherein product category includes open product and secret product, the store of open product, that is, all
Server is as it can be seen that secret product i.e. only current mall server is visible.
If the step j product is open product, the open product is uploaded to the interconnection chain, if the product
For secret product, then the secret product is uploaded to the corresponding business chain of the restocking mall server.
If current production is open product, current production is uploaded to interconnection chain, if current production is secret product,
Current production is uploaded to the corresponding business chain of restocking mall server.
By taking card certificate as an example, if current card certificate is universal card certificate, i.e. the card certificate can be used in all mall servers, then
Determine that the card certificate for open card certificate, is uploaded to interconnection chain by the card certificate;If current card certificate is personality card certificate, i.e. the card certificate can only be
Current mall server uses, it is determined that the card certificate is secret card certificate, and it is corresponding which is uploaded to current mall server
Business chain.
Further, when restocking mall server at least there are two when, the service of one of restocking store can be randomly choosed
Device can also obtain in all restocking mall servers, the quantity in stock of current production, and the most restocking store of quantity in stock is serviced
Device is as the corresponding restocking mall server of this procurement request.
Further, the product includes virtual product, described to complete the buying based on the restocking mall server
The step of requesting corresponding transaction include:
Step k receives the virtual product that the restocking mall server is sent based on the procurement request and described
The corresponding purchase order of virtual product;
In this step, since the corresponding product of current procurement request is virtual product, present deal can be realized,
In, virtual product includes the card certificate of direct exchange value, such as the card certificate of rechargeable card and indirect exchange value, such as product discount
Certificate etc., while also including Virtual Service etc..
Restocking mall server determines the corresponding virtual product of procurement request when receiving procurement request, and will be virtual
Product trading gives active user end, while generating corresponding purchase order, to record to this transaction, due to restocking store
Server and active user end not in same server, therefore can not direct dealing, therefore restocking store is received by shared device
The virtual product and the corresponding purchase order of virtual product that server is sent based on current procurement request, to complete this transaction,
It is specific as follows.
The virtual product is sent to the user terminal by second mall server by step l, and based on described
Purchase order deducts the user terminal in the corresponding account amount of money of second mall server.
In this step, virtual product is sent to active user end, and base by the second mall server by shared device
In the purchase order received, active user is deducted in the corresponding account amount of money of the second mall server, completes this transaction.
The present embodiment, if local mall server does not have corresponding product restocking, can also lead to when detecting procurement request
It crosses interconnection chain and strange land mall server completes across store transaction, user terminal does not need switching mall server and purchased, real
Now intelligence buying.
The present invention also provides a kind of data sharing devices.Data sharing device of the present invention includes:
Cochain module, for obtaining the public information and sensitive information of the first mall server, and by the public information
It is uploaded to the corresponding interconnection chain of first mall server, the sensitive information is uploaded to first mall server pair
The business chain answered;
Receiving module, first mall server pair for being initiated when the user terminal for receiving the second mall server
When the resource access request answered, the corresponding information type of the resource access request is determined;
Determining module, if being sensitive information class for the information type, it is determined that whether the resource access request is taken
With the corresponding authorization message of first mall server;
Sending module, if it is quick to obtain the corresponding target of the resource access request from the business chain for carrying
Feel information, and the target susceptibility information is sent to the user terminal.
Further, the sending module is also used to:
If carrying, the corresponding target susceptibility information of the resource access request is obtained, and it is corresponding to obtain the user terminal
Trade company public key;
Based on the public key, the target susceptibility information is encrypted to encrypted sensitive information, and the encrypted sensitive is believed
Breath is sent to second mall server, so that second mall server uses corresponding private key by the encrypted sensitive
Information is decrypted into the target susceptibility information, and the target susceptibility information is sent to the user terminal.
Further, the data sharing device further includes entering module, and the module of entering is used for:
When detecting that the corresponding trade company of the user terminal enters second mall server, second store is obtained
The corresponding public private key pair of the trade company of server creation;
Public key in the public private key pair is uploaded to the interconnection chain, the private key in the public private key pair is stored in institute
State the corresponding business chain of the second mall server.
Further, the determining module is also used to:
If the information type is public information class, it is determined that second mall server and first store service
Whether device is in same interconnection chain;
The sending module is also used to:
If so, obtaining the corresponding target public information of the resource access request in the interconnection chain, and will be described
Target public information is sent to the user terminal.
Further, the data sharing device further includes procurement module, and the procurement module is used for:
When detecting the procurement request that the user terminal is initiated by second mall server, the buying is determined
Request whether corresponding product has in the second mall server restocking;
If it is not, then determining the corresponding restocking mall server of the product in the interconnection chain, and the buying is asked
It asks and is sent to the restocking mall server, to complete the corresponding friendship of the procurement request based on the restocking mall server
Easily.
Further, the product includes virtual product, and the data sharing device further includes transaction modules, the transaction
Module is used for:
Receive the virtual product and the virtual production that the restocking mall server is sent based on the procurement request
The corresponding purchase order of product;
The virtual product is sent to the user terminal by second mall server, and is ordered based on the buying
It is single to deduct the user terminal in the corresponding account amount of money of second mall server.
Further, the data sharing device further includes creation module, and the creation module is used for:
If detecting, the restocking mall server creates the product, based on the product information of the product, determines
The product category of the product, the product category include open product and secret product;
If the product is open product, the open product is uploaded to the interconnection chain, if the product is private
The secret product is then uploaded to the corresponding business chain of the restocking mall server by close product.
The present invention also provides a kind of computer readable storage mediums.
Data sharing program is stored on computer readable storage medium of the present invention, the data sharing program is by processor
The step of data sharing method as described above is realized when execution.
Wherein, the data sharing program run on the processor, which is performed realized method, can refer to the present invention
The each embodiment of data sharing method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content, is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data sharing method, which is characterized in that the data sharing method includes the following steps:
The public information and sensitive information of the first mall server are obtained, and the public information is uploaded to first store
The sensitive information is uploaded to the corresponding business chain of first mall server by the corresponding interconnection chain of server;
When the corresponding resource access request of first mall server that the user terminal for receiving the second mall server is initiated
When, determine the corresponding information type of the resource access request;
If the information type is sensitive information class, it is determined that whether the resource access request carries the first store service
The corresponding authorization message of device;
If carrying, the corresponding target susceptibility information of the resource access request is obtained from the business chain, and by the mesh
Mark sensitive information is sent to the user terminal.
2. data sharing method as described in claim 1, which is characterized in that if described carry, obtained from the business chain
The corresponding target susceptibility information of the resource access request is taken, and the target susceptibility information is sent to the step of the user terminal
Suddenly include:
If carrying, the corresponding target susceptibility information of the resource access request is obtained, and obtain the corresponding quotient of the user terminal
The public key at family;
Based on the public key, the target susceptibility information is encrypted to encrypted sensitive information, and the encrypted sensitive information is sent out
It send to second mall server, so that second mall server uses corresponding private key by the encrypted sensitive information
It is decrypted into the target susceptibility information, and the target susceptibility information is sent to the user terminal.
3. data sharing method as claimed in claim 2, which is characterized in that if described carry, obtain the resource access
Corresponding target susceptibility information is requested, and before the step of obtaining the public key of the corresponding trade company of the user terminal, the method is also
Include:
When detecting that the corresponding trade company of the user terminal enters second mall server, the corresponding public affairs of the trade company are created
Private key pair;
Public key in the public private key pair is uploaded to the interconnection chain, the private key in the public private key pair is stored in described
The corresponding business chain of two mall servers.
4. data sharing method as described in claim 1, which is characterized in that described when the use for receiving the second mall server
When the corresponding resource access request of first mall server that family end is initiated, the corresponding letter of the resource access request is determined
After the step of ceasing type, the method also includes:
If the information type is public information class, it is determined that second mall server is with first mall server
It is no to be in same interconnection chain;
If so, obtain the corresponding target public information of the resource access request in the interconnection chain, and by the target
Public information is sent to the user terminal.
5. data sharing method according to any one of claims 1-4, which is characterized in that the method also includes:
When detecting the procurement request that the user terminal is initiated by second mall server, the procurement request is determined
Whether corresponding product has in the second mall server restocking;
If it is not, then determining the corresponding restocking mall server of the product in the interconnection chain, and the procurement request is sent out
It send to the restocking mall server, to complete the corresponding transaction of the procurement request based on the restocking mall server.
6. data sharing method as claimed in claim 5, which is characterized in that the product includes virtual product, described to be based on
The restocking mall server completes the step of procurement request corresponding transaction and includes:
Receive the virtual product and the virtual product pair that the restocking mall server is sent based on the procurement request
The purchase order answered;
The virtual product is sent to the user terminal by second mall server, and is based on the purchase order button
Except the user terminal is in the corresponding account amount of money of second mall server.
7. data sharing method as claimed in claim 5, which is characterized in that described to detect the user terminal described in
When the procurement request that the second mall server is initiated, determine whether the corresponding product of the procurement request has in second store
Before the step of server restocking, the method also includes:
If detecting, the restocking mall server creates the product, based on the product information of the product, determine described in
The product category of product, the product category include open product and secret product;
If the product is open product, the open product is uploaded to the interconnection chain, if the product is secret production
The secret product is then uploaded to the corresponding business chain of the restocking mall server by product.
8. a kind of data sharing device, which is characterized in that the data sharing device includes:
Cochain module is uploaded for obtaining the public information and sensitive information of the first mall server, and by the public information
To the corresponding interconnection chain of first mall server, it is corresponding that the sensitive information is uploaded to first mall server
Business chain;
Receiving module, first mall server for initiating when the user terminal for receiving the second mall server are corresponding
When resource access request, the corresponding information type of the resource access request is determined;
Determining module, if being sensitive information class for the information type, it is determined that whether the resource access request carries institute
State the corresponding authorization message of the first mall server;
Sending module, if obtaining the corresponding target susceptibility letter of the resource access request from the business chain for carrying
Breath, and the target susceptibility information is sent to the user terminal.
9. a kind of data sharing device, which is characterized in that the data sharing device includes: memory, processor and is stored in
On the memory and the data sharing program that can run on the processor, the data sharing program is by the processor
The step of data sharing method as described in any one of claims 1 to 7 is realized when execution.
10. a kind of computer readable storage medium, which is characterized in that it is total to be stored with data on the computer readable storage medium
Program is enjoyed, the data sharing as described in any one of claims 1 to 7 is realized when the data sharing program is executed by processor
The step of method.
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 true CN110266686A (en) | 2019-09-20 |
CN110266686B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111339173A (en) * | 2020-02-21 | 2020-06-26 | 深圳市酷开网络科技有限公司 | Data sharing method, server and readable storage medium |
WO2020253714A1 (en) * | 2019-06-20 | 2020-12-24 | 深圳前海微众银行股份有限公司 | Data sharing method and apparatus, device and computer readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170046693A1 (en) * | 2015-08-13 | 2017-02-16 | The Toronto-Dominion Bank | Systems and methods for detecting and resolving data inconsistencies among networked devices using hybrid private-public blockchain ledgers |
US20170357966A1 (en) * | 2016-06-09 | 2017-12-14 | Mastercard International Incorporated | Method and system for use of a proprietary private blockchain |
US20180101848A1 (en) * | 2016-10-12 | 2018-04-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 |
US20180139186A1 (en) * | 2016-11-17 | 2018-05-17 | Bank Of America Corporation | System for multiplexing and demultiplexing blockchain ledgers via a cryptographic hash |
US20180316492A1 (en) * | 2017-05-01 | 2018-11-01 | Qbrics, Inc. | Distributed System and Method for Encryption of Blockchain Payloads |
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 |
CN109792553A (en) * | 2016-08-07 | 2019-05-21 | 多特区块链音乐有限公司 | For managing the distributed data storage of media |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3714381A4 (en) * | 2017-11-20 | 2021-08-11 | Obook Inc. | 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 |
-
2019
- 2019-06-20 CN CN201910541962.0A patent/CN110266686B/en active Active
-
2020
- 2020-06-17 WO PCT/CN2020/096542 patent/WO2020253714A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170046693A1 (en) * | 2015-08-13 | 2017-02-16 | The Toronto-Dominion Bank | Systems and methods for detecting and resolving data inconsistencies among networked devices using hybrid private-public blockchain ledgers |
US20170357966A1 (en) * | 2016-06-09 | 2017-12-14 | Mastercard International Incorporated | Method and system for use of a proprietary private blockchain |
CN109792553A (en) * | 2016-08-07 | 2019-05-21 | 多特区块链音乐有限公司 | For managing the distributed data storage of media |
US20180101848A1 (en) * | 2016-10-12 | 2018-04-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 |
US20180139186A1 (en) * | 2016-11-17 | 2018-05-17 | Bank Of America Corporation | System for multiplexing and demultiplexing blockchain ledgers via a cryptographic hash |
US20180316492A1 (en) * | 2017-05-01 | 2018-11-01 | Qbrics, Inc. | Distributed System and Method for Encryption of Blockchain Payloads |
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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020253714A1 (en) * | 2019-06-20 | 2020-12-24 | 深圳前海微众银行股份有限公司 | Data sharing method and apparatus, device and computer readable storage medium |
CN111339173A (en) * | 2020-02-21 | 2020-06-26 | 深圳市酷开网络科技有限公司 | Data sharing method, server and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020253714A1 (en) | 2020-12-24 |
CN110266686B (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11222363B2 (en) | Cognitive determination system connecting social network and blockchain network | |
US11443301B1 (en) | Sending secure proxy elements with mobile wallets | |
KR20200103275A (en) | Block-chain based sharing system of game resources | |
JP2005512234A (en) | Customer-centric context-aware switching model | |
JP2005512234A6 (en) | Customer-centric context-aware switching model | |
US20160203463A1 (en) | Mobile card sharing service method and system with enhanced security | |
CN110232601A (en) | Card certificate management method, device, equipment and storage medium | |
US20230230066A1 (en) | Crypto Wallet Configuration Data Retrieval | |
US20200034903A1 (en) | Information Processing Method, Information Processing Apparatus and Computer-Readable Non-Transitory Storage Medium Storing Program | |
US20220067125A1 (en) | Method for distributing certificate of right to use digital content, and computer program stored in medium in order to carry out method | |
US20140257961A1 (en) | System for digital bonus point management | |
US20140351096A1 (en) | Techniques for facilitating acquisition and exchange of ebook and other digital content via a computer network | |
CN110266686A (en) | Data sharing method, device, equipment and computer readable storage medium | |
US20140358713A1 (en) | Method and system for bulk purchase negotiating using an ad hoc online group | |
CN110969465A (en) | Sales promotion method and system based on block link certificate | |
CN110689412A (en) | Method, device, server and storage medium for game virtual article transaction based on block chain | |
US20220150071A1 (en) | System and method for identifying virtual goods | |
CN110401526A (en) | Customer information safety interacting method, terminal and server based on small routine | |
TWI735866B (en) | Authentication-type agent-based distribution e-commerce system and method thereof | |
CN114146415A (en) | Game element transaction method and device based on block chain | |
JP6535394B1 (en) | Digital asset trading method | |
Pourghomi et al. | Ecosystem scenarios for cloud-based NFC payments | |
Shih et al. | MoRVAM: A reverse Vickrey auction system for mobile commerce | |
CN110956454A (en) | Block chain red packet delivery method and system | |
CN110223118A (en) | A kind of method of investigation and study realized by intelligent contract and its equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |