CN115221434A - Access method and device of digital blind box, electronic equipment and storage medium - Google Patents

Access method and device of digital blind box, electronic equipment and storage medium Download PDF

Info

Publication number
CN115221434A
CN115221434A CN202210709021.5A CN202210709021A CN115221434A CN 115221434 A CN115221434 A CN 115221434A CN 202210709021 A CN202210709021 A CN 202210709021A CN 115221434 A CN115221434 A CN 115221434A
Authority
CN
China
Prior art keywords
blind box
random number
digital blind
determining
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210709021.5A
Other languages
Chinese (zh)
Inventor
王耿
曹崇瑞
胡志敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210709021.5A priority Critical patent/CN115221434A/en
Publication of CN115221434A publication Critical patent/CN115221434A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9014Indexing; Data structures therefor; Storage structures hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes

Abstract

The application provides an access method, an access device, electronic equipment and a storage medium of a digital blind box, wherein the method comprises the steps of receiving a URL (uniform resource locator) address of a target digital blind box; firstly, determining the sequence number of the target digital blind box according to the URL address, and determining whether the target digital blind box is opened or not based on the sequence number; when the target digital blind box is determined to be opened, the target digital blind box is allowed to be accessed, so that the condition that the metadata of all the digital blind boxes are invisible before the digital blind box is not opened is ensured, and the confidentiality of the digital blind box is improved.

Description

Access method and device of digital blind box, electronic equipment and storage medium
Technical Field
The present application relates to the field of digital blind boxes, and in particular, to a method and an apparatus for accessing a digital blind box, an electronic device, and a storage medium.
Background
This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
In a general digital blind box, the sequence numbers all adopt 0, 1, 2.. Or other predictable sequence numbers, and the corresponding metadata resources can be directly accessed through a URL (uniform resource locator) address after contract deployment, and the URL addresses of the metadata resources are directly associated with the sequence numbers, so that the URL addresses of the corresponding metadata can be easily calculated after the sequence numbers are obtained. Therefore, the metadata of all the digital blind boxes are visible before the digital blind boxes are not opened, and the confidentiality of the digital blind boxes is reduced.
Disclosure of Invention
In view of the above, an object of the present application is to provide an access method and apparatus for a digital blind box, an electronic device, and a storage medium.
Based on the above purpose, the present application provides an access method for a digital blind box, which includes:
receiving a URL address of a target digital blind box;
determining a sequence number of the target digital blind box based on the URL address, and determining whether the target digital blind box has been opened based on the sequence number;
and if the target digital blind box is opened, allowing the target digital blind box to be accessed.
In some embodiments, prior to receiving the URL address of the target digital blindbox, the method further comprises:
determining a random number of the target digital blind box;
and determining the URL address of the target digital blind box based on the sequence number of the target digital blind box and the random number.
In some embodiments, determining the URL address of the target number blind box based on the sequence number of the target number blind box and the random number specifically includes:
generating a combined coded numerical value based on the sequence number of the target digital blind box and the random number;
and inputting the combined coding numerical value into a hash function, and determining the URL address of the target digital blind box based on the output result of the hash function.
In some embodiments, determining the random number of the target number blind box specifically includes:
acquiring a current random number from a random number contract;
and determining the current random as the random number of the target digital blind box.
In some embodiments, determining the random number of the target number blind box specifically includes:
acquiring a current random number from a random number contract;
determining the current random as a random number of a digital blind box contract where the target digital blind box is located;
determining a random number for the target digital blind box based on the random number for the digital blind box contract.
In some embodiments, prior to retrieving the current nonce from the nonce contract, the method further comprises:
inputting a preset initial value into a hash function to obtain an initial random number in the random number contract;
deploying the random number contract based on the initial random number.
In some embodiments, after deploying the random number contract based on the initial random number, the method further comprises:
in response to determining that the random number contract is accessed, obtaining an access time and a visiting address;
determining a current random number of the random number contract, and determining a current random encoding value based on the access time, the access address, and the current random number;
and inputting the current random coding numerical value into a hash function, and updating the current random number based on an output result of the hash function.
In some embodiments, after deploying the random number contract based on the initial random number, the method further comprises:
acquiring a target numerical value sent to the random number contract through a reserved interface;
determining a current random number of the random number contract, and determining a current random encoding value based on the target value and the current random number;
and inputting the current random coding numerical value into a hash function, and updating the current random number based on an output result of the hash function.
In some embodiments, determining whether the target digital blind box has been opened based on the sequence number specifically includes:
in response to receiving the information that the digital blind box was purchased; saving the sequence number of the purchased digital blind boxes into a preset area;
the method comprises the steps of obtaining sequence numbers of all digital blind boxes in a preset area, and determining whether a target digital blind box is opened or not based on the sequence numbers of all digital blind boxes and the sequence number of the target digital blind box.
In some embodiments, determining whether the target digital blind box has been opened based on the sequence numbers of all the digital blind boxes and the sequence number of the target digital blind box specifically includes:
in response to determining that the sequence numbers of all the digital blind boxes comprise the sequence number of the target digital blind box, determining that the target digital blind box has been opened;
determining that the target digital blind box is not opened in response to determining that the sequence number of the target digital blind box is not included in the sequence numbers of all the digital blind boxes.
Based on the same inventive concept, the exemplary embodiments of the present application further provide an access apparatus for a digital blind box, including:
the receiving module is used for receiving the URL address of the target digital blind box;
the judging module is used for determining the sequence number of the target digital blind box based on the URL address and determining whether the target digital blind box is opened or not based on the sequence number;
a determining module that allows the target digital blind box to be accessed if the target digital blind box has been opened.
Based on the same inventive concept, the exemplary embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable by the processor, and the processor implements the access method of the digital blind box as described above when executing the program.
Based on the same inventive concept, the exemplary embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the access method of the digital blind box as described above.
As can be seen from the above, the access method, the access device, the electronic device and the storage medium for the digital blind box provided by the application receive the URL address of the target digital blind box; firstly, determining the sequence number of the target digital blind box according to the URL address, and determining whether the target digital blind box is opened or not based on the sequence number; when the target digital blind box is determined to be opened, the target digital blind box is allowed to be accessed, so that the condition that the metadata of all the digital blind boxes are invisible before the digital blind box is not opened is ensured, and the confidentiality of the digital blind box is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an access method for a digital blind box according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a method for changing a random number in a random number contract according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an access device of a digital blind box according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a specific electronic device according to an embodiment of the present application.
Detailed Description
The principles and spirit of the present application will be described with reference to a number of exemplary embodiments. It should be understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present application, and are not intended to limit the scope of the present application in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
According to the embodiment of the application, an access method and device of a digital blind box, an electronic device and a storage medium are provided.
In this document, it is to be understood that any number of elements in the figures are provided by way of illustration and not limitation, and any nomenclature is used for distinction only and not limitation.
The principles and spirit of the present application are explained in detail below with reference to several representative embodiments of the present application.
Summary of The Invention
In the prior art, the sequence numbers of the digital blind boxes are all 0, 1 and 2. Therefore, before the digital blind box is not opened, the metadata of all the digital blind boxes are visible, that is, before a user purchases the blind box, the user can access the metadata resource of the digital blind box in the contract through the URL address cracked by the user, the confidentiality of the digital blind box is reduced, and great loss is easily caused to an operator of the digital blind box.
In order to solve the above problem, the present application provides an access method for a digital blind box, which specifically includes:
after receiving the URL address of the target digital blind box; firstly, determining the sequence number of the target digital blind box according to the URL address, and determining whether the target digital blind box is opened or not based on the sequence number; when the target digital blind box is determined to be opened, the target digital blind box is allowed to be accessed, and because the URL address is used for judging whether the corresponding digital blind box is opened or not when the target digital blind box is accessed through the URL address, the condition that the metadata of all the digital blind boxes are invisible before the digital blind box is not opened is ensured, the confidentiality of the digital blind box is improved, and the difficulty is further increased for trying to confirm the metadata resources of the digital blind box in advance by cracking the URL address.
Having described the basic principles of the present application, various non-limiting embodiments of the present application are described in detail below.
Application scene overview
In some specific application scenarios, the access method of the digital blind box of the present application may be applied to various contract systems including the digital blind box, and optionally, the contract system may be a block chain-based contract system.
The following describes an access method of a digital blind box according to an exemplary embodiment of the present application with reference to a specific application scenario. It should be noted that the above application scenarios are only presented to facilitate understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
Exemplary method
Referring to fig. 1, an access method of a digital blind box is provided for an embodiment of the present application, including the following steps:
and S101, receiving the URL address of the target digital blind box.
In specific implementation, each of the digital blind boxes corresponds to a URL address, optionally, the URL address generally includes a public basic address portion (baseUrl) and an exclusive address portion, and the difference between URL addresses corresponding to different digital blind boxes in the same digital blind box contract is mainly embodied in the exclusive address portion.
S102, determining the sequence number of the target digital blind box based on the URL address, and determining whether the target digital blind box is opened or not based on the sequence number.
In specific implementation, after the URL address of the target digital blind box is received, the sequence number of the target digital blind box is determined according to the URL address, optionally, the sequence number of each digital blind box corresponds to the URL address one by one, so that after the URL address of the target digital blind box is received, the sequence number corresponding to the URL address can be determined. And after the sequence number of the target digital blind box is obtained, whether the target digital blind box is opened is further determined according to the sequence number. Alternatively, whether the digital blind box corresponding to each sequence number is opened (purchased) may be judged in the digital blind box contract.
Here, the sequence numbers and the URL addresses are in one-to-one correspondence, and do not mean that the corresponding URL addresses can be directly inferred by the sequence numbers.
In some embodiments, determining whether the target digital blind box has been opened based on the sequence number specifically includes:
in response to receiving the information that the digital blind box was purchased; storing the sequence number of the purchased digital blind boxes into a preset area;
the method comprises the steps of obtaining sequence numbers of all digital blind boxes in a preset area, and determining whether a target digital blind box is opened or not based on the sequence numbers of all digital blind boxes and the sequence number of the target digital blind box.
In specific implementation, after receiving the purchased information of the digital blind boxes, the contract system of the digital blind boxes stores the sequence numbers of the purchased digital blind boxes into a preset area, where the purchased information of the digital blind boxes may be payment information of users purchasing the digital blind boxes, or may be a transaction record of successful transaction of the digital blind boxes, and is not limited herein. After the sequence numbers of all the purchased digital blind boxes are stored in the preset area, whether the target digital blind box is opened or not can be quickly and accurately determined by judging whether the sequence number of the current target digital blind box exists in the preset area or not.
In some embodiments, determining whether the target digital blind box has been opened based on the sequence numbers of all the digital blind boxes and the sequence number of the target digital blind box specifically includes:
in response to determining that the sequence numbers of all the digital blind boxes comprise the sequence number of the target digital blind box, determining that the target digital blind box has been opened;
determining that the target digital blind box is not opened in response to determining that the sequence number of the target digital blind box is not included in the sequence numbers of all the digital blind boxes.
S103, if the target digital blind box is opened, allowing the target digital blind box to be accessed.
In specific implementation, the target digital blind box is allowed to be accessed only when the target digital blind box is determined to be opened. Optionally, after the target digital blind box is accessed, the metadata resource of the target digital blind box may be acquired.
It should be noted that, because the digital blind box itself has uncertainty, that is, before the digital blind box is opened, the user cannot know the specific content of the blind box, which is also a main reason that the digital blind box attracts the user to consume, if the digital blind box is opened by the user in advance by deciphering the URL address before the digital blind box is opened (purchased), the playability of the digital blind box is undoubtedly reduced. And if the user can access different digital blind boxes through the URL address before purchasing the blind boxes and then selects a popular digital blind box from the different digital blind boxes, unwelcome digital blind boxes can be purchased, and further, the operator of the digital blind boxes is lost. In order to avoid the above problems, according to the access method for the digital blind box provided in the embodiment of the present application, after receiving the URL address of the target digital blind box, the user is not allowed to directly access the target digital blind box, but further, whether the target digital blind box is opened or not is determined first according to the serial number of the digital blind box, that is, the target digital blind box has been purchased by the user, and then, after confirming that the target digital blind box is opened, the target digital blind box is allowed to be accessed, so that the target digital blind box is prevented from being accessed in advance before the target digital blind box is not opened.
To prevent the URL address of the target number blind box from being hacked, in some embodiments, prior to receiving the URL address of the target number blind box, the method further comprises:
determining a random number of the target number blind box;
and determining the URL address of the target digital blind box based on the sequence number of the target digital blind box and the random number.
In specific implementation, the contract system of the digital blind boxes can determine a random number for each digital blind box, and determine the URL address of each digital blind box according to the random number and the sequence number of each digital blind box.
It should be noted that, the embodiment of the present application is mainly implemented by a contract system of the digital blind boxes, and the contract system can implement a plurality of functions, such as setting a URL address for each digital blind box, receiving a URL address of a target digital blind box sent by a user through a user side, and determining whether to allow the current target digital blind box to be accessed. Optionally, the contract system is mainly controlled by an operator of the digital blind box, and can receive various information sent by the user side and respond according to the various information.
In some embodiments, determining the URL address of the target number blind box based on the sequence number of the target number blind box and the random number specifically includes:
generating a combined coded numerical value based on the sequence number of the target digital blind box and the random number;
and inputting the combined coding numerical value into a hash function, and determining the URL address of the target digital blind box based on the output result of the hash function.
In specific implementation, a combined coded value is generated by the sequence number of the target digital blind box and the random number, and the combined coded value may be a sum or a product of the sequence number and the random number, or a combined coded value obtained by other methods, which is not limited herein. After the combined coding numerical value is obtained, if the combined coding numerical value is directly used as a component of the URL address of the target digital blind box, as the sequence number is externally disclosed and the combined coding numerical value is also disclosed through the URL address, the random number at the moment is easy to crack, and then the URL addresses of other digital blind boxes are exposed to the risk of cracking, so as to avoid the risk and further improve the difficulty of cracking the URL address of the digital blind box, the combined coding numerical value is input into a hash function, and the URL address of the target digital blind box is determined based on the output result of the hash function. Optionally, the URL address of the target digital blind box is determined to be mainly determined to be the private address part according to the output result based on the hash function, and the public address part may be obtained from the digital blind box contract.
It should be noted that, since the characteristics of the hash function determine that the input value cannot be deduced from its output, the security of the random number is further ensured. Meanwhile, the hash function of the application belongs to a standard hash function, namely, the hash function has the characteristic that the input value cannot be calculated, and the output value of the hash function can be greatly changed even if the input value is changed a little, so that the difference between different URL addresses is further improved. For example, the hash function may be sha3 (also called Keccake 256).
In some embodiments, determining the random number of the target number blind box specifically includes:
acquiring a current random number from a random number contract;
and determining the current random as the random number of the target digital blind box.
In specific implementation, in order to increase the cracking difficulty of the URL address of the digital blind box, a separate random number is acquired for each digital blind box.
In some embodiments, determining the random number of the target number blind box specifically includes:
acquiring a current random number from a random number contract;
determining the current random as a random number of a digital blind box contract where the target digital blind box is located;
and determining the random number of the target digital blind box based on the random number of the digital blind box contract.
In specific implementation, in order to improve the efficiency of generating the URL addresses of the digital blind boxes, the random numbers of all the digital blind boxes belonging to the same digital blind box contract are the same, that is, each digital blind box contract uniformly obtains the current random number from the random number contract once.
In some embodiments, prior to retrieving the current nonce from the nonce contract, the method further comprises:
inputting a preset initial numerical value into a hash function to obtain an initial random number in the random number contract;
deploying the random number contract based on the initial random number.
In specific implementation, the preset initial value may be set as required, and is not limited herein. Optionally, a preset initial value may be determined according to the time for deploying the random number contract, and after the preset initial value is input to a hash function to obtain an initial random number in the random number contract, the random number contract may be deployed according to the initial random number. It should be noted that the initial random number of the random number contract may change continuously according to a preset rule, so that the random number in the random number contract is more difficult to predict. Optionally, the preset rule may be set as needed, for example, the preset rule may be to input the current random number into the hash function every preset time to obtain a new random number.
In some embodiments, after deploying the random number contract based on the initial random number, with reference to fig. 2, the method further comprises:
s201, responding to the fact that the random number contract is determined to be accessed, and obtaining access time and a visiting address.
S202, determining a current random number of the random number contract, and determining a current random encoding numerical value based on the access time, the access address and the current random number.
S203, inputting the current random code value into a hash function, and updating the current random number based on the output result of the hash function.
In specific implementation, in order to further improve the unpredictability of the random number, after the random number contract is accessed each time, the current random number in the random contract changes, that is, the current random encoding value is determined again according to the access time, the access address and the current random number of each access. Alternatively, the process of determining the current randomly encoded value may be implemented by an addition operation or other operation. Before determining the current random encoding value, the visiting address may be converted into a group of numbers, and the specific conversion process is not limited, for example, a preset table may be set, each character in the table corresponds to a number, and then the visiting address is converted into a group of numbers through the preset table. Optionally, before determining the current random code value, normalization processing may be performed on the access time, the visiting address, and the current random number. After the current random code value is determined, the current random code value is input into a hash function, and the current random number is updated based on an output result of the hash function.
In some embodiments, after deploying the random number contract based on the initial random number, the method further comprises:
acquiring a target numerical value sent to the random number contract through a reserved interface;
determining a current random number of the random number contract and determining a current random encoding value based on the target value and the current random number;
and inputting the current random code numerical value into a hash function, and updating the current random number based on an output result of the hash function.
In specific implementation, when the current random number in the random number contract is updated, the target value may also be sent to the random number contract through a reserved interface, and optionally, the reserved interface is generally only accessible by a blind box operator. After sending a target value to the random number contract, a current random number value may be determined based on the target value and the current random number, then the current random number value may be input to a hash function, and the current random number may be updated based on an output of the hash function.
According to the access method of the digital blind box, after the URL address of the target digital blind box is received; firstly, determining the sequence number of the target digital blind box according to the URL address, and determining whether the target digital blind box is opened or not based on the sequence number; when the target digital blind box is determined to be opened, the target digital blind box is allowed to be accessed, and because the URL address is used for judging whether the corresponding digital blind box is opened or not when the target digital blind box is accessed through the URL address, the condition that the metadata of all the digital blind boxes are invisible before the digital blind box is not opened is ensured, the confidentiality of the digital blind box is improved, and the difficulty is further increased for trying to confirm the metadata resources of the digital blind box in advance by cracking the URL. In addition, the URL address in the application is obtained by hash operation after the random number and the sequence number are combined together, the irreversible pushing performance of the URL address is guaranteed, meanwhile, the random number of the digital blind box is obtained through the deployed random number contract, and the random number in the random number contract is changed constantly, so that the unpredictability of the random number is guaranteed, the concealment of the digital blind box is further improved, and the fairness of the playing method of the digital blind box is guaranteed.
Exemplary device
Based on the same inventive concept, corresponding to the method of any embodiment, the application also provides an access device of the digital blind box.
Referring to fig. 3, the access device of the digital blind box includes:
the receiving module 201 is used for receiving the URL address of the target digital blind box;
the judging module 202 is used for determining the sequence number of the target digital blind box based on the URL address and determining whether the target digital blind box is opened or not based on the sequence number;
a determination module 203, if the target digital blind box is opened, allowing the target digital blind box to be accessed.
In some embodiments, the access device of the digital blinder further comprises a URL address determination module, the URL address determination module is configured to:
determining a random number of the target digital blind box;
and determining the URL address of the target digital blind box based on the sequence number of the target digital blind box and the random number.
In some embodiments, the URL address determination module is specifically configured to:
generating a combined coded numerical value based on the sequence number of the target digital blind box and the random number;
and inputting the combined coding numerical value into a hash function, and determining the URL address of the target digital blind box based on the output result of the hash function.
In some embodiments, the URL address determination module is further specifically configured to:
acquiring a current random number from a random number contract;
and determining the current random as the random number of the target digital blind box.
In some embodiments, the URL address determination module is further specifically configured to:
acquiring a current random number from a random number contract;
determining the current random as a random number of a digital blind box contract where the target digital blind box is located;
and determining the random number of the target digital blind box based on the random number of the digital blind box contract.
In some embodiments, the access means of the digital blind box further comprises a contract deployment module for:
inputting a preset initial value into a hash function to obtain an initial random number in the random number contract;
deploying the random number contract based on the initial random number.
In some embodiments, the contract deployment module is further to:
in response to determining that the random number contract was accessed, obtaining an access time and a visiting address;
determining a current random number of the random number contract, and determining a current random encoding value based on the access time, the access address, and the current random number;
and inputting the current random code numerical value into a hash function, and updating the current random number based on an output result of the hash function.
In some embodiments, the contract deployment module is further to:
acquiring a target numerical value sent to the random number contract through a reserved interface;
determining a current random number of the random number contract, and determining a current random encoding value based on the target value and the current random number;
and inputting the current random coding numerical value into a hash function, and updating the current random number based on an output result of the hash function.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
The apparatus in the foregoing embodiment is used to implement the access method for the corresponding digital blind box in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method of any embodiment, the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the program, the processor implements the method for accessing the digital blind box according to any embodiment.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static Memory device, a dynamic Memory device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called by the processor 1010 for execution.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component within the device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and the output devices may include a display, speaker, vibrator, indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the foregoing embodiment is used for implementing the access method of the corresponding digital blind box in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described again here.
Exemplary program product
Based on the same inventive concept, corresponding to any of the above embodiments methods, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method for accessing a digital blind box according to any of the above embodiments.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, for storing information may be implemented in any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the access method of the digital blind box according to any one of the above embodiments, and have the beneficial effects of the corresponding method embodiments, and are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the application. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (13)

1. An access method for a digital blind box, comprising:
receiving a URL address of a target digital blind box;
determining a sequence number of the target digital blind box based on the URL address, and determining whether the target digital blind box has been opened based on the sequence number;
and if the target digital blind box is opened, allowing the target digital blind box to be accessed.
2. The method of claim 1, wherein prior to receiving the URL address of the target number blind box, the method further comprises:
determining a random number of the target number blind box;
and determining the URL address of the target digital blind box based on the sequence number of the target digital blind box and the random number.
3. The method according to claim 2, wherein determining the URL address of the target number blind box based on the sequence number of the target number blind box and the random number comprises:
generating a combined coded numerical value based on the sequence number of the target digital blind box and the random number;
and inputting the combined coding numerical value into a hash function, and determining the URL address of the target digital blind box based on the output result of the hash function.
4. The method according to claim 2, wherein determining the random number of the target number blind box specifically comprises:
acquiring a current random number from a random number contract;
and determining the current random as the random number of the target digital blind box.
5. The method according to claim 2, wherein determining the random number of the target number blind box specifically comprises:
acquiring a current random number from a random number contract;
determining the current random as a random number of a digital blind box contract where the target digital blind box is located;
and determining the random number of the target digital blind box based on the random number of the digital blind box contract.
6. The method of claim 4 or 5, wherein prior to obtaining the current random number from the random number contract, the method further comprises:
inputting a preset initial value into a hash function to obtain an initial random number in the random number contract;
deploying the random number contract based on the initial random number.
7. The method of claim 6, wherein after deploying the random number contract based on the initial random number, the method further comprises:
in response to determining that the random number contract was accessed, obtaining an access time and a visiting address;
determining a current random number of the random number contract, and determining a current random encoding value based on the access time, the access address, and the current random number;
and inputting the current random code numerical value into a hash function, and updating the current random number based on an output result of the hash function.
8. The method in accordance with claim 6, after deploying the nonce contract based on the initial nonce, the method further comprising:
acquiring a target numerical value sent to the random number contract through a reserved interface;
determining a current random number of the random number contract and determining a current random encoding value based on the target value and the current random number;
and inputting the current random coding numerical value into a hash function, and updating the current random number based on an output result of the hash function.
9. The method of claim 1, wherein determining whether the target digital blind box has been opened based on the sequence number comprises:
in response to receiving the information that the digital blind box was purchased; storing the sequence number of the purchased digital blind boxes into a preset area;
the method comprises the steps of obtaining sequence numbers of all digital blind boxes in a preset area, and determining whether a target digital blind box is opened or not based on the sequence numbers of all digital blind boxes and the sequence number of the target digital blind box.
10. The method according to claim 1, wherein determining whether the target digital blind box has been opened based on the sequence numbers of all the digital blind boxes and the sequence number of the target digital blind box comprises:
in response to determining that the sequence numbers of all the digital blind boxes comprise the sequence number of the target digital blind box, determining that the target digital blind box has been opened;
determining that the target digital blind box is not opened in response to determining that the sequence number of the target digital blind box is not included in the sequence numbers of all the digital blind boxes.
11. An access device for a digital blind box, comprising:
the receiving module is used for receiving the URL address of the target digital blind box;
the judging module is used for determining the sequence number of the target digital blind box based on the URL address and determining whether the target digital blind box is opened or not based on the sequence number;
a determining module that allows the target digital blind box to be accessed if the target digital blind box has been opened.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the method of any one of claims 1 to 10 when executing the program.
13. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method according to any one of claims 1 to 10.
CN202210709021.5A 2022-06-21 2022-06-21 Access method and device of digital blind box, electronic equipment and storage medium Pending CN115221434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210709021.5A CN115221434A (en) 2022-06-21 2022-06-21 Access method and device of digital blind box, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210709021.5A CN115221434A (en) 2022-06-21 2022-06-21 Access method and device of digital blind box, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115221434A true CN115221434A (en) 2022-10-21

Family

ID=83608861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210709021.5A Pending CN115221434A (en) 2022-06-21 2022-06-21 Access method and device of digital blind box, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115221434A (en)

Similar Documents

Publication Publication Date Title
US9940119B2 (en) Providing limited versions of applications
CN105573734B (en) method and equipment for providing SDK file
CN110851535B (en) Data processing method and device based on block chain, storage medium and terminal
TWI762851B (en) Data verification method, system, device and equipment in blockchain ledger
US20170308546A1 (en) File storage method and electronic device
CN110888843A (en) Cross-host sparse file copying method, device, equipment and storage medium
CN107798236B (en) Method and device for realizing safe installation of application program installation package
CN110570192A (en) Method and device for physical mortgage on block chain for borrowing digital currency
CN108762983B (en) Multimedia data recovery method and device
US11223692B2 (en) Service execution methods and apparatuses
CN110022327B (en) Short message authentication test method and device
CN116257882A (en) Voting method, voting system, electronic equipment and storage medium
JP2016538609A (en) Program integrity verification method using hash
CN115221434A (en) Access method and device of digital blind box, electronic equipment and storage medium
CN116205654A (en) Method, device, electronic equipment and storage medium for verifying transaction data
CN113703996B (en) Access control method, equipment and medium based on user and YANG model grouping
CN111177661B (en) Copyright authentication method for building information model component and related product
JP6553650B2 (en) Data processing method and system
CN110492935B (en) Data processing system, method and device and terminal equipment
CN109889608B (en) Dynamic resource loading method and device, electronic equipment and storage medium
CN110570190A (en) Method and device for block chain user credit mortgage borrowing digital currency
CN108734149B (en) Text data scanning method and device
CN112333294A (en) Log merging method, device, medium and equipment
JP7003435B2 (en) Information processing equipment, programs, information processing methods and data structures
KR101745821B1 (en) Method and system for secure booting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination