Blind box configuration method and blind box sales system based on blockchain
By introducing blockchain technology into the blind box system, recording and verifying blind box information, the credibility problem of online blind box purchases is solved, and a more fair and transparent blind box extraction process is achieved.
Patent Information
- Application Number
- CN202111277449.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The credibility issue of online purchase of blind box products may be questioned by companies that secretly operate the blind box styles drawn by consumers, resulting in the fairness and credibility being questioned.
The blind box configuration method and blind box sales system are adopted based on blockchain. By packaging nodes, the configuration request is received, blocks are generated and blind box information is recorded on the blockchain, making the information transparent, and the verification node verifies the block information, and the supervisory node can review it at any time.
It improves the credibility and fairness of blind box products, ensures the transparency and immutability of blind box information, and enhances consumers' trust in the blind box extraction process.
Smart Images

Figure CN113962778B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and more specifically, to a blind box configuration method and a blind box sales system based on blockchain. Background Art
[0002] Blind boxes refer to toy boxes where consumers cannot know the specific product styles in advance. They have random properties. Only when consumers open them will they know what style of product they have drawn. Blind boxes contain multiple different series. The initial number of blind boxes corresponding to a whole box in each series is different, and the blind boxes in each whole box are unique. After a blind box is drawn, it will not be automatically replenished until the whole box is drawn.
[0003] However, with the rapid development of the blind box economy, the credibility of online blind box purchases has gradually been exposed. Due to the opacity of online purchases, companies can secretly manipulate the blind box styles that consumers draw. For example, when consumers intend to draw a brand new box, no matter which blind box the consumer draws, it will show that they have drawn an unpopular style. This will make consumers distrust blind box companies and question the fairness of drawing blind boxes. Summary of the invention
[0004] The present application provides a blind box configuration method and a blind box sales system based on blockchain, which is conducive to improving the credibility of blind box products.
[0005] In the first aspect, a blind box configuration method based on blockchain is provided, the method comprising: a packaging node receives a configuration request from an enterprise node, the configuration request carries a series identification number and a random number of the blind box. The packaging node determines the style identification number corresponding to the series identification number according to the series identification number and the locally stored series style table, and generates at least one block according to the style identification number. Each block in the at least one block corresponds to a whole box, the whole box includes at least one blind box with the same series identification number and different style identification numbers, each block includes a block header and a block body, the block header includes a series identification number, a root hash value, a block height, a whole box identification number, and the number of blind boxes in the whole box, and the block body includes the style identification number and a random number of the blind box. The packaging node sends the block information of the at least one block to multiple verification nodes, and receives the verification results from the multiple verification nodes, wherein the multiple verification nodes locally store the series style table. When multiple verification nodes have verified the block information of the at least one block, the packaging node synchronizes the block information of the at least one block to the enterprise node and the supervision node.
[0006] In this application, through the tamper-proof and traceable characteristics of blockchain technology, the packaging node can record all the blind box information packages and the whole box configuration results on the blockchain after regenerating the block, making the blind box information transparent to the entire blind box sales system. And the verification node can verify the block information, that is, verify the blind box information in the configured whole box, and the regulatory authorities can review the block information at any time, which is conducive to improving the credibility and fairness of blind box products.
[0007] In combination with the first aspect, in some implementations of the first aspect, the packaging node generates at least one block according to the style identification number, including: the packaging node packages the style identification number and the random number to obtain the blind box information package of each block. The packaging node calculates the hash value of the blind box information package of each block to obtain the hash value of the blind box of each block. The packaging node obtains the root hash value of each block based on the hash value of the blind box of each block.
[0008] In combination with the first aspect, in certain implementations of the first aspect, the packaging node receives a verification request from the supervision node, and the verification request carries the identification number of the target whole box. The packaging node determines the initial block recorded when the target whole box is first configured according to the identification number of the target whole box, and retains the series identification number and the whole box identification number in the block information of the initial block, and generates a first new block with an empty block body, an empty root hash value, and a number of remaining blind boxes in the whole box of 0. The packaging node synchronizes the block information of the first new block to the enterprise node, multiple verification nodes, and the supervision node.
[0009] In combination with the first aspect, in some implementations of the first aspect, the packaging node receives a purchase request from an enterprise node, the purchase request carrying an identification number of a target whole box and a hash value of the remaining blind boxes in the target whole box. The packaging generates a second new block corresponding to the target whole box according to the hash value of the remaining blind boxes in the target whole box, and synchronizes the block information of the second new block to the enterprise node, multiple verification nodes, and the supervision node.
[0010] In the second aspect, a blind box configuration method based on blockchain is provided, the method comprising: an enterprise node receives a blind box extraction request from a consumer terminal, the blind box extraction request carries a target series identification number. The enterprise node determines at least one candidate whole box from a plurality of whole boxes corresponding to the target series identification number, and sends the identification number of the at least one candidate whole box to the consumer terminal, wherein the number of blind boxes of each candidate whole box in the at least one candidate whole box is greater than 0. The enterprise node receives the identification number of the target whole box, determines the blind box included in the target whole box according to the identification number of the target whole box, and sends the hash value of the blind box included in the target whole box to the consumer terminal. The enterprise node receives a purchase request from the consumer terminal, the purchase request carries the hash value of the target blind box. Based on the hash value of the target blind box, the enterprise node obtains the style identification number of the target blind box from the block, and sends the style identification number of the target blind box to the consumer terminal.
[0011] In the third aspect, a blind box configuration method based on blockchain is provided, the method comprising: a consumer terminal sends a blind box extraction request to an enterprise node, and the blind box extraction request carries a target series identification number. The consumer terminal receives the identification number of at least one candidate whole box from the enterprise node, and selects a target whole box from the at least one candidate whole box based on the identification number of the at least one candidate whole box. The consumer terminal sends the identification number of the target whole box to the enterprise node. The consumer terminal receives the hash value of the blind box included in the target whole box from the enterprise node, and selects the target blind box from the blind box included in the target whole box based on the hash value of the blind box included in the target whole box. The consumer terminal sends a purchase request to the enterprise node, and the purchase request carries the hash value of the target blind box. The consumer terminal receives the style identification number of the target blind box from the consumer terminal, and displays the style identification number of the target blind box to the consumer.
[0012] In conjunction with the third aspect, in some implementations of the third aspect, the consumer terminal sends a verification request to the supervision node, the verification request carrying the identification number of the target whole box. The consumer terminal receives block information of an initial block from the supervision node, and performs verification based on the block information of the initial block, wherein the initial block is a block recorded when the target whole box is initially configured.
[0013] In a fourth aspect, a blind box sales system based on blockchain is provided, the system comprising a consumer terminal, an enterprise node, a packaging node, a plurality of verification nodes and a supervision node, the packaging node being used to implement the method in any possible implementation of the first aspect. The enterprise node is used to implement the method in the second aspect. The consumer terminal is used to implement the method in any possible implementation of the third aspect.
[0014] In a fifth aspect, a blind box configuration device based on blockchain is provided, including a method for executing any possible implementation of any of the above aspects. Specifically, the device includes a module for executing the method in any possible implementation of any of the above aspects.
[0015] In a sixth aspect, a blind box configuration device based on blockchain is provided, comprising a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory to implement the method in any possible implementation of any of the above aspects. Optionally, the device also includes a memory. Optionally, the device also includes a communication interface, and the processor is coupled to the communication interface.
[0016] In a seventh aspect, a processor is provided, comprising: an input circuit, an output circuit and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of any of the above aspects.
[0017] In the specific implementation process, the processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.
[0018] In an eighth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of any of the above aspects.
[0019] Optionally, there are one or more processors and one or more memories.
[0020] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0021] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0022] It should be understood that the relevant data interaction process, such as sending indication information, can be a process of outputting indication information from a processor, and receiving capability information can be a process of receiving input capability information from a processor. Specifically, the processed output data can be output to a transmitter, and the input data received by the processor can come from a receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.
[0023] The processing device in the eighth aspect mentioned above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0024] In a ninth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of any of the above aspects.
[0025] In the tenth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instruction) which, when executed on a computer, enables the computer to execute a method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of a blind box sales system based on blockchain provided in an embodiment of the present application;
[0027] Figure 2 is a schematic diagram of a block provided in an embodiment of the present application;
[0028] Figure 3 It is a schematic flow chart of a blind box configuration method based on blockchain provided in an embodiment of the present application;
[0029] Figure 4 It is a schematic flow chart of a blind box extraction method based on blockchain provided in an embodiment of the present application;
[0030] Figure 5 It is a schematic block diagram of a blind box sales device based on blockchain provided in an embodiment of the present application;
[0031] Figure 6 It is a schematic block diagram of another blockchain-based blind box sales device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0033] Before introducing the blockchain-based blind box configuration method and blind box sales system provided in the embodiments of the present application, the following points are explained.
[0034] First, in the embodiments shown below, each term and English abbreviation, such as independent variable, total amount of bank non-performing loans, regression equation, etc., are illustrative examples given for the convenience of description and should not constitute any limitation to this application. This application does not exclude the possibility of defining other terms that can achieve the same or similar functions in existing or future agreements.
[0035] Second, the first, second and various numerical numbers in the embodiments shown below are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application. For example, to distinguish different independent variables.
[0036] Third, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0037] Figure 1 1 is a schematic diagram of a blind box sales system 100 based on blockchain provided in an embodiment of the present application. The system 100 includes a consumer terminal 101, an enterprise node 102, a supervision node 103, a packaging node 104, and three verification nodes 105. It should be understood that the system 100 takes three verification nodes 105 as an example, and the embodiment of the present application does not limit the number of verification nodes.
[0038] Among them, the system 100 includes a blockchain network, and the blockchain network includes an enterprise node 102, a supervision node 103, a packaging node 104 and three verification nodes 105.
[0039] In the embodiment of the present application, the consumer terminal 101 is mainly used to provide consumers with an entry for interacting with the blockchain network.
[0040] Enterprise node 102 is a blind box enterprise node, which is used to send product configuration requests and receive purchase requests from consumer terminals.
[0041] The supervision node 103 is used to receive the block information synchronized by the packaging node 104, receive the verification request initiated by the consumer terminal in the online extraction process, and respond to and forward the verification request.
[0042] The packaging node 104 is used to receive requests from the enterprise node 102 or the regulatory node 103, perform hash calculations on the relevant data, and package them to generate blocks, and synchronize the block information to other nodes in the blockchain network, that is, the block information between all nodes in the blockchain network is consistent.
[0043] The verification node 105 can verify the synchronized block information.
[0044] The packaging node 104 and the verification node 105 can be collectively referred to as a consensus node, and the packaging node 104 and the verification node 105 can be switched at will, and the switching method and cycle can vary depending on the consensus algorithm.
[0045] The packaging node 104 and / or the verification node 105 locally stores a series style table, which records the corresponding relationship between the series identification number and the style identification number.
[0046] Figure 2 is a schematic diagram of a block provided in an embodiment of the present application, which can be applied to the above-mentioned blind box sales system 100. Figure 2 As shown, the block includes a block body and a block header. The block header includes: previous hash value, block height, timestamp, root hash value, series identification number, whole box identification number, number of blind boxes in the whole box. The block body includes a blind box information package and a Merkle tree of the hash value of the blind box. Among them, the Merkle number includes the hash value of the blind box, the hash value and the root hash value.
[0047] For example, Figure 2 As shown, blind box information package 0, blind box information package 1, blind box information package 2, and blind box information package 3 are respectively calculated by hashing to obtain the blind box's hash value 0, the blind box's hash value 1, the blind box's hash value 2, and the blind box's hash value 3. The blind box's hash value 0 and the blind box's hash value 1 are calculated by hashing to obtain the hash value 01, the blind box's hash value 2 and the blind box's hash value 3 are calculated by hashing to obtain the hash value 23, and the hash value 01 and the hash value 23 are then calculated by hashing to obtain the root hash value.
[0048] In an embodiment of the present application, a block represents a whole box. When a blind box in a whole box is extracted, the block information of the whole box changes, and the packaging node generates a new block.
[0049] Among them, the root hash value represents the root hash value of the block, that is, the Merkle tree root calculated by the block body. The previous hash value represents the root hash value of the previous block of the block. The block height is an increasing sequence of natural numbers, which is used to confirm the order of blocks. The timestamp is the time when the block is packaged. The series identification number represents the unique identification number calibrated by the enterprise node for a series of blind boxes, which is used to identify the series to which the blind box in the whole box represented by the block belongs. The identification number of the whole box uniquely identifies the whole box represented by the block. It is consistent with the block height during the initial configuration, and the identification number of the whole box remains unchanged afterwards. The number of blind boxes in the whole box represents the number of blind box information packages included in the block.
[0050] Among them, the blind box information package includes the whole box random number (Nonce) and the style identification number. The Merkle tree of the blind box information package and the hash value of the blind box is used to calculate the Merkle tree root, that is, the root hash value in the block header. The whole box random number is a non-repeating random number submitted by the enterprise node when configuring the whole box. Each whole box corresponds to a random number. The random number of each whole box is different. Figure 2 The random numbers in each blind box information package in the blocks shown are consistent. The style identification number can uniquely identify a blind box style, and consumers can know the product style corresponding to the style.
[0051] When consumers draw blind boxes, they can choose the blind box's hash value 0, the blind box's hash value 1, the blind box's hash value 2, and the blind box's hash value 3 as selection objects for blind selection, so that consumers can make choices without knowing the style of the blind box. Calculating the Merkle tree based on the blind box's hash value is also helpful in preventing block information from being tampered with.
[0052] Figure 3 is a schematic flow chart of a blind box configuration method 300 based on blockchain provided in an embodiment of the present application. The method 300 can be applied to Figure 1 The blockchain-based blind box sales system 100 shown below includes:
[0053] S301, the enterprise node sends a configuration request to the packaging node, the configuration request carries the series identification number and random number of the blind box. Correspondingly, the packaging node receives the configuration request.
[0054] S302, the packaging node determines the style identification number corresponding to the series identification number according to the series identification number and the locally stored series style table, and generates at least one block according to the style identification number. Each block in the at least one block corresponds to a whole box, and the whole box includes at least one blind box with the same series identification number and different style identification numbers. Each block includes a block header and a block body. The block header includes the series identification number, the root hash value, the block height, the whole box identification number, and the number of blind boxes in the whole box. The block body includes the style identification number and a random number of the blind box.
[0055] S303, the packaging node sends the block information of the at least one block to the multiple verification nodes. Correspondingly, the multiple verification nodes receive the block information of the at least one block.
[0056] S304, multiple verification nodes verify the style of the blind box in the block information according to the block information of the at least one block and the series style table. Multiple verification nodes locally store the series style table.
[0057] S305, multiple verification nodes send verification results to the packaging node, where the verification results include verification passed or verification failed. Accordingly, the packaging node receives the verification results from the multiple verification nodes.
[0058] S306, when multiple verification nodes have verified the block information of the at least one block, the packaging node synchronizes the block information of the at least one block to the enterprise node and the supervision node.
[0059] It should be understood that in the embodiment of the present application, the verification of the block information by the verification node may include: verifying the hash value of the blind box in the block information. Since the styles of the blind boxes in the whole box are different, the style identification numbers of the blind boxes are different, and the hash values of the blind boxes calculated according to the style identification number of the blind box and the random number of the whole box are different. The verification node can determine the style identification number of the blind box corresponding to the series identification number according to the locally stored series style table, and then calculate the hash value of the blind box according to the blind box style identification number and the random number. If the hash value of the blind box calculated by the verification node is consistent with the hash value of the blind box recorded in the block information, then the verification is passed. If the enterprise node replaces the style identification number under a certain series, the verification may not pass. If each verification node passes the verification, it means that the process of configuring the blind box by the enterprise node is fair and credible, and then the block information of the at least one block can be synchronized to the supervision node and the enterprise node.
[0060] In the embodiment of the present application, the packaging node can configure a new whole box of blind boxes according to the configuration request of the enterprise node, and record the block information in the blockchain for users to select and extract blind boxes. The existence of multiple verification nodes makes the configuration of blind box products more fair. If a blind box company replaces the blind box style in a series in secret, or the styles of blind boxes in a whole box are all the same, then it will not be able to pass the verification of the verification node, which is conducive to improving the fairness of selling blind box products.
[0061] Exemplarily, a commodity series with a series identification number of A includes 4 different styles of commodities, and each style of commodity corresponds to a style identification number, for example, a, b, c, and d are used to represent the style identification numbers of 4 different styles of commodities respectively. During the configuration process of a new whole box of blind boxes, the packaging node can configure 4 different styles of commodities in the same series into a whole box, that is, a whole box includes 4 different styles of blind boxes. It should be understood that when configuring a whole box, the packaging node may configure multiple whole boxes, each with a corresponding identification number. For example, a commodity series with a series identification number of A is finally configured into 8 whole boxes, and the identification numbers of the 8 whole boxes are 1, 2, 3, 4, 5, 6, 7, and 8, respectively. Each whole box includes 4 different styles of blind boxes corresponding to the style identification numbers of a, b, c, and d, respectively, of the A series.
[0062] It should be understood that when configuring a whole box, the enterprise node can generate a random number for the packaging node to perform hash calculation. After a new whole box is configured, if the packaging node configures another new whole box, the enterprise node needs to regenerate a random number.
[0063] As an optional embodiment, S302 includes: the packing node packs the style identification number and the random number to obtain the blind box information package of each block. The packing node calculates the hash value of the blind box information package of each block to obtain the hash value of the blind box of each block. The packing node obtains the root hash value of each block based on the hash value of the blind box of each block.
[0064] In an embodiment of the present application, the packaging node can calculate the root hash value of each block based on the Merkle tree, which is helpful in preventing enterprise nodes from tampering with the style of the blind box.
[0065] After the blind box configuration is completed, consumers can draw the blind box online or offline. Figure 4 Introduce a blind box extraction method.
[0066] Figure 4 is a schematic flow chart of a blind box extraction method 400 based on blockchain provided in an embodiment of the present application. The method 400 can be applied to Figure 1 The blockchain-based blind box sales system 100 shown. Method 400 can be performed after the above method 300. Method 400 includes the following steps:
[0067] S401, the consumer terminal sends a blind box extraction request to the enterprise node, the blind box extraction request carries the target series identification number. Correspondingly, the enterprise node receives the blind box extraction request.
[0068] S402: The enterprise node determines at least one candidate whole box from a plurality of whole boxes corresponding to the target series identification number.
[0069] S403, the enterprise node sends the identification number of the at least one candidate whole box to the consumer terminal, and the number of blind boxes of each candidate whole box in the at least one candidate whole box is greater than 0. Accordingly, the consumer terminal receives the identification number of the at least one candidate whole box.
[0070] S404: The consumer terminal selects a target whole box from at least one candidate whole box based on the identification number of the at least one candidate whole box.
[0071] S405, the consumer terminal sends the identification number of the target whole box to the enterprise node. Correspondingly, the enterprise node receives the identification number of the target whole box.
[0072] S406, the enterprise node determines the blind boxes included in the target whole box according to the identification number of the target whole box.
[0073] S407, the enterprise node sends the hash value of the blind box included in the target full box to the consumer terminal. Correspondingly, the consumer terminal receives the hash value of the blind box included in the target full box.
[0074] S408, the consumer terminal selects a target blind box from the blind boxes included in the target whole box based on the hash value of the blind boxes included in the target whole box.
[0075] S409, the consumer terminal sends a purchase request to the enterprise node, the purchase request carries the hash value of the target blind box. Correspondingly, the enterprise node receives the purchase request.
[0076] S410, the enterprise node obtains the style identification number of the target blind box from the block based on the hash value of the target blind box.
[0077] S411, the enterprise node sends the style identification number of the target blind box to the consumer terminal. Correspondingly, the consumer terminal receives the style identification number of the target blind box.
[0078] S412, the consumer terminal displays the style identification number of the target blind box to the consumer.
[0079] The above method 400 introduces the process of consumers drawing blind boxes. In the drawing process, the consumer can first select the target series identification number through the consumer terminal to determine the series of goods to be drawn, and then the enterprise node can provide the consumer with at least one candidate whole box with a non-zero number of blind boxes according to the target series identification number. After the consumer selects a target whole box from at least one candidate whole box through the consumer terminal, the enterprise node can provide the consumer with a hash value of the blind box in the target whole box according to the target whole box. The consumer cannot know the style of the corresponding blind box product through the hash value of the blind box, which is conducive to consumers to make blind selections and improve the fairness of blind box drawing.
[0080] After the blind box drawing is over, consumers may be dissatisfied with the style of the blind box drawn, or question the fairness of the blind box drawing process. At this time, consumers can verify the blind box drawn.
[0081] As an optional embodiment, the consumer terminal sends a verification request to the supervision node, and the verification request carries the identification number of the target whole box. The supervision node receives the verification request, determines the initial block recorded when the target whole box is first configured according to the identification number of the target whole box, and sends the block information of the initial block to the consumer terminal. The consumer terminal receives the block information of the initial block and performs verification based on the block information of the initial block.
[0082] In the embodiment of the present application, due to the identification number and block height of the whole box at the time of initial configuration, the supervisory node can quickly find the initial block recorded when the target whole box is initially configured according to the identification number of the target whole box, and send the block information of the initial block to the consumer terminal. The consumer can verify whether the product style provided by the enterprise node is consistent with the style drawn by himself according to the random number in the blind box information package and the style identification number of the target blind box.
[0083] For example, the consumer can calculate the hash value of the blind box based on the random number of the target whole box and the style identification number of the blind box displayed to the consumer, and determine whether the calculated hash value of the blind box is consistent with the hash value of the target blind box in the block information of the initial block. If they are consistent, it means that the blind box drawing is fair.
[0084] Exemplarily, the consumer can also calculate the root hash value based on the hash value of the blind box displayed to the consumer to verify whether the blind box information package has been tampered with.
[0085] In one possible scenario, after the blind box drawing is completed, the consumer verifies the drawing. After verification, the packaging node can generate a new block corresponding to the target whole box.
[0086] As an optional embodiment, the supervision node sends the verification request to the packaging node. The packaging node receives the verification request, determines the initial block recorded when the target whole box is first configured according to the identification number of the target whole box, and retains the series identification number and the whole box identification number in the block information of the initial block, and generates a first new block with an empty block body, an empty root hash value, and a number of remaining blind boxes in the whole box of 0. The packaging node synchronizes the block information of the first new block to the enterprise node, the verification node, and the supervision node.
[0087] In the embodiment of the present application, since the consumer has initiated verification to obtain the block information of the initial block corresponding to the target whole box, the block information of the initial block includes the corresponding relationship between the hash value of the blind box and the blind box style, so the blind box in the target whole box is transparent to the consumer. In order to avoid unfair blind box extraction, the packaging node can generate a first new block with an empty block body, an empty root hash value, and 0 remaining blind boxes in the whole box after receiving the verification request. Only the series identification number and the whole box identification number in the block information of the initial block are retained in the first new block. The first new block generated in this way indicates that the extraction of the target whole box has ended and cannot be extracted by subsequent consumers.
[0088] In another possible scenario, the consumer does not verify the blind box drawing after the blind box drawing is completed. In this case, the packaging node can also generate a new block corresponding to the target whole box after the blind box drawing is completed.
[0089] As an optional embodiment, the enterprise node sends the purchase request to the packaging node, and the purchase request carries the identification number of the target whole box and the hash value of the remaining blind boxes in the target whole box. The packaging node receives the purchase request, generates a second new block corresponding to the target whole box according to the hash value of the remaining blind boxes in the target whole box, and synchronizes the block information of the second new block to the enterprise node, the verification node, and the supervision node.
[0090] In the embodiment of the present application, since the consumer has not performed verification, the blind box information in the target whole box has not been disclosed, and the target whole box can still continue to be extracted by subsequent consumers. The packaging node can determine the initial block recorded when the target whole box is first configured according to the identification number of the target whole box, retain the series identification number and the whole box identification number in the block information of the initial block, update the root hash value, the previous hash value, the timestamp, the block height, and the number of blind boxes in the whole box, wherein the root hash value can be calculated by the Merkle tree based on the hash value of the remaining blind boxes in the target whole box, thereby generating a second new block corresponding to the target whole box, and synchronizing the block information of the second new block to other nodes executed by the blockchain network, including enterprise nodes, regulatory nodes, and verification nodes.
[0091] It should be understood that the sequence numbers of the above processes do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0092] Combined with the above Figures 1 to 4 , describes in detail the blind box configuration method based on blockchain according to the embodiment of the present application, and will be combined with Figure 5 and Figure 6 A blockchain-based blind box selling device according to an embodiment of the present application is described in detail.
[0093] Figure 5 A schematic block diagram of a blockchain-based blind box sales device 500 provided in an embodiment of the present application is shown. The device 500 includes a receiving module 510, a processing module 520 and a sending module 530.
[0094] Among them, the receiving module 510 is used to: receive a configuration request from an enterprise node, and the configuration request carries the series identification number and random number of the blind box. The processing module 520 is used to: determine the style identification number corresponding to the series identification number according to the series identification number and the locally stored series style table, and generate at least one block according to the style identification number, each block in the at least one block corresponds to a whole box, and the whole box includes at least one blind box with the same series identification number and different style identification numbers. Each block includes a block header and a block body, and the block header includes a series identification number, a root hash value, a block height, a whole box identification number, and the number of blind boxes in the whole box. The block body includes the style identification number and random number of the blind box. The sending module 530 is used to: send the block information of the at least one block to multiple verification nodes. The receiving module 510 is also used to: receive verification results from multiple verification nodes, and multiple verification nodes locally store the series style table. The processing module 520 is also used to: when the block information of at least one block is successfully verified by the multiple verification nodes, synchronize the block information of the at least one block to the enterprise node and the supervision node.
[0095] Optionally, the processing module 520 is used to: package the style identification number and the random number to obtain a blind box information package for each block; calculate the hash value of the blind box information package for each block to obtain the hash value of the blind box for each block; and, based on the hash value of the blind box for each block, obtain the root hash value of each block.
[0096] Optionally, the receiving module 510 is used to: receive a verification request, which carries the identification number of the target whole box. The processing module 520 is used to: determine the initial block recorded when the target whole box is first configured according to the identification number of the target whole box, and retain the series identification number and the whole box identification number in the block information of the initial block, generate a first new block with an empty block body, an empty root hash value, and a number of remaining blind boxes in the whole box of 0; and synchronize the block information of the first new block to the enterprise node, the verification node, and the supervision node.
[0097] Optionally, the receiving module 510 is used to: receive a purchase request, which carries the identification number of the target whole box and the hash value of the remaining blind boxes in the target whole box. The processing module 520 is used to: generate a second new block corresponding to the target whole box according to the hash value of the remaining blind boxes in the target whole box, and synchronize the block information of the second new block to the enterprise node, the verification node and the supervision node.
[0098] In an optional example, those skilled in the art will appreciate that the device 500 may be specifically a packing node in the above embodiment, or the function of the packing node in the above embodiment may be integrated in the device 500. The above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The device 500 may be used to execute each process and / or step corresponding to the packing node in the above method embodiment.
[0099] It should be understood that the apparatus 500 herein is embodied in the form of functional modules. The term "module" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions. In an embodiment of the present application, Figure 5 The device 500 may also be a chip or a chip system, such as a system on chip (SoC).
[0100] Figure 6 6 is a schematic block diagram of another blockchain-based blind box sales device 600 provided in an embodiment of the present application. The device 600 includes a processor 610, a transceiver 620, and a memory 630. The processor 610, the transceiver 620, and the memory 630 communicate with each other through an internal connection path, the memory 630 is used to store instructions, and the processor 610 is used to execute the instructions stored in the memory 630 to control the transceiver 620 to send and / or receive signals.
[0101] It should be understood that the device 600 can be specifically a packaging node, an enterprise node or a consumer terminal in the above-mentioned embodiment, or the functions of the packaging node, enterprise node or consumer terminal in the above-mentioned embodiment can be integrated in the device 600, and the device 600 can be used to execute the various steps and / or processes corresponding to the packaging node, enterprise node or consumer terminal in the above-mentioned method embodiment. Optionally, the memory 630 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 610 can be used to execute instructions stored in the memory, and when the processor executes the instruction, the processor can execute the various steps and / or processes corresponding to the packaging node, enterprise node or consumer terminal in the above-mentioned method embodiment.
[0102] It should be understood that in the embodiment of the present application, the processor 610 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0103] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0104] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0105] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0106] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0108] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0109] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A blind box configuration method based on blockchain, characterized in that: include: The packaging node receives a configuration request from the enterprise node, wherein the configuration request carries the series identification number and random number of the blind box; The packaging node determines the style identification number corresponding to the series identification number according to the series identification number and the locally stored series style table, and generates at least one block according to the style identification number, each block in the at least one block corresponds to a whole box, and the whole box includes at least one blind box with the same series identification number and different style identification numbers, and each block includes a block header and a block body; the block header includes the series identification number, the root hash value, the block height, the whole box identification number and the number of blind boxes in the whole box, and the block body includes the style identification number and a random number of the blind box; The packaging node sends the block information of the at least one block to a plurality of verification nodes, and receives verification results from the plurality of verification nodes, wherein the plurality of verification nodes locally store the series style table; When the multiple verification nodes have verified the block information of the at least one block, the packaging node synchronizes the block information of the at least one block to the enterprise node and the supervision node; The packaging node generates at least one block according to the style identification number, including: The packing node packs the style identification number and the random number to obtain a blind box information package of each block; The packaging node calculates the hash value of the blind box information package of each block to obtain the hash value of the blind box of each block; The packaging node obtains the root hash value of each block according to the hash value of the blind box of each block.
2. The method according to claim 1, characterized in that The method further comprises: The packaging node receives a verification request from the supervision node, wherein the verification request carries an identification number of a target whole box; The packaging node determines the initial block recorded when the target whole box is initially configured according to the identification number of the target whole box, retains the series identification number and the whole box identification number in the block information of the initial block, and generates a first new block with an empty block body, an empty root hash value, and a number of remaining blind boxes in the whole box of 0; The packaging node synchronizes the block information of the first new block to the enterprise node, the multiple verification nodes and the supervision node.
3. The method according to claim 1, characterized in that The method further comprises: The packaging node receives a purchase request from the enterprise node, where the purchase request carries an identification number of a target whole box and a hash value of the remaining blind boxes in the target whole box; The packaging generates a second new block corresponding to the target whole box according to the hash value of the remaining blind boxes in the target whole box, and synchronizes the block information of the second new block to the enterprise node, the multiple verification nodes and the supervision node.
4. A blind box configuration method based on blockchain, characterized in that: include: The enterprise node receives a blind box extraction request from a consumer terminal, wherein the blind box extraction request carries a target series identification number; The enterprise node determines at least one candidate whole box from the multiple whole boxes corresponding to the target series identification number, and sends the identification number of the at least one candidate whole box to the consumer terminal, wherein the number of blind boxes in each candidate whole box in the at least one candidate whole box is greater than 0; the whole box includes at least one blind box with the same series identification number and different style identification numbers; Each of the whole boxes corresponds to a block, and each of the blocks includes a block header and a block body; the block header includes a series identification number, a root hash value, a block height, a whole box identification number, and the number of blind boxes in the whole box, and the block body includes a style identification number and a random number of the blind box; The enterprise node receives the identification number of the target whole box, determines the blind boxes included in the target whole box according to the identification number of the target whole box, and sends the hash value of the blind boxes included in the target whole box to the consumer terminal; The hash value is obtained by packing the node packaging style identification number and the random number, obtaining the blind box information package of each block, and calculating the hash value of the blind box information package of each block; The enterprise node receives a purchase request from the consumer terminal, where the purchase request carries a hash value of a target blind box; The enterprise node obtains the style identification number of the target blind box from the block based on the hash value of the target blind box, and sends the style identification number of the target blind box to the consumer terminal.
5. A blind box configuration method based on blockchain, characterized in that: include: The consumer terminal sends a blind box extraction request to the enterprise node, wherein the blind box extraction request carries a target series identification number; The consumer terminal receives the identification number of at least one candidate whole box from the enterprise node, and selects a target whole box from the at least one candidate whole box based on the identification number of the at least one candidate whole box; the whole box includes at least one blind box with the same series identification number and different style identification numbers; Each of the whole boxes corresponds to a block, and each of the blocks includes a block header and a block body; the block header includes a series identification number, a root hash value, a block height, a whole box identification number, and the number of blind boxes in the whole box, and the block body includes a style identification number and a random number of the blind box; The consumer terminal sends the identification number of the target whole box to the enterprise node; The consumer terminal receives the hash value of the blind box included in the target whole box from the enterprise node, and selects a target blind box from the blind boxes included in the target whole box based on the hash value of the blind box included in the target whole box; The hash value is obtained by packing the node packaging style identification number and the random number, obtaining the blind box information package of each block, and calculating the hash value of the blind box information package of each block; The consumer terminal sends a purchase request to the enterprise node, where the purchase request carries the hash value of the target blind box; The consumer terminal receives the style identification number of the target blind box from the enterprise node, and displays the style identification number of the target blind box to the consumer.
6. The method according to claim 5, characterized in that The method further comprises: The consumer terminal sends a verification request to the supervision node, wherein the verification request carries the identification number of the target whole box; The consumer terminal receives the block information of the initial block from the supervision node, and performs verification based on the block information of the initial block, wherein the initial block is a block recorded when the target whole box is initially configured.
7. A blind box sales system based on blockchain, characterized in that: include: Consumer terminals, enterprise nodes, packaging nodes, multiple verification nodes, and regulatory nodes; The enterprise node is used to: send a configuration request to the packaging node, where the configuration request carries the series identification number and random number of the blind box; The packaging node is used to: receive the configuration request, determine the style identification number corresponding to the series identification number according to the series identification number and the locally stored series style table, and generate at least one block according to the style identification number, each block in the at least one block corresponds to a whole box, and the whole box includes at least one blind box with the same series identification number and different style identification numbers, and each block includes a block header and a block body; the block header includes the series identification number, the root hash value, the block height, the whole box identification number and the number of blind boxes in the whole box, and the block body includes the style identification number and a random number of the blind box; The packaging node is further used to: send the block information of the at least one block to the multiple verification nodes, and receive verification results from the multiple verification nodes, wherein the multiple verification nodes locally store the series style table; The packaging node is further used to: synchronize the block information of the at least one block to the enterprise node and the supervision node when the block information of the at least one block is verified by the multiple verification nodes; The packaging node is specifically used to: package the style identification number and the random number to obtain the blind box information package of each block; Calculate the hash value of the blind box information package of each block to obtain the hash value of the blind box of each block; According to the hash value of the blind box of each block, the root hash value of each block is obtained.
8. A blind box configuration device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the device executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product includes computer program codes, and when the computer program codes are executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Virtual resource processing method and device, storage medium and electronic equipment
CN112891941A
Blind box selling platform based on block chain
CN113271346A