CN104580253B - A kind of method and device of processes user data - Google Patents
A kind of method and device of processes user data Download PDFInfo
- Publication number
- CN104580253B CN104580253B CN201510050054.3A CN201510050054A CN104580253B CN 104580253 B CN104580253 B CN 104580253B CN 201510050054 A CN201510050054 A CN 201510050054A CN 104580253 B CN104580253 B CN 104580253B
- Authority
- CN
- China
- Prior art keywords
- user
- network
- client
- request
- export
- 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
Links
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1059—End-user terminal functionalities specially adapted for real-time communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Abstract
Embodiments of the present invention are provided a method that and device.For example, methods described can apply to the arbitrary network node of block chain network, including:Via the first specified interface, receive the export request that user is sent by the first client, wherein, the export request is related to the first account that user is exported to block chain network in the first user credit amount of the first client, export request is broadcasted between other network nodes of block chain network, in response to receiving confirmation of other network nodes to export request, user is transferred in the first account of block chain network in the first user credit amount of the first client, so that user credit amount is not left in server side as junk data, user credit amount can freely be shifted between the account of block chain network, even if server side corresponding with client stops service, also the interests of user will not be caused damage, more preferable experience is brought for user.
Description
Technical field
Embodiments of the present invention are related to internet arena, more specifically, embodiments of the present invention are related to a kind of processing
The method and device of user data.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein
Description recognizes it is prior art not because not being included in this part.
Client-server mode, is a kind of network architecture, is carried by the friendship user for each other between client and server
For service.In the system realized based on client-server mode, user is stored in clothes in the user credit amount of client
Business device side, and the account for preserving user credit amount is managed by server side, to prevent honeysuckle phenomenon.Honeysuckle phenomenon, be
Refer to account A and displaced the user credit amount that a number of user credit amount gives account B, account B to be shifted, but account
A does not deduct relative users credit, so as to cause same user credit amount to be spent twice.
By in the system realized based on client-server mode, user preserves in the user credit amount of client
In server side, and by server-side management.Therefore,, should after user abandons using the system for server side
The user credit amount of user can be stored in server side as junk data, cause the waste to server side resource.For with
For family, when the system stops servicing, the interests of user can be caused damage, user can not reuse the user credit of oneself
Amount, input of the user on energy and material can all be wasted.
The content of the invention
Therefore, in the prior art, how to handle user credit amount this user data is very bothersome problem.
Therefore, be highly desirable to a kind of method of improved processes user data, so that the user credit amount of user will not be into
For junk data, the infringement to user benefit is reduced.
In the present context, embodiments of the present invention are expected to provide a kind of method and device of processes user data.
There is provided a kind of arbitrary network node applied to block chain network in the first aspect of embodiment of the present invention
The method of processes user data.For example, this method can include:Via the first specified interface, receive user and pass through the first client
The export request sent is held, wherein, the export request, which is related to, believes the user in the first user of first client
Consumption exports to the first account of described piece of chain network, by the export request between other network nodes of described piece of chain network
Broadcasted, in response to receiving confirmation of other network nodes to the export request, by the user in the described first visitor
The first user credit amount at family end is transferred in first account of described piece of chain network.
There is provided a kind of arbitrary network node for being configured at block chain network in the second aspect of embodiment of the present invention
The device of processes user data.For example, the device can include:Request reception unit, may be configured to specify via first
Interface, receives the export request that user is sent by the first client, wherein, the export request is related to the user in institute
The the first user credit amount for stating the first client exports to the first account of described piece of chain network.Radio unit, can configure use
Broadcasted in by the export request between other network nodes of described piece of chain network.Buanch unit, may be configured to
In response to receiving confirmation of other network nodes to the export request, by the user the first of first client
User credit amount is transferred in first account of described piece of chain network.
There is provided a kind of processes user data for being applied to the first client in the third aspect of embodiment of the present invention
Method.For example, this method can include:The behaviour corresponding to export user credit amount to block chain network is performed in response to user
Make, the export request of the first specified interface provided via the network node of block chain network is provided, the export request is related to
The user is exported to the first account of described piece of chain network in the first user credit amount of first client, with toilet
Export request described in network node is stated to be broadcasted and in response to receiving between other network nodes of described piece of chain network
Confirmation of other network nodes to the export request, the user is turned in the first user credit amount of first client
In first account for moving on to described piece of chain network, it is transferred in response to the first user credit amount described in the network node
In first account, the remaining users credit of first client is accordingly updated.
There is provided a kind of processes user data for being configured at the first client in the fourth aspect of embodiment of the present invention
Device.For example, the device can include:Operating unit is exported, may be configured to perform export user's letter in response to user
Operation corresponding to consumption to block chain network, sends leading for the first specified interface for being provided via the network node of block chain network
Go out request, the export request is related to the user exports to described piece in the first user credit amount of first client
First account of chain network, so that export request described in the network node is between other network nodes of described piece of chain network
Broadcasted and in response to receiving confirmation of other network nodes to the export request, by the user described first
First user credit amount of client is transferred in first account of described piece of chain network.User credit amount updating block,
It may be configured to be transferred in first account in response to the first user credit amount described in the network node, to described
The remaining users credit of first client is accordingly updated.
According to the method and device of the processes user data of embodiment of the present invention, due to the net of the application embodiment of the present invention
Network node provides the first specified interface for being available for calling, and therefore, it can via the first specified interface, receives user and passes through first
What client was sent is related to export user credit amount to the export request of the first account of described piece of chain network, please by the export
Ask and broadcasted between other network nodes of described piece of chain network.Because the user credit amount in the block chain of block chain network turns
Move historical record irreversible, therefore, other network nodes can carry out export request according to the historical record in block chain and relate to
And user credit amount transfer it is whether certifiable calculate so that using present invention method network node receive
To other network nodes to it is described export request confirmation when, it may be determined that the first user credit amount is transferred to block chain network
Honeysuckle phenomenon will not occur for the first account.After the first account that the first user credit amount is transferred in block chain network,
So that user credit amount is not left in server side as junk data.For a user, its user credit amount can be in block
This wide range of chain network is freely shifted, also will not be to user even if server side corresponding with client stops service
Interests cause damage, be that user brings more preferable experience.
Brief description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing
, feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation
Dry embodiment, wherein:
Fig. 1 schematically shows the network architecture schematic diagram according to embodiment of the present invention;
Fig. 2 schematically shows block chain structure schematic diagram according to an embodiment of the invention;
Fig. 3 schematically shows the place of the arbitrary network node applied to block chain network according to embodiment of the present invention
Manage the method flow schematic diagram of user data;
Fig. 4 schematically shows the place of the arbitrary network node for being configured at block chain network according to embodiment of the present invention
Manage the apparatus structure schematic diagram of user data;
Fig. 5 is schematically shown according to the processes user data applied to the first client of embodiment of the present invention
Method flow schematic diagram;
Fig. 6 is schematically shown according to the processes user data for being configured at the first client of embodiment of the present invention
Apparatus structure schematic diagram;
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Embodiment
The principle and spirit of the present invention is described below with reference to some illustrative embodiments.It should be appreciated that providing this
A little embodiments are used for the purpose of better understood when those skilled in the art and then realizing the present invention, and not with any
Mode limits the scope of the present invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy
It is enough that the scope of the present disclosure is intactly conveyed into those skilled in the art.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment,
Method or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:It is complete hardware, complete soft
Part (including firmware, resident software, microcode etc.), or the form that hardware and software is combined.
According to the embodiment of the present invention, it is proposed that a kind of method and device of processes user data.
Herein, it is to be understood that any number of elements in accompanying drawing is used to example and unrestricted and any
Name is only used for distinguishing, without any limitation.
Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.
Summary of the invention
The inventors discovered that, the first specified interface for being available for calling can be provided in the network node of block chain network, so that
The export that user can send export user credit amount by client to the first specified interface is asked, and shifts user's credit
Into the account of block chain network.After the first account that the first user credit amount is transferred in block chain network so that use
Family credit is not left in server side as junk data.For a user, its user credit amount can be in block chain network
This wide range is freely shifted, even if server side corresponding with client stops service, also will not be to the interests of user
Cause damage, be that user brings more preferable experience.
After the general principle of the present invention is described, lower mask body introduces the various non-limiting embodiment party of the present invention
Formula.
Application scenarios overview
With reference first to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram of possible application scenarios of the embodiment of the present invention.
As shown in figure 1, user can be stored in network game server side in the first user credit amount of network game client 101
102 in the meta account of block chain network.User is sent by network game client 101 to network game server side 102
The first user credit amount is exported to the export request of the first account.Network game server side 102 is by calling first
Specified interface accordingly sends the export to the network node 103 of block chain network 100 and asked.Network node 103 is via described
One specified interface receives the export request.Network node 103 asks the export at other network sections in block chain network 100
Broadcasted between point.If network node 103 receives confirmation of other network nodes to the export request, by the export
The first involved user credit amount of request is transferred in the first account of described piece of chain network 100, and by the first user credit
Amount is deducted from the meta account.
One of illustrative methods
With reference to Fig. 1 application scenarios, it is described with reference to Figure 2 and block is applied to according to exemplary embodiment of the invention
The method of the arbitrary network node of chain network.It should be noted that above-mentioned application scenarios, which are for only for ease of, understands the present invention's
Spirit and principle and show, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can
With applied to applicable any scene.
In order that the embodiment of the present invention more easily understands, block chain network is simply introduced first.As shown in Figure 1
Block chain network 100, is gone based on P2P (Peer to Peer, P2P computing) technology by what several network nodes were constituted
The peer-to-peer network of the heart.Wherein, a network node can show as the application run on terminal device or client
End.Each network node in block chain network maintains a string using the associated block chain produced of cryptography method, and,
A account list.Newest number of blocks and block information is obtained between each network node by broadcasting, so as to protect
The block chain and account list demonstrate,proved between each network node are synchronous maintenances.For example, block chain as shown in Figure 2 is in journey
Realization on sequence code can be with as follows:
struct Block{
hash HASH(S[n])
hash S[n-1]
};
Wherein, comprising a HASH (S [n]) in the head in each block of block chain, wherein S [n] is next secondary
By the key of generation during the block of producing region.Current block also includes the key S [n-1] of a upper block simultaneously.Due in block chain
In the block of confirmation, the user credit amount transfer history record item for the owner for being certified as user credit amount can be preserved, after
The block cryptographic Hash that block is produced comprising before in the block head that face is produced, it is not possible to reverse, in this way, just foring user credit
Amount transfer history records irreversible block chain.
Below, with reference to Fig. 3, the processing to the arbitrary network node provided in an embodiment of the present invention applied to block chain network is used
The method flow of user data is introduced.As shown in figure 3, this method can include:
S310, the export request sent via the first specified interface, reception user by the first client, wherein, it is described
Export request, which is related to, exports to the user in the first user credit amount of first client the of described piece of chain network
One account.
Wherein, first specified interface, is provided using the network node of method provided in an embodiment of the present invention
Application programming interfaces, are the abstract of the function realized to present invention method.The correlation of first specified interface is determined
Justice, the content of agreement are not limited.For example, in the agreement of first specified interface, can specify that the export request should be carried
Data content, such as the first user credit amount, the account of the relevant information of the first account such as the first account, and these data
The form of content, such as data length,.
Wherein, user can be stored in the first user credit amount of the first client before the first account is exported to
In the meta account of described piece of chain network.The meta account can be created in block chain network described in initial creation, wherein it is possible to
A number of user credit amount is provided with as basic credit.
In some possible embodiments, the owner of the user credit amount in meta account can be server side.When
User, by certain mode, makes server side first user credit amount by as described in assign institute in the first client such as modes such as exchanges
State after user, the first user credit amount becomes first user credit amount of the user in the first client.And then,
User can be sent by the first user end to server side the first user credit amount exporting to the first of block chain network
The export request of account.Server side is by calling the first specified interface to be sent out to the network node of application present invention method
Go out the export request.Using the network node of present invention method the export is received via first specified interface
Request, it is determined that needing the first user credit amount in the meta account by server side to be transferred to first required by the first user
In account.By taking network game field as an example, first client can be network game client.Using the embodiment of the present invention
The network node of method can be configured at network game server side.It is described via the first specified interface, receive user by the
The export request that one client is sent, via the first specified interface, can specifically receive the institute of network game server side forwarding
State the export request that user is sent by network game client.
In other possible embodiments, the owner of the user credit amount in meta account can be the described first visitor
Family end.And then, user can be directly sent institute by the first client to the network node of application present invention method
State the export request that the first user credit amount exports to the first account of block chain network.Wherein, first account can be institute
State a record in the account list that the network node of block chain network is safeguarded.First account can send the export
The account of the user of request or the account of other users.By taking network game field as an example, first client can be with
For network game client.It can be configured at using the network node of present invention method with the network game client
On same terminal device.Or, can be with the network game client using the network node of present invention method
Be configured at can be by the different terminal equipment of network connection on.
Wherein, the first user credit amount can occur with the various forms of expression, e.g., and the first user credit amount can be
Franc such as RMB in game money, user integral, real financial system, dollar, etc..
In some possible embodiments, method provided in an embodiment of the present invention is also provided with to different credit classes
The gateway that the user credit amount of type is mutually changed.For example, different credit types can include:Game money, user integral,
Franc etc..The gateway can be converted to game money according to a certain percentage user integral, or, by user integral according to certain
Ratio be converted to franc, etc..For example, the transformational relation set by the gateway can be:The credit of circulation in block chain network
Measure user credit amount corresponding to type=(deposit of the client correspondence system of the deposit total amount of block chain network/first is total
Amount) the * the first user credit amount.When receiving the export request that user is sent by the first client, it is possible to use the net
Close the user credit amount corresponding to the credit type for being converted to the first user credit amount and being circulated in described piece of chain network.
In this embodiment, the user credit amount of the corresponding different credit types of different clients can be by the gateway in proportion
Conversion is converted to the user credit amount of same credit type, so that user credit amount has versatility in block chain network.
S320, by it is described export request broadcasted between other network nodes of described piece of chain network.
Wherein, described will export asks the specific implementation broadcasted between other network nodes of block chain network not
Limit, the general embodiment for being referred to the peer-to-peer network broadcast message based on P2P technologies is realized.For example, can be by adjacent
The export request is broadcast to full block chain network by the mode of network node relay.
S330, in response to receiving confirmation of other network nodes to the export request, by the user described the
First user credit amount of one client is transferred in first account of described piece of chain network.
For example, if user has 100 user integrals in the first client, user wants the first client being stored in account
20 user integrals in A are transferred to the account B in block chain network, then user can send export 20 by the first client
User integral to account B export are asked, and the network node using present invention method is passing through above-mentioned S310-S330,
20 in account A user integral can be transferred in account B so that 20 user integrals are deducted in account A, it is remaining 80
User integral so that 20 user integrals are added in account B.
It can be seen that, because the network node of application present invention method provides the first specified interface for being available for calling,
It therefore, it can via the first specified interface, receive user by what the first client was sent and be related to export user credit amount to institute
The export request of the first account of block chain network is stated, the export request is entered between other network nodes of described piece of chain network
Row broadcast.Because the user credit amount transfer history in the block chain of block chain network records irreversible, therefore, other network sections
Point can carry out the whether certifiable meter of transfer for the user credit amount that export request is related to according to the historical record in block chain
Calculate, so as to receive confirmation of other network nodes to the export request using the network node of present invention method
When, it may be determined that honeysuckle phenomenon will not occur for the first account that the first user credit amount is transferred into block chain network.By first
User credit amount is transferred to after the first account in block chain network so that user credit amount, which is not left in server side, to be turned into
Junk data.For a user, its user credit amount can freely be shifted between the account of block chain network, it is no longer necessary to be taken
It is engaged in device side to manage, even if server side corresponding with client stops service, the interests of user will not be also caused damage, be
User brings more preferable experience.
In some possible embodiments, method provided in an embodiment of the present invention can also include:
S340, via the second specified interface, receive the importing request that the second client is sent, wherein, it is described to import request
It is related to the second account that the second user credit of first account is imported into the second client.
In some possible embodiments, method provided in an embodiment of the present invention is also provided with to different credit classes
The gateway that the user credit amount of type is mutually changed.When receiving the importing request that user is sent by the second client,
The second user credit is converted to using the gateway corresponding to the credit type circulated in second client
User credit amount.
S341, by it is described import request broadcasted between other network nodes of described piece of chain network.
S342, in response to receive other network nodes to it is described import request confirmation, by the second user credit
Amount from first account deduct, and to second client send by the second user credit imported into second visitor
The confirmation message of second account at family end.
It should be noted that step S340, S341 and S342 that the embodiment of the present invention is mentioned are painted with dotted line in figure 3
System, to represent that these steps are not the steps necessarys of method provided in an embodiment of the present invention.However it should be appreciated that at this
When the method that inventive embodiments are provided includes these steps, second can be passed through using the network node of present invention method
Specified interface, block chain network is accessed by such as online shopping mall, telephone recharge third-party application, and then, by user credit amount according to
Agreement defined in second specified interface is transferred in these third-party applications and used.
In some possible embodiments of the invention, in order to ensure the safety of account in block network, each account has
There are corresponding a pair of public keys and private key.The confirmation of export request or importing request is needed to use obtaining other network nodes
Family credit from an account of block chain network be transferred to another account of block chain network when, can from export request or import
The public key of its carrying is obtained in request.Wherein, the public key can be transferred by needs user credit amount, need to be transferred to
The information such as the account of another account obtained by the encryption of the multiple encryption algorithms such as md5, sha256.Institute is received in block chain network
The all-network node for stating broadcast can be according to the public key, by the user credit amount in an account recorded in account list
It is transferred in another account.The owner of another account can prove that it is really gathered around for account using the corresponding private key of the public key
The person of having, the user credit amount in accessing to your account.
It should be noted that the embodiment of the present invention asks or imported to the export to other network nodes to ask what is confirmed
Embodiment is not limited.For example, general proof of work mechanism (Proof of Work) can be taken to realize.For another example
The node that the embodiment of the present invention can be taken to be provided proves that mechanism is realized.Below, the node provided the embodiment of the present invention
Proof mechanism (Proof of Node) describes in detail.
In node proof mechanism, it is described import request or export request be broadcast to block chain network all-network node it
Afterwards, each active network node can receive broadcast and described import is asked or current tailer is put into export request
In block, and validity check calculating is carried out to the request in afterbody block.For example, the request in the block to afterbody has
The verification calculating of effect property can include:Whether it is to need the user credit amount that is transferred in request by the user for proving to send request
Owner come judge export request or import request it is whether effective.Complete the validity school of all requests in current tail block
Test calculate and calculate at first next block network node can by complete calculate current tail block be broadcast to full block chain
Network, full block chain network only can carry out synchronous current tail block, so that really according to the network node for calculating next block at first
Protect effective export request or import the uniqueness of request.For not completing the network node calculated, calculated at first receiving
When going out the current tail block that the network node of next block is broadcasted, you can to abandon calculating, according to received current
Afterbody block, renewal is synchronized to the current tail block of itself.In network node, to the institute in current tail block, ask the visitor in
Ask in progress validity check calculating process, effective export request or importing request can be retained in current tail block,
Invalid export request or importing request can be abandoned.
It can be seen that, in the node proof mechanism that the embodiment of the present invention is realized, the export request or importing request are in institute
Broadcasted between other network nodes for stating block chain network, the network section that the broadcast is received in described piece of chain network can be made
Point asks the export or importing request is added in the afterbody block of itself block chain, and the export is asked or imported to ask
Ask progress validity check calculating.Wherein, the confirmation process of the export request or importing request can include:Using the present invention
The network node of embodiment method is initially completed the network section that the verification of all requests in afterbody block is calculated in response to receiving
The broadcast out afterbody block of point, renewal is synchronized to the afterbody block of itself block chain according to received afterbody block,
If the export request or described import are asked included in effective request of received afterbody block, it is determined that obtaining
Other network nodes are to the export request or the confirmation for importing request.
Even being initially completed the network section that current tail block is calculated because the attacker of superpower calculation power is also not necessarily
Point, therefore, proves that mechanism confirms to request by node provided in an embodiment of the present invention, can prevent the attacker of superpower calculation power
Attack, it is ensured that block chain network safety.
One of example devices
After one of method of exemplary embodiment of the invention is described, next, with reference to Fig. 4 to example of the present invention
The device of the processes user data of the arbitrary network node for being configured at block chain network of property embodiment is introduced.
It is that the processing of the arbitrary network node provided in an embodiment of the present invention for being configured at block chain network is used for example, with reference to Fig. 4
The apparatus structure schematic diagram of user data.As shown in figure 4, the device can include:
Request reception unit 410, may be configured to via the first specified interface, receives user and is sent out by the first client
Go out export request, wherein, it is described export request be related to by the user first client the first user credit amount
Export to the first account of described piece of chain network.Radio unit 420, may be configured to the export request in described piece of chain
Broadcasted between other network nodes of network.Buanch unit 430, may be configured in response to receiving other network nodes
Confirmation to the export request, described piece of chain is transferred to by the user in the first user credit amount of first client
In first account of network.
In some possible embodiments, the request reception unit 410, can also be configured to via second specify connect
Mouthful, the importing request that the second client is sent is received, wherein, described import asks to be related to the second user of first account
Credit imported into the second account of the second client.The radio unit 420, can also be configured to ask described import
Broadcasted between other network nodes of described piece of chain network.The buanch unit 430, can also be configured in response to connecing
Other network nodes are received to the confirmation for importing request, the second user credit is detained from first account
Remove, and send to second client confirmation for the second account that the second user credit is imported into the second client
Message.
In some possible embodiments, the device can also include:Gateway setting unit 440, may be configured to set
Put the gateway mutually changed to the user credit amount of different credit types.Converting unit 441 is exported, be may be configured to
When the receiving unit, which receives the export that user sent by the first client, asks, using the gateway by described first
User credit amount is converted to the user credit amount corresponding to the credit type of circulation in described piece of chain network.Import converting unit
442, it may be configured to, when the receiving unit receives the importing request that user is sent by the second client, utilize institute
State gateway and the second user credit is converted to user corresponding to the credit type circulated in second client
Credit.
In some possible embodiments, other network sections of the export request or importing request in described piece of chain network
Broadcasted between point, can make to receive export request described in the network node of the broadcast in described piece of chain network or import
Request is added in the afterbody block of itself block chain, and carries out validity check calculating to the export request or importing request.
Wherein, the buanch unit 430, may be configured to be initially completed the verification of all requests in afterbody block in response to receiving
The afterbody block that the network node of calculating is broadcast out, enters according to received afterbody block to the afterbody block of itself block chain
Row synchronized update, if the export request or the effective request for importing request included in received afterbody block
In, it is determined that having obtained other network nodes to the export request or the confirmation for importing request.
It can be seen that, because the network node for configuring device of the embodiment of the present invention provides the first specified interface for being available for calling,
Therefore, receiving unit 410 can receive user by what the first client was sent and be related to export user via the first specified interface
The export of credit to the first account of described piece of chain network is asked, and radio unit 420 can be by the export request described
Broadcasted between other network nodes of block chain network, so that buanch unit 430 is led to described receiving other network nodes
When going out the confirmation of request, the first account that the first user credit amount can be transferred to block chain network shows without occurring honeysuckle
As.After the first account that the first user credit amount is transferred in block chain network so that user credit amount is not left in
Server side turns into junk data.For a user, its user credit amount can freely turn between the account of block chain network
Move, it is no longer necessary to which server side is managed, also will not be to the profit of user even if corresponding with client server side stops service
Benefit causes damage, and is that user brings more preferable experience.
It should be noted that gateway setting unit 440, export converting unit 441, importing conversion described in the embodiment of the present invention
Unit 442 in Fig. 4 with dotted lines, with represent these units be not the device of processes user data of the embodiment of the present invention must
Want unit.
The two of illustrative methods
After one of method of exemplary embodiment of the invention is described, next, with reference to Fig. 5 to example of the present invention
The method applied to the first client of property embodiment.
It is the method for the processes user data provided in an embodiment of the present invention for being applied to the first client for example, with reference to Fig. 5
Schematic flow sheet.As shown in figure 5, this method can include:
S510, in response to user perform export user credit amount to block chain network corresponding to operation, send via block chain
The export request for the first specified interface that the network node of network is provided.
Wherein, the export request, which is related to, exports to the user in the first user credit amount of first client
First account of described piece of chain network, so as to other networks of export request in described piece of chain network described in the network node
Broadcasted between node and in response to receiving confirmation of other network nodes to the export request, by the user in institute
The the first user credit amount for stating the first client is transferred in first account of described piece of chain network.
For example, by taking network game field as an example, first client can be network game client.Online game visitor
Family end can provide export button on the interface of display user credit amount.When user clicks on the export button, equivalent to holding
Operation corresponding to row export user credit amount to block chain network, makes the first client send the network node via block chain network
The export request of the first specified interface provided.
S520, it is transferred in first account in response to the first user credit amount described in the network node, to institute
The remaining users credit for stating the first client is accordingly updated.
For example, the first client, which can obtain the first user credit amount described in the network node, is transferred to described first
Account and the message fed back, the remaining users credit shown by the first client is carried out according to the message fed back it is corresponding more
Newly.
It can be seen that, in the first client application method provided in an embodiment of the present invention, user can be made to be used by performing export
Operation corresponding to family credit to block chain network, block link network is transferred to by user in the first user credit amount of the first client
First account of network, so that user credit amount is not left in server side as junk data.For a user, it is used
Family credit this wide range can freely be shifted in block chain network, even if server side corresponding with client stops clothes
The interests of user will not also be caused damage, be that user brings more preferable experience by business.
The two of example devices
Describing after the two of method of exemplary embodiment of the invention, next, with reference to Fig. 6 to example of the present invention
The device for being configured at the first client of property embodiment.
It is the device of the processes user data provided in an embodiment of the present invention for being configured at the first client for example, with reference to Fig. 6
Structural representation.As shown in fig. 6, the device can include:Operating unit 610 is exported, may be configured to hold in response to user
Operation corresponding to row export user credit amount to block chain network, sends first provided via the network node of block chain network
Specified interface export request, it is described export request be related to by the user first client the first user credit amount
Export to the first account of described piece of chain network, so as to export request described in the network node described piece of chain network its
He is broadcasted between network node and in response to receiving confirmation of other network nodes to the export request, used described
Family is in first account that the first user credit amount of first client is transferred to described piece of chain network.User credit
Updating block 620 is measured, may be configured to be transferred to described the in response to the first user credit amount described in the network node
In one account, the remaining users credit of first client is accordingly updated.
It can be seen that, device provided in an embodiment of the present invention is configured in the first client, user can be made to be used by performing export
Operation corresponding to family credit to block chain network, block link network is transferred to by user in the first user credit amount of the first client
First account of network, so that user credit amount is not left in server side as junk data.For a user, it is used
Family credit this wide range can freely be shifted in block chain network, even if server side corresponding with client stops clothes
The interests of user will not also be caused damage, be that user brings more preferable experience by business.
Although it should be noted that be referred to some units of the device of processes user data in above-detailed,
It is this to divide only not enforceable.In fact, according to the embodiment of the present invention, two or more above-described units
Feature and function can embody in a unit.Conversely, the feature and function of an above-described unit can be entered
One step is divided into by multiple units to embody.
In addition, although the operation of the inventive method is described with particular order in the accompanying drawings, this do not require that or
Hint must be performed according to the particular order these operation, or the operation having to carry out shown in whole could realize it is desired
As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step execution, and/or by one
Step is decomposed into execution of multiple steps.
Although describing spirit and principles of the present invention by reference to some embodiments, it should be appreciated that, this
Invention is not limited to disclosed embodiment, and the division to each side does not mean that the feature in these aspects can not yet
Combination is this to divide merely to the convenience of statement to be benefited.It is contemplated that cover appended claims spirit and
In the range of included various modifications and equivalent arrangements.
Claims (11)
1. a kind of method of processes user data, applied to the arbitrary network node of block chain network, including:
Via the first specified interface, the export request that user is sent by the first client is received, wherein, the export request is related to
And the user is exported to the first account of described piece of chain network in the first user credit amount of first client;
The export request is broadcasted between other network nodes of described piece of chain network;
In response to receiving confirmation of other network nodes to the export request, by the user in first client
First user credit amount is transferred in first account of described piece of chain network.
2. according to the method described in claim 1, in addition to:
Via the second specified interface, the importing request that the second client is sent is received, wherein, the importing request is related to will be described
The second user credit of first account imported into the second account of the second client;
Described import is asked to be broadcasted between other network nodes of described piece of chain network;
In response to receiving other network nodes to the confirmation for importing request, by the second user credit from described the
Deducted in one account, and sent to second client second user credit is imported into the second of the second client
The confirmation message of account.
3. method according to claim 2, in addition to:Set and the user credit amount of different credit types is carried out mutually
The gateway of conversion;
When the export for receiving user and being sent by the first client is asked, using the gateway by first user credit
Amount is converted to the user credit amount corresponding to the credit type of circulation in described piece of chain network;
When the importing for receiving user and being sent by the second client is asked, using the gateway by the second user credit
Amount is converted to the user credit amount corresponding to the credit type of circulation in second client.
4. method according to claim 2, wherein, the export request or import request described piece of chain network other
Broadcasted between network node, make to receive export request described in the network node of the broadcast in described piece of chain network or lead
Enter request to be added in the afterbody block of itself block chain, and the export is asked or imported request and carry out validity check meter
Calculate;
Wherein, the confirmation process of the export request or importing request includes:
The afterbody that the network node of the verification calculating of all requests in afterbody block is broadcast out is initially completed in response to receiving
Block, renewal is synchronized according to received afterbody block to the afterbody block of itself block chain, if the export request
Or described import is asked included in effective request of received afterbody block, it is determined that having obtained other network nodes to institute
State export request or the confirmation for importing request.
5. according to the method described in claim 1, wherein, first client be network game client;
It is configured at using the network node and the network game client of methods described on same terminal device;
Or,
Being configured at using network node and the network game client of methods described can be by the different terminals of network connection
On equipment;
Or,
Network game server side is configured at using the network node of methods described, it is described via the first specified interface, receive and use
The export that family is sent by the first client is asked, specifically via the first specified interface, receives the forwarding of network game server side
The export that is sent by network game client of the user ask.
6. a kind of device of processes user data, is configured at the arbitrary network node of block chain network, including:
Request reception unit, is configured to via the first specified interface, the export that reception user is sent by the first client please
Ask, wherein, the export request be related to the user is exported in the first user credit amount of first client it is described
First account of block chain network;
Radio unit, is configured to be broadcasted the export request between other network nodes of described piece of chain network;
Buanch unit, is configured to the confirmation in response to receiving other network nodes to the export request, by the user
It is transferred in the first user credit amount of first client in first account of described piece of chain network.
7. device according to claim 6, wherein, the request reception unit is also configured to specify via second and connect
Mouthful, the importing request that the second client is sent is received, wherein, described import asks to be related to the second user of first account
Credit imported into the second account of the second client;
The radio unit, is also configured to ask to carry out extensively between other network nodes of described piece of chain network by described import
Broadcast;
The buanch unit, is also configured in response to receiving other network nodes to the confirmation for importing request, by institute
State second user credit to deduct from first account, and sent to second client by the second user credit
Amount imported into the confirmation message of the second account of the second client.
8. device according to claim 7, in addition to:
Gateway setting unit, is configured to set the gateway for mutually changing the user credit amount of different credit types;
Converting unit is exported, is configured to when the receiving unit receives the export request that user is sent by the first client
When, the first user credit amount is converted to using the gateway corresponding to the credit type circulated in described piece of chain network
User credit amount;
Converting unit is imported, is configured to when the receiving unit receives the importing request that user is sent by the second client
When, the second user credit is converted to the credit type institute circulated in second client using the gateway right
The user credit amount answered.
9. device according to claim 7, wherein, the export request or import request described piece of chain network other
Broadcasted between network node, make to receive export request described in the network node of the broadcast in described piece of chain network or lead
Enter request to be added in the afterbody block of itself block chain, and the export is asked or imported request and carry out validity check meter
Calculate;
The buanch unit, is configured to be initially completed the net that the verification of all requests in afterbody block is calculated in response to receiving
The afterbody block that network node is broadcast out, is synchronized more according to received afterbody block to the afterbody block of itself block chain
Newly, if the export request or described import are asked included in effective request of received afterbody block, it is determined that
Other network nodes have been arrived to the export request or the confirmation for importing request.
10. a kind of method of processes user data, applied to the first client, including:
The operation corresponding to export user credit amount to block chain network is performed in response to user, the network via block chain network is sent
The export request for the first specified interface that node is provided, the export request is related to the user in first client
The first user credit amount export to the first account of described piece of chain network, so that export request exists described in the network node
Broadcasted and the export is asked between other network nodes of described piece of chain network in response to receiving other network nodes
Confirmation, the user is transferred to described the first of described piece of chain network in the first user credit amount of first client
In account;
It is transferred in response to the first user credit amount described in the network node in first account, to first client
The remaining users credit at end is accordingly updated.
11. a kind of device of processes user data, is configured at the first client, including:
Operating unit is exported, is configured to perform the operation exported corresponding to user credit amount to block chain network in response to user,
The export request of the first specified interface provided via the network node of block chain network is sent, the export request is related to institute
The first account that user exports to described piece of chain network in the first user credit amount of first client is stated, so as to the net
Network node is broadcasted the export request and in response to receiving other between other network nodes of described piece of chain network
Confirmation of the network node to the export request, the user is transferred in the first user credit amount of first client
In first account of described piece of chain network;
User credit amount updating block, is configured to be transferred to institute in response to the first user credit amount described in the network node
State in the first account, the remaining users credit of first client is accordingly updated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510050054.3A CN104580253B (en) | 2015-01-30 | 2015-01-30 | A kind of method and device of processes user data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510050054.3A CN104580253B (en) | 2015-01-30 | 2015-01-30 | A kind of method and device of processes user data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104580253A CN104580253A (en) | 2015-04-29 |
CN104580253B true CN104580253B (en) | 2017-08-08 |
Family
ID=53095433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510050054.3A Active CN104580253B (en) | 2015-01-30 | 2015-01-30 | A kind of method and device of processes user data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104580253B (en) |
Families Citing this family (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104735164B (en) * | 2015-04-10 | 2018-05-18 | 网易(杭州)网络有限公司 | A kind of method and apparatus of save file information |
CN106209947B (en) * | 2015-05-07 | 2020-08-04 | 中兴通讯股份有限公司 | Data processing method and system for decentralized autonomous organization |
US10366204B2 (en) * | 2015-08-03 | 2019-07-30 | Change Healthcare Holdings, Llc | System and method for decentralized autonomous healthcare economy platform |
KR101637854B1 (en) * | 2015-10-16 | 2016-07-08 | 주식회사 코인플러그 | Certificate issuance system and method based on block chain, certificate authentication system and method based on block chain |
US20170132625A1 (en) * | 2015-11-05 | 2017-05-11 | Mastercard International Incorporated | Method and system for use of a blockchain in a transaction processing network |
US11562353B2 (en) * | 2015-11-24 | 2023-01-24 | Mastercard International Incorporated | Method and system for gross settlement by use of an opaque blockchain |
CN105488665A (en) * | 2015-11-25 | 2016-04-13 | 布比(北京)网络技术有限公司 | Decentralized transaction method |
CN105608146A (en) * | 2015-12-17 | 2016-05-25 | 布比(北京)网络技术有限公司 | Block chain tracing method |
EP3193299A1 (en) * | 2016-01-15 | 2017-07-19 | Accenture Global Services Limited | Device, method and system for autonomous selection of a commodity supplier through a blockchain distributed database |
CN105719172A (en) * | 2016-01-19 | 2016-06-29 | 布比(北京)网络技术有限公司 | Information issuing method and device |
CN105761143B (en) * | 2016-02-01 | 2019-04-05 | 上海凭安网络科技有限公司 | A method of the credit record of building together in many ways based on block chain |
CN105912618B (en) * | 2016-04-07 | 2019-04-23 | 浙江万马新能源有限公司 | The charging pile charging transaction means of communication and device based on block chain |
US11223598B2 (en) | 2016-05-03 | 2022-01-11 | Nokia Of America Corporation | Internet security |
JP6514831B1 (en) * | 2016-05-13 | 2019-05-15 | エヌチェーン ホールディングス リミテッドNchain Holdings Limited | Method and system for verifying ownership of digital assets using distributed hash tables and peer-to-peer distributed ledgers |
US10204341B2 (en) * | 2016-05-24 | 2019-02-12 | Mastercard International Incorporated | Method and system for an efficient consensus mechanism for permissioned blockchains using bloom filters and audit guarantees |
CN107438003B (en) * | 2016-05-27 | 2022-08-09 | 索尼公司 | Electronic device, method for electronic device, and information processing system |
CN105976231A (en) * | 2016-06-24 | 2016-09-28 | 深圳前海微众银行股份有限公司 | Asset management method based on intelligent block chain contracts and nodes |
CN106357604B (en) * | 2016-08-18 | 2019-07-23 | 苏州超块链信息科技有限公司 | A kind of consistent data accumulation collaboration assemble method |
CN106656784B (en) * | 2016-10-14 | 2020-01-21 | 中国银联股份有限公司 | Data stream propagation system and method for block chain network |
CN107993083A (en) * | 2016-10-26 | 2018-05-04 | 中国移动通信有限公司研究院 | One kind integration exchange method, integration device for interchanging and distributed system |
CN107016606A (en) * | 2016-12-08 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of method for processing resource and device |
CN107196772B (en) * | 2017-03-24 | 2020-03-13 | 创新先进技术有限公司 | Method and device for broadcasting message |
CN107094077B (en) * | 2017-04-21 | 2020-03-27 | 杭州秘猿科技有限公司 | License chain account system without limiting signature algorithm |
CN107145605A (en) * | 2017-06-07 | 2017-09-08 | 北京天德科技有限公司 | One kind is based on block chain unified interface(OBCC)License chain application system |
CN107767267B (en) * | 2017-10-20 | 2021-04-02 | 上海策赢网络科技有限公司 | Virtual resource transfer method and device |
CN108471510A (en) * | 2018-01-29 | 2018-08-31 | 东莞理工学院 | A kind of vision operation record protection method and system based on block chain |
CN108446976B (en) * | 2018-02-07 | 2019-05-24 | 平安科技(深圳)有限公司 | A kind of common reserve fund transfer method, computer readable storage medium and terminal device |
CN108479071A (en) * | 2018-03-16 | 2018-09-04 | 厦门快商通信息技术有限公司 | A kind of game transaction platform implementation method based on block chain |
CN110175831B (en) * | 2019-04-23 | 2023-09-29 | 创新先进技术有限公司 | Credit transfer method and device based on blockchain and electronic equipment |
CN110599095B (en) * | 2019-09-12 | 2024-04-02 | 腾讯科技(深圳)有限公司 | Block chain network-based hazardous waste treatment method and node of block chain network |
CN111538792B (en) * | 2020-07-10 | 2020-11-03 | 卓尔智联(武汉)研究院有限公司 | Alliance link data processing method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927659A (en) * | 2014-04-18 | 2014-07-16 | 刘志望 | Immediate transfer and secure payment method of virtual currency |
CN104320262A (en) * | 2014-11-05 | 2015-01-28 | 中国科学院合肥物质科学研究院 | User public key address binding, searching and verifying method and system based on crypto currency open account book technology |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140201057A1 (en) * | 2013-01-11 | 2014-07-17 | Brian Mark Shuster | Medium of exchange based on right to use or access information |
-
2015
- 2015-01-30 CN CN201510050054.3A patent/CN104580253B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927659A (en) * | 2014-04-18 | 2014-07-16 | 刘志望 | Immediate transfer and secure payment method of virtual currency |
CN104320262A (en) * | 2014-11-05 | 2015-01-28 | 中国科学院合肥物质科学研究院 | User public key address binding, searching and verifying method and system based on crypto currency open account book technology |
Non-Patent Citations (2)
Title |
---|
比特币协议是怎样工作的(上);杨硕1015;《巴比特http://www.8btc.com/bitcoin-contract》;20140331;全文 * |
比特币零确认交易安全吗;return10;《巴比特http://www.8btc.com/zero-confirmation-transactions-safe》;20150110;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104580253A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580253B (en) | A kind of method and device of processes user data | |
Wang et al. | PoRX: A reputation incentive scheme for blockchain consensus of IIoT | |
Choi et al. | Secure multi-party computation of boolean circuits with applications to privacy in on-line marketplaces | |
TWI820020B (en) | Computer-implemented system and method for performing transaction mixing on a blockchain | |
Alcaide et al. | Anonymous authentication for privacy-preserving IoT target-driven applications | |
Kaur et al. | Blockchain-based cyber-physical security for electrical vehicle aided smart grid ecosystem | |
JP2020187375A (en) | Methods and apparatus for efficiently implementing distributed database within network | |
CN108600227A (en) | A kind of medical data sharing method and device based on block chain | |
Ferrer-Gomila et al. | A fair contract signing protocol with blockchain support | |
JP2021523609A (en) | Computer-implemented systems and methods for performing atomic swaps using blockchain | |
CN109741068B (en) | Online banking cross-row signing method, device and system | |
CN112347500B (en) | Machine learning method, device, system, equipment and storage medium of distributed system | |
CN108351882A (en) | Method and apparatus for the distributed data base in network | |
CN111291060A (en) | Method, device and computer readable medium for managing block chain nodes | |
CN110601815B (en) | Block chain data processing method and equipment | |
CN109995737B (en) | Decentralized digital certificate management method and device, node and system | |
CN108965469A (en) | Block chain network member dynamic management approach, device, equipment and storage medium | |
Bilogrevic et al. | Meetings through the cloud: privacy-preserving scheduling on mobile devices | |
CN110197433A (en) | Numeric value transfer, apparatus and system | |
CN112804354B (en) | Method and device for data transmission across chains, computer equipment and storage medium | |
Nikolaenko et al. | Powers-of-tau to the people: Decentralizing setup ceremonies | |
CN110351276A (en) | Data processing method, equipment and computer readable storage medium | |
CN110113166B (en) | Method, device and storage medium for revoking ring signature certificate on block chain | |
CN107196918A (en) | A kind of method and apparatus of matched data | |
CN108924032A (en) | E-sourcing distribution method, medium, device and calculating equipment based on instant messaging behavioral data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |