CN115083062A - Information processing method, information transmitting method, computer device, and storage medium - Google Patents

Information processing method, information transmitting method, computer device, and storage medium Download PDF

Info

Publication number
CN115083062A
CN115083062A CN202210859730.1A CN202210859730A CN115083062A CN 115083062 A CN115083062 A CN 115083062A CN 202210859730 A CN202210859730 A CN 202210859730A CN 115083062 A CN115083062 A CN 115083062A
Authority
CN
China
Prior art keywords
registration
information
target
registration information
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210859730.1A
Other languages
Chinese (zh)
Other versions
CN115083062B (en
Inventor
毛秀庆
贾懂凯
魏明月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ali Health Technology Hangzhou Co ltd
Original Assignee
Ali Health Technology Hangzhou 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 Ali Health Technology Hangzhou Co ltd filed Critical Ali Health Technology Hangzhou Co ltd
Priority to CN202210859730.1A priority Critical patent/CN115083062B/en
Publication of CN115083062A publication Critical patent/CN115083062A/en
Application granted granted Critical
Publication of CN115083062B publication Critical patent/CN115083062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/006Generating random numbers; Lottery apparatus electronically
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/20ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Signal Processing (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Medical Informatics (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Public Health (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Epidemiology (AREA)
  • Biomedical Technology (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the specification provides an information processing method, an information sending method and an information sending device. The method comprises the steps of acquiring registration information of activity participation users including registration codes, and introducing an automatically generated random data part and a registration data part input by the activity participation users into the registration codes, so that the activity participation users participate in the registration code generation process, and the resource preemption difficulty of an upsider is increased to a certain extent. Furthermore, a hash operation is carried out on the registration information of the activity participation user to obtain a first character string sequence, and target registration information is determined in the registration information of the activity participation user according to the first character string sequence, so that the target user is determined through a registration code included in the target registration information, and the access request pressure caused by a large number of users accessing the service end during resource distribution is reduced.

Description

Information processing method, information transmitting method, computer device, and storage medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an information processing method, an information sending method, a computer device, and a storage medium.
Background
In recent years, the supply of some scarce vaccines (such as nine-valent cervical cancer vaccine suitable for 16-26-year-old women) is receiving attention. The hospital can issue a certain amount of cervical cancer vaccine reservation resources on a network platform, and people who acquire the vaccination qualification go to the hospital to be vaccinated at a specified place at a specified time. Especially due to the shortage of cervical cancer vaccine resources.
In the traditional technology, when a hospital issues a cervical cancer vaccine to reserve resources each time, a large number of people contend for reservation denominations, so that a large number of users access a server of a network platform in a short time, and the server request pressure is high.
Disclosure of Invention
In view of this, embodiments of the present disclosure are directed to providing an information processing method, an information sending method, a computer device, and a storage medium, so as to solve the technical problem in the conventional technology that a large number of people contend for reservation of resources, which results in a large request pressure on a server, and reduce the access request pressure caused by a large number of users accessing a server when the resources are issued.
An embodiment of the present specification provides an information processing method, including: acquiring registration information including a registration code of an activity participation user; wherein the registration code comprises an automatically generated random data portion and a registration data portion of the activity participation user input; performing hash operation on the registration information of the activity participation user to obtain a first character string sequence; determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
An embodiment of the present specification provides an information sending method, including: providing an input interface of the registration code; the input interface is provided with random data automatically generated by a server; wherein the automatically generated random data is used as a random data portion of the registration code; receiving, via the input interface, enrollment data input by an activity participation user; wherein the registration data serves as a registration data portion of the registration code; sending registration information of the activity participation user to a server for the server to determine a target user; wherein the registration information includes the registration code.
An embodiment of the present specification provides an information processing apparatus including: the information acquisition module is used for acquiring registration information of an activity participation user, wherein the registration information comprises a registration code, and block information of a target block for storing the registration information; wherein the registration code comprises an automatically generated random data portion and a registration data portion of the activity participation user input; the hash operation module is used for carrying out hash operation on the registration information of the activity participation user to obtain a first character string sequence; the target determining module is used for determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
An embodiment of the present specification provides an information transmission apparatus, including: the input interface providing module is used for providing an input interface of the registration code; the input interface is provided with random data automatically generated by a server; wherein the automatically generated random data is used as a random data portion of the registration code; the registration data receiving module is used for receiving registration data input by an activity participation user through the input interface; wherein the registration data serves as a registration data portion of the registration code; the registration information sending module is used for sending the registration information of the activity participation user; wherein the registration information includes the registration code.
The present specification provides a computing device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the method steps of the above embodiments when executing the computer program.
The present specification provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the method steps in the above embodiments.
The present specification embodiments provide a computer program product, which includes instructions that, when executed by a processor of a computer device, enable the computer device to perform the method steps in the above embodiments.
In the embodiment of the specification, the registration information including the registration code of the activity participating user is acquired, and the automatically generated random data part and the registration data part input by the activity participating user are introduced into the registration code, so that other manual interventions are reduced, resources are distributed to public users as fairly and equitably as possible, participation of the activity participating user in the registration code generation process is realized, and the difficulty of resource preemption by a reseller is increased to a certain extent. Further, hash operation is carried out on the registration information of the activity participation user to obtain a first character string sequence, and target registration information is determined in the registration information of the activity participation user according to the first character string sequence, so that the target user is determined through a registration code included in the target registration information, the probability of occurrence of an access peak of the server is reduced, and stable operation of the server is determined.
Drawings
Fig. 1a is an interaction diagram illustrating an information processing method in a scenario example provided in an embodiment.
Fig. 1b is a diagram illustrating an application environment of an information processing method according to an embodiment.
Fig. 2a is a schematic flow chart of an information processing method according to an embodiment.
Fig. 2b is a schematic flow chart of an information processing method according to an embodiment.
Fig. 3 is a flowchart illustrating an information processing method according to an embodiment.
Fig. 4 is a flowchart illustrating an information processing method according to an embodiment.
Fig. 5 is a flowchart illustrating an information sending method according to an embodiment.
Fig. 6 is a schematic diagram illustrating a registration code input interface according to an embodiment.
Fig. 7 is a block diagram showing a configuration of an information processing apparatus according to an embodiment.
Fig. 8 is a block diagram showing a configuration of an information transmitting apparatus according to an embodiment.
Fig. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present specification belong to the protection scope of the present specification.
It should be noted that the terms first, second and the like in the description and in the claims, and in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the specification described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments exemplarily described below do not represent all embodiments consistent with the embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the embodiments of the specification, as detailed in the claims that follow.
It should be further noted that the user information (including but not limited to user device information, user personal information, user registration information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present specification and claims are information and data that are authorized by the user or sufficiently authorized by each party.
Please refer to fig. 1 a. In one particular scenario example, the activity may be a vaccine shake activity, and the activity participating users may participate in a shake user of the vaccine shake activity. In order to improve the fairness of the distribution of the scarce vaccine, target users capable of being inoculated with the scarce vaccine can be determined in the general population in a shaking number form based on the blockchain. Specifically, when a community hospital takes a batch of scarce vaccines (for example, 100 vaccines), an intelligent contract for the vaccine number shaking activity can be created, an operator can log in an operation terminal to create the vaccine number shaking activity, and a server end in communication connection with the operation terminal issues vaccine number shaking activity information to the block chain system to realize uplink of the vaccine number shaking activity information. The block chain system may send feedback information to the operator terminal. The vaccine shake activity information may include shake start time, shake end time, registration start time, registration deadline, total vaccine amount, and the like. It will be appreciated that the shake start time is the start time at which the shake event begins to be executed based on the blockchain. The shaking end time is based on the time when the block chain ends the shaking event. The registration start time is a time when the user registration information of an arbitrary user starts to be received after the vaccine serial number activity is issued. The registration end time is the time when the user registration information of any user stops being received after the vaccine serial number activity is issued.
In this scenario, a user may access the server through the user terminal, and check the vaccine shaking activity information issued by the operator at the user terminal. A portal or control for "participating in a panning activity" may be provided in the interface where the vaccine panning activity information is presented at the user terminal. When the registration starting time is reached, a user can trigger an entrance or a control for participating in the number shaking activity, the user terminal sends a request for participating in the number shaking activity to the server, and the server generates random data based on the request and sends the random data to the user terminal. The user terminal displays an input interface of the registration code, and random data automatically generated by the server side is displayed in the input interface. The random data serves as the random data portion of the registration code. A text input box is displayed in the input interface at a position corresponding to the random data of the registration code, and the user can input the registration data in the text input box as the registration data part of the registration code.
In this scenario example, different users may have different random data as the random data portion of the registration code. The registration data is determined according to the number or character filled in by the user. Illustratively, user a's user terminal enters, through a "participate in a number shaking activity" entry, an entry interface for a registration code that presents automatically generated random data ABC, with 5 text boxes displayed to the right of ABC, in which text boxes user a may enter 12356 in sequence, user a's registration code being ABC 12356. In this scenario example, user A's registration code consists of automatically generated random data ABC and user A input registration data 12356. The uniqueness of the registration code is ensured through the automatically generated random data part and the registration data part input by the user, the participation sense of the user on the number shaking activity is improved, the probability of cheating events is reduced to a certain extent, and the fairness of the number shaking activity is ensured.
In this scenario example, the vaccine number shaking activities initiated by the operator have different activity states, including registration in, registration end, number shaking in, and number shaking end. When the registration ending time is reached, or the activity state is in the registration ending state, and the user triggers the entrance or the control of the 'participation in the number shaking activity', the user cannot access the input interface of the registration code, and the user terminal can display that the registration time of the vaccine number shaking activity is up in a popup window mode. When the active state is in registration, the user terminal may receive registration information input by the number shaking user, and the user terminal sends the registration information to the server. Wherein the registration information includes a registration code and a registration time. The server may send the registration information to the blockchain system, which chains the registration information.
In this scenario example, when an operator manually triggers the start of the vaccine shaking or the starting time of the shaking is reached, the intelligent contract deployed on the blockchain is triggered by the server, and the active state may be set as a state in the shaking. The registration information of the number shaking users can be stored in a registration information list, and the number of the number shaking users in the registration information list is counted to obtain the counted number of the number shaking users. The smart contract invokes a random number function. The input parameters of the random number function comprise three random factors, namely a first random factor, a second random factor and a third random factor. And inputting the first random factor, the second random factor and the third random factor into a random number function together for hash operation to obtain a character string sequence of the current round. In this scenario example, the first random factor may be obtained based on a hash operation of the registration code and the registration time of at least part of the number shaking users. The second random factor may be generated based on a tile timestamp and the tile height. The third random factor may be a sequence of strings generated during the previous round of the number shaking process. It should be noted that, if the current round of the number shaking is the first round, the third random factor is null. And if the current number shaking turn is the N +1 th turn, the third random factor is a character string sequence generated in the number shaking process of the Nth turn. It should be noted that the first random factor, the second random factor, and the third random factor need to be dynamic, and each output of the random number function is different, so as to ensure that the middle-signed users generated in different rounds are different, and ensure that each number-shaking user has an equal middle-seeking possibility.
In this scenario example, the string sequence of the current round is saved, and the string sequence of the current round is converted into a numerical form to obtain the random number of the current round. After obtaining the random number of the current round, the supply of the scarce vaccine needs to be verified. Specifically, the number shaking results of each previous round may be stored to obtain a target user set, and the number of target users in the target user set is counted to obtain a counted number of the target users. And comparing the statistical number of the target users with the total supply amount of the scarce vaccines, and if the statistical number of the target users is greater than or equal to the total supply amount of the scarce vaccines, indicating that no redundant scarce vaccines are provided for the users, setting the activity state as the number shaking end. If the statistical number of target users is less than the total supply of the scarce vaccines, indicating that there is excess scarce vaccines to be provided to the users, or verifying that there is a surplus of scarce vaccines, the number shaking may be continued. Therefore, the random number of the current round is used for carrying out modular operation on the statistical number of the number shaking users to obtain a modular operation result, the modular operation result is used as target index information to be inquired in a registration information list of the number shaking users, and preliminary registration information corresponding to the target index information is obtained. The target index information may be understood as the number of each registered information in the registered information list.
In this scenario, since the signed users in different rounds of number shaking may be the same, and the same user cannot shake twice in one vaccine number shaking process, the preliminary registration information needs to be further verified. The validity of the preliminary registration information is detected. If the preliminary registration information is detected to be in a failure state (such as a cancelled state), entering a next round of shaking, recalling the random number function, and repeating the steps from the generation of the random number to the determination of the preliminary registration information. If the preliminary registration information is detected to be in an effective state, in order to reduce the probability that the same target user exists in the target user set, whether a user related to the preliminary registration information exists in the target user set is judged. And determining the preliminary registration information as the target registration information when the user related to the preliminary registration information is determined not to exist in the target user set. The registration code included in the target registration information points to the final medium user (which may also be referred to as the target user). And the target user can be added into the target user set.
In this scenario example, when it is determined that the user related to the preliminary registration information exists in the target user set, the target index information is updated to obtain updated index information. After obtaining the updated index information, if it is detected that no registered information remains in the registered information list of the number shaking user, the active state may be set as the number shaking end. And if detecting that the residual registration information exists in the registration information list of the number shaking user, determining the target registration information in the registration information of the number shaking user by using the updated index information. For example, adding 1 to the target index information to obtain the updated index information may be understood as obtaining the registration information corresponding to the next index information adjacent to the current target index information. And judging whether the updated index information exceeds the maximum sequence number in the registration information list, and if so, resetting the target index information to be 1. If not, the registered information corresponding to the next index information is used as the preliminary registered information, and the step of determining the target user is executed again.
In the scene example, whether the scarce vaccine has a supply allowance or not and whether the signed user in the current round of shaking exists in the target user set or not are detected, so that the accuracy of the lacking vaccine shaking result is ensured, the scarce vaccine is accurately provided for corresponding ordinary people as much as possible, the probability of repeated signing of the shaking user is reduced, and the fairness and the justice of the vaccine shaking activity are improved.
In this scenario example, after all the middle-signed users are determined, the number-shaking users may be disclosed. The number shaking user can inquire the number shaking result and the number shaking process, and data safety and data transparency are guaranteed. The block chain and the intelligent contract are introduced into a vaccine reservation scene, a user registers and then shakes numbers, the number shaking result is disclosed, and data are stored on the block chain, so that the probability that a large number of users access a server in a short time is reduced, and the pressure of the server is relieved.
Referring to fig. 1b, an embodiment of the present disclosure provides an information processing system, and a daily information processing method provided by the present disclosure is applied to the information processing system. The hardware environment of the information processing system may include an operator terminal 110, a server 120, and a user terminal 130. The operator terminal 110 and the user terminal 130 communicate with the server 120 via a network. In some embodiments, the blockchain may be deployed on the server 120, and then the smart contracts are deployed on the server 120 as well. In some implementations, the smart contracts may be deployed on a blockchain Baas platform. The server 120 communicates with the blockchain Baas platform. The BaaS (Blockchain as a Service) refers to a Blockchain open platform which embeds a Blockchain frame into a cloud computing platform, provides a convenient and high-performance Blockchain ecological environment and ecological matching Service for developers by using the deployment and management advantages of cloud Service infrastructure, and supports the business expansion and operation support of the developers. For example, the blockchain Baas platform may employ an ant chain platform. The operator terminal 110 and the user terminal 130 may be electronic devices with network access capability. Specifically, for example, the client may be a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a television, a smart speaker, a microphone, and the like. Wherein, wearable equipment of intelligence includes but not limited to intelligent bracelet, intelligent wrist-watch, intelligent glasses, intelligent helmet, intelligent necklace etc.. The server 120 may be an electronic device having a certain arithmetic processing capability. Which may have a network communication module, a processor, memory, etc. The server 120 may also be a distributed server, and may be a system having a plurality of processors, memories, network communication modules, and the like that cooperate with one another. Alternatively, the server 120 may be a server cluster formed by several servers. Alternatively, with the development of scientific technology, the server 120 may also be a new technical means capable of implementing the corresponding functions of the embodiments of the specification. For example, it may be a new form of "server" based on quantum computing implementations.
Referring to fig. 2a, an embodiment of the present disclosure provides an information processing method. The information processing method may include the following steps.
Step S210 a: acquiring registration information including a registration code of a user participating in the activity; wherein the enrollment code includes an automatically generated random data portion and an enrollment data portion for the activity participation user input.
In this embodiment, the activity may be an activity initiated by the operator to allocate a limited resource, for example, any one of the activities of purchasing real estate, purchasing a specific product (e.g., a limited amount of branded electronic products, cigarettes and wines), selecting a license plate number, and acquiring a vaccine reservation qualification may be performed. An activity participating user may be a user participating in an activity initiated by an activity initiator, such as an operator. The registration information may include user information (such as user name, contact information, etc.) that the user needs to provide when participating in the operator-initiated activity. The registration information may also include information issued by the activity originator to the activity participant (e.g., a serial number for the participant activity).
In some embodiments, an intelligent contract is deployed on a blockchain in advance, and the intelligent contract can be understood as a computer program which can be automatically executed when a condition of a trigger condition is met. In some cases, in order to ensure randomness of the registration code and prevent human cheating, processing logic for generating the random data portion of the registration code may be written in the smart contract in advance, so that after the smart contract is called, the random data portion conforming to the registration code may be automatically generated based on the processing logic in the smart contract. In some embodiments, the random data generation program may be pre-deployed at the server. And in the case that the server receives an activity participation request sent by the user terminal, calling a random data generation program to generate random data serving as a random data part of the registration code. In some cases, in order to reduce the possibility of trade order destruction and market disruption caused by resource occupation by resource resellers to some extent, the registration code includes not only a random data portion automatically generated based on a smart contract or a random data generation program, but also a registration data portion input by an activity-participating user, the registration data portion being decided by the activity-participating user, increasing the operation difficulty when the resource reseller occupies the resource, and reducing the occurrence probability of the resource reselling phenomenon to some extent. The registration data part input by the activity participation user in the registration code can improve the participation sense of the activity participation user on the registration code generation to a certain extent, thereby improving the user experience of the activity participation user and increasing the credibility of the final resource allocation result.
In some cases, if there is no activity participating in the input operation of the user in the process of generating the registration code, the registration code is generated randomly by the smart contract, and in the case that the smart contract is attacked by a resource reseller, the automatically generated registration code may be controlled by the resource reseller, thereby affecting the reasonable allocation of resources. If the random registration code is not automatically generated in the registration code generation process and is completely manually input by a user, the resource reseller can organize a certain number of resellers to respectively input the registration code, and the resource reseller controls the generation of the registration code, so that a large number of resources can be preempted, and the reasonable allocation of the resources is influenced. Therefore, in the present embodiment, the automatically generated random data portion and the registration data portion input by the user are introduced into the registration code. Aiming at the condition that the intelligent contract is attacked by the resource reseller, the resource reseller cannot know the registered data part input by the user, and the control of the resource reseller on the registered code is weakened. Aiming at the condition that a certain number of resellers occupy a large number of resources, the resource reseller can ensure the randomness of the registration codes through the automatically generated random data part, and prevent the cheating behavior of the resource reseller to a certain extent. Therefore, in the embodiment, the generation process of the registration code involves the automatically generated random data part and the registration data part input by the activity participation user, so that other manual interventions are reduced, resources are distributed to public users as fairly and equitably as possible, and the resource preemption difficulty of a reseller is increased to a certain extent.
Specifically, when registering for participation in an activity, the activity participant incorporates a registration code in combination with the automatically generated random data portion and the user-entered registration data portion to determine the registration code of the activity participant. The registration code is part of the registration information. The registration information is sent by the user terminal, and the registration information is uplink. When a target user needs to be determined in the activity participation users, the intelligent contract can be called to acquire the registration information including the registration code of part of the activity participation users, and the part of the activity participation users can be other activity participation users except the determined target user.
Step S220 a: and performing hash operation based on the registration information of the activity participation user to obtain a first character string sequence.
Among them, the hash operation is widely used. There are many algorithms for hash operations, such as SHA256(Secure Hashing Algorithm 256) and MD5 (Message-Digest Algorithm 5), Message Digest algorithms. A hash operation is understood to be an algorithm that receives an input of unlimited length and returns an output of fixed length. Specifically, in order to ensure that the probability that each activity participation user is determined as the target user is the same, a random number function for performing a hash operation in the intelligent contract is called, a random factor may be determined from the registration information of the activity participation user, the hash operation is performed using the determined random factor as an input of the random number function, and the random number function outputs the first character string sequence.
The registration information of the activity participation users can be registration information of all the activity participation users, and the registration information of all the activity participation users is subjected to hash operation to obtain a random factor. And inputting the obtained random factor into a random number function for executing Hash operation to perform operation, so as to obtain a first character string sequence.
For example, the registration information of the activity participation user may be registration information of a part of the activity participation users, and the registration information of the part of the activity participation users is subjected to a hash operation to obtain a random factor. And inputting the obtained random factor, the block identification information and the block timestamp into a random number function for executing Hash operation to perform operation, so as to obtain a first character string sequence.
Step S230 a: determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
Wherein the target registration information may be registration information of the target user. The registration information of the activity participant user may be stored in a registration information list of the activity participant user. Each activity participant has a respective serial number in the registration information list that can be used as index information to look up the registration information.
In this embodiment, the first character string sequence is already obtained, and it is necessary to determine the target user among the activity-participating users based on the first character string sequence. Specifically, the first character string sequence is subjected to numerical value conversion to obtain a numerical value corresponding to the first character string sequence. In some embodiment modes, the value corresponding to the first character string sequence is used for mapping in the registration information list of the activity participation user to obtain the target serial number, and the registration information corresponding to the target serial number is obtained and used as the target registration information. The registration code included in the target registration information is the registration code of the target user. In some embodiments, the number of the activity-participating users is counted to obtain the counted number of the activity-participating users, a modulo operation is performed on the counted number of the activity-participating users by using a value corresponding to the first string sequence, and a modulo result is used as a target serial number. And acquiring the registration information corresponding to the target serial number as target registration information.
For example, in some application scenarios of lottery activity, particularly when a winning user is determined by a plurality of activity participants, the registration code may be a lottery code, and in the process of registering the information of the users of the lottery activity, the random data part of the user lottery code may be automatically generated by the server or the intelligent contract, and the registration data part input by the lottery participant users may be acquired, so that the lottery code includes the random data part automatically generated by the server or based on the intelligent contract and the registration data part input by the lottery participant users. The lottery activity user information may include a user name, a time the user participates in the lottery activity, and the like. Carrying out Hash operation on the lottery activity user information to obtain a random character string sequence; determining target registration information in the registration information of the lottery activity participant according to the random character string sequence; the lottery code included in the target registration information is directed to the winning user.
According to the information processing method, the registration information including the registration codes of the activity participation users is acquired, the automatically generated random data part and the registration data part input by the activity participation users are introduced into the registration codes, other manual interventions are reduced, resources are distributed to public users as fairly and equitably as possible, participation of the activity participation users in the registration code generation process is realized, and the difficulty of resource preemption by resellers is increased to a certain extent. Further, hash operation is carried out on the registration information of the activity participation user to obtain a first character string sequence, and target registration information is determined in the registration information of the activity participation user according to the first character string sequence, so that the target user is determined through a registration code included in the target registration information, the probability of occurrence of an access peak of the server is reduced, and stable operation of the server is determined. The target users are determined by the intelligent contracts, so that the hit probability of each activity participating user is the same, and the accuracy and the fairness of allocating resources to the activity participating users are improved.
Referring to fig. 2b, an embodiment of the present disclosure provides an information processing method. The information processing method may include the following steps.
Step S210 b: registration information including a registration code of an activity participation user is acquired, and block information of a target block storing the registration information. Wherein the enrollment code includes an automatically generated random data portion and an enrollment data portion of the activity participation user input.
Wherein, the UE sends registration information, uplinks the registration information, and stores the registration information in the target block. The target block has block information. The tile information may be used to represent attributes of the target tile. In some cases, when hash operation is performed on the registration information including the registration code of the activity participation user in different rounds, the obtained result may be unchanged, and therefore, in order to further ensure the randomness and the reasonableness of resource allocation, not only the registration information including the registration code of the activity participation user but also the block information of the target block storing the registration information need to be obtained. In some embodiments, the intelligent contract may be invoked to obtain registration information including a registration code for a portion of the activity participants, which may be other activity participants than the target user that has been determined. The intelligent contract may be invoked to obtain registration information, including registration codes, for all active participating users.
Step S220 b: and carrying out Hash operation on the basis of the block information and the registration information of the activity participation user to obtain a first character string sequence.
Specifically, in order to ensure that the probability that each activity-participating user is determined as the target user is the same, a random number function that performs a hash operation in the smart contract is called, a random factor may be determined based on the block information and the registration information of the activity-participating user, the determined random factor may be used as an input of the random number function, and the random number function outputs the first character string sequence.
For example, the tile information may include a tile timestamp accurate to milliseconds, and the registration information of the activity participating users may be registration information of all the activity participating users, and the registration information of all the activity participating users is subjected to a hash operation to obtain a random factor. And inputting the obtained random factor and the block time stamp into a random number function for executing Hash operation to perform operation, so as to obtain a first character string sequence.
For example, the tile information may include a tile timestamp and tile identification information accurate to milliseconds, and the registration information of the activity participant may be registration information of a part of the activity participant, and the registration information of the part of the activity participant is hashed to obtain a random factor. And inputting the obtained random factor, the block identification information and the block timestamp into a random number function for executing Hash operation to perform operation, so as to obtain a first character string sequence.
Step S230 b: determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
Wherein the target registration information may be registration information of the target user. The registration information of the activity participant user may be stored in a registration information list of the activity participant user. Each activity participant has a respective serial number in the registration information list that can be used as index information to look up the registration information.
In this embodiment, the first character string sequence is already obtained, and it is necessary to determine the target user among the activity-participating users based on the first character string sequence. Specifically, the first character string sequence is subjected to numerical value conversion to obtain a numerical value corresponding to the first character string sequence. In some embodiment modes, the value corresponding to the first character string sequence is used for mapping in the registration information list of the activity participation user to obtain the target serial number, and the registration information corresponding to the target serial number is obtained and used as the target registration information. The registration code included in the target registration information is the registration code of the target user. In some embodiments, the number of the activity-participating users is counted to obtain the counted number of the activity-participating users, a modulo operation is performed on the counted number of the activity-participating users by using a value corresponding to the first string sequence, and a modulo result is used as a target serial number. And acquiring the registration information corresponding to the target serial number as target registration information.
According to the information processing method, the registration information and the block information of the activity participation users, which comprise the registration codes, are obtained, the automatically generated random data part and the registration data part input by the activity participation users are introduced into the registration codes, so that other manual interventions are reduced, the resources are distributed to public users as fairly and equitably as possible, the participation of the activity participation users in the registration code generation process is realized, and the difficulty of resource preemption by a reseller is increased to a certain degree. Further, hash operation is carried out on the basis of the block information and the registration information of the activity participating users to obtain a first character string sequence, target registration information is determined in the registration information of the activity participating users according to the first character string sequence, and therefore the target users are determined through the registration codes included in the target registration information, the probability that a large number of users access the server side when resources are issued is reduced in a mode that the target users are determined in the activity participating users, the probability that a server side access peak value occurs is reduced, and stable operation of the server side is determined. The target users are determined by the intelligent contracts, so that the hit probability of each activity participating user is the same, and the accuracy and the fairness of allocating resources to the activity participating users are improved.
In some embodiments, referring to fig. 3, before performing a hash operation based on the block information and the registration information of the activity participation user to obtain the first string sequence, the information processing method may further include the following steps.
Step S310: and acquiring a first character string sequence obtained through the Hash operation in the previous round of activity as a second character string sequence.
Accordingly, the performing a hash operation based on the block information and the registration information of the activity participation user to obtain a first string sequence may include the following steps.
Step S320: and performing hash operation on the block information, the registration information of the activity participation user and the second character string sequence to obtain the first character string sequence.
In some cases, if one random factor participating in the hash operation is determined using the registration information of all activity participating users, since the registration information of all activity participating users is fixed, the random factor determined based on the registration information of all activity participating users is also fixed. Further, if the update time of the block information is longer than the process time of the intelligent contract operation determination target user (for example, the update time of the block information is 1 ms, and the process time of the intelligent contract operation determination target user is 0.6 ms), the random factor determined based on the block information is also fixed. At this time, a variable random factor needs to be introduced, so that the first string sequence obtained through the hash operation in the previous round of activity is obtained. Specifically, after a first character string sequence is generated by calling the intelligent contract each time, the first character string sequence is stored and recorded as a second character string sequence as a random factor in the next round of activity. Therefore, when the intelligent contract is called in the next round to generate the first character string sequence, the first character string sequence obtained through the hash operation in the previous round of activity is obtained and used as the second character string sequence. Further, in order to ensure that the probability that each activity participating user is determined as the target user is the same, a random number function for performing a hash operation in the smart contract may be called, a random factor may be determined based on the block information, the registration information of the activity participating users, and the second character string sequence, the determined random factor may be used as an input of the random number function for performing the hash operation, and the random number function outputs the first character string sequence.
Illustratively, the first string sequence abcde is saved during the execution of the nth round of activity, and the first string sequence abcde is recorded as the second string sequence during the execution of the (N + 1) th round of activity. And determining a first random factor based on the registration information of the activity participation user, taking the block information as a second random factor, and taking abcde as a third random factor, so as to generate a first character string sequence of the (N + 1) th round based on the first random factor, the second random factor and the third random factor.
In the above embodiment, the randomness of the intelligent contract to output the first character string sequence is determined by introducing the first character string sequence obtained through the hash operation in the previous round of activity as the second character string sequence, so that the probability of determining the same target user in different rounds is reduced, and the efficiency of determining the target user among the activity participating users is improved.
In some embodiments, referring to fig. 4, the registration information further includes a registration time, and the block information includes a block timestamp and a block height. The performing a hash operation based on the block information, the registration information of the activity participation user, and the second string sequence to obtain the first string sequence may include the following steps.
Step S410: and carrying out hash operation on the registration codes and the registration time of at least part of the activity participation users to obtain a first random factor.
Step S420: generating a second random factor based on the tile timestamp and the tile height.
Step S430: and taking the second character string sequence as a third random factor.
Step S440: and calculating by taking the first random factor, the second random factor and the third random factor as input parameters of a cryptographic hash function to obtain the first character string sequence.
The cryptographic hash function may be a function preset in the smart contract. The cryptographic hash function has input parameters. In particular, in some embodiments, a number of target users have been determined by performing a number of rounds of activity, and in order to ensure randomness of the first sequence of strings, a dynamic partial activity participation user is obtained by removing target users of different rounds from the activity participation user. And acquiring the registration codes and the registration time of the part of the users participating in the activity, and performing hash operation on the registration codes and the registration time of the part of the users participating in the activity to obtain a first random factor. For example, the message digest algorithm may be used to calculate the registration code and registration time of the part of the activity participating users, so as to obtain the first random factor. In some embodiments, registration codes and registration times of all activity participation users are obtained, and a hash operation is performed on the registration codes and the registration times of all activity participation users to obtain a first random factor. For example, the message digest algorithm may be used to calculate the registration code and registration time of the part of the activity participating users, so as to obtain the first random factor. For example, a message digest algorithm may be used to calculate the registration codes and registration times of all the users participating in the activity, so as to obtain the first random factor.
In this embodiment, a block timestamp and a block height are obtained, and a second random factor is generated based on the block timestamp and the block height. And taking the second character string sequence saved in the previous activity of the current round as a third random factor. And inputting the first random factor, the second random factor and the third random factor into a cryptographic hash function for operation to obtain a first character string sequence.
In the above embodiment, encryption operation is performed based on the registration information, the block information, and the second string sequence stored in the previous activity of the current round at the same time to obtain the first string sequence, so that the randomness of the first string sequence is ensured, the hit probability of each activity-participating user is the same, and the accuracy and fairness for allocating resources to the activity-participating users are improved.
In some embodiments, the determining target registration information in the registration information of the activity participation user according to the first character string sequence may include: performing mapping operation according to the numerical value corresponding to the first character string sequence and the statistical quantity of the activity participation users to obtain target index information; and determining the target registration information in the registration information of the activity participation user by using the target index information.
In this embodiment, after obtaining the first character string sequence, the target user needs to be determined at the activity-participating user according to the first character string sequence. Specifically, the first character string sequence is subjected to numerical value conversion to obtain a numerical value corresponding to the first character string sequence. In some embodiments, a modulo operation may be performed on the statistical number of the activity-participating users by using the value corresponding to the first string sequence to obtain a modulo result. The modulo result is used as target index information. In some embodiments, the value corresponding to the first string sequence may be used to perform a bit operation on the statistics of the activity participation users, so as to obtain a bit operation result. And the registration information of each activity participation user is correspondingly provided with respective index information. The result of the bit-based operation is used as target index information.
In the present embodiment, index information is set in association with registration information of each activity-participating user. After the target index information is determined, inquiring the registration information of the activity participation user according to the target index information to obtain target registration information. The target registration information includes a registration code pointing to the target user, thereby specifying the target user among the activity participating users.
In the above embodiment, the target user is determined by using the logic rule in the intelligent contract, so that the hit probability of each activity participating user is the same, and the accuracy and fairness for allocating resources to the activity participating users are improved.
In some embodiments, the determining the target registration information in the registration information of the activity participation user by using the target index information may include: determining preliminary registration information corresponding to the target index information in the registration information of the activity participation user; in a case where it is determined that the preliminary registration information is in a valid state, the preliminary registration information is determined as the target registration information.
In some cases, the registration information for each activity participant user may be stored in a registration information list. After the registration information is uplinked, if any active participating user may cancel the registration information, the registration information of the active participating user is still in the registration information list, and the registration information of the active participating user is in a cancelled or invalid state. If any activity participation user does not cancel the registration information, the registration information of the activity participation user is still located in the registration information list, and the registration information of the activity participation user is in a valid state. Therefore, after determining the target index information, the obtained registration information may have been cancelled by querying the registration information list using the target index information, that is, the queried registration information may be in a cancelled state or an invalid state.
Specifically, after the target index information is determined, since the registration information of the activity participation users has respective index information, the registration information of the activity participation users is queried by using the target index information, and preliminary registration information corresponding to the target index information is obtained. It is determined whether or not preliminary registration information is in a valid state, and in the case where it is determined that the preliminary registration information is in a valid state, the preliminary registration information may be regarded as the target registration information. In the case where it is determined that the preliminary registration information is in an invalid state or a cancelled state, the smart contract generation first character string sequence may be recalled to redetermine the target registration information.
In the above embodiment, by determining whether the preliminary registration information is in an effective state, the preliminary registration information in the effective state is determined as the target registration information, so that the probability of placing an invalid user into the target user set is reduced, and it is ensured that the target user in the target user set is a valid user.
In some embodiments, the determining the target registration information in the registration information of the activity participation user by using the target index information may include: determining preliminary registration information corresponding to the target index information in the registration information of the activity participation user; wherein the registration code included in the preliminary registration information is used to point to a preliminary user; determining the preliminary registration information as the target registration information in a case where it is determined that the preliminary user does not exist in the set of target users.
In this embodiment, the target users determined in the previous round of activity are grouped together in a target user group. And determining preliminary registration information corresponding to the target index information based on the intelligent contract in the current round, wherein a registration code included in the preliminary registration information points to a preliminary user. In some cases, the preliminary user may have been grouped in the target user set in a previous round of activity, and there may be duplicate users in the target user set if the preliminary user is added to the target user set again. Therefore, after determining preliminary registration information corresponding to the target index information among the registration information of the activity participation users, it is determined whether the preliminary user exists in the target user set. If it is determined that the preliminary user does not exist in the target user set, the preliminary registration information may be determined as the target registration information, and a registration code included in the target registration information points to the target user of the current round. And collecting the target users of the current round in a target user set.
In the above embodiment, by determining whether the preliminary user pointed by the registration code in the preliminary registration information exists in the target user set, the probability of occurrence of a repeated condition in the target user set is reduced, the accuracy of the target user in the target user set is improved, and the reasonability of resource allocation is improved.
In some embodiments, the determining the target registration information in the registration information of the activity participation user by using the target index information may further include: under the condition that the preliminary user exists in the target user set, updating the target index information according to a preset rule to obtain updated index information; and inquiring the registration information of the activity participation user according to the updated index information to obtain the target registration information.
In this embodiment, the target users determined in the previous round of activity are grouped together in a target user group. And determining preliminary registration information corresponding to the target index information based on the intelligent contract in the current round, wherein a registration code included in the preliminary registration information points to a preliminary user. In some cases, the preliminary user may have been grouped in the target user set in a previous round of activity, and there may be duplicate users in the target user set if the preliminary user is added to the target user set again. Therefore, after determining preliminary registration information corresponding to the target index information among the registration information of the activity participation users, it is determined whether the preliminary user exists in the target user set. And if the preliminary user exists in the target user set, the target index information needs to be updated, so that the probability of repeated situations in the target user set is reduced. Specifically, when it is determined that the preliminary user exists in the target user set, the target index information is updated according to a preset rule to obtain updated index information. In some embodiments, the preset rule may agree on a rule for updating the target index information, for example, obtaining index information adjacent to the target index information as the updated index information, for example, obtaining index information spaced apart from the target index information as the updated index information. For example, the index information may be represented by a number, and the preset rule may add an integer N to the number representing the index information, where N may be 1 or 2. If N is 1, the fact that the target index information is replaced by next index information adjacent to the target index information if the preliminary user exists in the target user set is shown.
Further, inquiring the registration information of the activity participation user according to the updated index information to obtain the target registration information. Specifically, the registration information of the activity-participating users may be stored in a registration information list, the registration information of each activity-participating user having a respective number in the registration information list, a number corresponding to the update index information being determined, and the registration information corresponding to the number being determined as the target registration information.
In some embodiments, before the obtaining registration information of the activity participation user including a registration code, the method may further include: acquiring the statistical quantity of target users in a target user set and the total supply quantity of target products provided for the activity participation users; accordingly, the acquiring registration information including a registration code of an activity participating user and tile information of a target tile storing the registration information may include: and acquiring the block information and the registration information of the activity participation users under the condition that the statistical quantity of the target users is less than the total supply quantity of the target products.
In some cases, the resource may be understood as a target product and allocating the resource may be understood as providing the target product to a portion of the users. The target product can be vaccine, electronic product, etc. In order to ensure that each target user in the target user set can be allocated with resources and reduce the probability that the resource quantity cannot cover the occurrence of each target user event in the target user set, the inventory of a target product is checked before the intelligent contract calling function generates the first character string sequence. Specifically, the number of target users in the target user set is counted to obtain the counted number of the target users. The supply total of the target product may have been set in association with the actual inventory amount at the time of issuing the activity, and therefore, the intelligent contract may acquire the supply total of the target product provided for the activity-participating user. The supply total of the target product and the supply total of the target product are compared. In the case where the statistical number of the target users is not less than the total supply amount of the target product, it indicates that the target product has no surplus inventory, and there is no need to perform the next round of the activity of determining the target registration information. Thus, the active state may be set to the end state. In the case where the statistical number of the target users is smaller than the total supply amount of the target product, indicating that the target product has a stock balance, the next round of the activity of determining the target registration information may be performed. Therefore, the block information, the registration information of the activity participation user is acquired based on the smart contract.
In the above embodiment, whether the target product has inventory allowance is detected, so that the target users in the target user set can obtain the target product, and the accuracy of target product distribution is improved.
The embodiment of the specification provides an information processing method. Taking the number shaking scene as an example, the information processing method may include the following steps.
Step S502: and acquiring the statistical number of the number shaking users.
Step S504: and acquiring the block information and the registration information of the number shaking user.
Wherein the registration information comprises a registration code and a registration time, and the tile information comprises a tile timestamp and a tile height; wherein the registration code includes an automatically generated random data portion and a registration data portion entered by the trombone user.
Step S506: and acquiring a first character string sequence generated in the process of determining the target registration information in the previous round as a second character string sequence.
Step S508: and performing hash operation based on the block information, the registration information of the number shaking user and the second character string sequence to generate the corresponding first character string sequence.
Specifically, hash operation is performed on the registration code and the registration time of the number shaking user which accord with the calculation rule, and a first random factor is obtained. Generating a second random factor based on the tile timestamp and the tile height. And taking the second character string sequence as a third random factor. And calculating by taking the first random factor, the second random factor and the third random factor as parameters of a cryptographic hash function to obtain the corresponding first character string sequence.
Step S514: and acquiring the statistical quantity of the target users in the target user set and the total supply quantity of the target products provided for the number shaking users.
Step S516: comparing the statistical quantity of the target users with the supply total quantity of the target products.
Step S518: and setting the active state as an end state under the condition that the statistical quantity of the target users is not less than the total supply quantity of the target products.
Step S520: and under the condition that the statistical quantity of the target users is smaller than the total supply quantity of the target product, performing mapping operation according to the random number corresponding to the first character string sequence and the statistical quantity of the number shaking users to obtain target index information.
Step S522: and determining preliminary registration information corresponding to the target index information in the registration information of the number shaking user.
Wherein the registration code included in the preliminary registration information is used to point to a preliminary user.
Step S524: and judging whether the preliminary registration information is in a valid state.
Step S526: in the case where it is determined that the preliminary registration information is not in the valid state, it jumps to step S504.
Step S528: and under the condition that the preliminary registration information is judged to be in a valid state, judging whether the preliminary user exists in a target user set.
Step S530: and in the case that the preliminary user does not exist in the target user set, taking the preliminary registration information as the target registration information.
Step S532: and under the condition that the preliminary user exists in the target user set, updating the target index information according to a preset rule to obtain updated index information.
Step S534: whether the registration information list of the number shaking user has residual registration information or not is detected.
Step S536: and if the registered information exists, the registered information corresponding to the updated index information is used as the preliminary registered information in the registered information of the lottery users.
Specifically, in the case where there is remaining registration information in the registration information list of the trombone user, it jumps to step S528. In the case where there is no remaining registration information in the registration information list of the number shaking user, the active state is set to the end state. If the updated index information exceeds the index information in the registered information list, the target index information may be reset to the first index information in the registered information list.
Referring to fig. 6, an embodiment of the present disclosure provides a method for sending information. The information transmitting method may include the following steps.
Step S610: providing an input interface of the registration code; the input interface is provided with random data automatically generated by a server; wherein the random data is used as a random data portion of the registration code.
In this embodiment, in a case where a target user needs to be determined by a plurality of activity-participating users, an intelligent contract is deployed on a block chain in advance, and the intelligent contract may be understood as a computer program that can be automatically executed when a condition of a trigger condition is satisfied. In some cases, in order to ensure randomness of the registration code and prevent human cheating, processing logic for generating the random data portion of the registration code may be written in the smart contract in advance, so that after the smart contract is called, the random data portion conforming to the registration code may be automatically generated based on the processing logic in the smart contract. Specifically, the user terminal may send an activity participation request to the server, the server receives the activity participation request, random data may be automatically generated based on the activity participation request, and the server returns the generated random data to the user terminal. Referring to fig. 6, the user terminal may present an input interface of the registration code, in which random data (e.g., "ABC" shown in fig. 6) automatically generated by the server side is provided. The automatically generated random data is used as the random data portion of the registration code. It will be appreciated that the registration code shown in figure 6 may have 8 bits and the server-generated random data portion comprises 3 bits, requiring the user to enter 5 digits.
The random data automatically generated by the server may be a random string sequence generated based on 26 english letters, a random number sequence generated based on 10 arabic numerals between 0 and 9, or a random sequence including letters and numbers generated based on 26 english letters and 10 arabic numerals between 0 and 9. For example, if the registration code has 16 bits, 8 bits of random data may be generated based on 26 english letters and 10 arabic numbers between 0 and 9 as the random data portion of the registration code, and the remaining 8 bits have the received registration data input by the user. For example, if the registration code has 8 bits, 4 bits of random data may be generated based on 26 english letters and 10 arabic numbers between 0 and 9 as the random data portion of the registration code, and the remaining 4 bits have the received registration data input by the user.
Step S620: receiving, via the input interface, enrollment data input by an activity participation user; wherein the registration data is used as a registration data portion of the registration code.
In some cases, in order to reduce the possibility of transaction order destruction and market disruption caused by resource occupation by resource resellers to some extent, the registration code includes not only a random data portion based on automatic generation, but also a registration data portion input by activity-participating users, the registration data portion is determined by the activity-participating users, increases the operation difficulty when the resource reseller occupies the resource, and reduces the occurrence probability of resource reselling phenomenon to some extent. Specifically, in some embodiments, the user terminal displays an input interface of the registration code, monitors an input operation occurring on the input interface, and receives registration data that participates in user input based on an input operation activity in a case where the input operation is monitored. In some embodiments, with continued reference to fig. 6, an input box may be provided at the input interface, the activity participation user inputting enrollment data in the input box, and the user terminal receiving the enrollment data input by the activity participation user. The registration data serves as a registration data portion of the registration code.
Step S630: sending registration information of the activity participation user; wherein the registration information includes the registration code.
In some cases, if there is no activity participating in the input operation of the user in the process of generating the registration code, the registration code is generated randomly by the intelligent contract, and in the case that the intelligent contract is attacked by the resource reseller, the registration code generated by the intelligent contract may be controlled by the resource reseller, thereby affecting the reasonable allocation of the resource. If the random registration code is not automatically generated in the registration code generation process and is completely manually input by a user, the resource reseller can organize a certain number of resellers to respectively input the registration code, and the resource reseller controls the generation of the registration code, so that a large number of resources can be preempted, and the reasonable allocation of the resources is influenced. Therefore, in the present embodiment, the automatically generated random data portion and the registration data portion input by the user are introduced into the registration code. The user terminal sends registration information including a registration code to the server, and the server sends the registration information to the blockchain system so that the registration information is linked up and determines a target user by triggering an intelligent contract. Specifically, the registration code in the present embodiment includes an automatically generated random data portion and a registration data portion input by the activity participation user. The intelligent contract deployed on the block chain can acquire registration information of an activity participating user and comprises registration codes, and hash operation is carried out on the basis of the registration information of the activity participating user to obtain a first character string sequence; determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
In some embodiments, the information sending method may further include: under the condition that a registration code updating operation is received, updating registration data in the registration codes of the activity participation users to obtain updated registration codes; the updated registration code is transmitted.
Specifically, if the active participating user needs to modify the registration data in the registration code, a registration code update operation may be issued, when the user terminal receives the registration code update operation, the registration data in the registration code of the active participating user is updated based on the registration code update operation to obtain an updated registration code, and the user terminal sends the updated registration code to the server and chains the updated registration code through the server.
It should be understood that, although the steps in the above-described flowcharts are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
Referring to fig. 7, an embodiment of the present disclosure provides an information processing apparatus, including: the device comprises an information acquisition module, a hash operation module and a target determination module.
The information acquisition module is used for acquiring registration information of an activity participation user, wherein the registration information comprises a registration code, and block information of a target block for storing the registration information; wherein the enrollment code includes an automatically generated random data portion and an enrollment data portion of the activity participation user input.
And the hash operation module is used for carrying out hash operation on the registration information of the activity participation user to obtain a first character string sequence.
The target determining module is used for determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
For specific limitations of the information processing apparatus, reference may be made to the above limitations of the information processing method, which are not described herein again. Each module in the information processing apparatus described above may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 8, an embodiment of the present disclosure provides an information sending apparatus, including: the device comprises an input interface providing module, a registration data receiving module and a registration information sending module.
The input interface providing module is used for providing an input interface of the registration code; the input interface is provided with random data automatically generated by a server; wherein the automatically generated random data is used as a random data portion of the registration code.
The registration data receiving module is used for receiving registration data input by an activity participation user through the input interface; wherein the registration data is used as a registration data portion of the registration code.
The registration information sending module is used for sending the registration information of the activity participation user; wherein the registration information includes the registration code.
For specific limitations of the information transmitting apparatus, reference may be made to the above limitations of the information transmitting method, which will not be described herein again. The respective modules in the above-described information transmission apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an information processing or information transmitting method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing device to which the disclosed aspects apply, and that a computing device may in particular include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided, comprising a memory having a computer program stored therein and a processor that, when executing the computer program, performs the method steps of the above embodiments.
In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the method steps in the above-described embodiments.
In some embodiments, a computer program product is also provided, which comprises instructions that are executable by a processor of a computer device to implement the method steps in the above-described embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The features of the above embodiments may be arbitrarily combined, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be construed as being within the scope of the present specification as long as there is no contradiction between the combinations of the features.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents and the like that are within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (11)

1. An information processing method, characterized in that the method comprises:
acquiring registration information including a registration code of an activity participation user; wherein the registration code comprises an automatically generated random data portion and a registration data portion of the activity participation user input;
performing hash operation on the registration information of the activity participation user to obtain a first character string sequence;
determining target registration information in the registration information of the activity participation user according to the first character string sequence; wherein the registration code included in the target registration information is used to point to a target user.
2. The method of claim 1, wherein prior to said hashing based on registration information of said active participant user to obtain a first sequence of strings, said method further comprises:
acquiring block information of a target block storing the registration information and a first character string sequence obtained through the Hash operation in the previous round of activity as a second character string sequence;
correspondingly, the performing a hash operation based on the registration information of the activity participation user to obtain a first character string sequence includes:
and performing hash operation on the block information, the registration information of the activity participation user and the second character string sequence to obtain the first character string sequence.
3. The method of claim 2, wherein the registration information further comprises a registration time, and wherein the tile information comprises a tile timestamp and a tile height; performing hash operation on the block information, the registration information of the activity participation user, and the second character string sequence to obtain the first character string sequence, including:
performing hash operation on the registration codes and the registration time of at least part of the activity participation users to obtain a first random factor;
generating a second random factor based on the tile timestamp and the tile height;
taking the second character string sequence as a third random factor;
and calculating by taking the first random factor, the second random factor and the third random factor as input parameters of a cryptographic hash function to obtain the first character string sequence.
4. The method of claim 1, wherein determining target registration information among the registration information of the activity participation users according to the first sequence of character strings comprises:
performing mapping operation according to the numerical value corresponding to the first character string sequence and the statistical quantity of the activity participation users to obtain target index information;
and determining the target registration information in the registration information of the activity participation user by using the target index information.
5. The method of claim 4, wherein the determining the target registration information in the registration information of the activity participation user by using the target index information comprises:
determining preliminary registration information corresponding to the target index information in the registration information of the activity participation user;
in a case where it is determined that the preliminary registration information is in a valid state, the preliminary registration information is determined as the target registration information.
6. The method of claim 4, wherein the determining the target registration information in the registration information of the activity participation user by using the target index information comprises:
determining preliminary registration information corresponding to the target index information in the registration information of the activity participation users; wherein the registration code included in the preliminary registration information is used to point to a preliminary user;
determining the preliminary registration information as the target registration information in a case where it is determined that the preliminary user does not exist in the set of target users.
7. The method of claim 6, wherein the determining the target registration information in the registration information of the activity participation user using the target index information further comprises:
under the condition that the preliminary user exists in the target user set, updating the target index information according to a preset rule to obtain updated index information;
and inquiring the registration information of the activity participation user according to the updated index information to obtain the target registration information.
8. The method of claim 1, wherein prior to said obtaining registration information of an activity participant user comprising a registration code, the method further comprises:
acquiring the statistical quantity of target users in a target user set and the total supply quantity of target products provided for the activity participation users;
accordingly, the acquiring registration information including a registration code of an activity participating user and block information of a target block storing the registration information includes:
and acquiring the block information and the registration information of the activity participation users under the condition that the statistical quantity of the target users is less than the total supply quantity of the target products.
9. An information sending method, characterized in that the method comprises:
providing an input interface of a registration code; the input interface is provided with random data automatically generated by a server; wherein the random data is used as a random data portion of the registration code;
receiving, via the input interface, enrollment data input by an activity participation user; wherein the registration data serves as a registration data portion of the registration code;
sending registration information of the activity participation user; wherein the registration information includes the registration code.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 9 when executing the computer program.
11. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-9.
CN202210859730.1A 2022-07-22 2022-07-22 Information processing method, information transmitting method, computer device, and storage medium Active CN115083062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210859730.1A CN115083062B (en) 2022-07-22 2022-07-22 Information processing method, information transmitting method, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210859730.1A CN115083062B (en) 2022-07-22 2022-07-22 Information processing method, information transmitting method, computer device, and storage medium

Publications (2)

Publication Number Publication Date
CN115083062A true CN115083062A (en) 2022-09-20
CN115083062B CN115083062B (en) 2022-12-09

Family

ID=83242377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210859730.1A Active CN115083062B (en) 2022-07-22 2022-07-22 Information processing method, information transmitting method, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN115083062B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004021943A (en) * 2002-06-20 2004-01-22 Nec Corp Electronic lottery method, electronic lottery program, and electronic lottery system
CN108648323A (en) * 2018-05-10 2018-10-12 广州市申迪计算机***有限公司 Choosing method, device, computer equipment and the storage medium of target information
CN109584432A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
CN109615370A (en) * 2018-10-25 2019-04-12 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
CN110910559A (en) * 2019-11-25 2020-03-24 杭州趣链科技有限公司 Lottery drawing method based on block chain
CN111539731A (en) * 2020-06-19 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain-based federal learning method and device and electronic equipment
CN111865587A (en) * 2020-08-07 2020-10-30 腾讯科技(深圳)有限公司 Data processing method, block link point device, electronic device, and computer program
KR102207466B1 (en) * 2019-08-16 2021-01-25 한양대학교 에리카산학협력단 Method of generating mobile tickets and system of verificating mobile tickets for preventing illegal tickets

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004021943A (en) * 2002-06-20 2004-01-22 Nec Corp Electronic lottery method, electronic lottery program, and electronic lottery system
CN108648323A (en) * 2018-05-10 2018-10-12 广州市申迪计算机***有限公司 Choosing method, device, computer equipment and the storage medium of target information
CN109615370A (en) * 2018-10-25 2019-04-12 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
CN109584432A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
KR102207466B1 (en) * 2019-08-16 2021-01-25 한양대학교 에리카산학협력단 Method of generating mobile tickets and system of verificating mobile tickets for preventing illegal tickets
CN110910559A (en) * 2019-11-25 2020-03-24 杭州趣链科技有限公司 Lottery drawing method based on block chain
CN111539731A (en) * 2020-06-19 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain-based federal learning method and device and electronic equipment
CN111865587A (en) * 2020-08-07 2020-10-30 腾讯科技(深圳)有限公司 Data processing method, block link point device, electronic device, and computer program

Also Published As

Publication number Publication date
CN115083062B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
US10785209B2 (en) Service object allocation
CN110505065B (en) Trusted timestamp adding method and device and storage medium
CN107392618B (en) Method and equipment for implanting intelligent contract
US11937162B2 (en) Systems and methods for propagating data packets in a network of nodes
CN111445333A (en) Block generation method and device, computer equipment and storage medium
CN110839071B (en) Information storage method, device and storage medium based on block chain
CN110247753B (en) Block output method and device based on block chain node point network
EP3779756A1 (en) Information processing device, information processing method, and program
CN110930254A (en) Data processing method, device, terminal and medium based on block chain
CN111339141A (en) Data transmission method, block link node equipment and medium
CN111414191A (en) Gray scale publishing method and device for small program
CN111126537A (en) Identification code ID generation method and related product
CN115083062B (en) Information processing method, information transmitting method, computer device, and storage medium
CN109544165B (en) Resource transfer processing method, device, computer equipment and storage medium
CN110601850B (en) Scenic spot information recording method, related equipment and storage medium
CN115865366A (en) Block chain voting method, device, terminal equipment and storage medium
KR102457915B1 (en) Electronic vote system using smart contract of blockchain and method thereof
CN112417052B (en) Data synchronization method, device, equipment and storage medium in block chain network
CN109587241B (en) Data sharing method and equipment
CN114377402A (en) Lottery drawing method and device in block chain game
CN104935623B (en) Application management method and update release server
US10553062B2 (en) Method for generating winning numbers and apparatus
CN114666068B (en) Credible random number generation method and device based on alliance chain
KR102256912B1 (en) Research managing server for performing realtime research interworking multiple node units which contstitue blockchain network and the operating method thereof
CN114969211B (en) Civil aviation data processing system based on block chain

Legal Events

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