CN110585727B - Resource acquisition method and device - Google Patents

Resource acquisition method and device Download PDF

Info

Publication number
CN110585727B
CN110585727B CN201910921937.5A CN201910921937A CN110585727B CN 110585727 B CN110585727 B CN 110585727B CN 201910921937 A CN201910921937 A CN 201910921937A CN 110585727 B CN110585727 B CN 110585727B
Authority
CN
China
Prior art keywords
characteristic information
resource
region
random number
regional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910921937.5A
Other languages
Chinese (zh)
Other versions
CN110585727A (en
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 CN201910921937.5A priority Critical patent/CN110585727B/en
Publication of CN110585727A publication Critical patent/CN110585727A/en
Application granted granted Critical
Publication of CN110585727B publication Critical patent/CN110585727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0212Chance discounts or incentives
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a resource acquisition method and device. The resource acquisition method comprises the following steps: receiving at least one set of regional characteristic information from a client; carrying out uplink processing on at least one group of regional characteristic information to obtain at least one group of regional characteristic information after the uplink processing; respectively determining random numbers corresponding to each group of regional characteristic information after the uplink to obtain at least one random number; determining the area resource corresponding to each random number respectively to obtain at least one area resource; and synthesizing the target role resources according to the at least one regional resource, and sending the target role resources to the client. By adopting the embodiment of the application, the resources can be synthesized on the block chain according to the at least one regional characteristic information, the resource synthesis process is public and transparent, and the synthesized resources have randomness, thereby being beneficial to improving the fairness of resource acquisition.

Description

Resource acquisition method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining resources.
Background
There are many scenarios for acquiring resources, such as lottery scenarios, in which resources acquired by a user are determined according to lottery results. The resources are generally stored in a server, the process of acquiring the resources is performed in the server and cannot be known by users, and the problems of non-disclosure and non-transparency exist and fairness cannot be ensured.
Disclosure of Invention
The embodiment of the application provides a resource acquisition method and a resource acquisition device, which can enable a resource acquisition process to be public and transparent by carrying out resource synthesis on a block chain, and are beneficial to improving fairness of resource acquisition.
In a first aspect, an embodiment of the present application provides a method for acquiring resources, where the method includes:
receiving at least one group of regional characteristic information from a client, wherein the regional characteristic information is used for indicating the characteristic information of the region of the character resource, and the regional characteristic information corresponds to the region one by one; carrying out uplink processing on at least one group of regional characteristic information to obtain at least one group of regional characteristic information after the uplink processing; respectively determining random numbers corresponding to each group of regional characteristic information after the uplink to obtain at least one random number; determining the area resource corresponding to each random number respectively to obtain at least one area resource; and synthesizing the target role resources according to the at least one regional resource, and sending the target role resources to the client.
According to the technical scheme, resources can be synthesized on the block chain according to at least one regional characteristic information, and the resource synthesis process is public and transparent, so that the fairness of resource acquisition can be improved.
In one implementation, each set of region characteristic information includes first characteristic information including characteristic information of a region of a first character resource and second characteristic information including characteristic information of the region of a second character resource; the specific implementation manner of determining the random number corresponding to the region characteristic information after the uplink may be: and determining a random number corresponding to the regional characteristic information according to the first characteristic information and the second characteristic information included in the regional characteristic information after the uplink.
In one implementation, the method further comprises: receiving resource information of at least one area from a server, wherein the resource information of the area comprises a plurality of preset weights and area resources corresponding to each preset weight; carrying out uplink processing on the resource information of each region to obtain the resource information of at least one region after uplink; the specific implementation manner of determining the area resource corresponding to the random number may include: determining the weight corresponding to the random number according to a plurality of preset weights in the area corresponding to the random number; and determining the area resource corresponding to the random number according to the weight corresponding to the random number and the area resource corresponding to each preset weight.
In one implementation manner, according to a plurality of preset weights in the area corresponding to the random number, the specific implementation manner of determining the weight corresponding to the random number may include: determining a target threshold according to the random number; determining a corresponding interval of each preset weight according to the target threshold and a plurality of preset weights of the random number corresponding region; determining a target interval to which the random number belongs in a corresponding interval of each preset weight; and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
In one implementation manner, according to the first feature information and the second feature information included in the region feature information after the uplink, the specific implementation manner of determining the random number corresponding to the region feature information may include: combining the first characteristic information and the second characteristic information to obtain combined regional characteristic information; calculating to obtain a hash value of the combined regional characteristic information; and converting the hash value into a random number corresponding to the regional characteristic information.
In one implementation, a specific implementation of synthesizing a target role resource from at least one region resource may include: and synthesizing target role resources according to the region resources corresponding to the at least one random number and the basic region resources, wherein the basic region resources are preset region resources except for the region resources corresponding to the at least one random number.
In a second aspect, an embodiment of the present invention provides a resource acquisition method, where the method includes:
and transmitting at least one group of regional characteristic information to the block chain node device, so that the block chain node device carries out uplink processing on the at least one group of regional characteristic information, determines random numbers corresponding to each group of regional characteristic information after uplink, determines regional resources corresponding to each random number, synthesizes target role resources according to at least one regional resource, and uses the regional characteristic information to indicate the regional characteristic information of the role resources, wherein the regional characteristic information corresponds to the regions one by one.
In the technical scheme, the client can send at least one group of regional characteristic information to the blockchain node device, so that the blockchain node device synthesizes resources according to the at least one group of regional characteristic information, and sends the synthesized resources to the client.
In a third aspect, the present invention provides a blockchain node device having a function of implementing the resource synthesis method of the first or second aspect. The functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the functions described above.
In a fourth aspect, an embodiment of the present invention provides a blockchain node device, the device including a memory, a processor, and a communication interface, the memory storing a set of program code, the processor invoking the program code stored in the memory for performing the operations in accordance with the first aspect.
In a fifth aspect, the present invention provides a client, where the client has a function of implementing the resource synthesis method in the first aspect or the second aspect. The functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the functions described above.
In a sixth aspect, embodiments of the present invention provide a client comprising a memory storing a set of program code, a processor invoking the program code stored in the memory for performing the operations in accordance with the second aspect, and a communication interface.
In a seventh aspect, embodiments of the present invention provide a computer readable storage medium storing computer program instructions for use by a blockchain node device or a client, comprising instructions for executing the program of the first or second aspects described above.
By implementing the embodiment of the application, the blockchain node device can receive and uplink at least one group of regional characteristic information from the client, and determine the corresponding random numbers according to the at least one group of regional characteristic information after the uplink, so as to determine the regional resources corresponding to the random numbers, so that the resources are synthesized on the blockchain based on the regional resources, the synthesis and acquisition processes of the resources are public and transparent, the resources have randomness, and the fairness of resource acquisition is improved.
Drawings
In order to more clearly describe the embodiments of the present application or the technical solutions in the background art, the following description will describe the drawings that are required to be used in the embodiments of the present application or the background art.
FIG. 1 is a schematic diagram of a scenario of resource acquisition;
fig. 2 is a schematic view of a scenario of resource acquisition according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a block chain network according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a resource obtaining method according to an embodiment of the present application;
fig. 5 is a flowchart of a method for determining a random number corresponding to regional feature information according to an embodiment of the present application;
fig. 6 is a flowchart of a method for determining a regional resource corresponding to a random number according to an embodiment of the present application;
Fig. 7 is a schematic view of nose area resources corresponding to preset weights of a preset nose area according to an embodiment of the present application;
fig. 8 is a schematic view of eye area resources corresponding to preset weights of preset eye areas according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a block chain node device according to an embodiment of the present application;
FIG. 10 is a schematic diagram of another blockchain node device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a client according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another client according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
In the embodiment of the application, the client can synthesize the target resource based on the regional resource corresponding to each random number and send the target resource to the client by sending the characteristic information of the resource, such as at least one group of regional characteristic information, to the block chain node device through the uplink processing of the at least one group of regional characteristic information, further respectively determining the random number corresponding to each group of regional characteristic information after uplink, and determining the regional resource corresponding to each random number. The resource acquisition method based on the regional characteristic information and the blockchain enables the resource acquisition process to be public and transparent, thereby being beneficial to improving the fairness of resource acquisition.
In the present application, a resource or character resource may refer to a virtual resource such as a game resource, an image resource, or the like. The region characteristic information may refer to characteristic information of a region of the resource.
Taking resources as skins, such as game character skins, and regional characteristic information as regional characteristic information of the skins as an example. Please refer to fig. 1, which is a schematic diagram of a scenario of resource acquisition. As shown in fig. 1, in the conventional method for acquiring the skin of a game character, the game server 102 synthesizes the skins of the respective game characters in advance, and when the game player (client 101) needs the skin of the character, the game server acquires the skin of the character by lottery drawing. The process of obtaining the game character skin in this way can only be performed inside the game server, cannot be known by the user, and has the problem of non-disclosure and non-transparency, so that the possibility of falsification exists, such as issuing rare skin to some specific users, and fairness cannot be ensured.
Referring to fig. 2, fig. 2 is a schematic diagram of a resource acquisition scenario according to an embodiment of the present application. As shown in fig. 2, the client 201 may send at least one set of region characteristic information of a role skin (such as a role skin of a game player of the client, and/or a skin of a role associated with the role of the game player, etc.) to one blockchain node device 202 on a blockchain, and after receiving the region characteristic information of the role skin, the blockchain node device may perform a chaining process on the received region characteristic information, then determine a random number corresponding to each set of region characteristic information after the chaining based on a smart contract, determine a region resource corresponding to each random number, and synthesize a target role skin according to the obtained at least one region resource. According to the method, the characteristic information of the blockchain and the character skin can be combined, the target character skin is synthesized on the blockchain node device based on the regional characteristic information of the character skin, the synthesis process is public and transparent, the synthesized skin has randomness, and the fairness of skin acquisition is improved.
In the resource acquisition process, a client is mainly involved. The client can be operated on a terminal such as a mobile phone, a computer device, other handheld devices with wireless communication functions, and the like. In other embodiments, the blockchain node device may also be referred to as a blockchain node, a blockchain node device, a blockchain network node, or other names, and the application is not limited thereto.
A blockchain (blockchain) is a chained data structure in which data blocks are sequentially connected in time sequence, and cryptographically guarantees that the data is not tamperable and counterfeit. Multiple independent distributed nodes (i.e., blockchain node devices) maintain the same record. Blockchain technology enables decentralization, becoming a cornerstone for trusted digital asset storage, transfer, and transactions. The information after the uplink processing is fairly shared and publicly transparent for each blockchain node device in the blockchain network. And the block chain link point device performs uplink processing on at least one group of regional characteristic information on the block chain, and synthesizes target role resources on the block chain according to each group of regional characteristic information after uplink. The whole synthesis process is carried out on the blockchain, and the synthesis process of the whole target role resource is fairly shared for each blockchain node device, so that the synthesis process of the target role resource is public and transparent.
In the resource synthesis process, the blockchain node device stores an intelligent contract, and can acquire at least one group of regional characteristic information through the intelligent contract, determine random numbers corresponding to each group of regional characteristic information, determine regional resources corresponding to the random numbers, synthesize target role resources according to the regional resources and the like so as to acquire the resources. Wherein a Smart Contract (Smart contact) is an event-driven, stateful program running on a distributed blockchain ledger and capable of managing data on the ledger. The code content of the smart contract specifies the rules and logic of the transaction, and the user signing to invoke the smart contract means that the contract content will be executed and written to the blockchain ledger.
In order to better understand the resource acquisition method and device disclosed in the embodiments of the present application, the architecture of the blockchain network to which the embodiments of the present application are applicable is first described below.
Referring to fig. 3, fig. 3 is a schematic diagram of a block chain network according to an embodiment of the present application. As shown in fig. 3, the blockchain network includes a first blockchain node device 301, a second blockchain node device 302, and a third blockchain node device 303. The first, second, and third blockchain node devices 301, 302, 303 may be any blockchain node device in a blockchain network. Any blockchain node device may receive or otherwise obtain at least one set of region feature information from the client and implement the composite target persona resource based on the at least one set of region feature information.
Alternatively, the client may be running in any blockchain node device of the blockchain network, and the client is authenticated by the blockchain network. Alternatively, the client may be independent of any blockchain node device of the blockchain network, and the client may be a client that is not authenticated by the blockchain network.
It can be understood that the blockchain network described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and is not limited to the technical solution provided by the embodiments of the present application, and those skilled in the art can know that the technical solution provided by the embodiments of the present application is equally applicable to similar technical problems with evolution of system architecture and occurrence of new scenarios.
The embodiment of the application discloses a resource acquisition method, a blockchain node device, a client and a medium, which are beneficial to improving the randomness and fairness of resource acquisition. Each of which is described in detail below.
Based on the above description, the embodiment of the present application proposes a resource acquisition method as shown in fig. 4, where the resource acquisition method may include S401-S406:
s401: the client sends at least one set of region characteristic information to the blockchain node device.
Specifically, the client may obtain at least one set of region characteristic information and may send the at least one set of region characteristic information to the blockchain node device, which receives the at least one set of region characteristic information from the client. The regional characteristic information can be used for indicating the characteristic information of the region of the character resource, and the regional characteristic information can be in one-to-one correspondence with the region. Alternatively, the role resource may be a role resource associated with the client, such as a role resource for a game account of the client, a role resource for a role associated with a game account of the client, and so on; or, the role resource can also be other resources determined by a preset rule, which is not limited by the application.
In one implementation, each set of region characteristic information may include one or more characteristic information of the region. For example, a set of region feature information may include first feature information including feature information of a region of a first character resource and second feature information including feature information of the region of a second character resource, i.e., the region feature information may include feature information of the first character resource and the second character resource for the same resource region.
For example, when the game character resource is acquired, such as the character skin is acquired, the client may acquire two sets of region feature information corresponding to the mother character resource and the father character resource in the game, and send the two sets of region feature information about the mother character resource and the father character resource in the game to the blockchain node device, such as the first set of region feature information is used to indicate the feature information of the nose region of the mother character resource and the father character resource, and the second set of region feature information is used to indicate the feature information of the eye region of the mother character resource and the father character resource. The first characteristic information is characteristic information of a nose region (e.g., first characteristic information of a first set of region characteristic information) and an eye region (e.g., first characteristic information of a second set of region characteristic information) of the mother character, and the second characteristic information is characteristic information of a nose region (e.g., second characteristic information of the first set of region characteristic information) and an eye region (e.g., second characteristic information of the first set of region characteristic information) of the father character. The client may also send other sets of regional characteristic information to the blockchain node device, for example, send multiple sets of regional characteristic information about the mouth region, the ear region, the eyebrow region, etc. of the mother role resource and the father role resource to the blockchain node device, so as to achieve resource acquisition.
In one implementation, the client may select a predetermined number of character resources before the client transmits at least one set of region characteristic information to the blockchain node device, and transmit at least one set of region characteristic information for the predetermined number of character resources to the blockchain node device, each set of region characteristic information including a predetermined number of region characteristic information for the character resources. For example, the client selects a preset number of 3 character resources, namely, a first character resource, a second character resource and a third character resource, and transmits two sets of region feature information about nose region and eye region of the first character resource, the second character resource and the third character resource to the blockchain node device, wherein the feature information of the first set of region comprises nose region feature information of the first character resource, nose region feature information of the second character resource and nose region feature information of the third character resource, and the feature information of the second set of region comprises eye region feature information of the first character resource, eye region feature information of the second character resource and eye region feature information of the third character resource.
In one implementation manner, the client may further obtain the region feature information according to the set number of region feature information, for example, preset priorities of the regions, such as eyes, nose, mouth, ears in sequence, or heads, upper limbs, lower limbs in sequence, and further select the region feature information corresponding to the set number according to the order of the priorities from high to low. The client may then send the region characteristic information to the blockchain node device, which may receive the region characteristic information sent by the client.
The number of roles and/or the number of regional feature information corresponding to the roles may be preset, or may be notified by a blockchain network (e.g., the blockchain node device, and also, e.g., a blockchain management device in the blockchain network), which is not limited in the embodiments of the present application.
S402: and the block chain node device performs uplink processing on each group of regional characteristic information to obtain at least one group of uplink regional characteristic information.
Specifically, the blockchain node device performs uplink processing on each group of regional characteristic information, generates a plurality of blocks from the characteristic information in each group of regional characteristic information, and corresponds each block to each group of regional characteristic information one by one. The block chain node device generates a plurality of blocks corresponding to each group of regional characteristic information, so that each group of regional characteristic information is stored in a distributed mode in a block mode, has the characteristic of difficult tampering, and is fairly shared and disclosed for each block chain node device in a block chain network.
In one implementation, before the blockchain node device performs the uplink processing on each set of region feature information, each set of region feature information may also be checked. If the verification of each group of regional characteristic information is successful, the block chain node device carries out uplink processing on each group of regional characteristic information to generate a plurality of blocks corresponding to each group of regional characteristic information.
In one implementation, each set of regional characteristic information may include identity information of the client, and checking each set of regional characteristic information by the blockchain node device may include: and verifying the identity of the sender of each group of regional characteristic information, namely verifying the identity of the client, so as to improve the reliability of each group of received regional characteristic information. Specifically, the blockchain node device uses different first public keys created by the client to verify the corresponding regional characteristic information of each group, and if verification is successful, the sender of each group of regional characteristic information is indicated to be the client for sending the regional characteristic information of each group, and the blockchain node device successfully verifies each group of regional characteristic information. In this way, the reliability of the characteristic information of each group of areas is improved.
In one implementation, if the blockchain node device successfully verifies each set of regional characteristic information, each set of regional characteristic information is sent to each blockchain node device in the blockchain network, and each blockchain node device verifies each set of regional characteristic information. Under the condition that the block chain node device receiving the regional characteristic information successfully checks each group of regional characteristic information, each group of regional characteristic information is sent to each block chain node device in the block chain network, so that the credibility of each group of regional characteristic information can be improved. Each block chain node device in the block chain network checks each group of regional characteristic information and sends the checking result aiming at each group of regional characteristic information to the block chain node device in the form of checking response of each group of regional characteristic information.
Specifically, each blockchain node device in the blockchain network may verify the identity of the sender of each set of regional characteristic information. It should be noted that, regardless of whether the verification result is passed or failed, each blockchain node device in the blockchain network may send a verification response of each set of the regional characteristic information to the blockchain node device that receives each set of the regional characteristic information. The blockchain node device receives a verification response for each set of regional characteristic information from a respective blockchain node device in the blockchain network. The verification results of each set of regional characteristic information contained in each regional characteristic information verification response from each blockchain node device in the blockchain network can be independent, namely the verification process of each blockchain node device for each set of regional characteristic information can be unaffected by other blockchain node devices. For example, the verification result for each set of region characteristic information included in the each set of region characteristic information verification response from one blockchain node device may be verification passing, and the verification result for each set of region characteristic information included in the each set of region characteristic information verification response from another blockchain node device may be verification failing.
The block chain node device obtains each group of regional characteristic information verification results according to each group of regional characteristic information verification responses, and further determines whether each group of regional characteristic information passes the verification of the block chain network, namely each group of regional characteristic information verification results are jointly determined according to each group of regional characteristic information verification responses returned by each block chain node device in the block chain network. By the method, each block chain node device in the block chain network can participate in the verification process aiming at each group of regional characteristic information, and the reliability of each group of regional characteristic information is improved.
In one implementation, the blockchain link point device determines whether each set of regional characteristic information passes the verification of the blockchain network according to the verification result of each blockchain node device on each set of regional characteristic information. And if the verification results contained in the verification response of each block chain node device to the group of regional characteristic information are that the passing number is larger than a first preset threshold value, the block chain node device determines that the group of regional characteristic information passes the verification of the block chain network. For example, if the number of each blockchain node device in the blockchain network is 50%, if the blockchain network is composed of 30 blockchain link node devices, the first preset threshold is 15, and 18 blockchain node devices pass the verification result of the blockchain node device on the group of regional characteristic information a, and if the number of the blockchain node devices pass the verification result of the blockchain node device on the group of regional characteristic information a in the blockchain network is greater than the first preset threshold, the blockchain node device determines that the group of regional characteristic information a passes the verification of the blockchain network. It should be noted that the above examples are only used to illustrate that if the verification result included in the verification response of each set of regional characteristic information is that the number of passes is greater than the first preset threshold, the blockchain node device determines that each set of regional characteristic information passes the verification of the blockchain network. In other possible implementations, if the verification result included in the verification response of each set of regional characteristic information is that the number of failed verification results is greater than the second preset threshold, the blockchain node device determines that the verification of each set of regional characteristic information fails the blockchain network. The first preset threshold value and the second preset threshold value may be equal or unequal.
And the block chain node device determines that each group of regional characteristic information passes the verification of the block chain network according to the verification result contained in the verification response of each block chain node device to each group of regional characteristic information, and the block chain node device successfully verifies each group of regional characteristic information.
In one implementation, the blockchain node device performs the uplink processing on each set of region characteristic information, and performs the verification on each block after obtaining a plurality of blocks corresponding to each set of region characteristic information. The verification manner of the blockchain node device on each block is the same as that of the blockchain node device on each group of regional characteristic information, so that the description is omitted. If the block chain node device checks each block successfully, each block is sent to each block chain node device except the block receiving the region characteristic information in the block chain network, so that each block chain node in the block chain network checks each block. The verification manner of each block by each block chain node in the block chain network is the same as that of each group of regional characteristic information by each block chain node device, so that the description is omitted. The block chain node device receiving the region characteristic information determines that each block passes through the verification of each block chain node device in the block chain network, so that the reliability of the block can be improved.
S403: and the block chain node device determines the random number corresponding to each group of regional characteristic information after the uplink to obtain at least one random number.
Specifically, the block chain link point device determines random numbers corresponding to each group of regional characteristic information after uplink based on the intelligent contract to obtain at least one random number. If the first characteristic information and the second characteristic information included in the regional characteristic information are combined, a hash value of the combined regional characteristic information is obtained through calculation, and the hash value is converted into a random number corresponding to the regional characteristic information.
In one implementation, the specific step of determining, by the block link point device, the random number corresponding to each set of region feature information after the uplink is shown in fig. 5 may include S501-S503:
s501: and the block chain node device obtains at least one hash value according to each group of region characteristic information after the uplink.
In one implementation, the block link point device combines the feature information in each group of region feature information in an end-to-end manner based on an intelligent contract to obtain each group of combined region feature information, wherein the end-to-end specific manner is that the tail of the current region feature information is connected with the head of the next region feature information. Here, the smart contract stores program code that merges the individual feature information in each set of regional feature information in an end-to-end manner. The block chain node device receives a group of regional characteristic information comprising first characteristic information AC, second characteristic information GK and third characteristic information MV, and combines the characteristic information in the regional characteristic information in an end-to-end mode to obtain the combined group of regional characteristic information, wherein the combined group of regional characteristic information comprises the following components: ACGKMV. Then, the block chain link point device calculates each group of combined regional characteristic information based on a hash algorithm to obtain at least one hash value, and each hash value corresponds to each group of regional characteristic information one by one. The hash algorithm may include, but is not limited to, a SHA512 algorithm, a SHA224 algorithm, a SHA384 algorithm, and the like. For example, the block link point device obtains the hash value of the feature information on the nose area of the mother character resource and the nose area feature information of the father character resource after the merging as "3a513cB07d" and the hash value of the feature information on the eye area of the mother character resource and the feature information on the eye area of the father character resource after the merging as "78AJI963a513cB07d" based on the hash algorithm.
In one implementation, the block link point device determines a hash value in each block header according to the block corresponding to each set of region characteristic information after uplink, and takes the hash value in each block header as the hash value corresponding to each set of region characteristic information to obtain at least one hash value. Wherein each block contains region characteristic information of a group of same regions. For example, after the region feature information is uplink, the block of the nose region feature information on the mother character resource and the nose region feature information on the father character resource is block a, and the hash value in the block header of block a is "76vdD E4E 502zBK", and then the blockchain node device takes the hash value in the block header of block a "76vdD E502zBK" as the hash value corresponding to the set of nose region feature information.
The blockchain node device converts each set of region characteristic information after being uplinked into a hash value corresponding to each set of region characteristic information. Hash value is a method of creating a small digital "fingerprint" from any kind of data. The function mixes the data in a shuffle, recreating a fingerprint called a hash value. The hash value is typically represented by a string of random letters and numbers. Each piece of information in the block chain network has a unique hash value, and whether the information is tampered or not can be judged through the hash value. Therefore, the blockchain node device obtains a plurality of hash values corresponding to each group of regional characteristic information according to each group of regional characteristic information, so that each group of regional characteristic information can be safer.
S502: the blockchain node device converts each hash value into a digital sequence to obtain at least one digital sequence.
Specifically, the block link point device converts each hash value into a digital sequence only containing numbers based on an intelligent contract, and at least one digital sequence corresponding to one hash value is obtained.
In one implementation, the blockchain node device converts each random letter in each hash value into a decimal number corresponding to american standard code for information interchange (American Standard Code for Information Interchange, ASCII), generates a plurality of sequences containing only numbers as a number sequence corresponding to each hash value, and obtains at least one number sequence.
For example, if one hash value calculated in S501 is "3a513cB07d", the blockchain node device converts each letter in the hash value into a decimal number corresponding to an ASCII code, to obtain a sequence containing only numbers as "397513996607100", and the blockchain node device converts the hash value into a number sequence as "397513996607100".
In one implementation, the blockchain node device extracts a sequence with a preset length from a preset nth sequence value to obtain a plurality of sequences, converts each random letter in each sequence into a decimal number corresponding to an ASCII code, generates a plurality of sequences with the same preset length and only containing the number, and uses the sequences as a plurality of number sequences corresponding to each hash value to obtain at least one number sequence.
For example, if the hash value obtained by S501 is "78AJI963a513cB07d", the blockchain node device extracts a sequence with a preset length of 8 from the preset 4 th sequence value, and the new sequence obtained is "I963a513", converts each random letter in the new sequence into a decimal number corresponding to an ASCII code, and obtains a sequence containing only numbers as "7396397513", and the sequence is regarded as a number sequence corresponding to the hash value, that is, the number sequence is "7396397513".
In one implementation, the block link point device extracts a sequence of pure letters or a sequence of pure numbers in each hash value to obtain at least one sequence. If each obtained sequence is a pure letter sequence, the blockchain node device converts each letter in each sequence into a decimal number corresponding to an ASCII code, and generates a plurality of sequences only containing numbers as a plurality of number sequences corresponding to each hash value. And if each obtained digital sequence is a pure digital sequence, the block chain node device takes each digital sequence as a plurality of digital sequences corresponding to each hash value to obtain at least one digital sequence.
For example, if a hash value calculated in S501 is "76vdD E502zBK", the block chain link point device extracts a pure letter sequence in the hash value to obtain a sequence of "vdDEzBK", converts each letter in the sequence into a decimal number corresponding to an ASCII code, and obtains a sequence containing only numbers as "11810068691226675", and the number sequence is "11810068691226675". If the block chain link point device extracts the pure digital sequence in the hash value to obtain the digital sequence of '764502', the digital sequence corresponding to the hash value is '764502'.
S503: the block chain node device performs operation on each digital sequence to obtain at least one random number.
In one implementation, the blockchain node device performs an addition operation on the numbers in each digital sequence to obtain a plurality of addition results, and uses each addition result as a plurality of random numbers corresponding to each digital sequence to obtain at least one random number. For example, the number sequence is shown in S502 as "397513996607100", and the blockchain node device performs an addition operation on each number in the number sequence to obtain a random number 66 corresponding to the number sequence.
In one implementation, the blockchain node device multiplies the numbers in each digital sequence to obtain a plurality of multiplication results, and uses each multiplication result as a plurality of random numbers corresponding to each digital sequence to obtain at least one random number. For example, the number sequence is shown in S502 as "7396397513", and the blockchain node device multiplies each number in the sequence to obtain a random number corresponding to the number sequence as 3214890.
In one implementation, the blockchain node device may perform an addition operation on numbers in a part of the number sequences in each number sequence to obtain a plurality of random numbers corresponding to the part of the number sequences, and perform a multiplication operation on another part of the number sequences in each number sequence to obtain a plurality of random numbers corresponding to the part of the number sequences. Finally, a plurality of random numbers corresponding to each digital sequence are obtained, and at least one random number is obtained. This way, the individual random numbers obtained are made more random.
S404: the block chain node device respectively determines the regional resources corresponding to each random number to obtain at least one regional resource.
In one implementation, the specific step of determining the area resource corresponding to each random number by the block link point device is shown in fig. 6, and may include S601-S606:
s601: the blockchain node device receives resource information of at least one area from the client, wherein the resource information of the area comprises a plurality of preset weights and area resources corresponding to each preset weight.
Specifically, the block link point device receives resource information of at least one region from a client (such as other clients or a server, such as a game server), and performs uplink processing on the resource information of each region to obtain resource information of at least one region after uplink, where the resource information of the region includes a plurality of preset weights and region resources corresponding to each preset weight. The blockchain node device performs uplink processing on the resource information of the region, so that the resource information of the region is fairly shared for each blockchain node device.
In one implementation, before the block link point device receives the resource information of at least one region from the client, the client sets the resource information about each region, where the resource information of a region includes a plurality of preset weights about the region and a region resource corresponding to each preset weight. The client then transmits the resource information of the at least one region to the blockchain node device.
Illustratively, the resource information about the nose region and the resource information about the eye region set by the client are as follows. Wherein, the plurality of preset weights about the nose region are 30%, 50% and 20%, respectively, and the nose region resource corresponding to the preset weight 30% is the preset first region resource, as shown in (a) of fig. 7; the nose area resource corresponding to the preset weight 50% is the preset second area resource, as shown in fig. 7 (b); the nose region resource corresponding to the preset weight of 20% is a preset third region resource, as shown in fig. 7 (c). The plurality of preset weights about the eye region are 10%, 30%, 20% and 40%, respectively, and the eye region resource corresponding to the preset weight 10% is the preset first region resource, as shown in fig. 8 (a); the eye area resource corresponding to the preset weight of 30% is a preset second area resource, as shown in fig. 8 (b); the eye region resource corresponding to the preset weight of 40% is a preset third region resource, as shown in fig. 8 (c); the eye region resource corresponding to the preset weight of 20% is a preset fourth region resource, as shown in fig. 8 (d).
It can be understood that the execution sequence of S601, S401, and S402 is not sequential, and before the blockchain node device determines the area resource corresponding to each random number, S601 may be executed first, and then S401 and S402 may be executed; s401 and S402 may be performed first, and S601 may be performed later; s601 and S401, S402 may also be performed simultaneously, which is not limited by the embodiment of the present application.
S602: the blockchain node device determines a target threshold corresponding to each random number, resulting in at least one target threshold.
Optionally, the block link point device determines the number of bits of each random number, and uses the maximum value corresponding to the number of bits of each random number as the target threshold value corresponding to each random number. For example, if the two random numbers corresponding to the nose region feature information and the eye region feature information obtained in S403 are 66 and 3214890, respectively, the target thresholds corresponding to the two random numbers are 99 and 9999999, respectively.
The random number obtained from the region feature information has randomness, so that the target threshold value is determined by the random number.
Alternatively, the blockchain node device may determine the number of bits of each random number, and use the sum of the maximum values corresponding to the number of bits of each random number as the target threshold value corresponding to each random number, or use the value obtained by calculating the random number in other manners as the target threshold value corresponding to the random number.
S603: the block chain node device determines the interval corresponding to each region according to each target threshold and a plurality of preset weights corresponding to each region, and a plurality of first intervals corresponding to at least one region are obtained.
Specifically, the blockchain node device uses 0 as the lower boundary of each second interval, uses each target threshold value as the upper boundary of each second interval to obtain a plurality of second intervals corresponding to each random number, and then divides each second interval into a plurality of first intervals corresponding to each region according to a plurality of preset weights corresponding to each region.
Illustratively, as shown in S602, the target thresholds corresponding to the two random numbers corresponding to the nose area and the eye area are 99 and 9999999, respectively, and the two second intervals corresponding to the two random numbers are [0, 99] and [0, 9999999], respectively. The preset weights for the nose region and the eye region are respectively 30%, 50%, 20% and 10%, 30%, 20%, 40% as shown in S601, and the blockchain node device divides the two second sections into a plurality of first sections for the nose region and the eye region according to the corresponding preset weights of the two regions, respectively: [0, 29.7], [29.7, 79.2], [79.2, 99] and [0, 999999.9], [999999.9, 3999999.6], [3999999.6, 5999999.4], [5999999.4, 9999999].
S604: and the block chain node device determines a target interval to which each random number belongs in a first interval corresponding to each region, and at least one target interval is obtained.
Specifically, the block link point device determines, according to the size of each random number, one first section of the plurality of first sections corresponding to each region, where each random number is located, and takes the first section where each random number is located as a target section corresponding to each region, thereby obtaining at least one target section.
Illustratively, the random numbers corresponding to the nose area and the eye area are 66 and 3214890, respectively, as obtained in S503, and the plurality of first intervals corresponding to the nose area and the eye area are S603, respectively: [0, 29.7], [29.7, 79.2], [79.2, 99] and [0, 999999.9], [999999.9, 3999999.6], [3999999.6, 5999999.4], [5999999.4, 9999999]. Accordingly, it can be determined that the random number 66 corresponding to the nose region is [29.7, 79.2] in the target section corresponding to the nose region, and the random number 3214890 corresponding to the eye region is [3999999.6, 5999999.4] in the target section corresponding to the eye region.
S605: the block chain node device takes the preset weight corresponding to each target interval as the weight corresponding to each random number to obtain at least one weight corresponding to the random number.
Specifically, the blockchain node device determines preset weights corresponding to each target interval, and then uses the preset weights corresponding to each target interval as weights corresponding to each random number.
For example, as shown in S604, the random number 66 corresponding to the nose region is [29.7, 79.2] in the target section corresponding to the nose region, and the preset weight corresponding to the target section [29.7, 79.2] is 50%, and then 50% is taken as the weight corresponding to the random number corresponding to the nose region. The random number 3214890 corresponding to the eye area is [3999999.6, 5999999.4] in the target interval corresponding to the eye area, and the preset weight corresponding to the target interval [3999999.6, 5999999.4] is 20%, and then 20% is taken as the weight corresponding to the random number corresponding to the eye area.
S606: and the block chain node device determines the area resources corresponding to the random numbers according to the weights corresponding to the random numbers and the area resources corresponding to each preset weight to obtain at least one area resource.
Specifically, each preset weight corresponds to one area resource, so that the area resource corresponding to each random number can be determined according to the weight corresponding to each random number and the area resource corresponding to each preset weight, and at least one area resource is obtained.
For example, if the weight corresponding to the random number corresponding to the nose area is 50% as shown in S605, and the nose area resource corresponding to the nose area preset weight of 50% is a preset second area resource as shown in S601, the nose area resource corresponding to the random number corresponding to the nose area is a preset second area resource as shown in (b) of fig. 7. The weight corresponding to the random number corresponding to the eye area is 20% as shown in S605, the eye area resource corresponding to the eye area preset weight 20% as shown in S601 is the preset third area resource, and the eye area resource corresponding to the random number corresponding to the eye area is the preset third area resource as shown in (c) of fig. 8.
In one implementation manner, the region characteristic information can also carry a corresponding region identifier, so that the blockchain node device can rapidly determine information such as preset weight, interval and/or region resource of a corresponding region according to the region identifier corresponding to each group of region characteristic information. Thereby helping to improve the resource acquisition efficiency.
In other optional implementations, the blockchain node device may further acquire the resource information of the at least one area in advance, for example, receive the resource information of the at least one area sent by the server, and uplink the resource information of the at least one area, so as to determine the area resource corresponding to the random number based on the resource information of the at least one area later, which is performed in S602-S606.
S405: the blockchain node device synthesizes the target character resource according to the at least one regional resource.
Specifically, the blockchain node device synthesizes the target role resource according to at least one regional resource and a preset regional resource, wherein the preset regional resource can be a preset regional resource obtained according to regional characteristic information.
For example, as shown in S606, the region resources of the nose region and the region resources of the eye region are respectively the region resources other than the region resources of the nose region and the region resources of the eye region, such as the region resources of the ear region, the mouth region, the neck region, etc., which are set in advance in the block chain node device, and the block chain node device synthesizes the target character resources based on the region resources of all the regions, as shown in fig. 7 (b) and 8 (c).
The target role resources are synthesized on the blockchain and have the characteristics of disclosure and transparency. Meanwhile, the target role resources can be synthesized based on different preset role resources, so that the randomness is realized, and the target role resources with different weights can be synthesized in the mode, thereby being beneficial to ensuring the resource scarcity.
S406: the blockchain node device sends the target persona resource to the client.
Specifically, after synthesizing the target role resources according to at least one regional resource, the blockchain node device sends the target role resources to the client, and the client can receive the target role resources from the blockchain node device; alternatively, the blockchain node device may transfer the target persona resource to the client (corresponding user account).
In one implementation, before the blockchain node device sends the target role resource to the client, the blockchain node device may further create a key pair for the target role, where the key pair includes a first private key and a second public key, and the first private key is used to process the target role resource to obtain the second digital signature. The asymmetric encryption algorithm herein may include, but is not limited to: elgamal algorithm (an asymmetric encryption algorithm), rabin algorithm (an asymmetric encryption algorithm), diddie-Hellman algorithm (an asymmetric encryption algorithm), ECC algorithm (elliptic curve encryption algorithm). The blockchain node device sends the target role resource, the second digital signature (i.e., the target role resource encrypted by the second digital signature) and the second public key to the client, so that the client receives the target role resource, the second digital signature and the second public key, and decrypts the second digital signature by using the second public key to obtain the target role resource.
Therefore, by implementing the embodiment of the application, the resources can be synthesized on the blockchain according to at least one regional characteristic information, the resource synthesis and acquisition processes are public and transparent, and the synthesized resources have randomness, thereby being beneficial to improving the fairness of resource acquisition.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a blockchain node device according to an embodiment of the present application, the blockchain node device may be used for the steps performed by the blockchain node device in the embodiments shown in fig. 4-6, and the blockchain node device 90 may include:
the receiving module 901 is configured to receive at least one set of region feature information from a client, where the region feature information is used to indicate feature information of a region of a role resource, and the region feature information corresponds to the region one by one;
the processing module 902 is configured to perform a uplink processing on at least one set of region feature information, so as to obtain at least one set of region feature information after the uplink processing;
the processing module 902 is further configured to determine random numbers corresponding to each set of region feature information after the uplink to obtain at least one random number;
the processing module 902 is further configured to determine an area resource corresponding to each random number, so as to obtain at least one area resource;
A processing module 902, configured to synthesize a target role resource according to at least one regional resource;
a transmitting module 903, configured to send the target role resource to the client.
In one implementation manner, the processing module 902 is specifically configured to determine, according to the first feature information and the second feature information included in the region feature information after the uplink, a random number corresponding to the region feature information.
In one implementation manner, the receiving module 901 is further configured to receive resource information of at least one area from the server, where the resource information of the area includes a plurality of preset weights and an area resource corresponding to each preset weight;
the processing module 902 is further configured to perform uplink processing on the resource information of each area, so as to obtain resource information of at least one area after uplink;
the processing module 902 is specifically configured to determine a weight corresponding to the random number according to a plurality of preset weights in the area corresponding to the random number; and determining the area resource corresponding to the random number according to the weight corresponding to the random number and the area resource corresponding to each preset weight.
In one implementation, the processing module 902 is specifically configured to determine a target threshold according to the random number; determining a corresponding interval of each preset weight according to the target threshold and a plurality of preset weights of the random number corresponding region; determining a target interval to which the random number belongs in a corresponding interval of each preset weight; and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
In one implementation, the processing module 902 is specifically configured to combine the first feature information and the second feature information to obtain combined regional feature information; calculating to obtain a hash value of the combined regional characteristic information; and converting the hash value into a random number corresponding to the regional characteristic information.
In one implementation manner, the processing module 902 is specifically configured to synthesize the target role resource according to the area resource corresponding to the at least one random number and the basic area resource, where the basic area resource is a preset area resource except for the area resource corresponding to the at least one random number.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a blockchain node device according to an embodiment of the present invention, where the blockchain node device 100 includes a processor 1001, a memory 1002, and a communication interface 1003, and the processor 1001, the memory 1002, and the communication interface 1003 are connected by one or more communication buses.
The processor 1001 is configured to support the block chain node device to perform the corresponding functions of the block chain node device in the embodiments shown in fig. 4-6. The processor 1001 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip or any combination thereof.
The memory 1002 is used for storing program codes and the like. The memory 1002 may include volatile memory (RAM), such as random access memory (random access memory); the memory 1002 may also include a nonvolatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a hard disk (HDD) or a Solid State Drive (SSD); the memory 1002 may also include a combination of the above types of memory.
The communication interface 1003 is used to receive and transmit data, for example, the communication interface 1003 is used to receive at least one set of region characteristic information from a client, or the communication interface 1003 is used to transmit a target character resource to a client or the like.
In an embodiment of the present invention, the blockchain node device 100 includes a plurality of communication interfaces, wherein the communication interface for transmitting data and the communication interface for receiving data may not be the same communication interface.
The processor 1001 may call program code stored in the memory 1002 to:
receiving at least one set of region feature information from the client through the communication interface 1003, wherein the region feature information is used for indicating feature information of a region of the character resource, and the region feature information corresponds to the region one by one;
Carrying out uplink processing on at least one group of regional characteristic information to obtain at least one group of regional characteristic information after the uplink processing;
respectively determining random numbers corresponding to each group of regional characteristic information after the uplink to obtain at least one random number;
determining the area resource corresponding to each random number respectively to obtain at least one area resource;
synthesizing target role resources according to at least one regional resource;
the target character resource is sent to the client through the communication interface 1003.
In one implementation, each set of regional feature information includes first feature information and second feature information, where the first feature information includes feature information of a region of the first role resource, and the second feature information includes feature information of the region of the second role resource, and when determining a random number corresponding to the regional feature information after being uplinked, the processor 1001 may specifically execute the following steps: and determining a random number corresponding to the regional characteristic information according to the first characteristic information and the second characteristic information included in the regional characteristic information after the uplink.
In one implementation, the processor 1001 may further perform the steps of:
receiving resource information of at least one area from the server through the communication interface 1003, wherein the resource information of the area comprises a plurality of preset weights and area resources corresponding to each preset weight;
The processor 1001 performs uplink processing on the resource information of each region to obtain resource information of at least one region after uplink; when the processor 1001 determines the area resource corresponding to the random number, the following steps may be specifically executed:
the processor 1001 determines the weight corresponding to the random number according to a plurality of preset weights in the area corresponding to the random number;
the processor 1001 determines the area resource corresponding to the random number according to the weight corresponding to the random number and the area resource corresponding to each preset weight.
In one implementation, when the processor 1001 determines the weight corresponding to the random number according to the plurality of preset weights in the area corresponding to the random number, the following steps may be specifically executed: determining a target threshold according to the random number; determining a corresponding interval of each preset weight according to the target threshold and a plurality of preset weights of the random number corresponding region; determining a target interval to which the random number belongs in a corresponding interval of each preset weight; and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
In one implementation manner, when determining the random number corresponding to the region feature information according to the first feature information and the second feature information included in the region feature information after the uplink, the processor 1001 may specifically execute the following steps: combining the first characteristic information and the second characteristic information to obtain combined regional characteristic information; calculating to obtain a hash value of the combined regional characteristic information; and converting the hash value into a random number corresponding to the regional characteristic information.
In one implementation, when the processor 1001 synthesizes the target role resource according to at least one region resource, the following steps may be specifically performed: and synthesizing target role resources according to the region resources corresponding to the at least one random number and the basic region resources, wherein the basic region resources are preset region resources except for the region resources corresponding to the at least one random number.
Embodiments of the present invention also provide a computer readable storage medium that may be used to store computer software instructions for use by the blockchain node device in the embodiments of fig. 4-6, including programs designed to implement the blockchain node device in the embodiments described above.
The computer readable storage medium includes but is not limited to flash memory, hard disk, solid state disk.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a client provided in an embodiment of the present invention, where the client may be used for steps performed by the client in the embodiments shown in fig. 4 to fig. 6, and the client 110 may include:
the sending module 1101: the method comprises the steps that at least one group of regional characteristic information is sent to a block chain node device, so that the block chain node device carries out uplink processing on the at least one group of regional characteristic information, random numbers corresponding to each group of regional characteristic information after uplink are determined, regional resources corresponding to each random number are determined, target role resources are synthesized according to the at least one regional resource, the regional characteristic information is used for indicating the regional characteristic information of the role resources, and the regional characteristic information corresponds to the regions one by one;
The receiving module 1102: for receiving target persona resources from the blockchain node device.
According to another embodiment of the present application, each module in the apparatus shown in fig. 9 or fig. 11 may be separately or completely combined into one or several other modules, or some (some) of the modules may be further split into a plurality of modules with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present application. The above modules are divided based on logic functions, and in practical application, the functions of one module may be implemented by a plurality of modules, or the functions of a plurality of modules may be implemented by one module. In other embodiments of the present application, other modules may be included, and in practical applications, these functions may be implemented with assistance of other modules, and may be implemented by cooperation of multiple modules, which is not limited by the present application.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a client provided by an embodiment of the present application, where the client 120 includes a processor 1201, a memory 1202, and a communication interface 1203, and the processor 1201, the memory 122, and the communication interface 1203 are connected by one or more communication buses.
The processor 1201 is configured to support the client to perform the corresponding functions of the client in the embodiments shown in fig. 4-6. The processor 1201 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip, or any combination thereof.
The memory 1202 is used for storing program codes and the like. The memory 1202 may include volatile memory (RAM), such as random access memory (random access memory); the memory 1002 may also include a nonvolatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a hard disk (HDD) or a Solid State Drive (SSD); memory 1202 may also include combinations of the above types of memory.
In an embodiment of the present invention, the client 120 includes a plurality of communication interfaces, where the communication interface for sending data and the communication interface for receiving data may not be the same communication interface.
The processor 1201 may call program code stored in the memory 1202 to:
transmitting at least one group of regional characteristic information to a block chain node device through a communication interface 1203, so that the block chain node device carries out uplink processing on the at least one group of regional characteristic information, determines random numbers corresponding to each group of regional characteristic information after uplink, determines regional resources corresponding to each random number, synthesizes target role resources according to at least one regional resource, and uses the regional characteristic information to indicate the regional characteristic information of the role resources, wherein the regional characteristic information corresponds to the regions one by one;
The target role resources from the blockchain node device are received through the communication interface 1203.
Embodiments of the present application also provide a computer readable storage medium that may be used to store computer software instructions for a client in the embodiments shown in fig. 4-6, including a program designed for executing the client in the above embodiments.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of resource acquisition, for use in a blockchain node device, the method comprising:
receiving at least one group of regional characteristic information from a client, wherein the regional characteristic information is used for indicating the characteristic information of a region of a role resource, and the regional characteristic information corresponds to the region one by one;
carrying out uplink processing on the at least one group of regional characteristic information to obtain at least one group of regional characteristic information after the uplink processing;
Respectively determining random numbers corresponding to each group of regional characteristic information after the uplink to obtain at least one random number;
determining the area resource corresponding to each random number respectively to obtain at least one area resource;
and synthesizing target role resources according to the at least one regional resource, and sending the target role resources to the client.
2. The method of claim 1, wherein each set of region characteristic information comprises first characteristic information and second characteristic information, the first characteristic information comprising characteristic information of a region of a first character resource, the second characteristic information comprising characteristic information of the region of a second character resource;
the determining the random number corresponding to the region characteristic information after the uplink comprises the following steps:
and determining a random number corresponding to the regional characteristic information according to the first characteristic information and the second characteristic information included in the regional characteristic information after the uplink.
3. The method according to claim 1, wherein the method further comprises:
receiving resource information of at least one area from a server, wherein the resource information of the area comprises a plurality of preset weights and area resources corresponding to each preset weight;
Carrying out uplink processing on the resource information of each region to obtain the resource information of at least one region after uplink;
the determining the area resource corresponding to the random number comprises the following steps:
determining the weight corresponding to the random number according to a plurality of preset weights in the random number corresponding area;
and determining the area resource corresponding to the random number according to the weight corresponding to the random number and the area resource corresponding to each preset weight.
4. A method according to claim 3, wherein said determining the weight corresponding to the random number according to the plurality of preset weights of the random number corresponding region comprises:
determining a target threshold according to the random number;
determining a corresponding interval of each preset weight according to the target threshold and a plurality of preset weights of the random number corresponding region;
determining a target interval to which the random number belongs in the corresponding interval of each preset weight;
and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
5. The method according to claim 2, wherein the determining the random number corresponding to the region feature information according to the first feature information and the second feature information included in the region feature information after the uplink includes:
Combining the first characteristic information and the second characteristic information to obtain combined regional characteristic information;
calculating the hash value of the combined regional characteristic information;
and converting the hash value into a random number corresponding to the regional characteristic information.
6. The method according to any one of claims 1-5, wherein synthesizing target role resources from the at least one regional resource comprises:
and synthesizing the target role resource according to the area resource corresponding to the at least one random number and the basic area resource, wherein the basic area resource is a preset area resource except for the area resource corresponding to the at least one random number.
7. A method for obtaining resources, applied to a client, the method comprising:
transmitting at least one set of regional characteristic information to a blockchain node device, so that the blockchain node device carries out uplink processing on the at least one set of regional characteristic information, determines random numbers corresponding to each set of regional characteristic information after uplink, determines regional resources corresponding to each random number, synthesizes target role resources according to the regional resources, wherein the regional characteristic information is used for indicating the regional characteristic information of the role resources, and the regional characteristic information corresponds to the regions one by one;
A target persona resource is received from the blockchain node device.
8. A blockchain node device comprising a memory, a processor and a communication interface, the memory storing a set of program code, the processor invoking the program code stored in the memory for performing the operations in accordance with any of claims 1-6.
9. A client comprising a memory, a processor, and a communication interface, the memory storing a set of program code, the processor invoking the program code stored in the memory for performing the operations of claim 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1-6 or to perform the method of claim 7.
CN201910921937.5A 2019-09-26 2019-09-26 Resource acquisition method and device Active CN110585727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910921937.5A CN110585727B (en) 2019-09-26 2019-09-26 Resource acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910921937.5A CN110585727B (en) 2019-09-26 2019-09-26 Resource acquisition method and device

Publications (2)

Publication Number Publication Date
CN110585727A CN110585727A (en) 2019-12-20
CN110585727B true CN110585727B (en) 2023-08-29

Family

ID=68864154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910921937.5A Active CN110585727B (en) 2019-09-26 2019-09-26 Resource acquisition method and device

Country Status (1)

Country Link
CN (1) CN110585727B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282662B (en) * 2021-06-03 2023-11-03 广东辰宜信息科技有限公司 Block information processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211361A (en) * 2017-11-30 2018-06-29 腾讯科技(深圳)有限公司 Resource acquisition method of determining probability and device, storage medium, electronic device
CN109102890A (en) * 2018-08-07 2018-12-28 陈弼梅 Distributed medical detection service platform, system and its terminal
CN109327512A (en) * 2018-09-19 2019-02-12 广东微链科技有限公司 Game data subregion storage method based on block chain hash addressing and re-encryption
CN109453521A (en) * 2018-11-12 2019-03-12 网易(杭州)网络有限公司 The processing method and system of game asset
CN110011974A (en) * 2019-03-07 2019-07-12 深圳市融汇通金科技有限公司 Bookkeeping methods, device, terminal and the computer readable storage medium of block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11151553B2 (en) * 2017-03-23 2021-10-19 At&T Intellectual Property I, L.P. Time and geographically restrained blockchain services

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211361A (en) * 2017-11-30 2018-06-29 腾讯科技(深圳)有限公司 Resource acquisition method of determining probability and device, storage medium, electronic device
CN109102890A (en) * 2018-08-07 2018-12-28 陈弼梅 Distributed medical detection service platform, system and its terminal
CN109327512A (en) * 2018-09-19 2019-02-12 广东微链科技有限公司 Game data subregion storage method based on block chain hash addressing and re-encryption
CN109453521A (en) * 2018-11-12 2019-03-12 网易(杭州)网络有限公司 The processing method and system of game asset
CN110011974A (en) * 2019-03-07 2019-07-12 深圳市融汇通金科技有限公司 Bookkeeping methods, device, terminal and the computer readable storage medium of block chain

Also Published As

Publication number Publication date
CN110585727A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
EP3780553B1 (en) Blockchain-based transaction consensus processing method and apparatus, and electrical device
CN109150499B (en) Method and device for dynamically encrypting data, computer equipment and storage medium
WO2018076760A1 (en) Block chain-based transaction processing method, system, electronic device, and storage medium
CN112001502B (en) Federal learning training method and device for high-delay network environment robustness
CN110099048B (en) Cloud storage method and equipment
CN110597489B (en) Random number generation method, equipment and medium
CN109688098B (en) Method, device and equipment for secure communication of data and computer readable storage medium
CN110633071B (en) Random number generation method and device
CN110224811B (en) Internet of things encryption processing method, device and system
CN111130798B (en) Request authentication method and related equipment
US20230344643A1 (en) Digital signature system using scalable servers
CN109614789A (en) A kind of verification method and equipment of terminal device
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN110585727B (en) Resource acquisition method and device
US11509469B2 (en) Methods and systems for password recovery based on user location
CN112235104B (en) Data encryption transmission method, system, terminal and storage medium
CN109005187A (en) A kind of communication information guard method and device
CN117240625A (en) Tamper-resistant data processing method and device and electronic equipment
US20170279777A1 (en) File signature system and method
CN111628985A (en) Security access control method, security access control device, computer equipment and storage medium
CN114363094B (en) Data sharing method, device, equipment and storage medium
CN111294359B (en) Pressure testing method, pressure testing device, computer equipment and storage medium
US20230048174A1 (en) Digital signature system using reliable servers
CN113158218A (en) Data encryption method and device and data decryption method and device
CN107113305A (en) Apparatus and method for sending and verifying signature

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
GR01 Patent grant
GR01 Patent grant