CN109559228A - Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing - Google Patents

Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109559228A
CN109559228A CN201811446276.7A CN201811446276A CN109559228A CN 109559228 A CN109559228 A CN 109559228A CN 201811446276 A CN201811446276 A CN 201811446276A CN 109559228 A CN109559228 A CN 109559228A
Authority
CN
China
Prior art keywords
resource
order
account address
contract
virtual resource
Prior art date
Application number
CN201811446276.7A
Other languages
Chinese (zh)
Inventor
卢鹏飞
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201811446276.7A priority Critical patent/CN109559228A/en
Publication of CN109559228A publication Critical patent/CN109559228A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce, e.g. shopping or e-commerce
    • G06Q30/01Customer relationship, e.g. warranty
    • G06Q30/018Business or product certification or verification

Abstract

The invention discloses a kind of resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing, belong to network technique field.The embodiment of the present invention converts real-life resource order to by using block chain virtual resource and contract data in block catenary system, and utilize the jump condition in contract data, to constrain the transfer of virtual resource, since the record on block chain can not be modified, with very strong trackability, thus it is guaranteed that virtual resource statistical accuracy, avoids false statistics.

Description

Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing

Technical field

The present invention relates to network technique field, in particular to a kind of resource transfers method, apparatus, computer equipment and can Read storage medium.

Background technique

In recent years, the industry developments such as tourism, culture, sport are rapid, and the development in cultural industry is especially prominent.Box office is One of measurement standard of film quality, objective box office record can reflect true film quality, be not only the honor to art Weight, while also indicating a film to the influence degree of social spirit culture.

Box office statistical method can be the total amount that statistics film ticket is sold at present, be counted according to the unified unit price of film ticket Box office, in addition for each film city after terminating same day business, same day box office data are directly reported to middle shadow data system by ticket sale system System is finally calculated by the data processing system of middle shadow as a result, to obtain box office record.

But above-mentioned box office statistical method is with the price fluctuation of film ticket, when statistics, is easy to appear deviation, for example, movie theatre When having preferential activity, the unified unit price of film ticket is lower than the admission fee actually sold, and above-mentioned statistical method has ignored favourable price, It is higher to will lead to box office.

Summary of the invention

The embodiment of the invention provides a kind of resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing, protect Virtual resource statistical accuracy has been demonstrate,proved, false statistics is avoided.The technical solution is as follows:

On the one hand, a kind of resource transfers method is provided, applied on the node device in block catenary system, the method Include:

The transaction data of first resource order is obtained, the first resource order corresponds to resource;

According to the transaction data, destination virtual money is generated in the corresponding user account address of the first resource order The quantity in source, the destination virtual resource is corresponding with the order denomination in the transaction data;

Generate the first contract data in the block catenary system, first contract data include the transaction data, The jump condition of first contract account address and the destination virtual resource, the first contract account address is for being described First resource order provides virtual resource storage service;

The destination virtual resource is transferred in the first contract account address from the user account address;

When the order status of the first resource order meets the transfer of destination virtual resource described in the first contract data When condition, by the destination virtual resource transfers in the first contract account address into the account address of the resource.

On the one hand, a kind of resource query method is provided, applied to the node device in block catenary system, comprising:

The first inquiry request is received, the inquiry request carries resource identification to be checked;

The resource identification that first inquiry request carries is mapped as the resource account address in block catenary system, Obtain the second inquiry request;

In response to second inquiry request, the virtual resource surplus in the resource account address is obtained;

Based on the virtual resource surplus, query result is exported.

On the one hand, a kind of resource transfers device is provided, applied on the node device in block catenary system, described device Include:

Module is obtained, for obtaining the transaction data of first resource order, the first resource order corresponds to resource;

Generation module is used for according to the transaction data, in the corresponding user account address of the first resource order Destination virtual resource is generated, the quantity of the destination virtual resource is corresponding with the order denomination in the transaction data;

The generation module is also used to generate the first contract data, first contract data in the block catenary system Jump condition including the transaction data, the first contract account address and the destination virtual resource, first contract Account address is used to provide virtual resource storage service for the first resource order;

Shift module, for the destination virtual resource to be transferred to the first contract account from the user account address In the address of family;

The shift module is also used to meet described in the first contract data when the order status of the first resource order When the jump condition of destination virtual resource, by the destination virtual resource transfers in the first contract account address to the resource Account address in.

On the one hand, a kind of computer equipment is provided, the computer equipment includes processor and memory, the storage At least one instruction is stored in device, described instruction is loaded by the processor and executed to realize such as above-mentioned resource transfers side Method or the operation as performed by above-mentioned resource query method.

On the one hand, provide a kind of computer readable storage medium, be stored in the computer readable storage medium to A few instruction, described instruction are loaded by the processor and are executed to realize such as above-mentioned resource transfers method or such as above-mentioned money Operation performed by the querying method of source.

Technical solution bring beneficial effect provided in an embodiment of the present invention includes at least:

The embodiment of the present invention is converted real-life resource order in block catenary system by using block chain Virtual resource and contract data, and using the jump condition in contract data, to constrain the transfer of virtual resource, due to area Record on block chain can not be modified, and have very strong trackability, thus it is guaranteed that virtual resource statistical accuracy, avoids False statistics.

Detailed description of the invention

To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.

Fig. 1 is a kind of structural schematic diagram of virtual resource statistical system provided in an embodiment of the present invention;

Fig. 2 is a kind of flow chart of resource transfers method provided in an embodiment of the present invention;

Fig. 3 is a kind of flow chart of resource transfers method provided in an embodiment of the present invention;

Fig. 4 is a kind of flow chart of resource query method provided in an embodiment of the present invention;

Fig. 5 is a kind of exemplary diagram based on box office receipts statistics provided in an embodiment of the present invention;

Fig. 6 is a kind of structural schematic diagram of resource transfers device provided in an embodiment of the present invention;

Fig. 7 is a kind of structural schematic diagram of resource query device provided in an embodiment of the present invention;

Fig. 8 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.

Specific embodiment

To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.

Fig. 1 is a kind of structural schematic diagram of virtual resource statistical system provided in an embodiment of the present invention, referring to Fig. 1, the void Quasi- resource statistics system includes multiple node devices 101 and destination server 102, wherein multiple node devices 101 can match It is equipped with same block chain, that is to say, multiple node device 101 can form block catenary system.Multiple node device 101 A business entity can be belonged to, different business entities can also be belonging respectively to, it is not limited in the embodiment of the present invention.

In one embodiment, the node device 101 in the virtual resource statistical system can be the node of order side Equipment that is to say that the node device is the server of ordering system, which can be based under the user of ordering system Single operation and delivery operation etc., Lai Shengcheng resource order, and information is generated based on the order of the resource order, in block linkwork A series of processing is carried out based on this resource order in system, by this resource order and corresponding resource associations.

In one embodiment, the node device 101 in the virtual resource statistical system can be associated with ordering system, It that is to say, after ordering system generates resource order, the order of resource order can be generated into information and be sent to associated node Equipment, the node device can generate information based on the order of the resource order, be ordered in block catenary system based on this resource It is single to carry out a series of processing, by this resource order and corresponding resource associations.

In one embodiment, the node device 101 in the virtual resource statistical system can not be closed with ordering system The order of resource order can be generated information and be sent to virtual resource department of statistic by connection after ordering system generates resource order System, received by any node equipment in virtual resource statistical system, the node device receive order generate information after, Information can be generated based on the order of the resource order, a series of place is carried out based on this resource order in block catenary system Reason, by this resource order and corresponding resource associations.

For the node device in any of the above-described kind of embodiment, after receiving order and generating information, by order The transaction data that information is converted to resource order is generated, and by way of broadcasting in block catenary system, so that block linkwork System can be stored transaction data to block chain by common recognition mechanism, and further, node device can be according to transaction data Contract data is generated, to realize the function that is shifted to the relevant virtual resource of transaction data, which can be with Contract program is executed automatically according to specified conditions (such as any operation behavior), is to realize the important of service logic using block chain Approach.Further, each node device can also quit the subscription of information based on the order when receiving order and quitting the subscription of information, right Generated contract and the virtual resource generated carry out the processing such as contract calcellation and virtual resource calcellation.

Destination server 102 is used for the relevant information based on stored resource order, to verify transaction data and move back Order the true and false of data, so as on block catenary system with the transaction data or quit the subscription of data associated contract data triggering be provided Condition, to realize the transfer or calcellation of virtual resource.Wherein, the correlation for the resource order which is stored Information can be provided by ordering system, for example, ordering system generates information in the order for sending resource order to node device When, the order that the resource order or resource order can be sent to destination server generates information.It should be noted that order system Uniting can be while sending to the transmission of node device and destination server, be also possible to be spaced certain time length transmission, the duration As long as setting meet destination server node device start request order is verified before be stored with corresponding money The relevant information of source order, the embodiment of the present invention to specific duration without limitation.

For the transaction initiator of any resource order, the node device of virtual resource statistical system can be the transaction Initiator generates a user account address, with that is to say the user account that transaction initiator is generated in block catenary system Location, so as to the unique identification resource order.

For any resource publisher, when resource issues or is online, it can be sent to virtual resource statistical system Resource publication request, the resource publication request can carry the resource identification of resource to be released, for example, film number is (such as IMDB number), it is, of course, also possible to the place mark (such as film plays movie theatre number) of the resource be carried, when virtual resource counts System receives the resource publication request, then can generate the account address in its block catenary system for the resource, that is to say, Corresponding account address is generated for the resource identification in block catenary system, is resettled between account address and the resource identification Mapping relations, so that the subsequent transaction data about the resource, resource can be carried out based on the account address of the resource and is turned It moves, and then carries out corresponding resource statistics.For example, can be the film in area for issued resource is a certain film Safeguard corresponding account address in block catenary system, and the virtual resource quantity (such as shadow coin number) stored in account address, It that is to say the box office statistical result of the film.

Fig. 2 is a kind of flow chart of resource transfers method provided in an embodiment of the present invention.Referring to fig. 2, this method can answer For the node device in block catenary system, this method comprises:

201, the order that first node equipment receives first resource order generates information, which corresponds to money Source.

Wherein, which includes the resource letter for initiating the user identifier of order transaction, client public key, resource Breath, order number, order denomination and transaction journal mark.The user identifier can be user's used user's mark when placing an order Know, resource can refer to any resource to be counted, and resource information can refer to that (such as resource is compiled for the resource identification of the resource Number), the entry-into-force time (such as play time of film), the resource place mark (for example, number of movie playback movie theatre) etc. Deng.The order number can refer to the information that the unique identification order is used in ordering system, and order denomination is used to indicate to this The real consumption of resource, transaction journal mark can refer to the flowing water mark of bank's flowing water mark or any transaction platform, Resource conversion for the unique identification resource order.

For example, when user User1 has purchased the viewing ticket of film " XXX " in some booking platform, the booking platform Server can after trading successfully, to virtual resource statistical system send the User1 Ticketing information (i.e. order generate letter Breath), the node device in the virtual resource statistical system, as first node equipment receives the Ticketing information.

202, the user identifier that the order generates the initiator that trades in information is converted to the block by the first node equipment User account address in catenary system, obtains the transaction data of the first resource order.

In a kind of possible embodiment, the transaction data include initiate order transaction user account address, this first The account address of resource corresponding to resource order, the place mark of resource and transaction journal mark.

In embodiments of the present invention, for any counterparty, block catenary system is that it distributes a user account address, To carry out relationship trading based on the user account address in block catenary system.Letter is generated when node device gets order When breath, the user identifier can be extracted, and generates user account address at random for it, certainly, which can also basis User identifier, obtains the user account address for having mapping relations with the user identifier, and the embodiment of the present invention sets specific node It is standby how to obtain user account address without limitation.Optionally, the resource information of the resource in information, node are generated for order Equipment can also convert the resource information, to obtain the account address of the resource, in subsequent carry out resource transfers. Certainly, in order to guarantee unification that data in block catenary system indicate, other data in order information can accordingly be turned It changes, the embodiment of the present invention is not specifically limited in this embodiment.

203, first node equipment broadcasts the transaction data of the first resource order in block catenary system.

The first node equipment can be propagated to the transaction data multiple in block catenary system by way of broadcast Second node equipment, each second node equipment can be based on first after the transaction data for receiving the first resource order The transaction data of resource order, to participate in subsequent common recognition process, in embodiments of the present invention, only with the angle of first node equipment Degree is to describe whole process.

204, first node equipment is raw in the corresponding user account address of the first resource order according to the transaction data At destination virtual resource, step 205 and 206, the order denomination in the quantity of the destination virtual resource and the transaction data are executed It is corresponding.

The step 204 can specifically include: according to the order denomination in the transaction data, destination virtual resource is generated, it will The destination virtual resource is stored into the user account address, and the quantity of the destination virtual resource is equal with the order denomination.For Achieve the purpose that virtual resource counts, after any resource order generates, first node equipment can exist for the resource order The virtual resource equal with order denomination is generated in block catenary system.Numerical value is excessive when certainly, in order to avoid counting, destination virtual The quantity of resource is corresponding with the order denomination in the transaction data, for example, the quantity of destination virtual resource and order denomination at Ratio.For example, film denomination is 100 yuan, then according to the ratio of 10:1, the quantity for generating shadow coin is 10.

The order denomination in transaction data is represented by the quantity of above-mentioned destination virtual resource, so that in block catenary system The virtual resource quantity counted on is able to reflect the practical denomination of order, so that subsequent counted on virtual resource quantity Accurately, not statistical uncertainty situation will not be caused due to price fluctuation.

It, can also be by the generation of destination virtual resource after the generation of destination virtual resource in a kind of possible embodiment Information is broadcast on other node devices, can then be executed after being verified by the verifying that each node device carries out basis Such as the verification process of step 206, come determine virtual resource generation validity.

205, first node equipment generates the first contract data in the block catenary system, which includes should The jump condition of transaction data, the first contract account address and the destination virtual resource, the first contract account address are used In providing virtual resource storage service for the first resource order.

Resource involved in the embodiment of the present invention has certain timeliness, that is to say, after the behavior of ticket booking occurs, It is scheduled be a certain movable right to participate in that can start to carry out at some following time point, then, before arrival time point, It is likely to occur the case where quitting the subscription of, therefore, this resource characteristics can be based on, by intelligent contract on block chain, to be based on Processing to the resource order executes corresponding step.

The first contract account address in the embodiment of the present invention can be the contract account generated for first contract data Address, the first contract account address refer to for providing virtual resource storage service for the first resource order: first conjunction About account address is for keeping in the destination virtual resource being transferred to, and the first resource according to corresponding to the first contract data The state of order produces operation or calcellation operation to destination virtual resource to execute.

It should be noted that the first contract account address can also be some pre-generated conjunction in block catenary system About account address, for any one resource order, corresponding to contract account address be it is same, each resource is ordered It is single to share a contract account address, avoid the waste of address resource.

In embodiments of the present invention, the jump condition of the destination virtual resource can be with are as follows: reaches the first resource order In resource play time when, the order status of the first resource order is that order is effective.It that is to say, reach the first resource Before resource play time in order, the data of quitting the subscription of to the first resource order are not received, then execute resource transfers step Suddenly.Resource transfers can be constrained in above-mentioned jump condition, and only in resource play time, the resource order is also effective, are not moved back It orders, resource transfers can be carried out, to avoid data fabrication.By taking box office receipts as an example, pass through above-mentioned first contract data pair The constraint of jump condition, if someone is returned ticket using the time difference between vote buying and beginning, which will not be united Meter, so as to prevent false box office, is able to reflect true box office.

Certainly, which can also include order status, for example, when receive quit the subscription of data when, by this Order status in one contract data is set to the state of quitting the subscription of, to indicate that the resource order has been quit the subscription of.

206, first node equipment sends the first checking request to destination server, and first checking request is for request pair The first resource order is verified, which is stored with generated first resource order.

207, when destination server receives first checking request, which is verified, when this When destination server passes through the first resource Firm Order, destination server is verified to first node equipment transmission to disappear Breath.

208, after first node equipment, which receives this, is verified message, by the destination virtual resource from the user account Address is transferred in the first contract account address.

In a kind of possible implementation, which can be according to the transaction flow of stored first resource order Water gauge is known to verify, when the transaction journal mark of first resource order entrained in the first checking request and stored first The transaction journal mark of resource order is identical, it is determined that the first resource order is true order, and returns to first node equipment It returns and is verified message, allow first node equipment in the transfer for carrying out destination virtual resource, the first contract account address An intermediate function is played, destination virtual resource can be temporarily stored.If transaction journal mark is different, illustrate the resource Order and non-genuine order, then first node equipment will be without diverting the aim the step of virtual resource to the first contract account address Suddenly, so as to avoid the situation for inaccuracy statistically occur.Optionally, above-mentioned verification process may include: destination server from Entrained order note identification and transaction journal mark are extracted in first checking request, according to order note identification, from stored resource In the relevant information of order, the corresponding relevant information of the order note identification is obtained, by transaction journal entrained by the first checking request The transaction journal mark identified in relevant information corresponding with the order note identification is compared.Certainly, above-mentioned verifying can also lead to Order note identification is crossed to carry out, for example, the destination server can be verified with order note identification entrained by the first checking request, works as mesh Mark server has been stored with order note identification entrained in first checking request, it is determined that the first resource order is true Order, and message is verified to the return of first node equipment.

It should be noted that any one node device for receiving transaction data can carry out in block catenary system The verification process of above-mentioned steps 206 to 208, to verify the authenticity for the transaction data that oneself interlocking receives, the present invention is implemented Example is only illustrated by taking the interactive process between first node equipment and destination server as an example.

It, can be to avoid means such as brush tickets to virtual resource above by the verifying that transaction journal mark or order note identification carry out The influence of statistic processes greatly improves the accuracy rate of statistics.It certainly, can also be without upper in a kind of possible embodiment The verification process stated, but the step of directly executing destination virtual resource transfers to the first contract account address, it is whole to simplify The virtual resource statistical flowsheet of body, the embodiment of the present invention using which kind of implementation to specifically being realized without limitation.

209, when the order status of the first resource order meets the transfer of the destination virtual resource in the first contract data When condition, by the destination virtual resource transfers in the first contract account address into the account address of the resource.

Order status includes order effectively and quits the subscription of state, if order status is that order is effective, it is determined that order status Meet the jump condition of the destination virtual resource in the first contract data, corresponding destination virtual resource is authentic and valid, then may be used With by the destination virtual resource transfers in the first contract account address into the account address of the resource.

This judges whether order status meets the process of jump condition can be there are many implementation, for example, when reaching money It, can be with each contract data of the poll resource associations, to determine whether order status meets conjunction when the resource play time in source Jump condition about in data can be for another example each conservation of resources order status table, when the resource play time for reaching resource Before, have received and quit the subscription of data, then based on quit the subscription of data in order status table to the order status of each resource order It is marked, when reaching the resource play time of resource, the order status table can be inquired, to determine whether order status is full Jump condition in sufficient contract data, the embodiment of the present invention are not specifically limited in this embodiment.

It should be noted that in order to avoid the abuse to virtual resource, in the block catenary system, the initiation order transaction User account address is in addition to having storage destination virtual resource and carrying out virtual resource transfer to the first contract account address Other than function, without to other than the first contract account address account address carry out virtual resource transfer function, It is that, as order transaction side is initiated, which is only able to carry out above-mentioned primary transfer, and the target account shifted It can be only the first contract account address, and in order to avoid resource publisher is to the abuse of virtual resource in account address, it is providing After the account address in source generates, only lack in the public key that resource publisher side saves account address without saving its private key The confirmation of private key, the account address of the resource do not have the function of producing virtual resource, any produce transaction without can be carried out.

The transaction data storing process of above-mentioned block catenary system also relates to common recognition process, for example, being packaged to transaction data Upper chain process after generating block and passing through to block common recognition, the processes such as above-mentioned packing can be real using any common recognition mechanism Existing, the present invention, which is not done, specifically to be repeated.

The embodiment of the present invention is converted real-life resource order in block catenary system by using block chain Virtual resource and contract data, and using the jump condition in contract data, to constrain the transfer of virtual resource, due to area Record on block chain can not be modified, and have very strong trackability, thus it is guaranteed that virtual resource statistical accuracy, avoids False statistics.Further, real-time order denomination is reacted by the quantity of virtual resource, so that the statistics of virtual resource It is based on subject to real-time deal, it is further provided statistical accuracy.Further, it additionally provides and is identified based on transaction journal Verifying to resource order authenticity, avoids the influence of artificial means, is also capable of providing virtual resource statistical accuracy.

In the above-described embodiments, it that is to say, first resource by first resource order there is no being illustrated for quitting the subscription of The order status of order is that order is effective, then by the account address of destination virtual resource transfers to resource, and in some embodiments In, it may occur that situations such as order is quit the subscription of then in this case is illustrated by taking embodiment shown in Fig. 3 as an example below:

301, second node equipment receives the unsubscription request of Secondary resource order.

Wherein, which at least carries the order note identification of Secondary resource order, and second node equipment can be according to this Order note identification, to inquire corresponding second contract data of order note identification.

The second node equipment can be the server of seat reservation system, that is to say, user can be initiated by seat reservation system For the ticket booking behavior of Secondary resource order, to trigger the unsubscription request of Secondary resource order.Certainly, the second node equipment It can also be not belonging to seat reservation system, but execute step 302 based on unsubscription request transmitted by seat reservation system, do not do have herein Body limits.

302, the second node equipment is according to the unsubscription request, and that initiates the Secondary resource order quits the subscription of transaction, this is moved back The target transaction account for pledging friendship easy is the second contract account address, which is used to be the Secondary resource order Virtual resource storage service is provided.

The initiator for quitting the subscription of transaction can be the user account address in Secondary resource order, and recipient is the second money The second contract account address in corresponding second contract data of source order.Second node equipment can receive unsubscription request Afterwards, the virtual resource of preset quantity is generated, and initiates to quit the subscription of transaction based on virtual resource generated.It should be noted that The virtual resource does not represent any real value, is only used for expressing certain amount in block catenary system.

For example, second node equipment automatically generates 0.01 shadow coin when user returns ticket, initiate to the second contract account address Transaction.

It should be noted that above-mentioned first contract account address and the second contract account address can be the same address, It that is to say, for any one resource order, a contract account address can be shared, it, can when guaranteeing to initiate to quit the subscription of transaction Determine specific transacting targeted account.Certainly, which can also be different from the first contract account address, this Inventive embodiments do not limit this.

303, the second node equipment broadcasts this in block catenary system and quits the subscription of transaction, other nodes in block catenary system Equipment receives this and quits the subscription of transaction, quits the subscription of transaction to this and carries out common recognition process.

304, when the block catenary system, which quits the subscription of transaction common recognition to this, to be passed through, the second verifying is sent to destination server and is asked It asks, which verifies the Secondary resource order for requesting.

305, when destination server receives second checking request, which is verified, when this When destination server passes through the Secondary resource Firm Order, destination server is verified to second node equipment transmission to disappear Breath.

Wherein, information entrained in the second checking request can be identical with the first checking request, the embodiment of the present invention pair This is without limitation.Involved in the verification process and above-described embodiment of above-mentioned steps 304 to 305 similarly, it does not do herein superfluous yet It states.

306, after second node equipment, which receives this, is verified message, friendship is quit the subscription of to this according to second contract data Easily verified.

Due to storing the transaction data of resource order in the second contract data, the second contract data can be based on Come to quit the subscription of transaction further verified, with guarantee do not occur statistics make mistakes, it is alternatively possible to based on the friendship for quitting the subscription of transaction The information such as easy initiator are compared with the transaction data in the second contract data, when comparison is consistent, for example, user account address Identical, transaction journal mark is identical, and resource information is mutually same, it is determined that this is quit the subscription of transaction verification and passes through, if there is any one is believed Breath is different, then may there is a situation where virtual resources to distort, then transaction is quit the subscription of to this and recorded, distort row to trace this For, and determine that its verifying does not pass through.

307, when being verified, second node equipment will be marked with associated second contract data of the Secondary resource order To quit the subscription of state, the destination virtual resource in the second contract account address of second contract data is cancelled.

Due to storing the transaction data of resource order in the second contract data, the second contract data can be based on Come to quit the subscription of transaction further verified, with guarantee do not occur statistics make mistakes, it is alternatively possible to based on the friendship for quitting the subscription of transaction The information such as easy initiator are compared with the transaction data in the second contract data, when comparison is consistent, for example, user account address Identical, transaction journal mark is identical, and resource information is mutually same, it is determined that this is quit the subscription of transaction verification and passes through, then can close second Order status about in data is set to the state of quitting the subscription of, and the destination virtual resource in the second contract account address is cancelled, with Avoid the destination virtual resource by error statistics.

By above-mentioned resource transfers method, transfer of the virtual resource to the account address of resource may be implemented, so that will belong to It can be put together in the virtual resource of some resource, thus, it is also possible to a kind of real-time querying method be provided, below with Fig. 4 Shown in process the querying method is introduced:

401, third node device receives the first inquiry request, and the inquiry request carries resource identification to be checked.

The resource identification is used for one resource of unique identification, which can be any expression way, the present invention Embodiment does not limit this.

402, the resource identification that first inquiry request carries is mapped as block linkwork by the third node device Resource account address in system, obtains the second inquiry request.

Due to being in the form of resource account address in block catenary system come the virtual resource quantity for safeguarding each resource, because This, third node device can be converted the first inquiry request by way of mapping, to obtain that area can be suitable for Second inquiry request of block catenary system.

403, the third node device obtains virtual in the resource account address in response to second inquiry request Resource excess.

Third node device resource account address according to entrained by the second inquiry request, in the area of block catenary system It is inquired on block chain, to obtain the virtual resource surplus of the resource account address, certainly, safeguarding on third node device has It when credit, can also be inquired from credit based on resource account address, more than the account safeguarded in credit Volume is updated based on the data that the block passed through is stored of having known together, and therefore, the data in account table also have The characteristic that can not be distorted can guarantee that the accuracy of virtual resource surplus, the embodiment of the present invention are not specifically limited in this embodiment.

404, the third node device is based on the virtual resource surplus, exports query result.

The virtual resource surplus that the third node device can be obtained based on inquiry, provides query result for user, with reality When and intuitive provide the inquiry of virtual resource for user.

Certainly, for third node device, the inquiry of the resource account address be can be based on certain permission, example Such as, if the search access right is disclosure, any user can obtain the statistical result of virtual resource by the inquiry, and such as Fruit search access right is to be only oriented to some user, such as the publisher user of the resource, then can also relate in inquiry to power The processes such as the verifying of limit, the embodiment of the present invention do not repeat them here this.

Above-mentioned query process provides a kind of virtual resource querying method accurate in real time, due to block catenary system itself The characteristic that can not be distorted having can guarantee the authenticity and reliability of inquiry.

All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.

Illustrate the present invention in order to clearer, illustrates the whole realization stream of the resource transfers method with an example below Journey referring to Fig. 5, the Fig. 5 is illustrated by taking film ticket as an example, and film distribution side, can be by with film ticket in distribution The client of room function is issued, and to create the film account address of the film, and user can be by having the function of order Client carry out booking, it is produced in above process to trigger the generation of shadow coin and contract by the order function Transaction data can store to block chain, also, the generation of shadow coin can also be by between block chain and authentication function Interaction is to confirm, and when user quits the subscription of, can by it is above-mentioned have order unifunctional client and quit the subscription of, and trigger Intelligent contract is modified order status, and generated shadow coin is cancelled, and in this process, verifying function module also can Based on the instruction of block chain, the order quit the subscription of is verified.Certainly, if the normal viewing of user, does not trigger and quit the subscription of, then when Film curtain time is reached, then can be gone to shadow coin in film account address, and film distribution side can pass through film box office Function carries out box office inquiry, thus based on the account balance in the film account address, to know real-time box office.

Fig. 6 is a kind of structural schematic diagram of resource transfers device provided in an embodiment of the present invention, is applied to block catenary system In node device on, referring to Fig. 6, described device includes:

Module 601 is obtained, for obtaining the transaction data of first resource order, the first resource order corresponds to money Source;

Generation module 602 is used for according to the transaction data, in the corresponding user account address of the first resource order The quantity of middle generation destination virtual resource, the destination virtual resource is corresponding with the order denomination in the transaction data;

The generation module 602 is also used to generate the first contract data, first contract in the block catenary system Data include the jump condition of the transaction data, the first contract account address and the destination virtual resource, and described first Contract account address is used to provide virtual resource storage service for the first resource order;

Shift module 603 is closed for the destination virtual resource to be transferred to described first from the user account address About in account address;

The shift module 603 is also used to meet institute in the first contract data when the order status of the first resource order When stating the jump condition of destination virtual resource, by the destination virtual resource transfers in the first contract account address to the money In the account address in source.

Optionally, generation module 602, for generating destination virtual money according to the order denomination in the transaction data Source stores the destination virtual resource into the user account address, and the quantity of the destination virtual resource is ordered with described Single side volume is equal.

Optionally, the order which is used to receive the first resource order generates information;By the order The user identifier for generating the initiator that trades in information is converted to the user account address in the block catenary system, obtains described the The transaction data of one resource order.

Optionally, which further includes the first authentication module, described for sending the first checking request to destination server First checking request verifies the first resource order for requesting, and the destination server is stored with generated the One resource order;

When the destination server passes through the first resource Firm Order, execution is described to provide the destination virtual Source is transferred to the step in the first contract account address from the user account address.

Optionally, the jump condition of the destination virtual resource are as follows: broadcast in the resource reached in the first resource order When putting the time, the order status of the first resource order is that order is effective.

Optionally, device further include: module is quit the subscription of, for receiving the unsubscription request of Secondary resource order;According to described Unsubscription request, initiates the transaction of quitting the subscription of of the Secondary resource order, and the target transaction account for quitting the subscription of transaction is the second contract Account address, the second contract account address are used to provide virtual resource storage service for the Secondary resource order;It is based on It is described to quit the subscription of transaction, it will be with associated second contract data of the Secondary resource order labeled as state is quit the subscription of, by described second Destination virtual resource in contract account address is cancelled.

Optionally, the device further include: the second authentication module, for sending the second checking request, institute to destination server State the second checking request for request the Secondary resource order is verified;When the destination server is to second money When source Firm Order passes through, executes and quit the subscription of transaction based on described, it will be with associated second contract data of the Secondary resource order Labeled as the step of quitting the subscription of state, the destination virtual resource in the second contract account address cancelled.

Optionally, which further includes third authentication module, for quitting the subscription of number to described according to second contract data It according to being verified, when being verified, executes and quits the subscription of transaction based on described, will be closed with the Secondary resource order associated second The step of about data are labeled as quitting the subscription of state, the destination virtual resource in the second contract account address being cancelled.

Optionally, the transaction data includes the user account address for initiating order transaction, the first resource order institute The account address of corresponding resource, the place mark of resource and transaction journal mark.

Optionally, the user account address for initiating order transaction only has the destination virtual resource transfers to institute State the function in the first contract account address;The account address of the resource only has the function of that receiving virtual resource is transferred to.

It should be understood that resource transfers device provided by the above embodiment is in resource transfers, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, resource transfers embodiment of the method provided by the above embodiment belongs to same design, specific implementation process is detailed in method Embodiment, which is not described herein again.

Fig. 7 is a kind of structural schematic diagram of resource query device provided in an embodiment of the present invention, is applied to block catenary system In node device on, referring to Fig. 7, described device includes:

Receiving module 701, for receiving the first inquiry request, the inquiry request carries resource identification to be checked;

Mapping block 702, the resource identification for carrying first inquiry request are mapped as block catenary system In resource account address, obtain the second inquiry request;

Module 703 is obtained, for obtaining the virtual money in the resource account address in response to second inquiry request Source surplus;

Output module 704 exports query result for being based on the virtual resource surplus.

Optionally, which further includes release module, and for receiving resource publication request, the resource publication request is carried Resource identification;Resource account corresponding with resource identification address is generated in block catenary system;Establish the resource account Mapping relations between address and the resource identification.

Fig. 8 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention, which can be because Configuration or performance are different and generate bigger difference, may include one or more processors (central Processing units, CPU) 801 and one or more memory 802, wherein it is stored in the memory 802 At least one instruction, at least one instruction are loaded by the processor 801 and are executed to realize that above-mentioned each embodiment of the method mentions The method of confession.Certainly, which can also have wired or wireless network interface, keyboard and input/output interface etc. Component, to carry out input and output, which can also include other components for realizing functions of the equipments, herein not It repeats.

In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the memory for example including instruction, Above-metioned instruction can be executed by the processor in terminal to complete resource transfers method or the resource query method in above-described embodiment. For example, the computer readable storage medium can be read-only memory (Read-Only Memory, ROM), random access memory Device (Random Access Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), Tape, floppy disk and optical data storage devices etc..

Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, which can store in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..

It above are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all in the spirit and principles in the present invention Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of resource transfers method, which is characterized in that applied on the node device in block catenary system, the method packet It includes:
The transaction data of first resource order is obtained, the first resource order corresponds to resource;
According to the transaction data, destination virtual resource is generated in the corresponding user account address of the first resource order, The quantity of the destination virtual resource is corresponding with the order denomination in the transaction data;
The first contract data is generated in the block catenary system, first contract data includes the transaction data, first The jump condition of contract account address and the destination virtual resource, the first contract account address are used to be described first Resource order provides virtual resource storage service;
The destination virtual resource is transferred in the first contract account address from the user account address;
When the order status of the first resource order meets the jump condition of destination virtual resource described in the first contract data When, by the destination virtual resource transfers in the first contract account address into the account address of the resource.
2. the method according to claim 1, wherein described according to the transaction data, in the first resource Destination virtual resource, the quantity of the destination virtual resource and the transaction data are generated in the corresponding user account address of order In order denomination corresponding include:
According to the order denomination in the transaction data, destination virtual resource is generated, the destination virtual resource is stored to institute It states in user account address, the quantity of the destination virtual resource is equal with the order denomination in the transaction data.
3. the method according to claim 1, wherein the transaction data for obtaining first resource order includes:
The order for receiving the first resource order generates information;
The user identifier that the order generates the initiator that trades in information is converted into the user account in the block catenary system Address obtains the transaction data of the first resource order.
4. the method according to claim 1, wherein the method also includes:
To destination server send the first checking request, first checking request for request to the first resource order into Row verifying, the destination server are stored with generated first resource order;
When the destination server passes through the first resource Firm Order, execute it is described by the destination virtual resource from The user account address is transferred to the step in the first contract account address.
5. the method according to claim 1, wherein the jump condition of the destination virtual resource are as follows: reach When resource play time in the first resource order, the order status of the first resource order is that order is effective.
6. the method according to claim 1, wherein the method also includes:
Receive the unsubscription request of Secondary resource order;
According to the unsubscription request, the transaction of quitting the subscription of of the Secondary resource order, the target transaction account for quitting the subscription of transaction are initiated Family is the second contract account address, and the second contract account address is deposited for providing virtual resource for the Secondary resource order Storage service;
Transaction is quit the subscription of based on described, will be labeled as quitting the subscription of state with associated second contract data of the Secondary resource order, it will Destination virtual resource in the second contract account address is cancelled.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
To destination server send the second checking request, second checking request for request to the Secondary resource order into Row verifying;
When the destination server passes through the Secondary resource Firm Order, executes and quit the subscription of transaction based on described, it will be with institute Associated second contract data of Secondary resource order is stated labeled as state is quit the subscription of, by the target in the second contract account address The step of virtual resource cancels.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
The data of quitting the subscription of are verified according to second contract data, when being verified, executes and is quit the subscription of based on described Transaction, will be with associated second contract data of the Secondary resource order labeled as state is quit the subscription of, by the second contract account The step of destination virtual resource in address is cancelled.
9. the method according to claim 1, wherein the transaction data includes the user's account for initiating order transaction The account address of resource corresponding to family address, the first resource order, the place mark of resource and transaction journal mark.
10. being closed the method according to claim 1, wherein the user account address does not have to described first Account address about other than account address carries out the function of virtual resource transfer;The account address of the resource does not have virtual money Produce function in source.
11. a kind of resource query method, which is characterized in that applied to the node device in block catenary system, comprising:
The first inquiry request is received, the inquiry request carries resource identification to be checked;
The resource identification that first inquiry request carries is mapped as the resource account address in block catenary system, is obtained Second inquiry request;
In response to second inquiry request, the virtual resource surplus in the resource account address is obtained;
Based on the virtual resource surplus, query result is exported.
12. according to the method for claim 11, which is characterized in that the method also includes:
Resource publication request is received, the resource publication request carries resource identification;
Resource account corresponding with resource identification address is generated in the block catenary system;
Establish the mapping relations between the resource account address and the resource identification.
13. a kind of resource transfers device, which is characterized in that applied on the node device in block catenary system, described device packet It includes:
Module is obtained, for obtaining the transaction data of first resource order, the first resource order corresponds to resource;
Generation module, for being generated in the corresponding user account address of the first resource order according to the transaction data The quantity of destination virtual resource, the destination virtual resource is corresponding with the order denomination in the transaction data;
The generation module is also used to generate the first contract data in the block catenary system, and first contract data includes The jump condition of the transaction data, the first contract account address and the destination virtual resource, the first contract account Address is used to provide virtual resource storage service for the first resource order;
Shift module, for by the destination virtual resource from the user account address with being transferred to the first contract account In location;
The shift module is also used to meet target described in the first contract data when the order status of the first resource order When the jump condition of virtual resource, by the account of the destination virtual resource transfers in the first contract account address to the resource In the address of family.
14. a kind of computer equipment, which is characterized in that the computer equipment includes processor and memory, the memory In be stored at least one instruction, described instruction is loaded by the processor and is executed to realize as claim 1 to right is wanted Seek 10 described in any item resource transfers methods or such as any one of claim 11 and claim 12 resource query method Performed operation.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Item instruction, described instruction are loaded as the processor and are executed to realize as described in claim 1 to any one of claim 10 Resource transfers method or the operation as performed by any one of claim 11 and claim 12 resource query method.
CN201811446276.7A 2018-11-29 2018-11-29 Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing CN109559228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811446276.7A CN109559228A (en) 2018-11-29 2018-11-29 Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811446276.7A CN109559228A (en) 2018-11-29 2018-11-29 Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109559228A true CN109559228A (en) 2019-04-02

Family

ID=65867889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811446276.7A CN109559228A (en) 2018-11-29 2018-11-29 Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109559228A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738473A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Processing method, device, equipment and system for ticket booking service
CN111966538A (en) * 2020-10-20 2020-11-20 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220820A (en) * 2017-05-16 2017-09-29 腾讯科技(深圳)有限公司 Resource transfers method, device and storage medium
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107992621A (en) * 2017-12-22 2018-05-04 杭州云象网络技术有限公司 A kind of intelligent cinematic industry service system based on block chain multichain technological incorporation
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN108876497A (en) * 2017-05-11 2018-11-23 腾讯科技(深圳)有限公司 Resource transfers method, apparatus and third-party server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876497A (en) * 2017-05-11 2018-11-23 腾讯科技(深圳)有限公司 Resource transfers method, apparatus and third-party server
CN107220820A (en) * 2017-05-16 2017-09-29 腾讯科技(深圳)有限公司 Resource transfers method, device and storage medium
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN107992621A (en) * 2017-12-22 2018-05-04 杭州云象网络技术有限公司 A kind of intelligent cinematic industry service system based on block chain multichain technological incorporation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738473A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Processing method, device, equipment and system for ticket booking service
CN111966538A (en) * 2020-10-20 2020-11-20 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device

Similar Documents

Publication Publication Date Title
US10719819B2 (en) Application of dynamic tokens
US10147076B2 (en) Digital currency (virtual payment cards) issued by central bank for mobile and wearable devices
CN105809062B (en) A kind of building of contract executes method and device
US20200134720A1 (en) Transmission latency leveling apparatuses, methods and systems
JP2017216019A (en) Online settlement method and device
JP2018525729A (en) Computationally efficient transfer processing, auditing and searching apparatus, method and system
US9092945B2 (en) Systems and methods for operating lottery games including player-designated beneficiaries and conditional payout distribution
WO2019100865A1 (en) Resource transfer and capital transfer method and apparatus
WO2019019490A1 (en) Method and system for paying transaction cost in blockchain network
CN103858141B (en) Payment devices with integrated chip
US10600285B2 (en) Method and system for gaming revenue
AlGhamdi et al. Factors Influencing e‐commerce Adoption by Retailers in Saudi Arabia: a qualitative analysis
US20150363768A1 (en) System and method for rendering virtual currency related services
US20170046680A1 (en) Peer-to-Peer Internet Shopping Marketplaces
KR100717590B1 (en) Virtual asset trading system in internet and method thereof
CN107864198A (en) A kind of block chain common recognition method based on deep learning training mission
JP3357812B2 (en) Mutual credit server device and distributed mutual credit system
CN106327173A (en) Network payment method and network payment device
Sas et al. Exploring trust in Bitcoin technology: a framework for HCI research
US20070066397A1 (en) System and method for event invitation
AU2019203081A1 (en) Techniques for facilitating electronic trading
US10217320B2 (en) Products and processes for a point exchange
CN104052731A (en) Alias-Based Social Media Identity Verification method and system
TWM543413U (en) Web lending platform using technology of blockchain for deal
JP2018055203A (en) Data management system, information processing device, program, data management method, and data structure

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