CN110585727A - Resource acquisition method and device - Google Patents

Resource acquisition method and device Download PDF

Info

Publication number
CN110585727A
CN110585727A CN201910921937.5A CN201910921937A CN110585727A CN 110585727 A CN110585727 A CN 110585727A CN 201910921937 A CN201910921937 A CN 201910921937A CN 110585727 A CN110585727 A CN 110585727A
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.)
Granted
Application number
CN201910921937.5A
Other languages
Chinese (zh)
Other versions
CN110585727B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Multimedia (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Mobile Radio Communication Systems (AREA)

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; performing uplink processing on the at least one group of regional characteristic information to obtain at least one group of regional characteristic information after uplink processing; respectively determining random numbers corresponding to each group of regional characteristic information after uplink so as to obtain at least one random number; respectively determining the area resource corresponding to each random number to obtain at least one area resource; and synthesizing the target role resource according to the at least one region resource, and sending the target role resource 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 region characteristic information, the resource synthesis process is open and transparent, and the synthesized resources have randomness, which is 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 resource obtaining method and apparatus.
Background
There are many scenes for acquiring resources, such as lottery scenes, and resources acquired by users are determined according to lottery results. The resources are generally stored in the server, the process of acquiring the resources is carried out in the server and cannot be known by users, and the problems of unpubleness and opaqueness exist, so that the fairness cannot be ensured.
Disclosure of Invention
The embodiment of the application provides a resource acquisition method and device, which can make the resource acquisition process public and transparent by performing resource synthesis on a block chain, and are beneficial to improving the fairness of resource acquisition.
In a first aspect, an embodiment of the present invention provides a resource obtaining method, 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 role resource, and the regional characteristic information and the region are in one-to-one correspondence; performing uplink processing on the at least one group of regional characteristic information to obtain at least one group of regional characteristic information after uplink processing; respectively determining random numbers corresponding to each group of regional characteristic information after uplink so as to obtain at least one random number; respectively determining the area resource corresponding to each random number to obtain at least one area resource; and synthesizing the target role resource according to the at least one region resource, and sending the target role resource to the client.
In the technical scheme, the resources can be synthesized on the block chain according to the at least one region characteristic information, the resource synthesis process is open and transparent, and the fairness of resource acquisition is favorably improved.
In one implementation, each set of regional characteristic information includes first characteristic information and second characteristic information, the first characteristic information includes characteristic information of a region of a first character resource, and the second characteristic information includes characteristic information of the region of a second character resource; the specific implementation of determining the random number corresponding to the uplink regional characteristic information 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 region from a server, wherein the resource information of the region comprises a plurality of preset weights and region resources corresponding to each preset weight; performing uplink processing on the resource information of each area to obtain the resource information of at least one area after uplink processing; the specific implementation of determining the region resource corresponding to the random number may include: determining the weight corresponding to the random number according to a plurality of preset weights of 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 specific implementation of determining the weight corresponding to the random number according to a plurality of preset weights of the region corresponding to the random number may include: determining a target threshold value according to the random number; determining a corresponding interval of each preset weight according to a plurality of preset weights of the target threshold and a region corresponding to the random number; determining a target interval to which the random number belongs in corresponding intervals of each preset weight; and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
In an implementation manner, according to the first feature information and the second feature information included in the uplink regional feature information, a specific implementation manner of determining a random number corresponding to the regional feature information may include: merging the first characteristic information and the second characteristic information to obtain merged regional characteristic information; calculating to obtain a hash value of the combined region characteristic information; and converting the hash value into a random number corresponding to the region characteristic information.
In one implementation, the specific implementation of synthesizing the target role resource according to the at least one regional resource may include: and synthesizing the target role resource according to the region resource corresponding to the at least one random number and the basic region resource, wherein the basic region resource is a preset region resource except the region resource corresponding to the at least one random number.
In a second aspect, an embodiment of the present invention provides a resource obtaining method, where the method includes:
sending at least one group of regional characteristic information to a block chain link point device so that the block chain link point device can carry out chain linking processing on the at least one group of regional characteristic information, determining random numbers corresponding to each group of regional characteristic information after chain linking, determining regional resources corresponding to each random number, and synthesizing a target role resource according to at least one regional resource, wherein the regional characteristic information is used for indicating the characteristic information of the region of the role resource, and the regional characteristic information corresponds to the region one to one.
In the technical scheme, the client can send at least one group of regional characteristic information to the block chain node point device, so that the block chain node point 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 block link point device having a function of implementing the resource synthesis method according to the first aspect or the second aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units or modules corresponding to the above functions.
In a fourth aspect, an embodiment of the present invention provides a block link node device, where the device includes a memory, a processor, and a communication interface, where the memory stores a set of program codes, and the processor calls the program codes stored in the memory to perform the operations recited in the first aspect.
In a fifth aspect, the present invention provides a client having a function of implementing the resource composition method according to the first aspect or the second aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units or modules corresponding to the above functions.
In a sixth aspect, an embodiment of the present invention provides a client, where the client includes a memory, a processor, and a communication interface, the memory stores a set of program codes, and the processor calls the program codes stored in the memory to perform the operations according to the second aspect.
In a seventh aspect, embodiments of the present invention provide a computer-readable storage medium for storing computer program instructions for a block-link node apparatus or a client, which includes a program for executing the first aspect or the second aspect.
By implementing the embodiment of the application, the block link node device can receive at least one group of regional characteristic information from the client and uplink the regional characteristic information, determine the corresponding random number according to the at least one group of regional characteristic information after uplink, and further determine the regional resource corresponding to each random number, so as to synthesize the resource on the block link based on each regional resource, wherein the resource synthesis and acquisition process is open and transparent, and the resource has randomness, thereby being beneficial to improving the fairness of resource acquisition.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
FIG. 1 is a schematic view of a resource acquisition scenario;
fig. 2 is a schematic view of a resource acquisition scenario provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a blockchain network according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a resource obtaining method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for determining a random number corresponding to regional characteristic information according to an embodiment of the present disclosure;
fig. 6 is a flowchart illustrating 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 a nose region resource corresponding to a preset weight of a preset nose region according to an embodiment of the present application;
fig. 8 is a schematic view of an eye area resource corresponding to a preset weight of a preset eye area according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a block link point device according to an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of another block link point device according to an embodiment of the present disclosure;
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
The embodiments of the present application will be described below with reference to the drawings.
In this embodiment, the client may send feature information of resources, such as at least one set of regional feature information, to the block-link node device, so that the block-link node device may perform uplink processing on the at least one set of regional feature information, and further determine random numbers corresponding to each set of regional feature information after the uplink processing, and determine regional resources corresponding to each random number, synthesize a target resource based on the regional resources corresponding to each random number, and send the target resource to the client. The resource obtaining mode based on the regional characteristic information and the block chain enables the resource obtaining process to be open and transparent, and therefore fairness of resource obtaining is improved.
In this application, a resource or character resource may refer to a virtual resource, such as a game resource, an image resource, and so on. The region characteristic information may refer to characteristic information of a region of the resource.
Take resources as skins, such as game character skins, and area characteristic information as area characteristic information of the skins as an example. Please refer to fig. 1, which is a schematic view of a resource acquisition scenario. As shown in fig. 1, a conventional method for acquiring a game character skin is to synthesize each game character skin in advance in a game server 102, and when a game player (client 101) needs a character skin, the game server acquires the character skin by means of lottery. The process of acquiring the skin of the game role in the mode can only be carried out in the game server and cannot be known by the user, the problems of unpubleness and opaqueness exist, and the possibility of counterfeiting exists, for example, the rare skin is distributed to certain specific users, and the fairness cannot be ensured.
Referring to fig. 2, fig. 2 is a schematic view of a resource acquisition scenario provided in an embodiment of the present application. As shown in fig. 2, the client 201 may send at least one set of regional characteristic information of a character skin (e.g., a character skin of a game player of the client, and/or a skin of a character associated with the character of the game player, etc.) to one tile-linked node device 202 on the tile chain, where the tile-linked node device may perform uplink processing on the received regional characteristic information after receiving the regional characteristic information of the character skin, then determine a random number corresponding to each set of regional characteristic information after uplink processing based on an intelligent contract, determine a regional resource corresponding to each random number, and synthesize a target character skin according to the obtained at least one regional resource. By the method, the characteristic information of the block chain and the character skin can be combined, the target character skin is synthesized on the block chain node device based on the regional characteristic information of the character skin, the synthesis process is open and transparent, the synthesized skin has randomness, and the fairness of skin acquisition is improved.
In the resource acquisition process, the client is mainly involved. The client can run on terminals such as mobile phones, computer equipment and other handheld devices with wireless communication functions. In other embodiments, the block link point device may also be called a block link node, a block link point device, a block link network node, or other names, which are not limited in this application.
The Block Chain (Block Chain) is a Chain data structure which combines data blocks in a sequential connection mode according to a time sequence and is a distributed book which is cryptographically used for ensuring that the data cannot be tampered and forged. Multiple independent distributed nodes (i.e., block-link node devices) maintain the same record. The blockchain technology realizes decentralization and becomes a foundation for credible digital asset storage, transfer and transaction. The information after the uplink processing is fairly shared and publicly transparent for each block chain node device in the block chain network. And the block link point device carries out uplink processing on the block chain by at least one group of regional characteristic information and synthesizes target role resources on the block chain according to each group of regional characteristic information after uplink processing. The whole synthesis process is carried out on the block chain, and the whole synthesis process of the target role resources is shared fairly for each block chain node device, so that the synthesis process of the target role resources is public and transparent.
In the resource synthesis process of the application, the block link point device stores an intelligent contract, and can acquire at least one group of regional characteristic information through the intelligent contract, determine a random number corresponding to each group of regional characteristic information, determine regional resources corresponding to the random number, synthesize target role resources according to the regional resources, and the like, so as to acquire resources. Wherein, the smart contract (SmartContract) is a program driven by events, having states, running on a distributed blockchain ledger, and capable of managing data on the ledger. The code content of the intelligent contract defines the rules and logic of the transaction, and the user signing to invoke the intelligent contract means that the contract content will be executed and written into the blockchain ledger.
In order to better understand a resource acquisition method and apparatus disclosed in the embodiments of the present application, first, a structure of a block chain network to which the embodiments of the present application are applicable is described below.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating an architecture of a blockchain network according to an embodiment of the present disclosure. As shown in fig. 3, the blockchain network includes a first blockchain link point device 301, a second blockchain link point device 302, and a third blockchain node device 303. First block link point device 301, second block link point device 302, and third block link node device 303 may be any block link point device in a block chain network. Any one of the block link node devices may receive at least one set of regional characteristic information from the client, or obtain the at least one set of regional characteristic information from the client in other manners, and implement the synthesis of the target role resource based on the at least one set of regional characteristic information.
Alternatively, the client may operate in any blockchain link point device of the blockchain network, and the client is authenticated by the blockchain network. Or, alternatively, the client may be independent of any blockchain link point device of the blockchain network, and the client may be a client that is not authenticated by the blockchain network.
It is to be understood that the block chain network described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation to the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows that along with the evolution of the system architecture and the appearance of a new scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
The embodiment of the application discloses a resource obtaining method, a block chain node device, a client and a medium, which are beneficial to improving the randomness and the fairness of resource obtaining. The details are described below.
Based on the above description, an embodiment of the present application provides a resource obtaining method as shown in fig. 4, where the resource obtaining method may include S401 to S406:
s401: and the client sends at least one group of regional characteristic information to the block chain link point device.
Specifically, the client may obtain at least one set of regional characteristic information and may send the at least one set of regional characteristic information to the block-link point device, and the block-link point device receives the at least one set of regional characteristic information from the client. The region feature information may be used to indicate feature information of a region of the character resource, and the region feature information may correspond to the region one to one. Optionally, the role resource may be a role resource associated with the client, such as a role resource of a game account of the client, and further such as a role resource associated with a role of a game account of the client; or, the role resource may also be other resources determined by a preset rule, which is not limited in the present application.
In one implementation, each set of region feature information may include one or more feature information for the region. For example, a set of region characteristic information may include 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, i.e., the region characteristic information may include characteristic information of the first character resource and the second character resource for the same resource region.
For example, when a game character resource is acquired, such as character skin acquisition, the client may acquire two sets of region feature information corresponding to a parent character resource and a parent character resource included in the game, and send the two sets of region feature information about the parent character resource and the parent character resource in the game to the block-link node device, such as a first set of region feature information indicating feature information of a nose region of the parent character resource and the parent character resource, and a second set of region feature information indicating feature information of an eye region of the parent character resource and the parent character resource. The first characteristic information is characteristic information of a nose region (e.g., first characteristic information of the first set of region characteristic information) and an eye region (e.g., first characteristic information of the 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 region feature information to the block link point device, for example, send sets of region feature information about the mouth region, the ear region, the eyebrow region, and the like of the mother character resource and the father character resource to the block link point device, so as to achieve resource acquisition.
In one implementation, before the client sends the at least one set of regional characteristic information to the block-link node device, the client may select a preset number of role resources and send the at least one set of regional characteristic information of the preset number of role resources to the block-link node device, where each set of regional characteristic information includes a preset number of regional characteristic information about the role resources. For example, the client selects 3 preset role resources, which are a first role resource, a second role resource and a third role resource, respectively, and sends two sets of region feature information of the first role resource, the second role resource and the third role resource about a nose region and an eye region to the block chain node device, where the feature information of the first set of region includes the nose region feature information of the first role resource, the nose region feature information of the second role resource and the nose region feature information of the third role resource, and the feature information of the second set of region includes the eye region feature information of the first role resource, the eye region feature information of the second role resource and the eye region feature information of the third role resource.
In an implementation manner, the client may further obtain the region feature information according to the number of the set region feature information, for example, the priority of each region is preset, such as eyes, a nose, a mouth, and ears in sequence, or a head, upper limbs, and lower limbs in sequence, and then the region feature information corresponding to the set number may be selected according to the order of the priority from high to low. And the client can send the region characteristic information to the block chain node point device, and the block chain node point device can receive the region characteristic information sent by the client.
The number corresponding to the role and/or the number corresponding to the area feature information may be preset, or may be notified by a block chain network (e.g., the block chain node device, and also e.g., a block chain management device in the block chain network), which is not limited in the embodiment of the present disclosure.
S402: and the block chain link point device carries out chain linking processing on each group of regional characteristic information to obtain at least one group of regional characteristic information after chain linking.
Specifically, the block link point device performs uplink processing on each group of regional characteristic information, and generates a plurality of blocks from the characteristic information in each group of regional characteristic information, wherein each block corresponds to each group of regional characteristic information one to one. The block chain link point device generates a plurality of blocks corresponding to each group of regional characteristic information from each group of regional characteristic information, so that each group of regional characteristic information is stored in a block mode in a distributed mode, the block chain link point device has the characteristic of being not easy to tamper, and each block chain link point device in a block chain network is fairly shared and disclosed.
In one implementation, before the block link point device performs uplink processing on each set of the regional characteristic information, each set of the regional characteristic information may be checked. If the verification of each group of regional characteristic information is successful, the block chain link point 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 region feature information may include identity information of the client, and the checking, by the block link point device, each set of region feature information may include: and checking the identity of each group of regional characteristic information senders, namely checking the identity of the client, so as to improve the reliability of each group of received regional characteristic information. Specifically, the block link point device verifies each corresponding group of regional characteristic information by using different first public keys created by the client, if the verification is successful, it indicates that the sender of each group of regional characteristic information is the client sending the group of regional characteristic information, and the block link point device verifies each group of regional characteristic information successfully. By the method, the reliability of each group of regional characteristic information is improved.
In one implementation, after the block link point device successfully verifies each group of regional characteristic information, each group of regional characteristic information is sent to each block link point device in the block chain network, and each block link point device verifies each group of regional characteristic information. And under the condition that the block chain link point device receiving the regional characteristic information successfully verifies each group of regional characteristic information, sending each group of regional characteristic information to each block chain link point device in the block chain network, so that the reliability of each group of regional characteristic information can be improved. And each block chain link point device in the block chain network verifies each group of regional characteristic information, and sends the verification result aiming at each group of regional characteristic information to the block chain link point device in the form of verification response of each group of regional characteristic information.
Specifically, each block link point device in the block chain 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 pass or fail, each block chain node device in the block chain network may send the verification response of each group of region feature information to the block chain node device that receives each group of region feature information. The block link point device receives a check response for each set of regional characteristic information from each block link point device in the block chain network. The verification results for each group of regional characteristic information included in each group of regional characteristic information verification responses from each block link point device in the block chain network may be independent of each other, that is, the verification process performed by each block link point device for each group of regional characteristic information may not be affected by other block link point devices. For example, the verification result for each set of region feature information included in each set of region feature information verification response from one block link point device may be a verification pass, and the verification result for each set of region feature information included in each set of region feature information verification response from another block link point device may be a verification fail.
And the block chain link point device obtains the verification result of the regional characteristic information of each group according to the verification response of the regional characteristic information of each group, and further determines whether the regional characteristic information of each group passes the verification of the block chain network, namely the verification result of the regional characteristic information of each group is determined jointly according to the verification response of the regional characteristic information of each group returned by the block chain link point device in the block chain network. By the method, each block chain link point 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 block link point device determines whether each group of area feature information passes the check of the block chain network according to the check result of each block link point device on each group of area feature information. And if the verification result included in the verification response of each block chain link point device to a group of regional characteristic information is that the passing number is greater than a first preset threshold value, the block chain link point device determines that the group of regional characteristic information passes the verification of the block chain network. For example, the first preset threshold is 50% of the number of each block link point device in the block chain network, if the block chain network is composed of 30 block link point devices, the first preset threshold is 15, 18 block link point devices pass the verification result of a group of area characteristic information a, and the number of block link point devices passing the verification result of the group of area characteristic information a in the block chain network is greater than the first preset threshold, the block link point device determines that the group of area characteristic information a passes the verification of the block chain network. It should be noted that the above example is only used to illustrate that, if the verification result included in each group of area characteristic information verification responses is that the number of passed areas is greater than the first preset threshold, the block link point device determines that each group of area characteristic information passes through the verification of the block link network. In other possible implementation manners, if the verification result included in each group of regional characteristic information verification responses is that the number of failed regional characteristic information is greater than the second preset threshold, the block link point device determines that each group of regional characteristic information fails to be verified by the block chain network. The first preset threshold and the second preset threshold may be equal or unequal.
And the block link point 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 link point device to each group of regional characteristic information, and the block link point device successfully verifies each group of regional characteristic information.
In one implementation, the block link point device performs uplink processing on each group of the regional characteristic information to obtain a plurality of blocks corresponding to each group of the regional characteristic information, and then checks each block. The way of checking each block by the block chain node point device is the same as the way of checking each group of regional characteristic information by the block chain node point device, and therefore, the description is omitted. And if the block link point device successfully verifies each block, sending each block to each block link point device except the block receiving the regional characteristic information in the block chain network so that each block link point in the block chain network verifies each block. The check mode of each block link point in the block chain network for each block is the same as the check mode of each block link point device for each group of regional characteristic information, and therefore, the detailed description is omitted. The block chain link point device receiving the regional characteristic information determines that each block passes the verification of each block chain link point device in the block chain network, and therefore the reliability of the block can be improved.
S403: and the block chain link point device determines the random number corresponding to each group of regional characteristic information after the chain is linked to obtain at least one random number.
Specifically, the block link point device determines a random number corresponding to each group of regional characteristic information after chaining based on an intelligent contract to obtain at least one random number. For example, the first feature information and the second feature information included in the region feature information are combined, a hash value of the combined region feature information is obtained through calculation, and the hash value is converted into a random number corresponding to the region feature information.
In one implementation, the specific steps of the block-link-point device determining the random number corresponding to each set of the regional characteristic information after uplink transmission are shown in fig. 5, and may include S501-S503:
s501: and the block chain link point device obtains at least one hash value according to each group of regional characteristic information after chain winding.
In one implementation manner, the block link point device merges the feature information in each group of regional feature information in an end-to-end manner based on an intelligent contract to obtain each group of merged regional feature information, wherein the end-to-end manner is that the tail of the current regional feature information is connected with the head of the next regional feature information. The intelligent contract stores program codes for merging the characteristic information in each group of regional characteristic information in an end-to-end mode. If a group of regional characteristic information received by the block chain node device contains first characteristic information AC, second characteristic information GK and third characteristic information MV, combining the characteristic information in the regional characteristic information in an end-to-end manner, and obtaining the combined group of regional characteristic information as follows: ACGKMV. And then, the block link point device calculates each group of combined regional characteristic information based on a Hash algorithm to obtain at least one Hash value, wherein each Hash value is in one-to-one correspondence with each group of regional characteristic information. The hash algorithm may include, but is not limited to, the SHA512 algorithm, the SHA224 algorithm, the SHA384 algorithm, and the like. For example, the tile link point device obtains the hash value of the feature information on the nose region of the mother character resource and the nose region feature information of the father character resource after the combination as "3 a513cB07 d" based on the hash algorithm, and obtains the hash value of the feature information on the eye region of the mother character resource and the eye region feature information of the father character resource after the combination as "78 AJI963a513cB07 d".
In one implementation manner, the block link node device determines a hash value in each block header according to a block corresponding to each set of uplink regional characteristic information, and obtains at least one hash value by using the hash value in each block header as the hash value corresponding to each set of regional characteristic information. Wherein each block comprises a group of region characteristic information of the same region. For example, when the region feature information is linked, the block of the nose region feature information on the parent character resource and the nose region feature information on the parent character resource is block a, and the hash value in the block header of block a is "76 vdD4E502 zBK", the block-link node device sets the hash value in the block header of block a of "76 vdD4E502 zBK" as the hash value corresponding to the set of nose region feature information.
And the block chain link point device converts each group of regional characteristic information after chain linking into a hash value corresponding to each group of regional characteristic information. Hash values, a method of creating a small digital "fingerprint" from any kind of data. This function mixes the data shuffled and recreates 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 block chain 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 is safer.
S502: and the block chain 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 number sequence only containing numbers based on an intelligent contract, and obtains at least one number sequence corresponding to one hash value.
In one implementation, the block-node means converts each random alphabet in each hash value into a decimal number corresponding to American Standard Code for Information Interchange (ASCII), generates a plurality of number-only sequences as the number sequence corresponding to each hash value, and obtains at least one number sequence.
For example, if a hash value calculated in S501 is "3 a513cB07 d", the blob link dot device converts each letter in the hash value into a decimal number corresponding to ASCII code, and obtains a number sequence "397513996607100", and the blob link dot device converts the hash value into a number sequence "397513996607100".
In one implementation, the block link point device extracts a sequence with a preset length from each hash value 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 containing only numbers, 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 one hash value calculated in S501 is "78 AJI963a513cB07 d", the block chain node device extracts a sequence with a preset length of 8 from the preset 4 th sequence value, the obtained new sequence is "I963 a 513", each random letter in the new sequence is converted into a decimal number corresponding to an ASCII code, the obtained sequence containing only numbers is "7396397513", and the sequence is used 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 pure alphabetic sequence or a pure numeric sequence from each hash value to obtain at least one sequence. If each obtained sequence is a pure letter sequence, the block chain 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 one hash value calculated in S501 is "76 vdD4E502 zBK", the tile link node device extracts a pure letter sequence in the hash value to obtain a sequence "vdDEzBK", converts each letter in the sequence into a decimal number corresponding to an ASCII code to obtain a sequence "11810068691226675" containing only numbers, and then the number sequence is "11810068691226675". If the block link point device extracts a pure number sequence from the hash value, and the obtained number sequence is '764502', the number sequence corresponding to the hash value is '764502'.
S503: and the block chain link point device operates each digital sequence to obtain at least one random number.
In one implementation, the block chain node device performs an addition operation on the numbers in each number sequence to obtain a plurality of addition results, and obtains at least one random number by using each addition result as a plurality of random numbers corresponding to each number sequence. For example, if the number sequence is "397513996607100" as shown in S502, the block chain node device adds the numbers in the number sequence to obtain a random number of 66 corresponding to the number sequence.
In one implementation, the block chain node device multiplies the numbers in each number sequence to obtain a plurality of multiplication results, and uses each multiplication result as a plurality of random numbers corresponding to each number sequence to obtain at least one random number. For example, if the number sequence is "7396397513" as shown in S502, the block chain node device multiplies each number in the sequence to obtain a random number 3214890 corresponding to the number sequence.
In one implementation, the block chain 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. And finally, obtaining a plurality of random numbers corresponding to each digit sequence to obtain at least one random number. This way, each random number obtained can be made more random.
S404: and respectively determining the region resource corresponding to each random number by the block chain node device to obtain at least one region resource.
In one implementation, the specific steps of the block link point device determining the region resource corresponding to each random number are shown in fig. 6, and may include S601-S606:
s601: the block link node device receives resource information of at least one region from the client, wherein the resource information of the region comprises a plurality of preset weights and region resources corresponding to each preset weight.
Specifically, the block link node 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 processing, where the resource information of a region includes a plurality of preset weights and region resources corresponding to each preset weight. The block chain node device processes uplink processing on the resource information of the region, so that the resource information of the region is fairly shared by each block chain node device.
In one implementation, before the block link node device receives resource information of at least one region from the client, the client sets resource information about each region, and the resource information of a region includes a plurality of preset weights about the region and a region resource corresponding to each preset weight. And then the client sends the resource information of at least one region to the block link point device.
Exemplarily, resource information about a nose region and resource information about an eye region set by the client are as follows. Wherein the plurality of preset weights for the nose region are respectively 30%, 50% and 20%, and the nose region resource corresponding to the preset weight of 30% is a preset first region resource, as shown in (a) of fig. 7; the nose region resource corresponding to the preset weight of 50% is a preset second region resource, as shown in (b) of fig. 7; the nose region resource corresponding to the preset weight of 20% is a preset third region resource, as shown in (c) of fig. 7. The plurality of preset weights for the eye regions are 10%, 30%, 20% and 40%, respectively, and the eye region resource corresponding to the preset weight of 10% is a preset first region resource, as shown in (a) of fig. 8; the eye area resource corresponding to the preset weight of 30% is a preset second area resource, as shown in (b) of fig. 8; the eye area resource corresponding to the preset weight of 40% is a preset third area resource, as shown in (c) of fig. 8; the eye area resource corresponding to the preset weight of 20% is the preset fourth area resource, as shown in (d) of fig. 8.
It can be understood that the execution sequence of S601, S401, and S402 is not sequential, and before the block link point device determines the region resource corresponding to each random number, S601 may be executed first, and then S401 and S402 may be executed; s401 and S402 may be executed first, and then S601 may be executed; s601, S401, and S402 may also be executed simultaneously, which is not limited in this embodiment of the application.
S602: and the block chain link point device determines a target threshold corresponding to each random number to obtain at least one target threshold.
Optionally, the block link point device determines the number of bits of each random number, and takes 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, the two random numbers corresponding to the nose region characteristic information and the eye region characteristic information obtained in S403 are 66 and 3214890, respectively, and the target thresholds corresponding to the two random numbers are 99 and 9999999, respectively.
The random number obtained from the area feature information has randomness, and therefore the target threshold determined by the random number also has randomness.
Optionally, the block link point device may determine the number of bits of each random number, and use a sum of maximum values corresponding to the number of bits of each random number as a target threshold corresponding to each random number, or use a value obtained by calculating the random number in another manner as a target threshold corresponding to the random number.
S603: and the block chain link point device determines the interval corresponding to each region according to each target threshold and a plurality of preset weights corresponding to each region to obtain a plurality of first intervals corresponding to at least one region.
Specifically, the block link point device uses 0 as a lower boundary of each second interval, uses each target threshold as an upper boundary of each second interval, obtains a plurality of second intervals corresponding to each random number, and divides each second interval into a plurality of first intervals corresponding to each area according to a plurality of preset weights corresponding to each area.
Illustratively, the target thresholds corresponding to the two random numbers corresponding to the nose area and the eye area are 99 and 9999999, respectively, as shown in S602, and the two second intervals corresponding to the two random numbers are [0, 99] and [0, 99999 ]. The preset weights for the nose region and the eye region are respectively 30%, 50%, 20%, and 10%, 30%, 20%, and 40% as shown in S601, and the two second intervals are divided by the block-link point device into a plurality of first intervals for the two regions according to the preset weights for the nose region and the eye region, 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 link point device determines a target interval to which each random number belongs in the first interval corresponding to each region to obtain at least one target interval.
Specifically, the block link point device determines, according to the size of each random number, that each random number is located in one of a plurality of first intervals corresponding to each region, and then takes the first interval in which each random number is located as a target interval corresponding to each region, thereby obtaining at least one target interval.
Illustratively, the random numbers corresponding to the nose region and the eye region are respectively 66 and 3214890 as obtained in S503, and the plurality of first intervals corresponding to the nose region and the eye region are respectively as shown in S603: [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 ]. Therefore, it can be determined that the random number 66 corresponding to the nose region corresponds to [29.7, 79.2] in the target zone corresponding to the nose region, and the random number 3214890 corresponding to the eye region corresponds to [3999999.6, 5999999.4] in the target zone corresponding to the eye region.
S605: and the block chain link point device takes the preset weight corresponding to each target interval as the weight corresponding to each random number to obtain the weight corresponding to at least one random number.
Specifically, the block chain link point device determines the preset weight corresponding to each target interval, and then takes the preset weight corresponding to each target interval as the weight corresponding to each random number.
For example, as shown in S604, if the target interval corresponding to the nose region is [29.7, 79.2] for the random number 66 corresponding to the nose region, and the preset weight corresponding to the target interval [29.7, 79.2] is 50%, 50% is taken as the weight corresponding to the random number corresponding to the nose region. The target interval corresponding to the eye area of the random number 3214890 corresponding to the eye area is [3999999.6, 5999999.4], the preset weight corresponding to the target interval [3999999.6, 5999999.4] is 20%, and then 20% is used as the weight corresponding to the random number corresponding to the eye area.
S606: and the block chain node device determines the region resource corresponding to each random number according to the weight corresponding to each random number and the region resource corresponding to each preset weight to obtain at least one region resource.
Specifically, each preset weight corresponds to one regional resource, so that the regional resources corresponding to each random number can be determined according to the weight corresponding to each random number and the regional resource corresponding to each preset weight, and at least one regional resource is obtained.
For example, if the weight corresponding to the random number corresponding to the nose region is 50% as shown in S605, the nose region resource corresponding to the nose region with the preset weight of 50% is the preset second region resource as shown in S601, and the nose region resource corresponding to the random number corresponding to the nose region is the preset second region resource as shown in (b) of fig. 7. The weight corresponding to the random number corresponding to the eye region is 20% as shown in S605, the eye region resource corresponding to the eye region preset weight of 20% is a preset third region resource as shown in S601, and then the eye region resource corresponding to the random number corresponding to the eye region is the preset third region resource as shown in (c) in fig. 8.
In an implementation manner, the region feature information may further carry corresponding region identifiers, so that the block link point device may quickly determine information such as preset weights, intervals, and/or region resources of the corresponding regions according to the region identifiers corresponding to each group of region feature information. Thereby contributing to improving the resource acquisition efficiency.
In other alternative implementations, the block link node apparatus may further obtain resource information of the at least one region in advance, for example, receive resource information of the at least one region sent by the server, and uplink the resource information of the at least one region, so as to determine region resources corresponding to the random number based on the resource information of the at least one region subsequently, e.g., perform the S602-S606.
S405: and the block chain node device synthesizes the target role resource according to the at least one region resource.
Specifically, the block link point device synthesizes the target role resource according to at least one region resource and a preset region resource, wherein the preset region resource may be a preset region resource obtained according to the region characteristic information.
For example, as shown in S606, the region resource of the nose region and the region resource of the eye region are respectively shown in fig. 7 (b) and fig. 8 (c), and when the region resources other than the region resource of the nose region and the region resource of the eye region, for example, the region resources of the ear region, mouth region, neck region, and the like are set in advance in the block-link point device, the block-link point device synthesizes the target character resource based on the region resources of all the regions.
The target role resources are synthesized on the block chain, and have the characteristics of openness and transparency. Meanwhile, the target role resources can be synthesized based on preset different role resources, randomness is achieved, the target role resources with different weights can be synthesized through the method, and resource scarcity is guaranteed.
S406: and the block chain node device sends the target role resource to the client.
Specifically, after synthesizing a target role resource according to at least one regional resource, the block link point device sends the target role resource to the client, and the client can receive the target role resource from the block link point device; alternatively, the tile link node device may transfer the target role resource to the client (corresponding to the user account).
In one implementation, before the block link point device sends the target role resource to the client, the block link point 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 a second digital signature. Asymmetric encryption algorithms herein may include, but are not limited to: the Elgamal algorithm (an asymmetric encryption algorithm), the Rabin algorithm (an asymmetric encryption algorithm), the diddi-Hellman algorithm (an asymmetric encryption algorithm), the ECC algorithm (elliptic curve encryption algorithm). The block chain node device sends the target role resource, the second digital signature (namely 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 block chain according to the at least one region characteristic information, the resource synthesis and acquisition processes are open and transparent, and the synthesized resources have randomness, which is beneficial to improving the fairness of resource acquisition.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a block link point device according to an embodiment of the present invention, which may be used for the steps performed by the block link point device in the embodiments shown in fig. 4 to 6, where the block link point device 90 may include:
a receiving module 901, configured to receive at least one set of regional characteristic information from a client, where the regional characteristic information is used to indicate characteristic information of a region of a role resource, and the regional characteristic information corresponds to the region one to one;
a processing module 902, configured to perform uplink processing on at least one set of regional characteristic information to obtain at least one set of regional characteristic information after uplink processing;
the processing module 902 is further configured to determine random numbers corresponding to each set of regional characteristic information after uplink respectively, so as to obtain at least one random number;
the processing module 902 is further configured to determine an area resource corresponding to each random number, respectively, to obtain at least one area resource;
the processing module 902 is further configured to synthesize a target role resource according to the at least one regional resource;
a transmitting module 903, configured to send the target role resource to the client.
In an implementation manner, the processing module 902 is specifically configured to determine 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 uplink transmission.
In an implementation manner, the receiving module 901 is further configured to receive resource information of at least one region from a server, where the resource information of the region includes a plurality of preset weights and a region resource corresponding to each preset weight;
a processing module 902, further configured to perform uplink processing on the resource information of each region to obtain resource information of at least one region after uplink processing;
a processing module 902, configured to determine a weight corresponding to the random number according to a plurality of preset weights in a region 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 a random number; determining a corresponding interval of each preset weight according to a plurality of preset weights of the target threshold and a region corresponding to the random number; determining a target interval to which the random number belongs in corresponding intervals of each preset weight; and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
In an implementation manner, the processing module 902 is specifically configured to combine the first feature information and the second feature information to obtain combined region feature information; calculating to obtain a hash value of the combined region characteristic information; and converting the hash value into a random number corresponding to the region characteristic information.
In an 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 a basic area resource, where the basic area resource is a preset area resource except the area resource corresponding to the at least one random number.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a block chain node device according to an embodiment of the present invention, where the block chain 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.
Processor 1001 is configured to support block-link point devices to perform the corresponding functions of the block-link point devices in the embodiments shown in fig. 4-6. The processor 1001 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 1002 is used to store program codes and the like. The memory 1002 may include volatile memory (volatile memory), such as Random Access Memory (RAM); the memory 1002 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD), or a solid-state drive (SSD); the memory 1002 may also comprise a combination of the above-described types of memory.
The communication interface 1003 is used for receiving and transmitting data, for example, the communication interface 1003 is used for receiving at least one set of regional characteristic information from a client, or the communication interface 1003 is used for transmitting target character resources to the client, etc.
In an embodiment of the present invention, the block link 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 the program code stored in the memory 1002 to perform the following operations:
receiving at least one group of regional characteristic information from the client through the communication interface 1003, wherein the regional characteristic information is used for indicating the characteristic information of the region of the role resource, and the regional characteristic information and the region are in one-to-one correspondence;
performing uplink processing on the at least one group of regional characteristic information to obtain at least one group of regional characteristic information after uplink processing;
respectively determining random numbers corresponding to each group of regional characteristic information after uplink so as to obtain at least one random number;
respectively determining the area resource corresponding to each random number to obtain at least one area resource;
synthesizing a target role resource according to at least one regional resource;
the target character resource is sent to the client through the communication interface 1003.
In one implementation manner, each set of regional characteristic information includes first characteristic information and second characteristic information, where the first characteristic information includes characteristic information of a region of a first role resource, and the second characteristic information includes characteristic information of the region of a second role resource, and when determining a random number corresponding to the regional characteristic information after uplink, the processor 1001 may specifically perform 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 following steps:
receiving resource information of at least one region from the server through the communication interface 1003, where the resource information of the region includes a plurality of preset weights and region 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 processing; when the processor 1001 determines the area resource corresponding to the random number, the following steps may be specifically performed:
the processor 1001 determines a weight corresponding to the random number according to a plurality of preset weights of 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 a plurality of preset weights of the area corresponding to the random number, the following steps may be specifically performed: determining a target threshold value according to the random number; determining a corresponding interval of each preset weight according to a plurality of preset weights of the target threshold and a region corresponding to the random number; determining a target interval to which the random number belongs in corresponding intervals of each preset weight; and taking the preset weight corresponding to the target interval as the weight corresponding to the random number.
In an implementation manner, when the processor 1001 determines the 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 uplink, the following steps may be specifically performed: merging the first characteristic information and the second characteristic information to obtain merged regional characteristic information; calculating to obtain a hash value of the combined region characteristic information; and converting the hash value into a random number corresponding to the region characteristic information.
In one implementation, when the processor 1001 synthesizes a target role resource according to at least one regional resource, the following steps may be specifically performed: and synthesizing the target role resource according to the region resource corresponding to the at least one random number and the basic region resource, wherein the basic region resource is a preset region resource except the region resource corresponding to the at least one random number.
Embodiments of the present invention also provide a computer readable storage medium, which can be used to store computer software instructions for the block-link point device in the embodiments shown in fig. 4-6, and which contains a program designed for the block-link point 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 according to an embodiment of the present invention, where the client may be used in the 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 system comprises a block chain link point device, a target role resource and a role resource, wherein the block chain link point device is used for sending at least one group of regional characteristic information to the block chain link point device so as to enable the block chain link point device to carry out uplink processing on the at least one group of regional characteristic information, determining random numbers corresponding to each group of regional characteristic information after uplink, determining a regional resource corresponding to each random number, and synthesizing the target role resource according to at least one regional resource;
the receiving module 1102: for receiving target role resources from the block-link node device.
According to another embodiment of the present application, the respective modules in the apparatuses shown in fig. 9 or fig. 11 may be respectively or entirely combined into one or several other modules to form the apparatuses, or some module(s) thereof may be further split into a plurality of functionally smaller modules to form the apparatuses, which may achieve the same operation without affecting the achievement of the technical effect of the embodiments of the present application. The modules are divided based on logic functions, and in practical application, the functions of one module can be realized by a plurality of modules, or the functions of a plurality of modules can be realized by one module. In other embodiments of the present application, other modules may also be included, and in practical applications, these functions may also be implemented by being assisted by other modules, and may be implemented by cooperation of a plurality of modules, which is not limited in this application.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a client according to an embodiment of the present invention, 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 (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 1202 is used for storing program codes and the like. Memory 1202 may include volatile memory (volatile memory), such as Random Access Memory (RAM); the memory 1002 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD), or a solid-state drive (SSD); memory 1202 may also comprise a combination of the above types of memory.
In the embodiment of the present invention, the client 120 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 1201 may call the program code stored in the memory 1202 to perform the following operations:
sending at least one group of regional characteristic information to a block chain link point device through a communication interface 1203, so that the block chain link point device performs chain loading processing on the at least one group of regional characteristic information, determines random numbers corresponding to each group of regional characteristic information after chain loading, determines regional resources corresponding to each random number, and synthesizes target role resources according to at least one regional resource, wherein the regional characteristic information is used for indicating characteristic information of regions of the role resources, and the regional characteristic information corresponds to the regions one to one;
target role resources from the block link point device are received through communication interface 1203.
Embodiments of the present invention further provide a computer-readable storage medium, which can be used to store computer software instructions used by the client in the embodiments shown in fig. 4 to fig. 6, and which contain programs designed for the client in the embodiments described above.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by 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 resource acquisition 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 and the region are in one-to-one correspondence;
performing uplink processing on the at least one group of regional characteristic information to obtain at least one group of regional characteristic information after uplink processing;
respectively determining random numbers corresponding to each group of regional characteristic information after the uplink so as to obtain at least one random number;
respectively determining the area resource corresponding to each random number to obtain at least one area resource;
and synthesizing a target role resource according to the at least one region resource, and sending the target role resource to the client.
2. The method according to claim 1, wherein each set of regional characteristic information includes first characteristic information and second characteristic information, the first characteristic information includes characteristic information of a region of a first character resource, and the second characteristic information includes characteristic information of the region of a second character resource;
the determining a random number corresponding to the uplink region feature information includes:
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 of claim 1, further comprising:
receiving resource information of at least one region from a server, wherein the resource information of the region comprises a plurality of preset weights and region resources corresponding to each preset weight;
performing uplink processing on the resource information of each region to obtain the resource information of at least one region after uplink processing;
the determining the region resource corresponding to the random number includes:
determining the weight corresponding to the random number according to the preset weights of 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.
4. The method according to claim 3, wherein the determining the weight corresponding to the random number according to the plurality of preset weights of the region corresponding to the random number comprises:
determining a target threshold value 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 area corresponding to the random number;
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 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 uplink comprises:
merging the first characteristic information and the second characteristic information to obtain merged regional characteristic information;
calculating to obtain a hash value of the combined region characteristic information;
and converting the hash value into a random number corresponding to the region characteristic information.
6. The method according to any one of claims 1-5, wherein said synthesizing target character resources from said 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 a basic area resource, wherein the basic area resource is a preset area resource except the area resource corresponding to the at least one random number.
7. A resource acquisition method, comprising:
sending at least one group of regional characteristic information to a block chain link point device so that the block chain link point device can carry out chain linking processing on the at least one group of regional characteristic information, determine random numbers corresponding to each group of regional characteristic information after chain linking, determine regional resources corresponding to each random number, and synthesize target role resources according to the regional resources, wherein the regional characteristic information is used for indicating the characteristic information of the regions of the role resources, and the regional characteristic information corresponds to the regions one to one;
receiving a target role resource from the block link point device.
8. A block link node device comprising a memory, a processor and a communication interface, the memory storing a set of program code, the processor calling the program code stored in the memory for performing the operations of any one of claims 1 to 6.
9. A client comprising a memory, a processor, and a communication interface, the memory storing a set of program code, the processor calling 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 carry out the method according to any one of claims 1 to 6, or carry out the method according to 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 true CN110585727A (en) 2019-12-20
CN110585727B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445441A (en) * 2020-11-23 2021-03-05 深圳平安综合金融服务有限公司 Printing processing system, method and related equipment
CN113282662A (en) * 2021-06-03 2021-08-20 广东辰宜信息科技有限公司 Block information processing method, device, equipment and medium

Citations (6)

* 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
US20180276662A1 (en) * 2017-03-23 2018-09-27 At&T Intellectual Property I, L.P. Time and Geographically Restrained Blockchain Services
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180276662A1 (en) * 2017-03-23 2018-09-27 At&T Intellectual Property I, L.P. Time and Geographically Restrained Blockchain Services
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445441A (en) * 2020-11-23 2021-03-05 深圳平安综合金融服务有限公司 Printing processing system, method and related equipment
CN113282662A (en) * 2021-06-03 2021-08-20 广东辰宜信息科技有限公司 Block information processing method, device, equipment and medium
CN113282662B (en) * 2021-06-03 2023-11-03 广东辰宜信息科技有限公司 Block information processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN110585727B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN110750801B (en) Data processing method, data processing device, computer equipment and storage medium
CN112001502B (en) Federal learning training method and device for high-delay network environment robustness
WO2018076760A1 (en) Block chain-based transaction processing method, system, electronic device, and storage medium
CN110597489B (en) Random number generation method, equipment and medium
EP4091290A1 (en) Digital signature system using scalable servers
CN107710671A (en) Terminal installation and computer program
CN110585727B (en) Resource acquisition method and device
CN115208701B (en) Data packet selective encryption method and device
US10833762B2 (en) Information transmission method, information reception method and apparatus
CN117240625B (en) Tamper-resistant data processing method and device and electronic equipment
CN108200075B (en) Identity authentication method, system, terminal and storage medium
CN112235104B (en) Data encryption transmission method, system, terminal and storage medium
CN109005187A (en) A kind of communication information guard method and device
CN111931194A (en) Security monitoring big data processing method and device based on cloud computing
US20170279777A1 (en) File signature system and method
CN114363094B (en) Data sharing method, device, equipment and storage medium
US20230048174A1 (en) Digital signature system using reliable servers
CN111147254B (en) Method and device for generating EdDSA digital signature cooperated by two parties
CN113158218A (en) Data encryption method and device and data decryption method and device
US20180197362A1 (en) Method for generating winning numbers and apparatus
CN115580489B (en) Data transmission method, device, equipment and storage medium
US11601284B2 (en) Digital signature system based on a cloud of dedicated local devices
CN108737103A (en) A kind of SM2 algorithm endorsement methods applied to CS frameworks
JPWO2020121459A1 (en) Authentication system, client and server
CN117792713A (en) Response method and device for client request

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