CN108520415A - Data processing method based on block chain and device - Google Patents

Data processing method based on block chain and device Download PDF

Info

Publication number
CN108520415A
CN108520415A CN201810385653.4A CN201810385653A CN108520415A CN 108520415 A CN108520415 A CN 108520415A CN 201810385653 A CN201810385653 A CN 201810385653A CN 108520415 A CN108520415 A CN 108520415A
Authority
CN
China
Prior art keywords
block chain
user
exchange
application platform
block
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.)
Pending
Application number
CN201810385653.4A
Other languages
Chinese (zh)
Inventor
王海林
潘高峰
王永胜
杨毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Taikang Online Property Insurance Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Taikang Online Property Insurance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd, Taikang Online Property Insurance Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201810385653.4A priority Critical patent/CN108520415A/en
Publication of CN108520415A publication Critical patent/CN108520415A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions

Abstract

This application provides a kind of data processing methods based on block chain, this method is applied on block chain node, after block chain node receives the exchange request of the target object to the second application platform of user's transmission of the first application platform, resource and user resources needed for exchanging are determined in block chain, in the case where both sides relation meets preset condition, whether determine has intelligent contract between the first application platform and the second application platform, if having, then user resources are updated according to resource needed for exchange, the object information of target object is updated, and the exchange record of user is generated according to updated user resources and target object, storage exchanges record in block chain, and it will exchange in recording synchronism to the associated all application platforms of block chain.This method can directly use user to exchange the item object that the second application platform is provided in the virtual resource of the first application platform so that exchange process is simpler quick.

Description

Data processing method based on block chain and device
Technical field
This application involves block chain technical fields, more specifically, the data processing method based on block chain and device.
Background technology
A large amount of registration user is usually had in e-commerce field, in e-platform, user is usually flat in the electronics Possess certain virtual resource under platform for example to integrate, e-platform can provide channel interface to the user, so that these virtual moneys Source can be swapped with the object article on other e-platforms, but in exchange process, need the electronics of user's registration Platform carries out barter by payment system and another e-platform first, then the article of exchange is supplied to user.
In the above exchange process, need the participation of the party intermediaries such as payment system, exchange process relatively complicated.
Invention content
In view of this, this application provides a kind of data processing method based on block chain, for solve exchange process compared with For cumbersome technical problem.
In order to achieve the object, technical solution provided by the present application is as follows:
In a first aspect, this application provides a kind of data processing method based on block chain, it is applied to block chain node, it should Method includes:
After the exchange request for receiving the target object to the second application platform of user's transmission of the first application platform, Resource needed for the corresponding exchange of the target object is determined in block chain;
The user and the associated user resources of the first application platform are inquired in the block chain;
In the case that relationship between the resource needed for the user resources and the exchange meets preset condition, institute is determined Whether state has intelligent contract between the first application platform and second application platform;
If having, the user resources are updated according to resource needed for the exchange, to the target object Object information is updated, and the exchange note of the user is generated according to updated user resources and the target object Record stores the exchange record in the block chain, and the exchange recording synchronism is associated all to the block chain In application platform.
Second aspect, this application provides a kind of data processing equipments based on block chain, which is characterized in that is applied to area Block chain node, the device include:
Exchange resource determining module, the mesh to the second application platform that the user for receiving the first application platform sends After the exchange request for marking object, resource needed for the corresponding exchange of the target object is determined in block chain;
User resources enquiry module is associated with for inquiring the user in the block chain with first application platform User resources;
Intelligent contract determining module meets pre- for the relationship between the resource needed for the user resources and the exchange If whether in the case of condition, determining has intelligent contract between first application platform and second application platform;If Have, then triggers block chain processing module;
Block chain processing module, for being updated to the user resources according to resource needed for the exchange, to described The object information of target object is updated, and generates the user according to updated user resources and the target object Exchange record, exchanges is stored in the block chain and is recorded, and the exchange recording synchronism to the block chain is closed In all application platforms of connection.
The third aspect, this application provides a kind of data processing equipments based on block chain, including:Processor;And it deposits Reservoir, the executable instruction for storing the processor;Wherein, the processor is configured to via the execution executable finger The step of enabling to execute above-mentioned data processing method based on block chain.
Fourth aspect, this application provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, the computer When program is executed by processor, the above-mentioned data processing method based on block chain is realized.
By above technical scheme it is found that this application provides a kind of data processing method based on block chain, this method is answered With on block chain node, block chain node receives the target to the second application platform that the user of the first application platform sends After the exchange request of object, resource and user resources needed for exchanging are determined in block chain, meet preset condition in both sides relation In the case of, whether first application platform and second application platform between have intelligent contract, if having, according to exchange if determining Required resource is updated user resources, is updated to the object information of target object, and according to updated user Resource and target object generate the exchange record of user, and storage exchanges record in block chain, and will exchange recording synchronism to area In the associated all application platforms of block chain.It the characteristics such as can not distort since block chain has, be remembered using the exchange that block chain stores The data such as record more have safety.In addition, in the exchange process of the above item object, can directly be answered first using user The item object that the second application platform is provided is exchanged with the virtual resource of platform so that exchange process is simpler quick.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the exchange system schematic diagram provided by the present application based on block chain;
Fig. 2 is a kind of flow chart of the data processing method provided by the present application based on block chain;
Fig. 3 is a kind of specific implementation flow that the object information provided by the present application to target object is updated Figure;
Fig. 4 is a kind of specific implementation provided by the present application being updated to user resources according to resource needed for exchange Flow chart;
Fig. 5 is a kind of structural schematic diagram of the data processing equipment provided by the present application based on block chain;
Fig. 6 is a kind of hardware structure schematic diagram of the data processing equipment provided by the present application based on block chain.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In e-commerce platform, typically buyer is directly traded using currency with the seller for providing commodity, such as Buyer directly buys the commodity of seller in Taobao, and this process of exchange refers to two side's main bodys.But the application is not It applies in above-mentioned scene, as shown in Figure 1, the process of exchange in the application is related to tripartite's main body, user terminal, the first application Platform and the second application platform.Wherein, user's registration is under the first application platform, and has virtual money in the first application platform Source such as integrates, discount coupon, bonus, and the second application platform provides the item object that virtual resource can be used to exchange, user The virtual resource under the first application platform can be used to exchange the item object in the second application platform.
Current process of exchange exchanges the as shown in Figure 1, user is submitted to the first application platform first by user terminal The application of some item object of two application platforms, the first application platform is according to the real price of item object by corresponding fund The second application platform is consigned to by payment system, and deducts user's corresponding virtual resource under first application platform.So And user does not swap operation directly between the second application platform in this kind of exchange process, and the first application platform with Transaction between second application platform needs the participation of the party intermediaries such as payment system, exchange process relatively complicated.
In this regard, this application provides a kind of data processing method based on block chain, this method is based on block chain technology.For It is easy to understand the technical solution of the application, first block chain is introduced substantially.
Block chain includes the block of chain structure, all to pass through one straight chain of beginning of confirmation and the transaction record proved from chain It is connected to newest block, hence obtain one's name block chain.
It will produce transaction record in eCommerce transaction process, such as the exchange of fund or data, block chain, which is that one kind is anti-, usurps Digitlization account book change, shared, for recording the transaction in publicly-owned or privately owned peer-to-peer network.Account book is a kind of data such as transaction Data, the account book in block chain can be distributed to all member nodes of block chain, and member node is restricted according to common recognition principle Update with negotiation to the record in account book.Ensure that transaction record is not in block chain using Hash Encryption Algorithm and digital signature It can be tampered.Every transaction record in block chain all there are one timestamp and unique ciphering signature, this make block chain at For in network All Activity can audit history record.
In traditional business network, all participants maintain the account book of oneself, the repetition between these account books and difference It is different can lead to controversy, longer settlement time, and since it is desired that intermediary system, also results in relevant indirect control cost. But by using the shared account book based on block chain, transaction, cannot again more after by Consensus verification and account book being written Change, such enterprise can save time and cost, reduce risks simultaneously.
The application is carried out using the exchange process between the user and the second application platform of the first application platform of block chain pair Management, to ensure the safety of transaction data, and can reduce the tedious steps of exchange process, improve trading efficiency.
Specifically, the node of the first application platform and the second application platform as block chain participates in the management of block chain. In force, the transaction platform of the item object based on block chain can be built, the first application platform and the second application platform are closed It is associated on the transaction platform.
User in first application platform is added in block chain, and associated for user setting and the first application platform The block can be known as first kind block or user blocks by block in order to distinguish the block and other blocks.Area User and the associated user information of the first application platform are stored in block, it is virtual in the first application platform including user Resource such as integrates.In order to carry out uniqueness label to block, can by the mark of the first application platform and the mark of user into The mark of user blocks is obtained after row combination.
Furthermore it is possible to block be arranged for the second application platform in block chain, in order to carry out the block and user blocks It distinguishes, which can be known as to Second Type block or platform block.The platform letter of the second application platform is preserved in the block It ceases, the object information for the item object being capable of providing comprising the second application platform in platform information, object information such as trade name, Integral number, commodity amount, descriptive labelling needed for commodity exchange etc..For example, item object is bluetooth headset, bluetooth ear is exchanged Number of points needed for machine is 50, and the quantity of bluetooth headset is 20, and the descriptive labelling of bluetooth headset is about the bluetooth headset The description of performance parameter, price, production firm, repair matters etc..Redemption process and generation of the object information in item object It can be used to during new block about item object.
Based on above-mentioned setting, this application provides a kind of data processing methods based on block chain.See Fig. 2, it illustrates A kind of detailed process of the data processing method based on block chain, this method are applied to block chain node.As shown in Fig. 2, the party Method may comprise steps of S201~S204.
S201:Receive the exchange request of the target object to the second application platform of user's transmission of the first application platform Afterwards, resource needed for the corresponding exchange of target object is determined in block chain.
Wherein, the first application platform and the second application platform are associated on block chain, and the first application platform can access Area's object information in the block of two application platforms, and to the user of the first application platform show item object object information.This The user of sample, the first application platform can browse to the article that the second application platform can be provided in the first application platform The object information of object.
The user of first application platform can be by the client of the first application platform such as the first application platform, to block Chain node, which is sent, exchanges request, exchange that request indicates be the first application platform user want it is flat in the first application using oneself Virtual resource on platform exchanges the item object in the second application platform.It for ease of description, can the article that will be exchanged Object is known as target object.
After block chain node receives exchange request, block chain node determines in block chain exchanges the target object institute Need virtual resource, such as exchange ask exchange be bluetooth headset, exchange the bluetooth headset needs 1000 integrate.
In one implementation, the block of the second application platform is included in block chain, the second application is stored in block The object information of object in platform, the second application platform have encrypted authentication information.After block chain node is to encryption Authentication information be decrypted, use authentication information after decryption to access area's object in the block of the second application platform Information, to obtain resource needed for the corresponding exchange of target object from object information.
In above-mentioned realization method, the block that the item object of the second application platform is stored in block chain has encryption equipment System.Block is disclosed, and all participation nodes of such block chain can access the block, but needs to use accurate identity Verification information.
S202:User and the associated user resources of the first application platform are inquired in block chain.
Wherein, block chain node is in order to swap, therefore, to assure that the virtual resource of user meets needed for target object Exchange resource, therefore block chain node needs to inquire virtual resource of the user under the first application platform, virtual resource can also Referred to as user resources.It should be noted that user resources are stored in block chain, and it is preceding to have addressed, preserve user in block chain With the associated block of the first application platform, user information is stored in block, user information includes the virtual resource of user Situation.Therefore, virtual resource of the block chain node from inquiry user in the block of block chain under the association of the first application platform.Area Include multiple blocks in block chain, in order to distinguish the block (i.e. user blocks) for being stored with user information, is provided with user area The mark of block.Therefore, if it is desirable to user resources are inquired from block chain, it can be according to the mark of user blocks in block chain User blocks are positioned, then user resources are read from the user blocks navigated to.Such as following step S204 it is found that the use read Family resource is updated the user resources for resource needed for the exchange according to target object.
It should be noted that in order to ensure information security, user has encrypted authentication information.Therefore, in order to User resources are obtained, then encrypted authentication information can be decrypted, are visited using the authentication information after decryption Ask user area user information in the block, to obtain user and the associated user resources of the first application platform from user information.
S203:In the case that relationship between the resource needed for user resources and exchange meets preset condition, first is determined Whether there is intelligent contract between application platform and the second application platform.If having, S204 is thened follow the steps.
Wherein, block chain node obtains user the virtual resource of the first application platform the case where, and can obtain mesh The resource needed for object exchange is marked, then needs to compare relationship between the two, specifically compares whether user resources are more than or wait The resource needed for exchange, it is a kind of preset condition that whether user resources, which are greater than or equal to resource needed for exchange, if it is pre- to meet this If condition, then explanation can be asked to handle to the exchange, is otherwise illustrated that the virtual resource of user is insufficient, cannot be swapped Processing can further return to the prompt message of swap fault to user.
Specifically, whether block chain node between the first application platform and the second application platform it needs to be determined that there is intelligence to close About.Intelligent contract is a set of promise defined in digital form on the computer systems, in the case that certain condition is satisfied, The contract that can be performed automatically.For example, in insuring application field, when intelligent contract can be that compensation condition meets, then certainly Dynamic execute compensates flow.This intelligent contract can simplify trading processing process, realize the faith mechanism of process of exchange.
Intelligent contract structure and execution based on block chain are divided into following several steps:Multi-party users participate and draw a intelligence jointly Energy contract, contract spread by P2P networks and are stored in block chain, and the intelligent contract of block chain building executes automatically.Accordingly, it is determined that Whether there is intelligent contract, if so, thening follow the steps at the exchange of S204 between first application platform and the second application platform Reason process.
It should be noted that intelligent contract is stored in block chain, the data structure due to block chain and ciphering signature side Formula ensure that the safety of intelligent contract.Intelligent contract based on block chain technology can not only play intelligent contract in cost Advantage in terms of efficiency, and the interference that contract can be normally executed to avoid malicious act.By intelligent contract with digitized Form is written in block chain, by the characteristic guarantee storage of block chain technology, read, execute whole process it is transparent it is traceable, can not It distorts.Meanwhile the common recognition algorithm carried by block chain constructs a set of state machine system so that intelligent contract can be transported efficiently Row.
Block chain node can inquire between the first application platform and the second application platform whether have intelligence in block chain It can contract.
S204:User resources are updated according to resource needed for exchange, the object information of target object is updated, And the exchange record of user is generated according to updated user resources and target object, storage, which exchanges, in block chain records, And it will exchange in recording synchronism to the associated all application platforms of block chain.
Wherein, user resources are updated according to resource needed for exchange, required resource will be exchanged by referring to provides from user It is removed in source, such as it is 10 integrals to exchange required resource, user resources are 20 integrals, then are integrated the 20 of user resources and subtract institute 10 integrals of consumption.
The object information of target object is updated, refers to the article pair exchanged during the exchange for deleting user is asked As.Such as exchange user in request and ask to exchange 1 bluetooth headset, the bluetooth headset of the second application platform is 5, then 5 indigo plant Tooth earphone remaining 4 bluetooth headsets after deleting 1.
It should be noted that transaction record needs to be stored in block chain, it may also be said to, transaction record is stored in account book In.Specifically, it is generated according to updated user resources and the target object exchanged and exchanges record, record will be exchanged and be stored in In block chain.It is not tampered to ensure to exchange the true of record, can be sent to the associated all application platforms of block chain should Record is exchanged, so that each application platform stores exchange record.In this way, each application platform is stored with exchange note Record, to prevent exchange record to be tampered.It should be noted that after each application platform stores exchange record, to block Block corresponding with the application platform is added in chain, block is for indicating that the application platform is stored with exchange record.Also, area Block includes the ciphering signature of the application platform, and block is added to avoid malicious application platform.
By above technical scheme it is found that this application provides a kind of data processing method based on block chain, this method is answered With on block chain node, block chain node receives the target to the second application platform that the user of the first application platform sends After the exchange request of object, resource and user resources needed for exchanging are determined in block chain, meet preset condition in both sides relation In the case of, whether first application platform and second application platform between have intelligent contract, if having, according to exchange if determining Required resource is updated user resources, is updated to the object information of target object, and according to updated user Resource and target object generate the exchange record of user, and storage exchanges record in block chain, and will exchange recording synchronism to area In the associated all application platforms of block chain.It the characteristics such as can not distort since block chain has, be remembered using the exchange that block chain stores The data such as record more have safety.In addition, in the exchange process of the above item object, can directly be answered first using user The item object that the second application platform is provided is exchanged with the virtual resource of platform so that exchange process is simpler quick.
In above-mentioned exchange process, user resources and target object can be updated, in practical applications, user is provided Source and a kind of newer specific implementation of target object are as described below.
In one example, as shown in figure 3, a kind of specific implementation being updated to the object information of target object Include the following steps S301~S302.
S301:Object information update to the target object, obtains new object information.
Wherein, after the object information of target object being updated, new object information can be obtained.If target object is bluetooth The object information of earphone, bluetooth headset includes the quantity of bluetooth headset, is also referred to the object information update of target object The quantity of bluetooth headset is subtracted into user and asks the quantity exchanged, obtains updated quantity.
It should be noted that the object information of target object may include two kinds, one is exchange Object Process in resource In the information that will not change, such as the title of target object, the price of target object, target object description;Another kind be Resource exchanges the information that can be modified in Object Process, such as the quantity of target object.Therefore, more to the object information of target object New operation, it is also different according to type difference specific implementation.For the object information of the first type, update expression is to obtain Identical object information is obtained, such as obtains the description of the title, the price of target object, target object of target object.For The object information of two types, update expression is to change object information according to redemption request, such as subtracts the quantity of target object Go the quantity exchanged in redemption request.The object information that both the above mode obtains can be as new object information.
S302:New block is generated according to the new object information, and the new block is added to the block In chain.
Wherein, updated object information needs to be added in block chain, and the mode of addition is believed for updated object Breath generates new block.Further, in addition to that can also include more new record comprising updated object information in block, Such as renewal time, update main body record of conversion.Including the block of updated object information needs to be added in block chain, with Form new block chain.
It should be noted that in one implementation, whenever obtaining new object information, just according to updated object Information and record of conversion generate new block.What this mode can ensure to store in different blocks be different record of conversion and Different object informations, and then convenient for searching the different record of conversion of each item in block chain.But this mode can increase block The number of block in chain, causes block chain excessively tediously long, therefore can limit the condition for generating new block, i.e., full When any one or more in sufficient the following conditions, new block is just generated, the new object information and exchange that otherwise will be obtained In block where the object information of record preservation before the update:
Condition 1, the record of conversion number about target object reach preset amount threshold, if amount threshold is 6000; Condition 2, the block data amount where the object information before updating reach preset capacity threshold, if capacity threshold is 32M;Item Part 3, duration of this record of conversion apart from a upper record of conversion are more than preset time threshold, if time threshold is 60 seconds.
In one example, as shown in figure 4, according to resource is updated the user resources needed for the exchange one Kind specific implementation includes the following steps S401~S402.
S401:After the user resources are removed resource needed for the exchange, new user resources are obtained.
Wherein, user needs the virtual resource using itself to exchange item object, it is therefore desirable to subtract user resources Resource needed for exchanging.For example, user's virtual resource is integral, integral number is 100, and it is 20 to exchange the resource needed for item object Integral then needs 100 integrals of user subtracting 20 integrals exchanged needed for item object, thus more by 100 integrals of user It is new to be integrated for 80.
S402:New block is generated according to the new user resources, and the new block is added to the block In chain.
Wherein, updated user resources need to be added in block chain, and the mode of addition is provided for updated user Source generates new block.Further, in addition to that can also include more new record comprising updated user resources in block, Such as renewal time, update main body.Including the block of updated user resources needs to be added in block chain, to be formed newly Block chain.
It should be noted that before new block is added to block chain, need according to the common recognition mechanism area new to this Block is verified.In particular it is required that being verified by the block new to this of a certain number of member nodes in block chain, number is verified According to safety and accuracy the new block can be just added in block chain only in the case where being verified.Or Common recognition mechanism is happened at before generating block, i.e., only verify it is to be added enter block data accuracy after, can just generate new Block, and then new block is added in block chain again.
It should be noted that the data in block chain are a kind of chain structure, the data in block chain are divided into different areas Block, each block by specific Info Link to a upper block behind, it is front and back along even formed a complete data-link.Area Block has build and block body, and build is for being linked to the block of front and providing the guarantee of integrality for block chain data.Build In include previous block cryptographic Hash, it is ensured that generated after a upper block sequentially in time, otherwise previous block Cryptographic Hash be unknown.After block is added in block chain, area's data in the block cannot then be changed or be deleted, to ensure Database can not tamper.
It should be noted that exchanging the target of the second application platform using user resources of the user in the first application platform After object, real price transaction can be carried out between the first application platform and the second application platform again.Specifically, it is determined that exchanging mesh The actual funds number of the user resources of object is marked, the fund of the first application platform respective number is given to second by financial system Application platform.Then, in block chain, the fund number of the first application platform is subtracted to the fund number produced, obtains first The new fund number of application platform.In addition, the fund number of the second application platform to be added to the funds data being transferred to, second is obtained The new fund number of application platform.Also, the first application platform is recorded in block chain and is transferred to fund number to the second application platform Purpose transaction record.
For the ease of understanding the technical solution of the application, illustrated in conjunction with a specific Application Scenarios-Example.
Netease's cloud music is a kind of music class application platform, and Netease's cloud musically has a large amount of registration user, and user is at this It can be used as a kind of virtual resource by the activity accumulation integral such as register, integral on music platform, can be used for exchanging other and answer With the platform commodity that for example Jingdone district store is provided.In order to realize the direct consumption of user integral, it is flat to omit Netease's cloud music application The redemption process of platform and other application platform can use block chain technology.
Netease's cloud music and Jingdone district store are registered as to the member node of block chain.It is protected in the form of block in block chain The user information of user under Netease's cloud music is deposited, integral situation of the user in Netease's cloud music is included in user information.In addition, The information (i.e. object information) of commodity in the store of Jingdone district is preserved in the form of block in block chain, merchandise news includes that commodity are converted Change required integral situation.
Netease's cloud music can get the merchandise news that Jingdone district store is provided, and the merchandise news is showed access The user of Netease's cloud music, user can be sent to block chain node by Netease's cloud music and exchange some commodity such as bluetooth headset Exchange request, after block chain node receives the request, block of the user in block chain can be accessed, existed with obtaining user Integral situation in Netease's cloud music in addition, block chain node can access the information of the bluetooth headset in Jingdone district store, including is converted Change the required number of points of bluetooth headset.Block chain node compares user and is converted whether the integral of Netease's cloud music can reach The required integral of bluetooth headset is changed, is converted according to the intelligent contract execution between Netease's cloud music and Jingdone district store if reaching Operation is changed, returns to the prompt message for exchanging failure to the user if not up to.
The i.e. intelligent contract of the technology that block chain includes, intelligent contract in this example is Netease's cloud music and Jingdone district Intelligent contract between store.It should be noted that intelligent contract is stored in block chain, the building process of intelligent contract needs The common recognition of the member node of all block chains, to structure intelligent contract safety and can not distort, intelligent contract safety into And it ensure that the safety of exchange process.
The exchange operation of block chain node includes:The integral for updating user, records this friendship at the quantity for updating bluetooth headset Change record.Wherein, the integral for updating user specifically includes:The integral of user in Netease's cloud music is subtracted exchange by block chain node The integral consumed, and the more new record comprising updated integral is stored in new block, which is linked Into block chain.The quantity of update bluetooth headset specifically includes:Block chain node subtracts the quantity of bluetooth headset in the store of Jingdone district The bluetooth headset quantity that user is exchanged is gone, and the more new record comprising updated bluetooth headset quantity is stored in new area In block, which is linked in block chain.Record will be exchanged to preserve within a block, and the block is added to block chain In.Exchanging the information that record includes can have, and exchange main body, exchangeable object, exchanging contents, swap time etc..
In this way, involved in exchange process to data update can be retained in block chain, to ensure the institute of process of exchange Having data can inquire to obtain.
See Fig. 5, it illustrates a kind of structural schematic diagrams of the data processing equipment based on block chain provided by the present application.It should Data processing equipment based on block chain is applied to block chain node, as shown in figure 5, the device includes:Exchange resource determines mould Block 501, user resources enquiry module 502, intelligent contract determining module 503 and block chain processing module 504.
Exchange resource determining module 501, for receive the first application platform user send to the second application platform Target object exchange request after, resource needed for the corresponding exchange of the target object is determined in block chain;
User resources enquiry module 502, for inquiring the user and first application platform in the block chain Associated user resources;
Intelligent contract determining module 503, it is full for the relationship between the resource needed for the user resources and the exchange Whether in the case of sufficient preset condition, determining between first application platform and second application platform there is intelligence to close About;If having, block chain processing module is triggered;
Block chain processing module 504, for being updated to the user resources according to resource needed for the exchange, to institute The object information for stating target object is updated, and generates the use according to updated user resources and the target object The exchange at family records, and exchanges is stored in the block chain and is recorded, and by the exchange recording synchronism to the block chain In associated all application platforms.
In one example, the block of second application platform is included in the block chain, is stored in the block The object information of object in second application platform, second application platform have encrypted authentication information.
In one example, the exchange resource determining module 501 is used to determine the target object pair in block chain Resource needed for the exchange answered, including:Exchange resource determining module 501 is specifically used for carrying out encrypted authentication information Decryption, area's object information in the block of second application platform is accessed using the authentication information after decryption, with from described Resource needed for the corresponding exchange of the target object is obtained in object information.
In one example, the block chain processing module 504 is used to carry out more the object information of the target object Newly, including:Block chain processing module 504 is specifically used for updating the object information of the target object, obtains new object letter Breath;The new object information is generated into new block, and the new block is added in the block chain.
In one example, the user and the associated block of the first application platform, institute are included in the block chain The user information that the user is stored in block is stated, the user has encrypted authentication information.
In one example, the user resources enquiry module 502 inquired in the block chain user with it is described The associated user resources of first application platform, including:User resources enquiry module 502, specifically for testing encrypted identity Card information is decrypted, and area's user information in the block of the user is accessed using the authentication information after decryption, with from institute It states and obtains the user and the associated user resources of the first application platform in user information.
In one example, the block chain processing module 504 is used for according to resource needed for the exchange to the user Resource is updated, including:Block chain processing module 504 is provided specifically for removing the user resources needed for the exchange Behind source, new user resources are obtained;And new block is generated according to the new user resources, and the new block is added It is added in the block chain.
The data processing equipment provided by the present application based on block chain is illustrated below.
Fig. 6 is the hardware architecture diagram of the data processing equipment provided by the present application based on block chain.See Fig. 6, this sets It is standby to may include:Processor 601, memory 602 and communication bus 603.
Wherein, processor 601, memory 602 complete mutual communication by communication bus 603.
Memory 602, the computer instruction for storing processor 601.Processor 601 can be configurable for executing meter Calculation machine instructs.Via computer instructions, any of the above-described kind of data processing side based on block chain may be implemented in processor 601 Correlation step in method.
Processor 601 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present application Road.
Memory 602 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
In addition, present invention also provides a kind of readable storage medium storing program for executing, computer program is stored in readable storage medium storing program for executing.Place Reason device can call the computer program in readable storage medium storing program for executing, when computer program is called by processor to be executed, Ke Yishi The data processing method based on block chain described in existing any of the above-described a embodiment.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including above-mentioned element.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. a kind of data processing method based on block chain, which is characterized in that be applied to block chain node, this method includes:
After the exchange request for receiving the target object to the second application platform of user's transmission of the first application platform, in block Resource needed for the corresponding exchange of the target object is determined in chain;
The user and the associated user resources of the first application platform are inquired in the block chain;
In the case that relationship between the resource needed for the user resources and the exchange meets preset condition, described is determined Whether there is intelligent contract between one application platform and second application platform;
If having, the user resources are updated according to resource needed for the exchange, to the object of the target object Information is updated, and the exchange record of the user is generated according to updated user resources and the target object, The exchange record is stored in the block chain, and the exchange recording synchronism to the associated all applications of the block chain is put down In platform.
2. the data processing method according to claim 1 based on block chain, which is characterized in that include in the block chain The block of second application platform is stored with the object information of object in second application platform in the block, described Second application platform has encrypted authentication information.
3. the data processing method according to claim 2 based on block chain, which is characterized in that described true in block chain Determine resource needed for the corresponding exchange of the target object, including:
The encrypted authentication information of second application platform is decrypted, is visited using the authentication information after decryption The area's object information in the block for asking second application platform, it is corresponding to obtain the target object from the object information Resource needed for exchanging.
4. the data processing method according to claim 2 based on block chain, which is characterized in that described to the target pair The object information of elephant is updated, including:
Object information update to the target object, obtains new object information;
New block is generated according to the new object information, and the new block is added in the block chain.
5. the data processing method according to claim 1 based on block chain, which is characterized in that include in the block chain The user and the first application platform associated block are stored with the user information of the user in the block, described User has encrypted authentication information.
6. the data processing method according to claim 5 based on block chain, which is characterized in that described in the block chain The middle inquiry user and the associated user resources of the first application platform, including:
Authentication information after the user encryption is decrypted, the use is accessed using the authentication information after decryption Area's user information in the block at family, to obtain the user and the associated use of the first application platform from the user information Family resource.
7. the data processing method according to claim 5 based on block chain, which is characterized in that described according to the exchange Required resource is updated the user resources, including:
After the user resources are removed resource needed for the exchange, new user resources are obtained;
New block is generated according to the new user resources, and the new block is added in the block chain.
8. a kind of data processing equipment based on block chain, which is characterized in that be applied to block chain node, which includes:
Exchange resource determining module, the target pair to the second application platform that the user for receiving the first application platform sends After the exchange request of elephant, resource needed for the corresponding exchange of the target object is determined in block chain;
User resources enquiry module, for inquiring the user and the associated use of the first application platform in the block chain Family resource;
Intelligent contract determining module meets for the relationship between the resource needed for the user resources and the exchange and presets item Whether in the case of part, determining has intelligent contract between first application platform and second application platform;If having, Then trigger block chain processing module;
Block chain processing module, for being updated to the user resources according to resource needed for the exchange, to the target The object information of object is updated, and the friendship of the user is generated according to updated user resources and the target object Record is changed, the exchange record is stored in the block chain, and the exchange recording synchronism is associated to the block chain In all application platforms.
9. a kind of data processing equipment based on block chain, which is characterized in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to carry out perform claim 1~7 any one of them of requirement via the execution executable instruction The step of data processing method based on block chain.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is handled When device executes, the data processing method as described in any one of claim 1 to 7 based on block chain is realized.
CN201810385653.4A 2018-04-26 2018-04-26 Data processing method based on block chain and device Pending CN108520415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810385653.4A CN108520415A (en) 2018-04-26 2018-04-26 Data processing method based on block chain and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810385653.4A CN108520415A (en) 2018-04-26 2018-04-26 Data processing method based on block chain and device

Publications (1)

Publication Number Publication Date
CN108520415A true CN108520415A (en) 2018-09-11

Family

ID=63429243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810385653.4A Pending CN108520415A (en) 2018-04-26 2018-04-26 Data processing method based on block chain and device

Country Status (1)

Country Link
CN (1) CN108520415A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389478A (en) * 2018-10-26 2019-02-26 深圳市元征科技股份有限公司 A kind of commodity information management method and system, equipment, computer storage medium
CN109510713A (en) * 2018-12-29 2019-03-22 杭州趣链科技有限公司 A kind of shared motivational techniques of the flow based on block chain
CN110264042A (en) * 2019-05-25 2019-09-20 深圳市元征科技股份有限公司 A kind of method and relevant apparatus of project management
CN110941680A (en) * 2019-12-06 2020-03-31 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN110968879A (en) * 2018-09-30 2020-04-07 中思博安科技(北京)有限公司 Data processing method and device based on block chain
CN111260347A (en) * 2020-01-13 2020-06-09 北京三快在线科技有限公司 Resource processing method, device and equipment based on block chain and storage medium
WO2020125299A1 (en) * 2018-12-21 2020-06-25 阿里巴巴集团控股有限公司 Method and device for data processing based on blockchain
WO2020134575A1 (en) * 2018-12-25 2020-07-02 阿里巴巴集团控股有限公司 Blockchain-based resource allocation method and apparatus, and electronic device
CN111539771A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Resource management method and related equipment
CN111597262A (en) * 2020-05-14 2020-08-28 北京众享比特科技有限公司 Method and system for managing block data in block chain
CN111784128A (en) * 2020-06-16 2020-10-16 北京海益同展信息科技有限公司 Asset information processing method and system based on block chain
CN111798317A (en) * 2020-07-07 2020-10-20 天使方舟有限公司 Multi-dimensional space block chain and data processing method based on block chain
CN112016954A (en) * 2020-07-14 2020-12-01 北京淇瑀信息科技有限公司 Resource allocation method and device based on block chain network technology and electronic equipment
CN112184225A (en) * 2020-09-30 2021-01-05 江苏赞奇科技股份有限公司 Cloud rendering resource exchange method based on block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN107240001A (en) * 2017-06-06 2017-10-10 北京汇通金财信息科技有限公司 Transaction method and system for digital assets
JP2018036893A (en) * 2016-08-31 2018-03-08 ヤフー株式会社 Generation program, generation device, and generation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018036893A (en) * 2016-08-31 2018-03-08 ヤフー株式会社 Generation program, generation device, and generation method
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN107240001A (en) * 2017-06-06 2017-10-10 北京汇通金财信息科技有限公司 Transaction method and system for digital assets

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
樊涛 等: ""基于区块链技术的积分通兑平台"", 《2017电力行业信息化年会论文集》 *
王绍刚 等: ""基于区块链的商城积分系统方法研究"", 《网络空间安全》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968879A (en) * 2018-09-30 2020-04-07 中思博安科技(北京)有限公司 Data processing method and device based on block chain
CN109389478A (en) * 2018-10-26 2019-02-26 深圳市元征科技股份有限公司 A kind of commodity information management method and system, equipment, computer storage medium
WO2020125299A1 (en) * 2018-12-21 2020-06-25 阿里巴巴集团控股有限公司 Method and device for data processing based on blockchain
US11321783B2 (en) 2018-12-21 2022-05-03 Advanced New Technologies Co., Ltd. Method and device for data processing based on blockchain
US11126458B2 (en) 2018-12-25 2021-09-21 Advanced New Technologies Co., Ltd. Method, apparatus, and electronic device for resource allocation based on blockchain
WO2020134575A1 (en) * 2018-12-25 2020-07-02 阿里巴巴集团控股有限公司 Blockchain-based resource allocation method and apparatus, and electronic device
CN109510713A (en) * 2018-12-29 2019-03-22 杭州趣链科技有限公司 A kind of shared motivational techniques of the flow based on block chain
CN110264042A (en) * 2019-05-25 2019-09-20 深圳市元征科技股份有限公司 A kind of method and relevant apparatus of project management
CN110941680A (en) * 2019-12-06 2020-03-31 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN110941680B (en) * 2019-12-06 2024-02-20 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN111260347A (en) * 2020-01-13 2020-06-09 北京三快在线科技有限公司 Resource processing method, device and equipment based on block chain and storage medium
CN111539771A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Resource management method and related equipment
CN111597262B (en) * 2020-05-14 2023-05-02 北京众享比特科技有限公司 Management method and management system for block data in block chain
CN111597262A (en) * 2020-05-14 2020-08-28 北京众享比特科技有限公司 Method and system for managing block data in block chain
CN111784128A (en) * 2020-06-16 2020-10-16 北京海益同展信息科技有限公司 Asset information processing method and system based on block chain
CN111798317A (en) * 2020-07-07 2020-10-20 天使方舟有限公司 Multi-dimensional space block chain and data processing method based on block chain
CN112016954A (en) * 2020-07-14 2020-12-01 北京淇瑀信息科技有限公司 Resource allocation method and device based on block chain network technology and electronic equipment
CN112184225A (en) * 2020-09-30 2021-01-05 江苏赞奇科技股份有限公司 Cloud rendering resource exchange method based on block chain
CN112184225B (en) * 2020-09-30 2024-03-01 江苏赞奇科技股份有限公司 Cloud rendering resource exchange method based on blockchain

