Game design data production and detection method and system based on block chain
By generating a data inspection chain using blockchain technology and combining it with encrypted storage, the problem of low data security in game design data storage is solved, and the integrity and authenticity of the data are verified, thereby improving data security.
Patent Information
- Application Number
- CN202510809796.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2045-06-17
AI Technical Summary
In existing technologies, the storage security of game design data is low, making it vulnerable to hacker attacks, and the integrity and authenticity of the data are difficult to verify.
Using blockchain technology, a data detection chain is generated through hash value calculation. The game design data is divided into sub-data blocks and stored in the blockchain network. The data is then encrypted using encryption keys, and the immutability of the blockchain is used for data verification.
It improves the storage security of game design data, reduces the risk of data theft, tampering, or deletion, and ensures data integrity and authenticity.
Smart Images

Figure CN120893077A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of game design data processing, and particularly relates to a game design data production and detection method and system based on a blockchain. BACKGROUND
[0002] At present, the game industry is booming, and a large amount of data of various types is generated in the game design process, including game play rules, art resources, character attributes, level design, code logic and other core elements. In the traditional mode, these game design data are managed in a centralized storage manner and stored in the server or local storage device of the enterprise. With the expansion of game development scale and the increase of participants, this centralized storage manner exposes many problems. On the one hand, data security is difficult to guarantee. Centralized storage is easy to become the target of hacker attacks. Once the server is subjected to malicious intrusion, the game design data may be stolen, tampered with or deleted, which not only causes the delay of development progress, but also may lead to the leakage of core design concept, causing great loss to the game development enterprise. On the other hand, the integrity and authenticity of the data are difficult to verify. In the transmission and use process of the game design data, due to the lack of effective data verification mechanism, the data may be wrong or tampered with due to human error, system failure, etc. Therefore, the security of the current game design data storage is low. SUMMARY
[0003] Therefore, the purpose of the present application is to provide a game design data production and detection method and system based on a blockchain, which aims to solve the problem of low security of the game design data produced by the prior art.
[0004] One purpose of the present application is to provide a game design data production and detection method based on a blockchain, which comprises: obtaining various types of game design data related to games generated in the game design process, and obtaining a data detection chain obtained according to various types of game design data; establishing a blockchain network, and storing various types of game design data and data detection chain off-chain and on-chain in the blockchain network respectively; when it is necessary to read various types of game design data off-chain, obtaining the current various types of game design data from off-chain storage, and obtaining a verification data detection chain according to various types of game design data.
[0005] reading the data detection chain stored on-chain from the blockchain network, and comparing it with the verification data detection chain, if the data detection chain is consistent with the verification data detection chain, it is determined that various types of game design data have not been tampered with.
[0006] Further, the above-mentioned blockchain-based game design data production and detection method, wherein the hash values of the various types of game design data and the hash values of the current various types of game design data are calculated respectively to obtain a data detection chain and a verification data detection chain.
[0007] Further, the above-mentioned blockchain-based game design data production and detection method, wherein the step of calculating the hash values of the various types of game design data and the hash values of the current various types of game design data respectively to obtain a data detection chain and a verification data detection chain comprises: segmenting the various types of game design data into a preset number of sub-data blocks according to a preset rule, and calculating the hash values of each sub-data block respectively; splicing the hash value of the previous sub-data block with the hash value of the next sub-data block, and performing hash operation on the spliced result again; repeating the splicing of the hash value obtained in the current time with the next sub-data block, and performing hash operation on the spliced content until the root hash value obtained after the calculation of all sub-data blocks is obtained as the data detection chain or the verification data detection chain.
[0008] Further, the above-mentioned blockchain-based game design data production and detection method, wherein the step of segmenting the various types of game design data into a preset number of sub-data blocks according to a preset rule, and calculating the hash values of each sub-data block respectively further comprises: grouping the sub-data blocks according to power interval to obtain a plurality of sub-data block groups, selecting key sub-data blocks from the sub-data block groups to calculate hash values, and obtaining a root hash value as the data detection chain or the verification data detection chain according to the hash values calculated from each sub-data block group.
[0009] Further, the above-mentioned blockchain-based game design data production and detection method, wherein the step of storing the various types of game design data and the data detection chain off-chain and on-chain in the blockchain network comprises: determining the corresponding encryption key according to the various types of game design data, and encrypting and storing the various types of game design data off-chain by using the encryption key.
[0010] Further, the above-mentioned blockchain-based game design data production and detection method, wherein the step of determining the corresponding encryption key according to the various types of game design data comprises: respectively obtaining the role data, scene data and prop data describing the game characters, scenes and props contained in the various types of game design data; calculating the hash values of the role data, scene data and prop data to obtain the role hash value, scene hash value and prop hash value respectively; mapping the role hash value, the scene hash value and the prop hash value to a preset coordinate system to determine an initial figure enclosed by coordinate points mapped by the role hash value, the scene hash value and the prop hash value; mixing the role hash value, the scene hash value and the prop hash value to obtain a target hash value, and splitting the target hash value into multiple sub-target hash values according to a preset rule; determining multiple transformation parameters according to the multiple sub-target hash values, transforming the initial figure according to the multiple transformation parameters to obtain a target figure, and determining a corresponding encryption key according to a centroid coordinate of the target figure, wherein the transformation parameters include a rotation angle, a scaling factor and a shearing coefficient.
[0011] Further, the game design data production and detection method based on the blockchain includes the following steps: rotating, scaling and shearing the initial figure according to the determined rotation angle, scaling factor and shearing coefficient to obtain the target figure.
[0012] Another object of the present application is to provide a game design data production and detection system based on a blockchain, which includes: a collection module for collecting various game design data related to games generated during the game design process and collecting data detection chains obtained according to the various game design data; an establishment module for establishing a blockchain network and storing the various game design data and the data detection chains off-chain and on-chain in the blockchain network; a storage module for obtaining the current various game design data from off-chain storage when reading the off-chain various game design data, and obtaining a verification data detection chain according to the various game design data.
[0013] a detection module for reading the on-chain stored data detection chain from the blockchain network and comparing it with the verification data detection chain, and determining that the various game design data has not been tampered with if the data detection chain is consistent with the verification data detection chain.
[0014] Another object of the present application is to provide a readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the steps of the above method.
[0015] Another object of the present application is to provide an electronic device including a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the steps of the above method when executing the program.
[0016] The application obtains various game design data related to games generated in the game design process, and obtains a data detection chain obtained according to the various game design data; a block chain network is established, and the various game design data and the data detection chain are respectively stored in the off-chain and on-chain of the block chain network; when the various game design data in the off-chain needs to be read, the current various game design data is obtained from the off-chain storage, and a verification data detection chain is obtained according to the various game design data. The data detection chain stored in the on-chain of the block chain network is read, and is compared with the verification data detection chain, if the data detection chain is consistent with the verification data detection chain, it is determined that the various game design data has not been tampered with. By establishing a block chain network, the data detection chain is stored in the on-chain. Even if the game design data in the off-chain is attacked, due to the existence of the data detection chain in the on-chain, through subsequent verification and comparison, data anomalies can be found in time, the risk of data being stolen, tampered with or deleted is reduced, and the security of the game design data produced is effectively improved. The problem of low security of the game design data produced in the prior art is solved. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 A flow chart of a game design data production and detection method based on a block chain in the first embodiment of the application; Figure 2 A structure block diagram of a game design data production and detection system based on a block chain in the third embodiment of the application.
[0018] The following specific embodiments will further illustrate the application in combination with the above drawings. DETAILED DESCRIPTION
[0019] In order to facilitate the understanding of the application, the application will be described more fully below with reference to the accompanying drawings. The drawings show several embodiments of the application. However, the application can be realized in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the application more thorough and comprehensive.
[0020] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly on the other element or there can be a middle element. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or there can be a middle element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0022] Embodiment one Please refer to Figure 1 , it is a kind of game design data production and detection method based on blockchain in the first embodiment of the application, the method comprises steps S10~step S13.
[0023] Step S10, obtain various game design data related to game generated in game design process, and obtain data detection chain according to various game design data.
[0024] Among them, in the whole process of game design, from game creative idea, game mechanism building, character and scene art design, code logic writing to level system design, etc. A series of diversified data closely related to game development will be generated, these data cover game play rules, character attribute parameters, art resource files (such as character model, scene map), game code, level layout data and other core elements. In order to ensure the integrity and authenticity of these data, the obtained various game design data are processed by specific algorithm or technical means, so as to generate corresponding data detection chain. The data detection chain is like "digital fingerprint" of game design data, which contains a series of check information obtained by hash operation, checksum calculation and other processing on original data, which can accurately identify whether the data is tampered with, and provide reliable basis for verifying the integrity of game design data.
[0025] Step S11, establish a blockchain network, and store various game design data and data detection chain in the off-chain and on-chain of the blockchain network respectively.
[0026] Specifically, a blockchain network composed of multiple nodes is constructed, which has the characteristics of decentralization, distributed storage and encryption security. In the data storage link, considering that game design data often has large data volume, such as high-definition art resources and complex code files, if all the data is stored on chain, it will greatly increase the burden of the blockchain network, therefore, various game design data are stored in the off-chain of the blockchain network, such as local hard disk, enterprise server and other traditional storage media, so as to improve the storage efficiency and reduce the cost; Data detection chain is stored in the on-chain of the blockchain network, which takes advantage of the characteristics of non-tamperable and open and transparent of the blockchain to guarantee the security and public credibility of the data detection chain, so as to make it become a reliable basis for verifying the integrity of game design data.
[0027] Step S12, when it is necessary to read the off-chain various game design data, the current various game design data is obtained from the off-chain storage, and the check data detection chain is obtained according to the various game design data.
[0028] Specifically, when the game developer or the system needs to read the off-chain various game design data, the current data is obtained from the corresponding off-chain storage location, and then the same algorithm and technical means as generating the original data detection chain are used to process the obtained game design data, so as to obtain the check data detection chain. For example, the hash values of the various game design data and the hash values of the current various game design data are calculated respectively to obtain the data detection chain and the check data detection chain.
[0029] More specifically, in some optional embodiments of the present application, the step of calculating the hash values of the various game design data and the hash values of the current various game design data respectively to obtain the data detection chain and the check data detection chain comprises: segmenting the various game design data into a predetermined number of sub-data blocks according to a predetermined rule, and calculating the hash value of each sub-data block; splicing the hash value of the previous sub-data block with the hash value of the next sub-data block, and performing hash operation on the spliced result again; repeating the splicing of the current obtained hash value operation result with the next sub-data block, and performing hash operation on the spliced content until the root hash value obtained after all sub-data blocks are calculated is obtained as the data detection chain or the check data detection chain.
[0030] In the process of constructing the data detection chain and the check data detection chain, first, according to the pre-set rules, the huge and complex various game design data generated in the game design process is segmented into a fixed number of sub-data blocks according to the data type, size or other specific logic. After segmentation, the hash value of each sub-data block is calculated using mature hash algorithms such as SHA-256. As long as the content of the sub-data block changes slightly, its hash value will be completely different.
[0031] Then, the hash chain is built, the hash value of the first sub-data block is spliced with the hash value of the second sub-data block, then the spliced content is operated again by using the hash algorithm to obtain a new hash value. Then, the newly obtained hash value is spliced with the hash value of the third sub-data block, and the spliced content is continuously operated by using the hash algorithm, and the process of splicing the current hash value operation result with the hash value of the next sub-data block and operating again is repeated, like building a chain, one ring after another, until all the sub-data blocks participate in the operation process. When all the sub-data blocks complete the above operation, the finally obtained root hash value is the key identifier for verifying the data integrity, which can be stored as a data detection chain on the chain of the blockchain network, or can be used as a verification data detection chain when reading data subsequently, for comparison with the value stored on the chain, so as to judge whether the data is tampered with. The data depends on the data used to build the hash chain.
[0032] In addition, in order to further optimize the calculation process and reduce the calculation amount, in some preferred embodiments of the present application, a more efficient processing method is adopted. Specifically, according to the rule of power interval, the generated many sub-data blocks are re-grouped, that is, the originally dispersed sub-data blocks are divided into several sub-data block groups of different sizes according to a specific power rule. This grouping method can selectively select key data for subsequent processing without losing the accuracy of data integrity verification. After grouping, the representative key sub-data blocks are carefully selected from each sub-data block group, and the hash value thereof is calculated again by using the hash algorithm. The hash value of these key sub-data blocks is like the core identifier of each sub-data block group, carrying the key feature information of the group data. Then, based on the hash values calculated from each sub-data block group, the root hash value is further processed through a specific operation logic, which has the same data verification effect as the result of calculating all the sub-data blocks. However, due to the reduction of repeated calculation of a large number of non-key sub-data blocks, the overall calculation amount is significantly reduced, and the finally obtained root hash value is stored as a data detection chain on the chain of the blockchain network, or is used as a verification data detection chain when reading data, for comparison with the value stored on the chain, so as to ensure the accuracy of data integrity verification while significantly improving the calculation efficiency.
[0033] Step S13, read the data detection chain stored on the chain from the blockchain network, and compare it with the verification data detection chain. If the data detection chain is consistent with the verification data detection chain, it is determined that the game design data of various types has not been tampered with.
[0034] The data detection chain read from the blockchain network is compared in detail with the newly generated check data detection chain. If the contents of the two detection chains are completely consistent, it can be determined that the current obtained various game design data has not been tampered with in the storage and transmission process, ensuring the authenticity and integrity of the data. If they are inconsistent, it means that the game design data may have been maliciously modified or errors have occurred due to other reasons, and appropriate measures need to be taken to handle them in a timely manner, such as tracing data modification records, reacquiring correct data, etc.
[0035] In summary, the game design data production and detection method based on the blockchain in the above embodiment of the present application obtains various game design data related to games generated in the game design process and data detection chains obtained according to various game design data. A blockchain network is established, and various game design data and data detection chains are stored off-chain and on-chain in the blockchain network. When it is necessary to read the various game design data off-chain, the current various game design data is obtained from off-chain storage, and check data detection chains are obtained according to the various game design data. The data detection chain stored on-chain is read from the blockchain network and compared with the check data detection chain. If the data detection chain and the check data detection chain are consistent, it is determined that the various game design data has not been tampered with. By establishing a blockchain network and storing data detection chains on-chain, even if the game design data off-chain is attacked, due to the existence of the data detection chain on-chain, data anomalies can be detected in time through subsequent check comparison, reducing the risk of data being stolen, tampered with or deleted, and effectively improving the security of the produced game design data storage. The problem of low security of the produced game design data storage in the prior art is solved.
[0036] Embodiment two The game design data production and detection method based on the blockchain in this embodiment is different from the game design data production and detection method based on the blockchain in embodiment one in that: The step of storing various game design data and data detection chains off-chain and on-chain in the blockchain network comprises: According to various game design data, determine the corresponding encryption key, and store the various game design data off-chain by using the encryption key. The game design data is stored in the off-chain storage link, in order to further strengthen the security of the data, according to various game design data, a specific encryption algorithm and key generation mechanism are used to determine the corresponding exclusive encryption key. After determining the encryption key, the various game design data is stored by high-strength encryption using the encryption key, thereby building an additional data encryption protection barrier on the basis of the security protection of the blockchain network, greatly improving the security and confidentiality of the game design data in the storage stage.
[0037] Specifically, the step of determining the corresponding encryption key according to various game design data comprises: Respectively acquiring the role data, scene data and prop data describing the game characters, scenes and props contained in various game design data; Respectively calculating the hash values of the role data, scene data and prop data to obtain the role hash value, scene hash value and prop hash value; Mapping the role hash value, scene hash value and prop hash value to a preset coordinate system to determine an initial figure enclosed by the coordinate points mapped by the role hash value, scene hash value and prop hash value; Performing a hash operation on the mixed role hash value, scene hash value and prop hash value to obtain a target hash value, and splitting the target hash value into multiple sub-target hash values according to a preset rule; Determining multiple transformation parameters according to the multiple sub-target hash values, transforming the initial figure according to the multiple transformation parameters to obtain a target figure, and determining the corresponding encryption key according to the centroid coordinates of the target figure, wherein the transformation parameters include a rotation angle, a scaling factor and a shearing coefficient.
[0038] The game design data is processed to generate an encryption key. First, game character data, game scene data, and game prop data are extracted from the game design data. These data cover the core elements of game world construction. Some of the data can be randomly selected, or all of the data can be selected, or data corresponding to the core features that most affect the uniqueness of the data can be selected through preset rules. Then, the character data, scene data, and prop data are calculated using a hash algorithm to generate unique character hash values, scene hash values, and prop hash values. Next, the three hash values are mapped to a pre-set coordinate system, and each hash value can find a corresponding coordinate point in the coordinate system. These coordinate points form an initial graph that visually presents the data relationship from a geometric perspective. Then, the character hash value, scene hash value, and prop hash value are mixed and hashed again to obtain a target hash value that reflects the relationship between the three. The target hash value is then split into multiple sub-target hash values according to a preset rule. Based on these sub-target hash values, multiple transformation parameters are determined through a specific calculation method. These parameters include rotation angle (determines the rotation direction and angle of the graph), scaling factor (used to enlarge or reduce the graph), and shear coefficient (changes the shape of the graph). The initial graph is geometrically transformed using these transformation parameters to obtain a target graph. Finally, the centroid coordinates of the target graph are calculated and used as the corresponding encryption key. This key combines the key information of the game design data and ensures its uniqueness and security through complex processing, and can be used for game data encryption and other related operations.
[0039] For example, the step of transforming the initial graph according to the multiple transformation parameters to obtain the target graph includes: The initial graph is rotated, scaled, and sheared according to the determined rotation angle, scaling factor, and shear coefficient, respectively, to obtain the target graph.
[0040] In the process of generating an encryption key through game design data, after determining multiple transformation parameters such as a rotation angle, a scaling factor, and a shearing coefficient according to a sub-target hash value, an initial graph is subjected to a series of geometric transformations to obtain a target graph. According to the determined rotation angle, a rotation matrix is constructed using trigonometric functions, the initial graph is rotated around the origin of the coordinate system or a specified center point, the direction of the graph in the plane is changed, and this operation can disrupt the geometric layout of the initial graph and enhance the complexity of data processing. Then, the rotated graph is enlarged or reduced according to the scaling factor, the size of the graph is adjusted by multiplying the scaling factor by the coordinates of each vertex of the graph, and the geometric shape of the graph is further changed. Finally, the scaled graph is subjected to a shearing operation according to the shearing coefficient, the coordinates of the vertices of the graph are subjected to a specific linear transformation, the graph is tilted or distorted, and its original shape and proportion are changed. After the three steps of rotation, scaling, and shearing are sequentially performed, the initial graph will be completely remodeled into the target graph, and the centroid coordinates of the target graph will be used as the core parameter of the encryption key for subsequent encryption processing of the game design data. This series of geometric transformations not only constructs a complex key generation logic based on the characteristics of the game design data, but also further improves the randomness and security of the encryption key by changing the spatial form, effectively preventing the key from being reversely deduced or cracked.
[0041] In summary, the game design data production and detection method based on a blockchain in the above-mentioned embodiments of the present application acquires various types of game design data related to games generated during the game design process and acquires a data detection chain obtained from the various types of game design data. A blockchain network is established, and the various types of game design data and the data detection chain are stored off-chain and on-chain in the blockchain network. When it is necessary to read the various types of game design data off-chain, the current various types of game design data are acquired from off-chain storage, and a verification data detection chain is obtained from the various types of game design data. The data detection chain stored on-chain in the blockchain network is read, and is compared with the verification data detection chain. If the data detection chain and the verification data detection chain are consistent, it is determined that the various types of game design data have not been tampered with. By establishing a blockchain network and storing the data detection chain on-chain, even if the game design data off-chain is attacked, the existence of the data detection chain on-chain can timely detect data abnormalities through subsequent verification and comparison, reduce the risk of data being stolen, tampered with, or deleted, and effectively improve the security of the stored game design data produced. The problem of low security of the stored game design data produced in the prior art is solved.
[0042] Embodiment three Please refer to Figure 2 , which shows a game design data production and detection system based on a blockchain according to a third embodiment of the present application. The system comprises: The collection module 100 is configured to collect various game design data related to games generated in a game design process and obtain a data detection chain based on the various game design data; The establishment module 200 is configured to establish a block chain network and store the various game design data and the data detection chain in the off-chain and on-chain of the block chain network, respectively; The storage module 300 is configured to obtain the current various game design data from the off-chain storage when the various game design data in the off-chain needs to be read, and obtain a verification data detection chain based on the various game design data.
[0043] The detection module 400 is configured to read the data detection chain stored in the on-chain of the block chain network and compare the data detection chain with the verification data detection chain, and if the data detection chain is consistent with the verification data detection chain, it is determined that the various game design data has not been tampered with.
[0044] The functions or operation steps realized when the above modules are executed are generally the same as those of the above method embodiments, and will not be described here.
[0045] Embodiment Four Another aspect of the present application also provides a readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to realize the steps of the method of any one of the above embodiments one to two.
[0046] Embodiment Five Another aspect of the present application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to realize the steps of the method of any one of the above embodiments one to two.
[0047] The technical features of each of the above embodiments can be combined in any manner, and to make the description concise, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.
[0048] Those skilled in the art will appreciate that the logic and / or steps represented in the flow diagrams, or otherwise described herein, can be embodied in
[0049] More specific examples (a non-exhaustive list) of the computer readable storage medium include the following: an electrical connection having one or more wires (electrical device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer readable storage medium can also be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
[0050] It should be understood that aspects of the application can be implemented in hardware, software, firmware or combinations thereof. In the above embodiments, various steps or methods can be implemented in software or firmware that is stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any of the following technologies, known in the art, or combinations thereof, can be used: a discrete logic circuit having logic gates for implementing logic functions upon data signals, an application specific integrated circuit having appropriate combinational logic gates, a programmable gate array (PGA), a field programmable gate array (FPGA), or the like.
[0051] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in an appropriate manner.
[0052] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the present application, several modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A method for producing and detecting game design data based on blockchain, characterized in that, The method includes: Acquire various game-related game design data generated during the game design process, and obtain data detection chains based on these game design data. Establish a blockchain network to store various game design data and data detection chains on and off the blockchain network, respectively. When it is necessary to read various game design data off-chain, the current game design data is obtained from the off-chain storage, and the verification data detection chain is obtained based on the various game design data. The data detection chain stored on the blockchain network is read and compared with the verification data detection chain. If the data detection chain and the verification data detection chain are consistent, it is determined that the game design data has not been tampered with.
2. The method for producing and detecting game design data based on blockchain according to claim 1, characterized in that, The hash values of various types of game design data and the hash values of the current game design data are calculated to obtain the data detection chain and the verification data detection chain.
3. The method for producing and detecting game design data based on blockchain according to claim 2, characterized in that, The steps of calculating the hash values of various types of game design data and the hash values of the current various types of game design data to obtain the data detection chain and verify the data detection chain include: The game design data is divided into a preset number of sub-data blocks according to preset rules, and a hash value is calculated for each sub-data block. The hash value of the previous sub-data block is concatenated with the hash value of the next sub-data block, and the concatenated result is hashed again. Repeatedly concatenate the hash value obtained in the current operation with the next sub-data block, and then perform hash operation on the concatenated content until all sub-data blocks have been calculated. The resulting root hash value is used as the data detection chain or verification data detection chain.
4. The method for producing and detecting game design data based on blockchain according to claim 3, characterized in that, The step of dividing various game design data into a preset number of sub-data blocks according to preset rules and calculating the hash value for each sub-data block further includes: The sub-data blocks are grouped into multiple sub-data block groups according to power-law intervals. Key sub-data blocks are selected from each sub-data block group to calculate hash values. The root hash value is obtained based on the hash value calculated for each sub-data block group and used as a data detection chain or verification data detection chain.
5. The method for producing and detecting game design data based on blockchain according to claim 1, characterized in that, The steps of storing various game design data and data detection chains to the off-chain and on-chain of the blockchain network respectively include: Based on various game design data, corresponding encryption keys are determined, and these encryption keys are used to encrypt and store the game design data off-chain.
6. The method for producing and detecting game design data based on blockchain according to claim 1, characterized in that, The steps for determining the corresponding encryption key based on various game design data include: Obtain character data, scene data, and item data that describe game characters, scenes, and items from various types of game design data; Calculate the hash values of character data, scene data, and item data respectively to obtain the character hash value, scene hash value, and item hash value; After mapping the character hash value, scene hash value, and item hash value to the preset coordinate system, the initial shape enclosed by the coordinate points mapped by the character hash value, scene hash value, and item hash value is determined. The target hash value is obtained by mixing the character hash value, scene hash value, and item hash value and then performing a hash operation. The target hash value is then split into multiple target hash values according to preset rules. Multiple transformation parameters are determined based on the hash values of the multiple sub-targets. The initial graphic is then transformed using these transformation parameters to obtain the target graphic. The corresponding encryption key is determined based on the centroid coordinates of the target graphic. The transformation parameters include rotation angle, scaling factor, and shearing coefficient.
7. The method for producing and detecting game design data based on blockchain according to claim 6, characterized in that, The step of transforming the initial graphic according to multiple transformation parameters to obtain the target graphic includes: The initial graphic is rotated, scaled, and sheared sequentially according to a determined rotation angle, scaling factor, and shearing coefficient to obtain the target graphic.
8. A blockchain-based game design data production and testing system, characterized in that, The system includes: The data acquisition module is used to acquire various game-related game design data generated during the game design process, as well as to acquire data detection chains based on these game design data. A module is established to build a blockchain network, storing various game design data and data detection chains on and off the blockchain network, respectively. The storage module is used to retrieve various game design data from off-chain storage when it is necessary to read various game design data from off-chain storage, and obtain verification data to check the chain based on various game design data. The detection module is used to read the data detection chain stored on the blockchain network and compare it with the verification data detection chain. If the data detection chain and the verification data detection chain are consistent, it is determined that the game design data has not been tampered with.
9. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor, when executing the program, implements the steps of the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method, device and electronic device for storing data using block chain
CN109271445A
Game data partition storage method based on block chain hash addressing and re-encryption
CN109327512A
Registration method and device for game in game platform
CN111291336A
Game NFT work processing method and device
CN114036162A
Game data verification method and device, equipment, storage medium and program product
CN117244254A