CN110428237A - The treating method and apparatus of resource, storage medium, electronic device - Google Patents
The treating method and apparatus of resource, storage medium, electronic device Download PDFInfo
- Publication number
- CN110428237A CN110428237A CN201910697208.6A CN201910697208A CN110428237A CN 110428237 A CN110428237 A CN 110428237A CN 201910697208 A CN201910697208 A CN 201910697208A CN 110428237 A CN110428237 A CN 110428237A
- Authority
- CN
- China
- Prior art keywords
- resource
- subaddressing
- target
- address
- task
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Technology Law (AREA)
- Marketing (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a kind for the treatment of method and apparatus of resource, storage medium, electronic devices.Wherein, this method comprises: the resource in the resource address of target account number is split as multiple Secondary resources;Creation splits multiple subaddressings of obtained multiple Secondary resources for saving, and multiple subaddressings are saved to address list, wherein, the resource that multiple subaddressings consume needed for being used to provide for executing parallel for task, executing parallel for task are to execute the task of time-interleaving;Secondary resource each in multiple Secondary resources is saved into a corresponding subaddressing at most a subaddressing respectively.The present invention solve in the related technology as the block chain address for payment it is single caused by break down when lead to the inexecutable technical problem of uplink operation.
Description
The application be to application No. is: 201810581536.5, the applying date are as follows: on 06 07th, 2018, entitled
The divisional application of the application of " transfer method and device, storage medium, the electronic device of resource ".
Technical field
The present invention relates to internet area, in particular to a kind for the treatment of method and apparatus of resource, storage medium,
Electronic device.
Background technique
Block chain (Blockchain) is a string of data blocks generated using cryptography method, includes in each data block
The information of bit coin network trading, for verifying the validity of its information and generating next block.Miner can be special
Hardware on run corresponding software and generate the virtual digits currency such as bit coin, ether coin.Mine software is dug to supervise by P2P network
It listens transaction to broadcast, executes appropriate task to handle and confirm these transaction.In the network based on block chain technology, miner is complete
The void taken and issued additional by set formula at the transaction procedure for accelerating trading processing that these work can earn user's payment
Quasi- digital cash, or referred to as block chain token.
Block chain token is a part more important in block catenary system.The essence of block chain token transactions is data
Structure, wherein the relevant information containing block chain token transactions participant's value Transfer.Block chain token block chain is that the whole world is multiple
Formula book keeping operation ledger, each block chain token transactions are an open records on block chain.The basic unit of transaction can
Think that a transaction without using exports (Unspent Transaction Output), abbreviation UTXO, UTXO are that owned
A certain amount of block chain token that person locks or is recorded in block chain.When a user receives block chain token, amount of money quilt
It is recorded in block chain as UTXO.In this way, the block chain token of a user can be taken as UTXO be distributed to it is multiple transaction and
In multiple blocks.In fact, and there is no memory block chain token address or account balance place, only locked by the owner
The UTXO of dispersion firmly.Input of trading is referred to as by the UTXO of transaction consumption, output of trading is referred to as by the UTXO of transaction creation.
By such manner, a certain amount of block chain token value shifts between the different owners, and consumes and create in transaction
UTXO.One transaction unlocks UTXO by using the signature of the owner, and by using the bit coin address of the new owner
To lock and create UTXO.
Using the block chain of UTXO model, since each user only has a service charge TOKEN, (block chain is distributed to user
Service charge account, a generally block chain address has the service charge UTXO that can be used below), in the block chain address
When being attacked, being broken down, the relevant operation (such as uplink operation, transactional operation) that will lead to the user cannot be held
Row.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind for the treatment of method and apparatus of resource, storage medium, electronic devices, at least to solve
Certainly in the related technology as the block chain address for payment it is single caused by break down when cause uplink operation that cannot execute
The technical issues of.
According to an aspect of an embodiment of the present invention, a kind of processing method of resource is provided, comprising: by target account number
Resource in resource address is split as multiple Secondary resources;Creation splits multiple sons of obtained multiple Secondary resources for saving
Address, and multiple subaddressings are saved to address list, wherein needed for multiple subaddressings are used to provide for executing parallel for task
The resource of consumption, executing parallel for task are to execute the task of time-interleaving;By Secondary resource each in multiple Secondary resources point
A corresponding subaddressing at most a subaddressing is not saved.
One side according to an embodiment of the present invention additionally provides a kind of processing unit of resource, and described device is for executing
It operates below: the resource in the resource address of target account number is split as multiple Secondary resources;Creation is obtained for saving to split
The multiple Secondary resource multiple subaddressings, and the multiple subaddressing is saved to address list, wherein the multiple
The resource that subaddressing consumes needed for being used to provide for executing parallel for task, executing parallel for task are to execute appointing for time-interleaving
Business;The Secondary resource each in the multiple Secondary resource is saved into respectively into the multiple subaddressing a corresponding son
Address.
One side according to an embodiment of the present invention additionally provides a kind of storage medium, which includes the journey of storage
Sequence, program execute above-mentioned method when running.
One side according to an embodiment of the present invention additionally provides a kind of electronic device, including memory, processor and storage
On a memory and the computer program that can run on a processor, processor execute above-mentioned method by computer program.
In embodiments of the present invention, the resource in the resource address of target account number is split as multiple Secondary resources, created
For saving multiple subaddressings of multiple Secondary resources, Secondary resource each in multiple Secondary resources is saved at most height respectively
A corresponding subaddressing in address, the son ground that also can be used remaining not break down when individual subaddressings break down in this way
Location, can solve in the related technology as the block chain address for payment it is single caused by break down when lead to uplink operation
Inexecutable technical problem, and then reached and do not influence cochain in the Partial Block chain address fault of service charge TOKEN
Operate the technical effect executed.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of the transfer method of resource according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the transfer method of optional resource according to an embodiment of the present invention;
Fig. 3 is the schematic diagram that a kind of optional resource according to an embodiment of the present invention is split;
Fig. 4 is the schematic diagram that a kind of optional resource according to an embodiment of the present invention is split;
Fig. 5 is the schematic diagram that a kind of optional resource according to an embodiment of the present invention is split;
Fig. 6 is the schematic diagram that a kind of optional resource according to an embodiment of the present invention is split;
Fig. 7 is a kind of schematic diagram of optional resource address according to an embodiment of the present invention;
Fig. 8 is the schematic diagram that a kind of optional resource according to an embodiment of the present invention is split;
Fig. 9 is a kind of flow chart of the transfer method of optional resource according to an embodiment of the present invention;
Figure 10 is a kind of schematic diagram of the transfer device of optional resource according to an embodiment of the present invention;And
Figure 11 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present invention is described are suitable for as follows
It explains:
Block chain (Blockchain): being a key concept of bit coin, it is substantially the number of a decentralization
According to library, while the Floor layer Technology as bit coin.Block chain is a string using the associated data block generated of cryptography method, often
The information of bit coin network trading is contained in one data block, for verifying the validity (anti-fake) of its information and generating next
A block.
One side according to an embodiment of the present invention provides a kind of embodiment of the method for the transfer method of resource.
Optionally, in the present embodiment, the transfer method of above-mentioned resource can be applied to 101 institute of block chain as shown in Figure 1
In the hardware environment of composition, optionally, which may also include terminal 103, as shown in Figure 1, terminal 103 by network with
Block chain 101 is attached, and above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 103 do not limit
In PC, mobile phone, tablet computer, server etc..
The transfer method of the resource of the embodiment of the present invention (can be referred to as saving by the node device in block chain 101
Point, such as node A to node K) Lai Zhihang, the node device for executing this method can be denoted as first node (such as node A).
Fig. 2 is a kind of flow chart of the transfer method of optional resource according to an embodiment of the present invention, as shown in Fig. 2, should
Method may comprise steps of:
Step S202, first node obtain the cochain request of target account number, and cochain is requested for requesting the section in block chain
Point performance objective task.
Node in block chain 101 can be specific hardware device (such as PC, mobile phone, plate, server, rolling reamer machine
Deng), it is also possible to virtual unit (such as virtual machine).
Target account number is for indicating user, for the account number used on first node or terminal;Cochain is requested for requesting
Node performance objective task in block chain, the node for specifically executing the goal task can be denoted as second node, the goal task
I.e. cochain requests the cochain task executed, the difference in the field that cochain task land with block chain and it is different, if this
Block chain is used for field of play, then cochain task can refer to virtual objects, stage property in cochain game etc.;If the block chain
For electric business field, then cochain task can refer to the commodity of cochain, service etc., remaining field is similar, different an example
It lifts.
Step S204, is requested in response to cochain, and first node is by unappropriated target in multiple subaddressings of target account number
Subaddressing distributes to goal task, and each subaddressing in multiple subaddressings is used to save the portion in the resource address of target account number
Divide resource.
The resource address of target account number is the address for being used to save token resource, and token can indicate that UTXO is not with UTXO
The transaction of cost exports, it is that token transactions generate and a key concept of verifying, transaction constitute one group of chain structure, closes
The source of the output that the transaction of method is traded before can tracing back to one or more, these chains can be digging mine reward, end
Tail is then the transaction output not spent currently.
Under the scheme based on UTXO model, since UTXO is used only once the characteristic being just not present, one hand continues to pay dues ground
Location, user is unable to concurrent transaction and just will affect the execution of cochain task when the resource address breaks down, using the application
Technical solution can solve the above problem, in the technical solution of the application, the UTXO model utilize the single service charge of user
Single service charge address is first split into N number of sub- service charge address (i.e. multiple subaddressings) by address (i.e. resource address), and N is greater than
Equal to the concurrent quantity of desired task, then multiple subaddressings are written in message queue, user takes out before every transaction
Service charge subaddressing carries out uplink operation (i.e. execution cochain task), after uplink operation, judges whether the remaining amount of money can expire
Foot time transaction, if can be written in recycling address with write-back message queue, if not all right, recycling address can be reused,
Periodically the UTXO for recycling address is merged, is write back in sub- service charge account address;Always by the target subaddressing chosen
It is usable (in other words, when mistake occurs for some subaddressing, remaining workable subaddressing can be selected) and unappropriated
(in other words, unappropriated subaddressing can be assigned use to subaddressing, if cochain task is concurrent, then can be this
A little concurrent tasks select corresponding subaddressing respectively), can solve one hand continue to pay dues user caused by address be unable to concurrent transaction,
And the problem of just will affect the execution of cochain task when the resource address breaks down.
Step S206, in the case that the second node in block chain has executed goal task, first node is to block chain
In second node transfer has executed first resource consumed by goal task, first resource is the money of target subaddressing preservation
Source.I.e. after second node has executed cochain task, corresponding token (i.e. first resource) is rewarded.
The transfer method of the resource of the embodiment of the present invention can be executed by the node in block chain 101, can also be by end
103 are held to execute, the difference with previous embodiment is only in that executing subject replaces with terminal by the node in block chain, may be used also
Being executed jointly by the node in terminal 103 and block chain 101, step S202 is such as executed into step S206 by terminal 103
One or two step, and remaining step is executed by the node in block chain 101.Wherein, terminal 103 executes of the invention real
The transfer method for applying the resource of example is also possible to be executed by client mounted thereto.
S202 to step S206 through the above steps, in the cochain request for obtaining target account number, by the more of target account number
Unappropriated target subaddressing distributes to goal task in a subaddressing, and each subaddressing in multiple subaddressings is for saving mesh
Mark the part resource in the resource address of account number;In the case that node in block chain has executed goal task, to block chain
In node transfer has executed first resource consumed by goal task, first resource is the resource of target subaddressing preservation,
I.e. multiple subaddressings are split, each subaddressing to resource address (i.e. the block chain address of service charge TOKEN)
For saving part resource, the subaddressing that also remaining can be used not break down when individual subaddressings break down in this way can
With solve in the related technology as the block chain address for payment it is single caused by break down when cause uplink operation cannot
The technical issues of execution, and then reached and do not influence uplink operation in the Partial Block chain address fault of service charge TOKEN
The technical effect of execution.
In the block chain based on UTXO model, service charge needs to be attached in the UTXO model of transaction, due in this kind
Under model, UTXO is every will to be changed using a Hash Hash, and in other words, service charge TOKEN, which is used, will once change,
Cause service charge use can only serial operation, the transaction of user cannot execute concurrently.By taking game as an example, in game if there is
The article of cochain is needed, then needs to make a deal on chain, since uplink operation needs to expend service charge, is at this time needed attached
Add service charge, but due to service charge TOKEN it is general only one, the quantity of service charge TOKEN is limited to so as to cause concurrency,
Every transaction (i.e. each cochain task) can only serially execute, and lead to the reduction of cochain speed.
Using the technical solution of the application, can be solved present in the block chain based on UTXO model by following scheme
Resource in the resource address of target account number is split as multiple second before obtaining the cochain request of target account number by problem
Resource;Creation splits multiple subaddressings of obtained multiple Secondary resources for saving, and multiple subaddressings are saved to address
List, the resource that multiple subaddressings consume needed for being used to provide for executing parallel for task, executing parallel for task are when executing
Between being overlapped of the task, time-interleaving herein can be understood as executing the time there are partial intersection or the case where be completely coincident;It will
Each Secondary resource saves a corresponding subaddressing at most a subaddressing respectively in multiple Secondary resources, thus can benefit
Concurrent transaction is dealt with multiple subaddressings.
When the resource in the resource address of target account number is split as multiple Secondary resources, fractionation mode includes but not office
It is limited to such as under type:
1) mode one is split according to fixed assets source value, as shown in figure 3, with the rectangle of background band point with indicating resource
Resource in location can split the resource according to fixed assets source value, multiple Secondary resource S1 to Sn is split as, if resource
Resource in address cannot be fixed resource value and divide exactly, then can will be more than between the resource in resource address and fixed assets source value
Number is used as a Secondary resource (such as Sn);
2) mode two are split according to fixed number, as shown in figure 4, if desired division number is N, every part
Resource value is resource and the desired quotient divided between number N in resource address;
3) mode three are split according to the task quantity of current goal task, as shown in figure 5, if current task quantity
It is m, then the resource in resource address can be divided into m parts;As shown in fig. 6, can also be according to each goal task need
The stock number to be consumed splits out m Secondary resource from the resource of resource address, in other words, for each goal task, institute
The resource that the Secondary resource got i.e. actual division goes out.
Above-mentioned resource address is the address service charge token distributed to user, and subaddressing with can be described as sub- service charge again
Location is the reception address that user splits service charge.
In the technical solution that step S202 is provided, first node obtains the cochain request of target account number, and cochain request is used
Node performance objective task in request block chain can infinitely expand number of concurrent for the goal task received, multiple
It can be executed parallel between goal task, increase the speed of cochain.The technical solution of the application, which is suitable for game, electric business etc., to be needed
The scene for wanting concurrent cochain ensure that efficient uplink operation.
It in the technical solution that step S204 is provided, is requested in response to cochain, first node is by multiple sons of target account number
Unappropriated target subaddressing distributes to goal task in address, and each subaddressing in multiple subaddressings is for saving target account
Number resource address in part resource.
In an alternative embodiment, target subaddressing unappropriated in multiple subaddressings of target account number is distributed to
Goal task can include: in the case where goal task is one, chooses for goal task from address list and distribute one
Target subaddressing, address list is for saving multiple subaddressings;In the case where goal task is multiple, it is from address list
Multiple goal tasks are chosen and distribute multiple unassigned target subaddressings, and each goal task is assigned corresponding one
Target subaddressing.
It in the above-described embodiments, is that multiple goal tasks are chosen and distribute multiple target subaddressings and can wrap from address list
Include: in the case where the execution time-interleaving of at least two goal tasks in multiple goal tasks, in other words, this at least two
Goal task is the cochain task executed parallel, can choose current at least two unassigned targets from address list at this time
Subaddressing, and distribute at least two goal tasks, herein it is current it is unassigned refer to appoint executing this at least two target
Before business, the subaddressing for being not allocated to other tasks (can be the subaddressing from unassigned mistake, be also possible to be previously used
The subaddressing recycled again later).
In another optional embodiment for goal task chooses and distribute target subaddressing include but is not limited to
Lower two kinds of implementations:
One is when being that multiple goal tasks are chosen and distribute multiple target subaddressings from address list, according to mesh
Mark sequence chooses multiple target subaddressings from address list, and multiple target subaddressings are distributed to multiple goal tasks, more
A subaddressing in a target subaddressing is next subaddressing of the preceding subaddressing once chosen according to target sequences, is such as schemed
Shown in 7, the corresponding subaddressing of resource S1 to SN is respectively A1 to AN, if the preceding subaddressing once chosen is A3, then this is selected
When selecting since A4, the comparable subaddressing of task quantity with multiple goal tasks is chosen.
The second is when unappropriated target subaddressing distributes to goal task in multiple subaddressings by target account number,
It is chosen according to the stock number of required consumption, the second node that can first obtain in block catenary system has executed needed for goal task
The first resource amount of the first resource of consumption;The Secondary resource amount of the resource saved in multiple subaddressings is greater than first resource
The target subaddressing of amount distributes to goal task.
In the above-described embodiments, in order to make good use of the token resource of each subaddressing to greatest extent, by multiple son ground
When the target subaddressing that the Secondary resource amount of the resource saved in location is greater than first resource amount distributes to goal task, it can distinguish
Obtain the Secondary resource amount for the resource that each subaddressing is saved in multiple subaddressings;Obtain each subaddressing in multiple subaddressings
Secondary resource amount and first resource amount between difference;Obtain the target difference in multiple differences of multiple subaddressings, target
Difference is that numerical value is minimum in multiple differences and is the difference of positive number;By target corresponding with target difference in multiple subaddressings ground
Distribute to goal task in location.
In the above-described embodiments, as shown in figure 8, resource can be preparatory in previous embodiment in the subaddressing of address list
Split, can also be that re-optimization during executing cochain task crosses (due to not being consumed totally in use process
The subaddressing of resource may be subsequently saved back address list again, cause the stock number of each subaddressing in list to differ larger, or
Person's subaddressing quantity is very few, needs to optimize), a kind of optional optimal way is as follows: requesting it in the cochain for obtaining target account number
Afterwards, from being before multiple goal tasks are chosen and distribute multiple target subaddressings, to be saved in address list in address list
Subaddressing quantity i be less than the quantity of multiple goal tasks in the case where, recycle the saved in subaddressing in address list
Two resources;The Secondary resource of recycling is split as multiple information resources, and (such as j, j is greater than i), is every in multiple information resources
A information resources configure a subaddressing, and the subaddressing reconfigured is saved into address list, multiple information resources
The quantity of subaddressing is not less than the quantity of multiple goal tasks.By above-mentioned optimization, so as to meet wanting for transaction concurrency
It asks, at this point, can be from address list when being that multiple goal tasks are chosen and distribute multiple target subaddressings from address list
Multiple goal tasks are chosen and distribute the subaddressing reconfigured.
In the technical solution that step S206 is provided, the case where second node in block chain has executed goal task
Under, second node transfer of the first node into block chain has executed first resource consumed by goal task, and first resource is
The resource that target subaddressing saves.
In the above-described embodiments, into block chain node transfer executed first resource consumed by goal task it
Afterwards, the difference between the stock number of resource and the first resource amount of first resource that target subaddressing saves is greater than targets threshold
In the case where, target subaddressing is saved into back address list;In the stock number and first resource of the resource that target subaddressing saves
Difference between amount deducts remaining resource after first resource in recycling target subaddressing no more than in the case where targets threshold,
Wherein, the resource of recycling is for splitting again and distributing corresponding subaddressing.
Using the technical solution of the application, single service charge address can first be split into N number of sub- service charge address, N is greater than
Then desired concurrent stroke count is written in message queue (i.e. address list), user takes out service charge before every transaction
Address carries out uplink operation, after uplink operation, judges whether the remaining amount of money (or stock number) can satisfy next exchange
Need targets threshold, if can if write back message queue, if not all right, write-in recycling address (the i.e. insufficient hand of transaction amount
Continue to pay dues write back address) in.Recycling address can reuse, and periodically merge the UTXO for recycling address, write back to sub- service charge
In account address.
As a kind of optional embodiment, the technical solution of the application is explained in detail below.It is as shown in Figure 9:
Step S901 splits module (being built-in with the disassembler for executing the application method) with obtaining user's service charge
Location.
It, can be by the present processes with software module in the scenes such as electric business, game (as split module, transaction modules)
Form be stored in terminal, run on first node.Before being traded, service charge can be realized by splitting module
The fractionation of TOKEN.
Step S902, the first equipment (preserving service charge address) return to service charge address and give fractionation module.
Step S903, assembly split request (for request by service charge address dividing be it is N number of), and send fractionation request to
First equipment.
Step S904, service charge address dividing is N number of sub- service charge address by the first equipment, and is saved on the second device
(the first equipment and the second equipment can be same equipment or distinct device).
Step S905 splits module for split result and message queue (i.e. address list) is written.
Step S906, transaction modules one available service charge of request from message queue before transaction.
For example, it is desired in gaming restocking game role, game item etc. whens, need in electric business scene restocking commodity,
When service, can from message queue one available service charge of request, to meet the needs of restocking.
Step S907, message queue, which returns to one, can use the sub- service charge address of service charge or the service charge.
Step S908, transaction modules with service charge using can be traded.
Step S909, for above-mentioned available service charge, after the service charge for deducting consumption, if remaining service charge is under
Secondary use, then write back message queue again.
Step S910 writes back recycling address if remaining service charge is not enough to use for next time.
Step S911, recycling module periodically inquire the service charge TOKEN of recycling.
Step S912 merges the service charge TOKEN of recycling, and combined service charge TOKEN is saved to a sub- formality
Take address.
Recycling address can reuse, and will periodically recycle the UTXO in address and merge, write back in sub- service charge address.
Merging method is to do the transaction of a block chain, and the input of this transaction is to recycle service charge UTXO scattered in address, output
For service charge address.
Message queue is written in the sub- service charge address of combined service charge TOKEN by step S913.
Whether step S914, the concurrent quantity of task can be met with service charge quantity by splitting in module regular check message queue
Requirement, continue to split if being unsatisfactory for, with guarantee transaction reliability.
Single service charge address can first be split into N number of sub- service charge TOKEN (N is desired number of concurrent) by above scheme,
Method for splitting is the transaction for making a block chain, and the input of this transaction is service charge TOKEN, is exported as N number of sub- service charge.It tears open
After being divided into function, by the sub- service charge UTXO write-in message queue of fractionation, user takes out service charge ground before every transaction
Location carries out uplink operation, after uplink operation, judge the remaining amount of money whether be less than recycling threshold value (threshold value setting can by user from
Oneself setting, is such as set as the commission amount of a trade maximum), if can if write-back message queue write if not all right
Enter to recycle in address.
Since original UTXO is not present UTXO after use, new UTXO can be generated, cause UTXO can only serializable transaction, exist in this way
For the needs such as game, electric business greatly concurrently using under the scene of service charge TOKEN, it is larger that user handles concurrent difficulty.The application's
In technical solution, it can support arbitrarily large concurrent quantity, i.e., quantity N be split by control to realize;Guaranteed reliability is stronger,
Sub- service charge TOKEN is only intended for single use, ability write-back message queue after success, and the guarantee service charge taken of trading every time is all available
's;Can cope with uprush it is big concurrent, if that can be continued to split and guaranteed that transaction can be into few in fruit service charge account
Row.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the transfer method of above-mentioned resource
The transfer device of resource.Figure 10 is a kind of schematic diagram of the transfer device of optional resource according to an embodiment of the present invention, is such as schemed
Shown in 10, the apparatus may include: acquiring unit 1001, allocation unit 1003 and buanch unit 1005.
Acquiring unit 1001, the cochain for obtaining target account number are requested, wherein cochain is requested for requesting in block chain
Node performance objective task.
Node in block chain 101 can be specific hardware device (such as PC, mobile phone, plate, server, rolling reamer machine
Deng), it is also possible to virtual unit (such as virtual machine).
Target account number is for indicating user, for the account number used on first node or terminal;Cochain is requested for requesting
Node performance objective task in block chain, the node for specifically executing the goal task can be denoted as second node, the goal task
I.e. cochain requests the cochain task executed, the difference in the field that cochain task land with block chain and it is different, if this
Block chain is used for field of play, then cochain task can refer to virtual objects, stage property in cochain game etc.;If the block chain
For electric business field, then cochain task can refer to cochain commodity, service etc., remaining field is similar, does not enumerate.
Allocation unit 1003, for being requested in response to cochain, by unappropriated target in multiple subaddressings of target account number
Subaddressing distributes to goal task, wherein each subaddressing in multiple subaddressings is used to save the resource address of target account number
In part resource.
The resource address of target account number is the address for being used to save token resource, and token can indicate that UTXO is not with UTXO
The transaction of cost exports, it is that token transactions generate and a key concept of verifying, transaction constitute one group of chain structure, institute
To the output of one or more transaction before having legal transaction that can trace back to, the source of these chains can be digging mine prize
It encourages, end is then the transaction output not spent currently.
Under the scheme based on UTXO model, since UTXO is used only once the characteristic being just not present, one hand continues to pay dues ground
Location, user is unable to concurrent transaction and just will affect the execution of cochain task when the resource address breaks down, above-mentioned facing
When problem, in the technical solution of the application, which utilizes the single service charge address (i.e. resource address) of user, will be single
One service charge address is first split into N number of sub- service charge address (i.e. multiple subaddressings), and N is more than or equal to desired task number of concurrent
Then amount multiple subaddressings is written in message queue, user takes out service charge subaddressing before every transaction, carries out cochain
Operation (executes cochain task), after uplink operation, judges whether the remaining amount of money can satisfy next transaction, if can return
Message queue is write, if not all right, in write-in recycling address, recycling address can be reused, and will periodically recycle the UTXO of address
Merge, writes back in sub- service charge account address;Since the target subaddressing chosen is always usable (in other words, at certain
When mistake occurs for one subaddressing, remaining workable subaddressing can be selected) and unappropriated subaddressing it is (in other words, unallocated
Subaddressing can be assigned use, if cochain task is concurrent, then can be selected respectively for these concurrent tasks
Corresponding subaddressing), can solve one hand continue to pay dues user caused by address be unable to concurrent transaction and the resource address occur therefore
The problem of just will affect the execution of cochain task when barrier.
Buanch unit 1005, in the case where having executed goal task for the node in block chain, into block chain
Node transfer has executed first resource consumed by goal task, wherein first resource is the resource that target subaddressing saves.
It should be noted that the acquiring unit 1001 in the embodiment can be used for executing the step in the embodiment of the present application
S202, the allocation unit 1003 in the embodiment can be used for executing the step S204 in the embodiment of the present application, in the embodiment
Buanch unit 1005 can be used for executing the step S206 in the embodiment of the present application.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
To not it be divided in multiple subaddressings of target account number by above-mentioned module in the cochain request for obtaining target account number
The target subaddressing matched distributes to goal task, and each subaddressing in multiple subaddressings is with being used to save the resource of target account number
Part resource in location;In the case that node in block chain has executed goal task, the node transfer into block chain is held
First resource consumed by goal task is gone, first resource is the resource that target subaddressing saves namely multiple subaddressings are
Resource address (i.e. the block chain address of service charge TOKEN) is split, each subaddressing is provided for saving part
Source, the subaddressing that also remaining can be used not break down when individual subaddressings break down in this way, can solve the relevant technologies
In as the block chain address for payment it is single caused by break down when lead to the inexecutable technical problem of uplink operation,
And then the technical effect for not influencing uplink operation execution in the Partial Block chain address fault of service charge TOKEN is reached.
Optionally, allocation unit can include: the first distribution module is used in the case where goal task is one, from ground
It chooses for goal task in the list of location and distributes a target subaddressing, wherein address list is for saving multiple subaddressings;The
Two distribution modules, for being that multiple goal tasks are chosen and distributed from address list in the case where goal task is multiple
Multiple target subaddressings, wherein each goal task is assigned a corresponding target subaddressing.
The second above-mentioned distribution module can also be used in: in the case where the execution time-interleaving of at least two goal tasks,
Current at least two unassigned target subaddressings are chosen from address list, and distribute at least two goal tasks.
The second above-mentioned distribution module can also be used in: choose multiple target ground from address list according to target sequences
Location, and multiple target subaddressings are distributed into multiple goal tasks, wherein before a subaddressing in multiple target subaddressings is
The next subaddressing for the subaddressing once chosen according to target sequences.
Optionally, allocation unit may also include that acquisition module, execute goal task for obtaining the node in block chain
The first resource amount of the first resource of required consumption;Third distribution module, resource for will be saved in multiple subaddressings
The target subaddressing that Secondary resource amount is greater than first resource amount distributes to goal task.
Above-mentioned third distribution module can also be used in: obtain the resource that each subaddressing is saved in multiple subaddressings respectively
Secondary resource amount;Obtain the difference between the Secondary resource amount of each subaddressing in multiple subaddressings and first resource amount;It obtains
Take the target difference in multiple differences of multiple subaddressings, wherein target difference is that numerical value is minimum in multiple differences and is positive number
Difference;Target subaddressing corresponding with target difference in multiple subaddressings is distributed into goal task.
In an alternative embodiment, the device of the application may also include that recovery unit, for obtaining target account number
Cochain request after, from being before multiple goal tasks are chosen and distribute multiple target subaddressings, on ground in address list
In the case that the quantity of the subaddressing saved in the list of location is less than the quantity of multiple goal tasks, subaddressing in address list is recycled
The Secondary resource of upper preservation;The Secondary resource of recycling is split as multiple information resources, is each of multiple information resources the
Three subaddressings of resource distribution one, and the subaddressing reconfigured is saved into address list, wherein multiple information resources
The quantity of subaddressing is not less than the quantity of multiple goal tasks.
Above-mentioned allocation unit when being that multiple goal tasks are chosen and distribute multiple target subaddressings from address list,
It can be that multiple goal tasks are chosen and distribute the subaddressing reconfigured from address list.
In another optional embodiment, the device of the application may also include that the first split cells, for obtaining mesh
Before the cochain request for marking account number, the resource in the resource address of target account number is split as multiple Secondary resources;Creating unit,
It is used to save the multiple subaddressings for splitting obtained multiple Secondary resources for creating, and multiple subaddressings is saved to address column
Table, wherein the resource that multiple subaddressings consume needed for being used to provide for executing parallel for task, executing parallel for task are to execute
The task of time-interleaving;Storage unit, for Secondary resource each in multiple Secondary resources to be saved at most a subaddressing respectively
In a corresponding subaddressing.
Optionally, the device of the application may also include that restoring unit, for having executed in the node transfer into block chain
After first resource consumed by goal task, in the stock number for the resource that target subaddressing saves and the first money of first resource
In the case that difference between the amount of source is greater than targets threshold, target subaddressing is saved into back address list;First split cells is used
In the case that difference between the stock number and first resource amount of the resource saved in target subaddressing is not more than targets threshold,
Recycle remaining resource after deducting first resource in target subaddressing, wherein the resource of recycling is for splitting again and distributing phase
The subaddressing answered.
In the block chain based on UTXO model, service charge needs to be attached in the UTXO model of transaction, due in this kind
Under model, UTXO is every will to be changed using a Hash Hash, and in other words, service charge TOKEN, which is used, will once change,
Cause service charge use can only serial operation, the transaction of user cannot execute concurrently.By taking game as an example, in game if there is
The article of cochain is needed, then needs to make a deal on chain, since uplink operation needs to expend service charge, is at this time needed attached
Add service charge, but due to service charge TOKEN it is general only one, the quantity of service charge TOKEN is limited to so as to cause concurrency,
Every transaction (i.e. each cochain task) can only serially execute, and lead to the reduction of cochain speed.
In the technical solution of the application, single service charge address can first be split into N number of sub- service charge TOKEN, and (N is scheduled to last
The number of concurrent of prestige), method for splitting is the transaction for making a block chain, and the input of this transaction is service charge TOKEN, is exported as N
A sub- service charge.After splitting successfully, by the sub- service charge UTXO write-in message queue of fractionation, user takes before every transaction
It sells the subaddressing that continues to pay dues, carries out uplink operation, after uplink operation, judge whether to be less than recycling threshold value by the remaining amount of money that (threshold value is set
Surely can be set by user oneself, such as be set as the commission amount of a trade maximum), if can if write-back message queue,
If not all right, be written in recycling address.
Since original UTXO is not present UTXO after use, new UTXO can be generated, cause UTXO can only serializable transaction, exist in this way
For the needs such as game, electric business greatly concurrently using under the scene of service charge TOKEN, it is larger that user handles concurrent difficulty.The application's
In technical solution, it can support arbitrarily large concurrent quantity, i.e., quantity N be split by control to realize;Guaranteed reliability is stronger,
Sub- service charge TOKEN is only intended for single use, ability write-back message queue after success, and the guarantee service charge taken of trading every time is all available
's;Can cope with uprush it is big concurrent, if that can be continued to split and guaranteed that transaction can be into few in fruit service charge account
Row.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization, wherein hardware environment includes network
Environment.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the transfer method of above-mentioned resource
Server or terminal.
Figure 11 is a kind of structural block diagram of terminal according to an embodiment of the present invention, and as shown in figure 11, which may include:
One or more (one is only shown in Figure 11) processors 1101, memory 1103 and transmitting device 1105, such as Figure 11 institute
Show, which can also include input-output equipment 1107.
Wherein, memory 1103 can be used for storing software program and module, such as turning for the resource in the embodiment of the present invention
Shifting method and the corresponding program instruction/module of device, the software journey that processor 1101 is stored in memory 1103 by operation
Sequence and module realize the transfer method of above-mentioned resource thereby executing various function application and data processing.Memory
1103 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 1103 can further comprise relative to processing
The remotely located memory of device 1101, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network
Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 1105 is used to that data to be received or sent via network, can be also used for processor with
Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example,
Transmitting device 1105 includes a network adapter (Network Interface Controller, NIC), can pass through cable
It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress
1105 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 1103 is for storing application program.
The application program that processor 1101 can call memory 1103 to store by transmitting device 1105, it is following to execute
Step:
Obtain the cochain request of target account number, wherein cochain request is for requesting the node performance objective in block chain to be appointed
Business;
It is requested in response to cochain, target subaddressing unappropriated in multiple subaddressings of target account number is distributed into target and is appointed
Business, wherein each subaddressing in multiple subaddressings is used to save the part resource in the resource address of target account number;
In the case that node in block chain has executed goal task, the node transfer into block chain has executed target
First resource consumed by task, wherein first resource is the resource that target subaddressing saves.
Processor 1101 is also used to execute following step:
Resource in the resource address of target account number is split as multiple Secondary resources;
Creation splits multiple subaddressings of obtained multiple Secondary resources for saving, and multiple subaddressings are saved to ground
Location list, wherein the resource that multiple subaddressings consume needed for being used to provide for executing parallel for task, executing parallel for task are
Execute the task of time-interleaving;
Secondary resource each in multiple Secondary resources is saved into a corresponding subaddressing at most a subaddressing respectively.
It will be in multiple subaddressings of target account number in the cochain request for obtaining target account number using the embodiment of the present invention
Unappropriated target subaddressing distributes to goal task, and each subaddressing in multiple subaddressings is used to save the money of target account number
Part resource in source address;In the case that node in block chain has executed goal task, the node into block chain turns
Shifting has executed first resource consumed by goal task, and first resource is the resource that target subaddressing saves namely multiple son ground
Location is split to resource address (i.e. the block chain address of service charge TOKEN), and each subaddressing is used for storage unit
Divide resource, the subaddressing that also remaining can be used not break down when individual subaddressings break down in this way can solve correlation
In technology as the block chain address for payment it is single caused by break down when lead to the inexecutable technology of uplink operation
Problem, and then reached the technology for not influencing uplink operation execution in the Partial Block chain address fault of service charge TOKEN
Effect.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment
Details are not described herein.
It will appreciated by the skilled person that structure shown in Figure 11 is only to illustrate, terminal can be smart phone
(such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal devices such as PAD.Figure 11 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also
May include than shown in Figure 11 more perhaps less component (such as network interface, display device) or have and Figure 11 institute
Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
With the program code of the transfer method for executing resource.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment
On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S12 obtains the cochain request of target account number, wherein cochain request is for requesting the node in block chain to execute mesh
Mark task;
S14 requests in response to cochain, target subaddressing unappropriated in multiple subaddressings of target account number is distributed to mesh
Mark task, wherein each subaddressing in multiple subaddressings is used to save the part resource in the resource address of target account number;
S16, in the case that the node in block chain has executed goal task, the node transfer into block chain has been executed
First resource consumed by goal task, wherein first resource is the resource that target subaddressing saves.
Optionally, storage medium is also configured to store the program code for executing following steps:
Resource in the resource address of target account number is split as multiple Secondary resources by S22;
S24, creation split multiple subaddressings of obtained multiple Secondary resources for saving, and multiple subaddressings are saved
To address list, wherein the resource that multiple subaddressings consume needed for being used to provide for executing parallel for task, what is executed parallel appoints
Business is to execute the task of time-interleaving;
Secondary resource each in multiple Secondary resources is saved corresponding son ground at most a subaddressing by S26 respectively
Location.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment
Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or
The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of processing method of resource characterized by comprising
Resource in the resource address of target account number is split as multiple Secondary resources;
Creation splits multiple subaddressings of obtained the multiple Secondary resource for saving, and the multiple subaddressing is saved
To address list, wherein the resource that the multiple subaddressing consumes needed for being used to provide for executing parallel for task, it is parallel to execute
Task be execute time-interleaving task;
The Secondary resource each in the multiple Secondary resource is saved respectively into the multiple subaddressing corresponding one
Subaddressing.
2. the method according to claim 1, wherein the resource by the resource address of target account number is split
For multiple Secondary resources, comprising:
The resource in the resource address of the target account number is split according to fixed assets source value, obtains the multiple second money
Source, wherein if the resource in the resource address cannot be divided exactly by the fixed assets source value, by the money in the resource address
Remainder between source and the fixed assets source value is as a Secondary resource;Alternatively,
The resource in the resource address of the target account number is split according to fixed number, obtains the multiple second money
Source;Alternatively,
The resource in the resource address of the target account number is split according to the task quantity of current goal task, obtains institute
State multiple Secondary resources, wherein the goal task is that the node in the cochain request request block chain of the target account number is held
Capable task;Alternatively,
The stock number consumed is needed to split out from the resource of the resource address according to each goal task the multiple
Secondary resource.
3. method according to claim 1 or 2, which is characterized in that it is described will be each described in the multiple Secondary resource
After Secondary resource saves respectively into the multiple subaddressing a corresponding subaddressing, the method also includes:
Obtain the cochain request of the target account number, wherein the cochain request is for requesting the node in block chain to execute mesh
Mark task;
It is requested in response to the cochain, target subaddressing unappropriated in multiple subaddressings of the target account number is distributed into institute
State goal task, wherein each subaddressing in the multiple subaddressing is used to save in the resource address of the target account number
Part resource;
In the case that node in the block chain has executed the goal task, the node transfer in Xiang Suoshu block chain is held
First resource consumed by the goal task is gone, wherein the first resource is the resource that the target subaddressing saves.
4. according to the method described in claim 3, it is characterized in that, the node transfer into the block chain has executed institute
After stating first resource consumed by goal task, the method also includes:
Difference between the stock number of resource and the first resource amount of the first resource that the target subaddressing saves is big
In the case where targets threshold, the target subaddressing is saved into back the address list;
Difference between the stock number and the first resource amount for the resource that the target subaddressing saves is not more than the mesh
In the case where marking threshold value, remaining 4th resource after deducting the first resource in the target subaddressing is recycled, and will be described
4th resource write-in recycling address, wherein the resource of recycling is for splitting again and distributing corresponding subaddressing.
5. according to the method described in claim 4, it is characterized in that, deducting described first in the recycling target subaddressing
Remaining 4th resource after resource, and will deduct after the first resource the remaining 4th resource write-in recycling address it
Afterwards, the method also includes:
Periodically inquire multiple 4th resources saved in the recycling address list;
Multiple 4th resources are merged into the 5th resource, and by the 5th resource conservation of merging a to subaddressing,
The subaddressing of the 5th resource conservation of merging is written in the address list.
6. according to the method described in claim 3, it is characterized in that, by unappropriated in multiple subaddressings of the target account number
Target subaddressing distributes to the goal task
It is that the goal task is chosen and distributed described in one from address list in the case where the goal task is one
Target subaddressing, wherein the address list is for saving the multiple subaddressing;
It is that multiple goal tasks are chosen and distributed from the address list in the case where the goal task is multiple
Multiple target subaddressings, wherein each goal task is assigned the corresponding one target subaddressing.
7. according to the method described in claim 6, it is characterized in that, being multiple goal task choosings from the address list
It takes and distributes multiple target subaddressings and include:
In the case where the execution time-interleaving of at least two goal tasks, chosen from the address list it is current not by
At least two target subaddressings of distribution, and distribute at least two goal tasks.
8. according to the method described in claim 6, it is characterized in that, being multiple goal task choosings from the address list
It takes and distributes multiple target subaddressings and include:
Choose multiple target subaddressings from the address list according to target sequences, and by multiple target subaddressings
Distribute to multiple goal tasks, wherein a subaddressing in multiple target subaddressings is preceding once according to described
The next subaddressing for the subaddressing that target sequences are chosen.
9. the method according to the description of claim 7 is characterized in that by unappropriated in multiple subaddressings of the target account number
Target subaddressing distributes to the goal task
Obtain the first resource that the node in the block chain has executed the first resource consumed needed for the goal task
Amount;
The Secondary resource amount of the resource saved in the multiple subaddressing is greater than to the target of the first resource amount
Distribute to the goal task in address.
10. according to the method described in claim 5, it is characterized in that, by the of the resource saved in the multiple subaddressing
The target subaddressing that two stock numbers are greater than the first resource amount distributes to the goal task and includes:
The Secondary resource amount for the resource that each subaddressing is saved in the multiple subaddressing is obtained respectively;
Obtain the difference between the Secondary resource amount of each subaddressing in the multiple subaddressing and the first resource amount;
Obtain the target difference in multiple differences of the multiple subaddressing, wherein the target difference is the multiple difference
Middle numerical value is minimum and is the difference of positive number;
The target subaddressing corresponding with the target difference in the multiple subaddressing is distributed into the goal task.
11. according to the method described in claim 10, it is characterized in that,
It is being that multiple goal tasks are chosen and divided from the address list after obtaining the cochain request of target account number
Before multiple target subaddressings, the method also includes: the quantity of the subaddressing saved in the address list is small
In the case where the quantity of multiple goal tasks, the Secondary resource saved in subaddressing in the address list is recycled;It will
The Secondary resource of recycling is split as multiple information resources, is the information resources configuration one of each of the multiple information resources
A subaddressing, and the subaddressing reconfigured is saved into the address list, wherein the son ground of the multiple information resources
The quantity of location is not less than the quantity of multiple goal tasks;
It is that multiple goal tasks choose and distribute multiple target subaddressings from the address list include: from described
It is that multiple goal tasks are chosen and distribute the subaddressing reconfigured in address list.
12. a kind of processing unit of resource, which is characterized in that described device for performing the following operations: by the money of target account number
Resource in source address is split as multiple Secondary resources;Creation splits the multiple of obtained the multiple Secondary resource for saving
Subaddressing, and the multiple subaddressing is saved to address list, wherein the multiple subaddressing is used to appoint for what is executed parallel
The resource that business consumes needed for providing, executing parallel for task are to execute the task of time-interleaving;It will be in the multiple Secondary resource
Each Secondary resource saves respectively into the multiple subaddressing a corresponding subaddressing.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run
Execute method described in 1 to 11 any one of the claims.
14. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to execute side described in any one of claim 1 to 11 by the computer program
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910697208.6A CN110428237B (en) | 2018-06-07 | 2018-06-07 | Resource processing method and device, storage medium and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910697208.6A CN110428237B (en) | 2018-06-07 | 2018-06-07 | Resource processing method and device, storage medium and electronic device |
CN201810581536.5A CN108898368B (en) | 2018-06-07 | 2018-06-07 | Resource transfer method and device, storage medium and electronic device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810581536.5A Division CN108898368B (en) | 2018-06-07 | 2018-06-07 | Resource transfer method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110428237A true CN110428237A (en) | 2019-11-08 |
CN110428237B CN110428237B (en) | 2021-05-14 |
Family
ID=64344195
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810581536.5A Active CN108898368B (en) | 2018-06-07 | 2018-06-07 | Resource transfer method and device, storage medium and electronic device |
CN201910697208.6A Active CN110428237B (en) | 2018-06-07 | 2018-06-07 | Resource processing method and device, storage medium and electronic device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810581536.5A Active CN108898368B (en) | 2018-06-07 | 2018-06-07 | Resource transfer method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN108898368B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109584079B (en) * | 2018-11-29 | 2021-06-01 | 创新先进技术有限公司 | Resource processing system, and method, device and equipment for approving resource project declaration |
CN109711201A (en) * | 2018-12-29 | 2019-05-03 | 百度在线网络技术(北京)有限公司 | Poverty alleviation processing method, device, equipment and medium based on block chain |
CN110427380A (en) * | 2019-08-07 | 2019-11-08 | 北京艾摩瑞策科技有限公司 | It is related to rent a house associated data processing method and its device of block chain |
CN110443055B (en) * | 2019-08-07 | 2021-01-01 | 北京瑞策科技有限公司 | Uplink method and device for self-media associated data on Internet |
CN110324363B (en) * | 2019-08-07 | 2020-08-14 | 北京瑞策科技有限公司 | Uplink method and device for Internet e-commerce associated data |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431745A (en) * | 2008-12-09 | 2009-05-13 | 杭州东信北邮信息技术有限公司 | Account resource reservation and distribution method used for IMS multi-service on-line charging |
CN105700958A (en) * | 2016-01-07 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Method and system for automatic splitting of task and parallel execution of sub-task |
CN105809420A (en) * | 2016-03-08 | 2016-07-27 | 杭州复杂美科技有限公司 | Liquidation method of multi-layer block chain |
CN106600245A (en) * | 2016-12-15 | 2017-04-26 | 国云科技股份有限公司 | Cloud computing resource scheduling system and realizing method thereof |
US20170177411A1 (en) * | 2015-12-18 | 2017-06-22 | Wal-Mart Stores, Inc. | Automated Statistical Analysis Job Chunking |
CN106940854A (en) * | 2017-03-06 | 2017-07-11 | 钱德君 | A kind of bridging method between UTXO models and contract |
WO2017145007A1 (en) * | 2016-02-23 | 2017-08-31 | nChain Holdings Limited | System and method for controlling asset-related actions via a blockchain |
CN107147735A (en) * | 2017-05-12 | 2017-09-08 | 北京博晨技术有限公司 | A kind of distributed account book system based on hierarchy |
US20170308893A1 (en) * | 2016-04-25 | 2017-10-26 | Digital Asset Holdings | Asset and obligation management using flexible settlement times |
CN107358420A (en) * | 2017-06-09 | 2017-11-17 | 北京博晨技术有限公司 | Method for realizing the block catenary system of focus account and realizing focus account |
CN107464112A (en) * | 2017-07-20 | 2017-12-12 | 捷德(中国)信息科技有限公司 | Exchange management method and system based on block chain |
CN107688999A (en) * | 2017-08-11 | 2018-02-13 | 杭州秘猿科技有限公司 | A kind of parallel transaction based on block chain performs method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106780025B (en) * | 2016-11-30 | 2021-03-02 | 中国银行股份有限公司 | Method, device and system for transferring digital assets in block chain |
CN106603698A (en) * | 2016-12-28 | 2017-04-26 | 北京果仁宝科技有限公司 | Block chain consensus method based on DPOS and nodes |
CN107508680B (en) * | 2017-07-26 | 2021-02-05 | 创新先进技术有限公司 | Digital certificate management method and device and electronic equipment |
CN107423124A (en) * | 2017-07-27 | 2017-12-01 | 中链科技有限公司 | A kind of method for being used to carry out transaction data parallel processing |
CN108009811B (en) * | 2017-11-30 | 2021-06-04 | 中国人民解放军国防科技大学 | Inter-cloud computing environment value exchange-oriented cross-chain communication method |
CN107992356B (en) * | 2017-12-13 | 2021-09-14 | 深圳壹账通智能科技有限公司 | Block chain transaction block processing method, electronic device and readable storage medium |
-
2018
- 2018-06-07 CN CN201810581536.5A patent/CN108898368B/en active Active
- 2018-06-07 CN CN201910697208.6A patent/CN110428237B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431745A (en) * | 2008-12-09 | 2009-05-13 | 杭州东信北邮信息技术有限公司 | Account resource reservation and distribution method used for IMS multi-service on-line charging |
US20170177411A1 (en) * | 2015-12-18 | 2017-06-22 | Wal-Mart Stores, Inc. | Automated Statistical Analysis Job Chunking |
CN105700958A (en) * | 2016-01-07 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Method and system for automatic splitting of task and parallel execution of sub-task |
WO2017145007A1 (en) * | 2016-02-23 | 2017-08-31 | nChain Holdings Limited | System and method for controlling asset-related actions via a blockchain |
CN105809420A (en) * | 2016-03-08 | 2016-07-27 | 杭州复杂美科技有限公司 | Liquidation method of multi-layer block chain |
US20170308893A1 (en) * | 2016-04-25 | 2017-10-26 | Digital Asset Holdings | Asset and obligation management using flexible settlement times |
CN106600245A (en) * | 2016-12-15 | 2017-04-26 | 国云科技股份有限公司 | Cloud computing resource scheduling system and realizing method thereof |
CN106940854A (en) * | 2017-03-06 | 2017-07-11 | 钱德君 | A kind of bridging method between UTXO models and contract |
CN107147735A (en) * | 2017-05-12 | 2017-09-08 | 北京博晨技术有限公司 | A kind of distributed account book system based on hierarchy |
CN107358420A (en) * | 2017-06-09 | 2017-11-17 | 北京博晨技术有限公司 | Method for realizing the block catenary system of focus account and realizing focus account |
CN107464112A (en) * | 2017-07-20 | 2017-12-12 | 捷德(中国)信息科技有限公司 | Exchange management method and system based on block chain |
CN107688999A (en) * | 2017-08-11 | 2018-02-13 | 杭州秘猿科技有限公司 | A kind of parallel transaction based on block chain performs method |
Also Published As
Publication number | Publication date |
---|---|
CN108898368B (en) | 2021-05-14 |
CN108898368A (en) | 2018-11-27 |
CN110428237B (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110428237A (en) | The treating method and apparatus of resource, storage medium, electronic device | |
CN108200203B (en) | Block chain system based on double-layer network | |
CN104966214B (en) | A kind of exchange method and device of electronic ticket | |
CN109040014A (en) | Block chain processing method and processing device, block chain node and storage medium | |
CN108985774A (en) | A kind of motivational techniques, device, equipment and the storage medium of block chain network | |
CN108197944A (en) | Resource transaction method and device based on block chain technology | |
CN108347483B (en) | Decentralized computing system based on double-layer network | |
CN108492183A (en) | Account trading method, system and the computer readable storage medium of block chain | |
CN110020888A (en) | The sharing method and device of goal task | |
CN104168271A (en) | Interactive system, server, clients and interactive method | |
CN104321116A (en) | A game system for virtual item trading | |
US20140302922A1 (en) | Server device, and non-transitory computer-readable storage medium storing game program | |
CN106209953A (en) | The processing method of sequence information, Apparatus and system | |
CN110298643A (en) | Service charge distribution method, device and storage medium based on block chain | |
CN110109746A (en) | A kind of task processing method, device, equipment and medium | |
CN105913244A (en) | Multi-user business data processing method and system | |
CN111340542A (en) | Resource allocation method and device, storage medium and electronic device | |
CN108066989A (en) | A kind of random fit organizing method, device and application server | |
CN106075912A (en) | A kind of method that online game is helped each other and network game system | |
CN109663364A (en) | Virtual prize provides control method and device, electronic equipment | |
CN108564426A (en) | Finance product buys method, apparatus, equipment and computer readable storage medium at competitive price | |
CN108764876A (en) | A kind of transaction processing method and server | |
CN108460590A (en) | The method, apparatus and electronic equipment of information recommendation | |
CN111080342A (en) | Resource allocation method and device, storage medium and electronic device | |
CN107527222A (en) | Information processing method and apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40015607 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |