CN110517047A - Virtual objects calling processing method, device and equipment and medium based on block chain - Google Patents

Virtual objects calling processing method, device and equipment and medium based on block chain Download PDF

Info

Publication number
CN110517047A
CN110517047A CN201910833591.3A CN201910833591A CN110517047A CN 110517047 A CN110517047 A CN 110517047A CN 201910833591 A CN201910833591 A CN 201910833591A CN 110517047 A CN110517047 A CN 110517047A
Authority
CN
China
Prior art keywords
virtual objects
call
intelligent contract
call request
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910833591.3A
Other languages
Chinese (zh)
Inventor
王星雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910833591.3A priority Critical patent/CN110517047A/en
Publication of CN110517047A publication Critical patent/CN110517047A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of virtual objects calling processing method, device and equipment and medium based on block chain, comprising: receives the call request for calling virtual objects, and determines the corresponding object invocation type of call request;Obtaining the first intelligent contract described in the first intelligent contract is the intelligent contract generated according to the corresponding default call type of each unit of the virtual objects;When determining that object invocation type is consistent with default call type based on the described first intelligent contract, then allow to respond call request.The pre-generated intelligent contract of the application, after getting the call request to virtual objects, request corresponding call type whether consistent with the call type in intelligent contract for determining, only allow to respond call request when call type is consistent, unified believable running environment is provided using the intelligent contract technology in block chain, convenient for supervision and management, the risk of contract distorting and forging behavior, reduce in calling process is avoided.

Description

Virtual objects calling processing method, device and equipment and medium based on block chain
Technical field
This application involves block chain technical fields, call more specifically to a kind of virtual objects based on block chain Processing method, device and a kind of electronic equipment and a kind of computer readable storage medium.
Background technique
It is increasingly mature with Internet technology, virtual objects using more and more extensive.Virtual objects refer to virtual world In article, may include supplementing all kinds of articles such as coin, cash equivalent coin, red packet, network flow with money, type can be according to the virtual objects Application type in the specific implementation scenario carries out dynamically flexibly setting, and is transmitted without logistics, compared to physical objects Product have great flexibility and convenience, to be liked by user.
In the conventional technology, usually pass through verbal contract, papery contract or logical when being called for above-mentioned virtual objects The mode for crossing third-party platform signing network contract controls the calling of the virtual objects, however this control mode is difficult to Realize the supervision to calling process, there are the security risks of operation loophole and platform itself that platform may fake, it is likely that Will appear malice and the behaviors such as break one's promise or cheat, can not the calling to virtual objects effectively controlled.
Therefore, how to solve the above problems is that those skilled in the art need to pay close attention to.
Summary of the invention
In view of this, the application's is designed to provide a kind of virtual objects calling processing method based on block chain, dress It sets and a kind of electronic equipment and a kind of computer readable storage medium, exercises supervision and manage convenient for the calling process to virtual objects Reason, and avoid and the behaviors such as distort and forge to treaty content, effectively reduce the risk in virtual objects calling process.Its Concrete scheme is as follows:
To achieve the above object, the application first aspect provides a kind of virtual objects calling processing side based on block chain Method, comprising:
Call request is received, and determines the corresponding object invocation type of the call request;The call request is virtual The request for being used to call the virtual objects that article owning user is initiated;
Obtain the first intelligent contract;Described first intelligent contract is corresponding pre- according to each unit of the virtual objects If the intelligent contract that call type generates;
When determining that the object invocation type is consistent with the default call type based on the described first intelligent contract, then Allow to respond the call request.
It is described to allow to institute in conjunction with the application's in a first aspect, in the first embodiment of the application first aspect It states after call request responded, further includes:
It will be in the corresponding essential information for calling record that the virtual objects are written of the call request;The calling record Including allocating time and call type;The essential information includes user identity information and the institute of the virtual objects owning user State calling record;
The article identification information for determining presently described virtual objects, to the article identification information and the essential information into Row binding, and will binding after essential information cochain.
In conjunction with the first embodiment of the application first aspect, in second of embodiment of the application first aspect In, comprising:
If the call request is the request for being shifted to the virtual objects, true according to the call request Second user account belonging to after the first user account and transfer belonging to before the fixed virtual objects transfer;
The virtual object for including in first user account and the second user account is modified based on the call request Product, and the corresponding user identity information of the virtual objects is modified, complete the transfer of the virtual objects.
In conjunction with the first embodiment of the application first aspect, in the third embodiment of the application first aspect In, it is described by essential information cochain after binding, comprising:
Corresponding block structure data are generated based on essential information after the binding, and by the block structure data broadcasting To block chain network;
The block structure data are saved to the block chain network according to common recognition mechanism.
In conjunction with the application's in a first aspect, in the 4th kind of embodiment of the application first aspect, described in the determination Before the corresponding object invocation type of call request, further includes:
Private key verifying is carried out to the call request;
If the private key for the call request is verified, executes and determine the corresponding object invocation of the call request The step of type.
It is described to obtain first in conjunction with the application's in a first aspect, in the 5th kind of embodiment of the application first aspect After intelligent contract, further includes:
When determining the object invocation type and the inconsistent default call type based on the described first intelligent contract, Then forbid responding the call request, and triggers corresponding alarm prompt;
The second intelligent contract is obtained, corresponding risk is executed based on the described second intelligent contract and the alarm prompt Processing operation;Described second intelligent contract is the intelligence generated previously according to alarm prompt and corresponding risk processing operation Contract.
In conjunction with the first embodiment of the application first aspect, second of embodiment of the application first aspect, sheet Apply for the third embodiment of first aspect, the 4th kind of embodiment of the application first aspect, the application first aspect 5th kind of embodiment, in the 6th kind of embodiment of the application first aspect, the method also includes:
Obtain inquiry request;The inquiry request includes the first inquiry request and/or the second inquiry request;Wherein, described First inquiry request includes user identity information, the virtual objects for being included for inquiring corresponding user account;Described second looks into Request inclusion product identification information is ask, for inquiring the corresponding essential information of the virtual objects;
Corresponding query result is returned according to the identification information that the inquiry request includes.
To achieve the above object, the application second aspect provides a kind of virtual objects calling processing dress based on block chain It sets, comprising:
Determination type module for receiving call request, and determines the corresponding object invocation type of the call request;Institute Stating call request is the request for being used to call the virtual objects that virtual objects owning user is initiated;
Contract obtains module, for obtaining the first intelligent contract;Described first intelligent contract is according to the virtual objects The intelligent contract that generates of the corresponding default call type of each unit;
Ask respond module determines that the object invocation type is preset with described based on the described first intelligent contract for working as When call type is consistent, then allow to respond the call request.
To achieve the above object, the application third aspect provides a kind of electronic equipment, comprising:
Processor and memory;
Wherein, the processor is for executing the program stored in the memory;
For storing program, described program is at least used for the memory:
Call request is received, and determines the corresponding object invocation type of the call request;The call request is virtual The request for being used to call the virtual objects that article owning user is initiated;
Obtain the first intelligent contract;Described first intelligent contract is corresponding pre- according to each unit of the virtual objects If the intelligent contract that call type generates;
When determining that the object invocation type is consistent with the default call type based on the described first intelligent contract, then Allow to respond the call request.
To achieve the above object, the application fourth aspect provides a kind of computer readable storage medium, the computer It is stored with computer program on readable storage medium storing program for executing, is realized when the computer program is executed by processor and is based on block as above-mentioned The step of virtual objects calling processing method of chain.
By above scheme it is found that a kind of virtual objects calling processing method based on block chain provided by the present application, packet It includes: receiving call request, and determine the corresponding object invocation type of the call request;The call request is virtual objects institute Belong to the request that Client-initiated is used to call virtual objects;Obtain the first intelligent contract;Described first intelligent contract is according to institute State the intelligent contract that the corresponding default call type of each unit of virtual objects generates;When true based on the described first intelligent contract When the fixed object invocation type is consistent with the default call type, then allow to respond the call request.By upper It is found that each unit that the application is directed to virtual objects in advance sets the call type of its permission, and generate corresponding first intelligence Energy contract will currently be asked after getting the request being called for virtual objects using the above-mentioned first intelligent contract determination Ask corresponding object invocation type whether consistent with default call type, it is only consistent with default call type in object invocation type When allow to respond current call request, provide unified believable operation using intelligent contract for the calling of virtual objects Environment exercises supervision and manages convenient for the calling process to virtual objects, and avoids distorting and forging to treaty content Behavior effectively reduces the risk in virtual objects calling process.
Disclosed herein as well is a kind of, and the virtual objects based on block chain call processing unit and a kind of electronic equipment and one Kind computer readable storage medium, is equally able to achieve above-mentioned technical effect.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of architecture diagram of the virtual objects calling processing system based on block chain disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow chart of the virtual objects calling processing method based on block chain disclosed in the embodiment of the present application;
Fig. 3 is the process of virtual objects calling processing method of the another kind based on block chain disclosed in the embodiment of the present application Figure;
Fig. 4 is the process of another virtual objects calling processing method based on block chain disclosed in the embodiment of the present application Figure;
Fig. 5 returns the result schematic diagram for a kind of inquiry request disclosed in the embodiment of the present application;
Fig. 6 returns the result schematic diagram for another kind inquiry request disclosed in the embodiment of the present application;
Fig. 7 is a kind of structure chart of the virtual objects calling processing unit based on block chain disclosed in the embodiment of the present application;
Fig. 8 is the structure chart of a kind of electronic equipment disclosed in the embodiment of the present application
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In the conventional technology, usually pass through verbal contract, papery contract when being called for the virtual objects in network Or the calling of above-mentioned virtual objects is controlled in such a way that third-party monitoring platform signs network contract, however this control Mode processed is difficult to realize for the supervision in calling process, may only be faked by the mode of platform maintenance contract there are platform Operate the security risk of loophole and platform itself, it is likely that it will appear and the behaviors such as maliciously break one's promise or cheat, it can not be to virtual object The calling of product is effectively controlled.
In view of the above problem existing at present, the virtual objects calling processing based on block chain that present applicant proposes a kind of Method exercises supervision and manages convenient for the calling process to virtual objects, and avoids distorting and forging to treaty content Behavior effectively reduces the risk in virtual objects calling process.
Virtual objects calling processing method provided by the present application based on block chain in order to facilitate understanding, is used for below System be introduced.Referring to Fig. 1, it illustrates a kind of virtual objects calling based on block chain provided by the embodiments of the present application The architecture diagram of processing system.As shown in Figure 1, including terminal 10, server 20 and block chain node device 30.Wherein, terminal 10 Information input interface can be provided for user on user interface and information is sent by itself preassembled client Trigger unit, and the call request that user inputs is obtained by information input interface.It is touched when information sends trigger unit by the external world After hair, terminal 10 can use the first communication network, and the call request got by information input interface is sent to service Device 20.It is understood that above-mentioned terminal 10 can specifically include but be not limited to be mounted with the smart phone of above-mentioned client, puts down Plate computer, desktop computer or intelligent wearable equipment.
In the application, server 20 specifically can be the server of single network server, multiple network servers composition Group is based on cloud computing cloud consisting of a large number of computers or network servers.Server 20 passes through the first communication network and terminal 10 establish communication connection, after the call request for getting the transmission of terminal 10, by pre-establishing with block chain node device 30 The second communication network above-mentioned call request is forwarded to block chain node device 30, the call flow of virtual objects is unfolded.
In specific implementation, the quantity of the block chain node device 30 in the application can be multiple, it can utilize more A block chain node device 30 forms block chain network.It is understood that the device type of block chain node device 30 can be with Including but not limited to various types of servers, personal computer, handheld terminal etc..Wherein, the class of block chain node device 30 Type can be identical, can not also be identical.For example, it may be some block chain node devices 30 are Cloud Server, other blocks Chain node device 30 is mobile phone terminal etc..
It should be noted that above-mentioned first communication network and the second communication network in the application can be according to practical applications Network status and application demand in the process determines, either wireless communication networks, such as mobile communication network or WiFi net Network etc. is also possible to restricted communication network;Either wide area network, can also use local area network when situation allows.
The embodiment of the present application discloses a kind of virtual objects calling processing method based on block chain, convenient for virtual objects Calling process exercise supervision and manage, and avoid and the behaviors such as distort and forge to treaty content, effectively reduce virtual Risk in article calling process.
It is shown in Figure 2, a kind of virtual objects calling processing method based on block chain provided by the embodiments of the present application, such as Shown in Fig. 2, this method comprises:
S101: receiving call request, and determines the corresponding object invocation type of the call request;The call request is The request for being used to call the virtual objects that virtual objects owning user is initiated;
In the embodiment of the present application, the calling for being used to call virtual objects that user sends is received using block chain node device Request, and then determine the corresponding object invocation type of the call request.Above-mentioned virtual objects can be specially to supplement coin, cash equivalent with money All kinds of articles such as coin, red packet, network flow, type can according to the application type of the virtual objects in the specific implementation scenario into Mobile state setting, for example, the virtual objects in game application may include the stage property for being exclusively used in the game, supplement coin with money etc., In Class software is for example read in function services class software, the virtual objects in class software of doing shopping may include discount coupon, cash equivalent coin, show Golden red packet etc..Specifically, above-mentioned call request is the initiation of current virtual article owning user for owned virtual object The request that product are called, can be specifically used for virtual objects carry out using, transfer etc. operation.
In specific implementation, the terminal that user can be held by itself issues call request to server, and utilizes clothes The call request is forwarded on block chain node device by business device.Block chain node device can be connect by preset one or more Mouth receives above-mentioned call request, that is, the embodiment of the present application, which can use a unified input interface, obtains what user issued Call request can also be used multiple input interfaces and receive call requests, can specifically set what each interface connection correspondence was specified User, so as to correspond to the call request that user issues using the interface.
As a kind of feasible embodiment, the embodiment of the present application, can be to the calling after receiving call request Request carries out private key verifying, only logical in the private key verifying to current call request with the legitimacy of the current call request of determination Just starting executes the step of determining current call request corresponding object invocation type after crossing, and avoids and asks to illegal calling It asks and carries out subsequent processing cost of idle time, in some instances it may even be possible to there are problems that certain risk.Certainly, in addition to being carried out to current request Other modes realization also can be used for the legitimate verification of current request in private key verifying, and the present embodiment does not do specific limit herein It is fixed.
It, can be with it should be noted that when determining the corresponding object invocation type of current call request in the embodiment of the present application Call type is determined according to the target side that call request is directed to, for example, if current call request is to shift to virtual objects Request, can determine virtual objects will transfer to where according to call request, obtain the corresponding target side of virtual objects, and according to The type of target side determines the corresponding object invocation type of current call request.Certainly, the corresponding target tune of current call request It, can also be according to call request initiator in some specific implementations with type in addition to that can be determined according to the target side that request is directed to User type, allocating time, call request for virtual objects carry out which kind of operation etc. to determine the corresponding target tune of request Use type.
S102: the first intelligent contract is obtained;Described first intelligent contract is each unit pair according to the virtual objects The intelligent contract that the default call type answered generates;
In this step, the first intelligent contract is obtained from block chain network using block chain node device.Intelligent contract Refer specifically to ensure service order execute, the computer protocol of verifying, in the embodiment of the present application, the first intelligent contract is according in advance The intelligent contract generated for the call type of unit each in virtual objects setting.It is understood that the embodiment of the present application When setting default call type for virtual objects, virtual objects are divided into different units first, and specific for each unit Corresponding default call type is set, thus realize the ZOOM analysis to virtual objects, it can be virtual for each unit The calling of article is controlled.For example, if virtual objects are cash equivalent coin, it can be corresponding default for the setting of each cash equivalent coin Call type.Wherein, the corresponding default call type of the virtual objects of different units may be the same or different, Ke Yigen It is specifically set according to the situation in specific implementation.
When the above-mentioned virtual objects for each unit set default call type, a kind of default calling can be specifically set Type can also be that it sets corresponding a variety of default call types, by compare in a variety of default call types with the presence or absence of with The call type of the corresponding object invocation type matching of current call request obtains comparing result.It is of course also possible to be in advance void Quasi- article sets corresponding default calling range, is corresponded to by judging whether object invocation type belongs to default calling range Judging result, this does not influence the realization of the application.
S103: when determining that the object invocation type is consistent with the default call type based on the described first intelligent contract When, then allow to respond the call request.
It is understood that if obtaining the corresponding object invocation of current call request based on the above-mentioned first intelligent contract determination Default call type in type and the first intelligent contract for the setting of current virtual article is consistent or object invocation type and default Any kind successful match or object invocation type belong to default calling range in call type, then characterize current call request The restriction for meeting intelligent contract allows to respond current call request.
From the foregoing, it will be observed that each unit that the application is directed to virtual objects in advance sets the call type of its permission, and generate Corresponding first intelligent contract will determine that current request is corresponding after getting the request being called for virtual objects Whether object invocation type is consistent with the default call type in the first intelligent contract, only in object invocation type and default calling Allow to respond current call request when type is consistent, providing unification using intelligent contract for the calling of virtual objects can The running environment of letter exercises supervision and manages convenient for the calling process to virtual objects, and avoids and distort to treaty content With forge etc. behaviors, effectively reduce the risk in virtual objects calling process.
The embodiment of the present application discloses another virtual objects calling processing method based on block chain, real relative to upper one Example is applied, the present embodiment has made further instruction and optimization to technical solution.It is shown in Figure 3, specific:
S201: receiving call request, and determines the corresponding object invocation type of the call request;The call request is The request for being used to call the virtual objects that virtual objects owning user is initiated;
S202: the first intelligent contract is obtained;Described first intelligent contract is each unit pair according to the virtual objects The intelligent contract that the default call type answered generates;
S203: when determining that the object invocation type is consistent with the default call type based on the described first intelligent contract When, then allow to respond the call request;
S204: will be in the corresponding essential information for calling record that the virtual objects are written of the call request;The tune It include allocating time and call type with record;The essential information includes the user identifier letter of the virtual objects owning user Breath and calling record;
S205: determining the article identification information of presently described virtual objects, to the article identification information and described basic Information is bound, and will binding after essential information cochain.
In the embodiment of the present application, however, it is determined that obtain pre- in the corresponding object invocation type of call request and the first intelligent contract When first consistent for the default call type of current virtual article setting, then allow to respond call request.As a kind of excellent The corresponding calling record of the call request is further saved, specifically, can be incited somebody to action by the embodiment of choosing, the embodiment of the present application It calls in the corresponding essential information of record write-in current virtual article.Wherein, when calling record to can include but is not limited to call Between and call type;The corresponding essential information of virtual objects can include but is not limited to the user identifier of virtual objects owning user Information and above-mentioned calling record.
In specific implementation, if current call request is the request for being shifted to virtual objects, when calling is asked When asking corresponding object invocation type consistent with the default call type in intelligent contract, it can be determined according to current call request Second user account belonging to after corresponding virtual objects the first user account affiliated before transfer and transfer, and based on upper It states call request and modifies the virtual objects for including in the first user account and second user account, and it is corresponding to modify virtual objects User identity information completes the transfer of virtual objects.For example, the request is used if current call request is the request that user A is initiated It is transferred in the account of user B in by 10 cash equivalent coin in its account, after allowing to respond current call request, root Determine that the preceding affiliated account of cash equivalent coin transfer is the corresponding account of user A according to call request, affiliated account is user B after transfer Corresponding account, is respectively modified the total quantity of cash equivalent coin in the corresponding account of user A and the corresponding account of user B, and will work as The corresponding user identity information of former generation gold coin is revised as user B by original user A.Further, by the transfer of cash equivalent coin Cheng Jilu is into the corresponding essential information of current cash equivalent coin.
It is understood that the above-mentioned process by information cochain after binding can be with specifically: based on essential information after binding Generate corresponding block structure data, and by block structure data broadcasting to block chain network;According to common recognition mechanism by block knot Structure data are saved to the block chain network.
It should be noted that essential information is stored to block after needing to bind after receiving binding after essential information In chain network, and stores to block chain network and need to generate data format possessed by data in block chain network, i.e. block counts Corresponding block chain data structure is generated according to structure, therefore based on essential information after binding.It can not tamper for ensure data And reliability, the data needs being stored in block chain network are tieed up jointly by whole block chain nodes in block chain network Shield and supervision, after generating binding after the corresponding block chain data structure of essential information, by the block structure data broadcasting to area In each block chain node of block chain network, and then by block structure data record in each block chain node.Further Ground, common recognition mechanism are to maintain the agreement of whole block chain node cooperative works in block chain network, the whole in block chain network Block chain node saves block structure data all in accordance with identical execution logic, to ensure that all block chain nodes are protected The consistency for the block structure data deposited.Therefore the present embodiment saves block structure data to block link network according to common recognition mechanism In network, i.e., block structure data are saved into whole block chain nodes into block chain network, so as to using in block chain network All block chain nodes safeguard and supervise jointly the block structure data.
Present embodiment discloses another virtual objects calling processing methods based on block chain, implement relative to upper one Example, the present embodiment have made further instruction and optimization to technical solution.It is shown in Figure 4, specific:
Referring to fig. 4, the stream of another virtual objects calling processing method based on block chain provided by the embodiments of the present application Cheng Tu, as shown in Figure 4, comprising:
S301: call request is received, and private key verifying is carried out to the call request;The call request is virtual objects The request for being used to call the virtual objects that owning user is initiated;
S302: if being verified for the private key of the call request, it is determined that the corresponding target tune of the call request Use type;
S303: the first intelligent contract is obtained;Described first intelligent contract is each unit pair according to the virtual objects The intelligent contract that the default call type answered generates;
S304: when determining that the object invocation type and the default call type are different based on the described first intelligent contract When cause, then forbid responding the call request, and trigger corresponding alarm prompt;
S305: obtaining the second intelligent contract, executes correspondence based on the described second intelligent contract and the alarm prompt Risk processing operation;Described second intelligent contract is to generate previously according to alarm prompt and corresponding risk processing operation Intelligent contract;
In the embodiment of the present application, if determined based on the above-mentioned first intelligent contract obtain object invocation type whether with default tune With Type-Inconsistencies, then the regulation for not meeting the first intelligent contract to the calling of virtual objects currently is characterized, needed to forbid to working as Preceding call request is responded, and can trigger corresponding alarm prompt.It is understood that alarm mentions in the present embodiment Show that information can be the prompt information for prompting current call request promoter, the call request of its initiation of user can be reminded Fail correctly to respond, informs that current call request does not meet the first intelligent contract, and can show the regulation of the first intelligent contract, i.e., Default call type such as re-initiates and default call type so that user takes appropriate measures according to default call type Consistent call request;In addition, above-mentioned alarm prompt can also be the prompt information for prompting administrative staff, i.e. basis The call request of response is currently forbidden to generate alarm log, so that administrative staff trace illegal calling, such as can basis Alarm log counts the user for repeatedly initiating illegal call request, and carries out disable operation to the account of the user.
It should be noted that the embodiment of the present application also determines corresponding risk processing behaviour previously according to alarm prompt Make, and the second intelligent contract is generated according to alarm prompt and corresponding risk processing operation, thus in triggering alarm prompt After information, corresponding risk processing operation can be executed automatically based on the second intelligent contract, what realization operated current risk Processing.
S306: when determining that the object invocation type is consistent with the default call type based on the described first intelligent contract When, then allow to respond the call request;
S307: will be in the corresponding essential information for calling record that the virtual objects are written of the call request;The tune It include allocating time and call type with record;The essential information includes the user identifier letter of the virtual objects owning user Breath and calling record;
S308: determining the article identification information of presently described virtual objects, to the article identification information and described basic Information is bound, and will binding after essential information cochain;
S309: inquiry request is obtained;The inquiry request includes the first inquiry request and/or the second inquiry request;Wherein, First inquiry request includes user identity information, the virtual objects for being included for inquiring corresponding user account;Described Two inquiry requests include article identification information, for inquiring the corresponding essential information of the virtual objects;
S310: corresponding query result is returned to according to the identification information that the inquiry request includes.
In the embodiment of the present application, the corresponding essential information of virtual objects and corresponding article identification information cochain are protected It deposits to the whole network, can further obtain Client-initiated inquiry request.Wherein, above-mentioned inquiry request can be particularly for The inquiry user account virtual objects that are included, can also particularly for inquiring the corresponding essential information of any virtual objects, It is understood that if when current queries request is request for inquiring the virtual objects that user account is included, the inquiry Needed in request comprising user identity information, i.e., according to user identity information search corresponding account and it includes virtual object Product;If current queries request is for inquiring virtual objects corresponding essential information, need in the inquiry request comprising article Identification information searches corresponding essential information using article identification information.
It is understood that the embodiment of the present application is after getting the inquiry request of user, it can be further to inquiry The permission of request is verified, to judge whether active user allows to execute inquiry operation.As a kind of feasible embodiment, Third intelligence contract can be generated previously according to user type and its corresponding search access right, to ask getting user query After asking, it is first determined active user for user type, and then determine that active user is corresponding based on third intelligence contract Search access right returns to corresponding query result to active user.
In order to make it easy to understand, coming below by a specific application scenarios example description to provided by the embodiments of the present application Virtual objects calling processing method based on block chain is illustrated.Specifically, user A shifts 100 cash equivalent coin to user B, And the call type of above-mentioned 100 cash equivalent coin is limited in transfer, for example, setting wherein ID number as 1 to 30 totally 30 cash equivalent Coin is only limitted to use when purchase game weapon equipment, sets wherein ID number and is only limitted to buy trip as 31 to 70 totally 40 cash equivalent coin It is used when pet in play, sets wherein ID number and be only limitted to transfer as 71 to 100 totally 30 cash equivalent coin and use, and will be above-mentioned right It is written in intelligent contract in the setting of cash equivalent coin usage type.It initiates to call ID number to be that 10 to 20 cash equivalent coin is used in user B When being transferred to user C, according to the regulation of intelligent contract, determines that current call does not meet default call type, forbid adjusting to current It is responded with request, and shows corresponding prompt information.
Further, if user B initiates to be directed to after the inquiry request of the cash equivalent coin itself possessed, as shown in figure 5, can To return to the identification information and the corresponding calling record of all cash equivalent coin of all cash equivalent coin that user B is possessed.If with After the inquiry request that it is 1 for cash equivalent coin ID that family B, which is initiated, as shown in fig. 6, can return the cash equivalent coin it is current belonging to user and Call record.
It is understood that the virtual objects calling processing method provided by the embodiments of the present application based on block chain can have Body is applied in P2P (peer to peer lending, point to point network are borrowed money) scene, can be realized for internet finance The accurate control of funds flow and complete documentation in point-to-point loan platform.
Processing unit is called to be introduced a kind of virtual objects based on block chain provided by the embodiments of the present application below, A kind of virtual objects based on block chain described below call processing unit and a kind of above-described void based on block chain Quasi- article calling processing method can be cross-referenced.
It is shown in Figure 7, a kind of virtual objects calling processing unit packet based on block chain provided by the embodiments of the present application It includes:
Determination type module 401 for receiving call request, and determines the corresponding object invocation class of the call request Type;The call request is the request for being used to call the virtual objects that virtual objects owning user is initiated;
Contract obtains module 402, for obtaining the first intelligent contract;Described first intelligent contract is according to the virtual object The intelligent contract that the corresponding default call type of each unit of product generates;
Ask respond module 403, for when based on it is described first intelligence contract determine the object invocation type with it is described When default call type is consistent, then allow to respond the call request.
Specific implementation process about above-mentioned module 401 to 403 can refer to corresponding contents disclosed in previous embodiment, herein No longer repeated.
On the basis of the above embodiments, provided by the embodiments of the present application as a preferred implementation manner, to be based on block The virtual objects of chain call processing unit can further include:
Writing module is recorded, for after allowing to respond the call request, the call request to be corresponded to Calling record be written in the essential information of the virtual objects;The calling record includes allocating time and call type;Institute State the user identity information and calling record that essential information includes the virtual objects owning user.
Information cochain module believes the article mark for determining the article identification information of presently described virtual objects Breath and the essential information bound, and will binding after essential information cochain.
On the basis of the above embodiments, the ask respond module as a preferred implementation manner, comprising:
Account determination unit, if being the request for being shifted to the virtual objects for the call request, Second belonging to after determining preceding the first affiliated user account of the virtual objects transfer according to the call request and shift User account;
Item transfer unit, for modifying first user account and the second user account based on the call request The virtual objects for including in number, and the corresponding user identity information of the virtual objects is modified, complete the virtual objects Transfer.
On the basis of the above embodiments, the information cochain module as a preferred implementation manner, comprising:
Block generation unit, for generating corresponding block structure data based on essential information after the binding, and by institute Block structure data broadcasting is stated to block chain network;
Data common recognition unit, for being saved the block structure data to the block chain network according to common recognition mechanism.
On the basis of the above embodiments, provided by the embodiments of the present application as a preferred implementation manner, to be based on block The virtual objects of chain call processing unit can further include:
Requests verification module, for before determining the corresponding object invocation type of the call request, to the calling Request carries out private key verifying;If the private key for the call request is verified, executes and determine that the call request is corresponding Object invocation type the step of.
On the basis of the above embodiments, provided by the embodiments of the present application as a preferred implementation manner, to be based on block The virtual objects of chain call processing unit can further include:
Alarm prompt module, after obtaining the first intelligent contract, described in being determined based on the described first intelligent contract When object invocation type and the inconsistent default call type, then forbid responding the call request, and trigger phase The alarm prompt answered;
Risk processing module, for obtaining the second intelligent contract, based on the described second intelligent contract and the alarm prompt Information executes corresponding risk processing operation;Described second intelligent contract is previously according to alarm prompt and corresponding risk The intelligent contract that processing operation generates.
On the basis of the above embodiments, provided by the embodiments of the present application as a preferred implementation manner, to be based on block The virtual objects of chain call processing unit can further include:
Information inquiry module, for obtaining inquiry request;The inquiry request includes that the first inquiry request and/or second are looked into Ask request;Wherein, first inquiry request includes user identity information, virtual for inquire that corresponding user account included Article;Second inquiry request includes article identification information, for inquiring the corresponding essential information of the virtual objects;
Result return module, the identification information for including according to the inquiry request return to corresponding query result.
Present invention also provides a kind of electronic equipment, referring to Fig. 8, a kind of electronic equipment 50 provided by the embodiments of the present application Structure chart, as shown in figure 8, the electronic equipment 50 can specifically include 51, memories 52 of a processor.
Wherein, processor 51 may include one or more processing cores, such as 4 core processors, 8 core processors Deng.Processor 51 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 51 also may include primary processor and coprocessor, main place Reason device is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.In In some embodiments, processor 51 can be integrated with GPU (Graphics Processing Unit, image processor), GPU For being responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 51 can also include AI (Artificial Intelligence, artificial intelligence) processor, the AI processor is for handling the calculating in relation to machine learning Operation.
The carrier that memory 52 is stored as resource may include one or more computer readable storage mediums, the meter Calculation machine readable storage medium storing program for executing can be non-transient.Memory 52 may also include high-speed random access memory and non-volatile Property memory, such as one or more disk storage equipment, flash memory device.In the present embodiment, stored in memory Resource includes operating system 521, computer program 522 and data 523 etc., wherein operating system is for managing and controlling electronics Each hardware device and computer program in equipment, to realize processor to the operation of mass data 523 and place in memory Reason, can be Windows Server, Netware, Unix, Linux etc..Computer program 522 is in addition to including that can be used in Except the computer program for completing the virtual objects calling processing method based on block chain disclosed in aforementioned any embodiment, may be used also To further comprise the computer program that can be used in completing other particular jobs.Data 523 are in addition to may include user account It can also include the business datums such as game data, electric business transaction data outside the data such as information, the essential information of virtual objects.
In some embodiments, electronic equipment 50, which may also include, display screen 53, input/output interface 54, communication interface 55, power supply 56 and communication bus 57.
In the present embodiment, display screen 53 is for the data of video-stream processor processing and for showing visual user circle Face.The display screen 53 can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Input/output interface 54, for obtaining extraneous input Data or outwardly output data, specific interface type can be chosen according to concrete application, herein without It is specific to limit.Communication interface 55 can be the data transmission channel between electronic equipment creation and external device, be followed Communication protocol is can be suitable for the random communication protocol of technical scheme, is not limited specifically it herein.Power supply 56 are specifically used for providing operating voltage for each hardware device on electronic equipment.
Certainly, the structure of electronic equipment shown in Fig. 8 does not constitute the restriction to electronic equipment in the embodiment of the present application, In Electronic equipment may include than more or fewer components shown in Fig. 8, or the certain components of combination in practical application.
Present invention also provides a kind of computer readable storage medium, the storage medium may include: USB flash disk, mobile hard disk, Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic The various media that can store program code such as dish or CD.Computer program, the calculating are stored on the storage medium Machine program realizes the virtual objects calling processing method based on block chain disclosed in aforementioned any embodiment when being executed by processor The step of.
Each unit that the application is directed to virtual objects in advance sets the call type of its permission, and generates corresponding first Intelligent contract will be determined current after getting the request being called for virtual objects using the above-mentioned first intelligent contract Request corresponding object invocation type whether consistent with default call type, only in object invocation type and default call type one Allow to respond current call request when cause, provides unified believable fortune using intelligent contract for the calling of virtual objects Row environment exercises supervision and manages convenient for the calling process to virtual objects, and avoids distorting and forging to treaty content Equal behaviors, effectively reduce the risk in virtual objects calling process.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration .It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. a kind of virtual objects calling processing method based on block chain characterized by comprising
Call request is received, and determines the corresponding object invocation type of the call request;The call request is virtual objects The request for being used to call the virtual objects that owning user is initiated;
Obtain the first intelligent contract;Described first intelligent contract is the corresponding default tune of each unit according to the virtual objects The intelligent contract generated with type;
When determining that the object invocation type is consistent with the default call type based on the described first intelligent contract, then allow The call request is responded.
2. the virtual objects calling processing method according to claim 1 based on block chain, which is characterized in that the permission After being responded to the call request, further includes:
It will be in the corresponding essential information for calling record that the virtual objects are written of the call request;The calling records Allocating time and call type;The essential information includes the user identity information and the tune of the virtual objects owning user With record;
The article identification information for determining presently described virtual objects ties up the article identification information and the essential information It is fixed, and will essential information cochain after binding.
3. the virtual objects calling processing method according to claim 2 based on block chain, which is characterized in that the permission The call request is responded, comprising:
If the call request is the request for being shifted to the virtual objects, institute is determined according to the call request Second user account belonging to after stating preceding the first affiliated user account of virtual objects transfer and shifting;
The virtual objects for including in first user account and the second user account are modified based on the call request, and The corresponding user identity information of the virtual objects is modified, the transfer of the virtual objects is completed.
4. the virtual objects calling processing method according to claim 2 based on block chain, which is characterized in that described to tie up Essential information cochain after fixed, comprising:
Corresponding block structure data are generated based on essential information after the binding, and by the block structure data broadcasting to area Block chain network;
The block structure data are saved to the block chain network according to common recognition mechanism.
5. the virtual objects calling processing method according to claim 1 based on block chain, which is characterized in that the determination Before the corresponding object invocation type of the call request, further includes:
Private key verifying is carried out to the call request;
If the private key for the call request is verified, executes and determine the corresponding object invocation type of the call request The step of.
6. the virtual objects calling processing method according to claim 1 based on block chain, which is characterized in that the acquisition After first intelligent contract, further includes:
When determining the object invocation type and the inconsistent default call type based on the described first intelligent contract, then prohibit Only the call request is responded, and triggers corresponding alarm prompt;
The second intelligent contract is obtained, corresponding risk processing is executed based on the described second intelligent contract and the alarm prompt Operation;Described second intelligent contract is that the intelligence generated previously according to alarm prompt and corresponding risk processing operation is closed About.
7. the virtual objects calling processing method according to any one of claims 1 to 6 based on block chain, feature exist In, further includes:
Obtain inquiry request;The inquiry request includes the first inquiry request and/or the second inquiry request;Wherein, described first Inquiry request includes user identity information, the virtual objects for being included for inquiring corresponding user account;Second inquiry is asked It asks comprising article identification information, for inquiring the corresponding essential information of the virtual objects;
Corresponding query result is returned according to the identification information that the inquiry request includes.
8. a kind of virtual objects based on block chain call processing unit characterized by comprising
Determination type module for receiving call request, and determines the corresponding object invocation type of the call request;The tune It is the request for being used to call the virtual objects that virtual objects owning user is initiated with request;
Contract obtains module, for obtaining the first intelligent contract;Described first intelligent contract is according to the every of the virtual objects The intelligent contract that the corresponding default call type of Unit one generates;
Ask respond module determines the object invocation type and the default calling based on the described first intelligent contract for working as When type is consistent, then allow to respond the call request.
9. a kind of electronic equipment characterized by comprising
Processor and memory;
Wherein, the processor is for executing the program stored in the memory;
For storing program, described program is at least used for the memory:
Call request is received, and determines the corresponding object invocation type of the call request;The call request is virtual objects The request for being used to call the virtual objects that owning user is initiated;
Obtain the first intelligent contract;Described first intelligent contract is the corresponding default tune of each unit according to the virtual objects The intelligent contract generated with type;
When determining that the object invocation type is consistent with the default call type based on the described first intelligent contract, then allow The call request is responded.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized as described in any one of claim 1 to 7 when the computer program is executed by processor based on the virtual of block chain The step of article calling processing method.
CN201910833591.3A 2019-09-04 2019-09-04 Virtual objects calling processing method, device and equipment and medium based on block chain Pending CN110517047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910833591.3A CN110517047A (en) 2019-09-04 2019-09-04 Virtual objects calling processing method, device and equipment and medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910833591.3A CN110517047A (en) 2019-09-04 2019-09-04 Virtual objects calling processing method, device and equipment and medium based on block chain

Publications (1)

Publication Number Publication Date
CN110517047A true CN110517047A (en) 2019-11-29

Family

ID=68629730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910833591.3A Pending CN110517047A (en) 2019-09-04 2019-09-04 Virtual objects calling processing method, device and equipment and medium based on block chain

Country Status (1)

Country Link
CN (1) CN110517047A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176791A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Cross-virtual machine calling method based on multi-virtual machine blockchain platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109272324A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 A kind of business function implementation method, system, equipment and computer storage medium
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN109345390A (en) * 2018-09-25 2019-02-15 深圳市元征科技股份有限公司 A kind of intelligence contract access method, system, equipment and computer storage medium
CN109493019A (en) * 2018-11-07 2019-03-19 四川长虹电器股份有限公司 A kind of account method of commerce and device based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109272324A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 A kind of business function implementation method, system, equipment and computer storage medium
CN109345390A (en) * 2018-09-25 2019-02-15 深圳市元征科技股份有限公司 A kind of intelligence contract access method, system, equipment and computer storage medium
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN109493019A (en) * 2018-11-07 2019-03-19 四川长虹电器股份有限公司 A kind of account method of commerce and device based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176791A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Cross-virtual machine calling method based on multi-virtual machine blockchain platform
CN111176791B (en) * 2019-12-31 2023-09-29 杭州趣链科技有限公司 Cross-virtual machine calling method based on multi-virtual machine blockchain platform