Similar Documents

Publication Publication Date Title
CN108520415A (en) Data processing method based on block chain and device
JP7429281B2 (en) Methods and systems for directing exchanges associated with tokens held anonymously on a blockchain
Karame et al. Bitcoin and blockchain security
CN109584066B (en) Privacy transaction based on block chain and application method and device thereof
JP7128111B2 (en) Systems and methods for controlling asset-related activities via blockchain
CN107180350B (en) Method, device and system for multi-party sharing transaction metadata based on block chain
CN110148017A (en) Equity distribution method and device, electronic equipment, storage medium based on block chain
CN110060162A (en) Data grant, querying method and device based on block chain
CA3011600C (en) Information transaction infrastructure
CN110457875A (en) Data grant method and device based on block chain
CN109903026A (en) Event-handling method and device, electronic equipment based on block chain
KR101941200B1 (en) Social network system based on block chain that can deal with idea
Gaihre et al. Do bitcoin users really care about anonymity? an analysis of the bitcoin transaction graph
CN109074580A (en) Method and system for secure transfer of entities over a blockchain
KR20230062672A (en) Secure exchange of cryptographically signed records
CN111026789A (en) Block chain-based electronic bill query method and device and electronic equipment
KR102313675B1 (en) Block chain-based crytography donation server and donation method without limitation to donation target
CN108197214B (en) Method and system for inquiring digital currency transaction information
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
CN109325747A (en) Money transfer method and device based on block chain
CN111047321A (en) Service processing method and device, electronic equipment and storage medium
CN108092778B (en) Method and system for inquiring related account based on digital currency wallet
CN110008716A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN110033370A (en) Account creation method and device, electronic equipment, storage medium
CN111723060A (en) Blacklist data sharing method and system based on block chain

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180911