Similar Documents

Publication Publication Date Title
Lin et al. A survey of application research based on blockchain smart contract
Mineraud et al. A gap analysis of Internet-of-Things platforms
WO2020107919A1 (en) Distributed network and ecosystem based on innovative proof-of-reputation consensus protocol
CN110009498A (en) Resource allocation methods and device based on block chain
TWI768163B (en) Method and device for generating smart contracts
US20210019849A1 (en) Method for External Data-Based Constructing Various Triggering Mechanisms to Execute Smart Contract in Blockchain Network and System Thereof
CN108805707A (en) Works copyright revenue distribution method and device based on block chain
US20200175583A1 (en) Blockchain-based leasing
CN109559257A (en) Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain
CN109472568A (en) A kind of block chain method of commerce, device, management system, equipment and storage medium
CN112200567B (en) Resource management method and device based on block chain and electronic equipment
CN109510713A (en) A kind of shared motivational techniques of the flow based on block chain
CN106504088A (en) A kind of method and system that realizes quantifying transaction in removable computing device
Kshetri et al. Big data and cloud computing for development: Lessons from key industries and economies in the global south
CN109117608A (en) A kind of data processing method, device and relevant device
CN110517145A (en) Data trade method and relevant device based on multi-tiling interchain
Guan et al. Blockchain: A distributed solution to UAV‐enabled mobile edge computing
Ko et al. Survey on blockchain‐based non‐fungible tokens: History, technologies, standards, and open challenges
CN112115204A (en) Multi-party security calculation implementation method based on block chain technology
CN110598419A (en) Block chain client vulnerability mining method, device, equipment and storage medium
CN110517047A (en) Virtual objects calling processing method, device and equipment and medium based on block chain
Liu et al. Blockchain-empowered lifecycle management for AI-generated content products in edge networks
Huang et al. [Retracted] Construction of Virtual Marketing Interactive Platform for Digital Twin Innovation and Entrepreneurship Based on Blockchain
CN110852886A (en) Second-hand transaction and article borrowing and returning system based on alliance chain
CN110084568A (en) Demand management methods, devices and systems

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