CN115098878A - Block chain-based information processing method, device, equipment and medium - Google Patents

Block chain-based information processing method, device, equipment and medium Download PDF

Info

Publication number
CN115098878A
CN115098878A CN202210316772.0A CN202210316772A CN115098878A CN 115098878 A CN115098878 A CN 115098878A CN 202210316772 A CN202210316772 A CN 202210316772A CN 115098878 A CN115098878 A CN 115098878A
Authority
CN
China
Prior art keywords
block
voucher
certificate
time
cashing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210316772.0A
Other languages
Chinese (zh)
Inventor
庞洪福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dazhi Robot Chengdu Co ltd
Original Assignee
Dazhi Robot Chengdu 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 Dazhi Robot Chengdu Co ltd filed Critical Dazhi Robot Chengdu Co ltd
Priority to CN202210316772.0A priority Critical patent/CN115098878A/en
Publication of CN115098878A publication Critical patent/CN115098878A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides an information processing method, device, equipment and medium based on a block chain. In the embodiment of the application, after the expiration of each period of certificate acquisition, the summary information of the generated certificate number data of the period is written into the block chain in a transaction mode, so that the expected certificate number data can be prevented from being illegally written into a certificate issuing system after the expiration of the certificate acquisition, and the certificate number data generated at the previous period can be traced. Further, when the voucher cashing time is estimated to reach according to the voucher obtaining deadline and the block outlet period, a target block which is newly added on the block chain and corresponds to the voucher cashing time of the previous time is generated, the voucher cashing parameter of the previous time is generated based on the block head data of the target block, and the voucher cashing parameter is provided for the voucher issuing system to generate expected voucher number data of the current time. Thus, the security and trustworthiness of the desired credential number data is ensured.

Description

Block chain-based information processing method, device, equipment and medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a device, and a medium for processing information based on a blockchain.
Background
The electronic certificate is a basis for recording business transaction in an electronic mode. For example, the electronic credentials include electronic credentials to log into an application system, electronic credentials to grant access to a particular venue, or electronic credentials for financial transactions. In some application scenarios, in practical applications, a large number of electronic certificates with different certificate numbers need to be generated over time, and how to ensure generation of secure and trusted certificate numbers becomes a technical problem to be solved urgently.
Disclosure of Invention
Aspects of the present disclosure provide a block chain-based information processing method, apparatus, device, and medium, which are used to ensure security and credibility of expected credential number data.
An embodiment of the present application provides an information processing method based on a block chain, including: acquiring current-previous generated certificate number data generated after the current-previous certificate acquisition deadline arrives from a certificate issuing system; generating abstract information of the voucher number data by adopting a first information abstract algorithm; writing the summary information into a first block of a block chain, and generating block header data of the first block according to the hash value of the summary information, wherein the first block is a block newly added to the block chain when the block period arrives; according to the voucher obtaining deadline and the block-out period, determining a target block corresponding to the voucher cashing time at the previous time from blocks which sequentially appear on the block chain according to the block-out period after the first block; and during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate current expected voucher number data based on the voucher cashing parameter.
An embodiment of the present application further provides an information processing apparatus based on a block chain, including: the acquisition module is used for acquiring the generated certificate number data of the current previous time generated after the deadline of the current previous-time certificate acquisition is reached from the certificate issuing system and generating the abstract information of the certificate number data by adopting a first information abstract algorithm; the processing module is used for writing the summary information into a first block of the block chain and generating block head data of the first block according to the hash value of the summary information, wherein the first block is a block newly added to the block chain when the block-out period reaches; according to the certificate acquisition deadline and the block output period, determining a target block corresponding to the certificate cashing time of the current previous time from the blocks which sequentially appear on the block chain according to the block output period after the first block; and during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate current expected voucher number data based on the voucher cashing parameter.
An embodiment of the present application further provides a computer device, including: a memory and a processor; a memory for storing a computer program; the processor is coupled to the memory for executing a computer program for performing the steps in the block chain based information processing method.
Embodiments of the present application also provide a computer readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the steps in the block chain based information processing method.
In the embodiment of the application, after the acquisition of the certificate in each period is ended, the summary information of the generated certificate number data in the period is written into the block chain in a transaction mode, so that the expected certificate number data can be prevented from being illegally written into a certificate issuing system after the acquisition of the certificate is ended, and the certificate number data generated in the previous period can be traced. Further, when the voucher cashing time is estimated to reach according to the voucher obtaining deadline and the block outlet period, a target block which is newly added on the block chain and corresponds to the voucher cashing time of the previous time is generated, the voucher cashing parameter of the previous time is generated based on the block head data of the target block, and the voucher cashing parameter is provided for the voucher issuing system to generate expected voucher number data of the current time. Therefore, the expected certificate number data in the previous period is effectively prevented from being generated in advance before the certificate cashing time, the safety and the credibility of the expected certificate number data are ensured, and the risk that the expected certificate number data are illegally tampered is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application in a non-limiting sense. In the drawings:
fig. 1 is an architecture diagram of a block chain system according to an exemplary embodiment of the present application;
fig. 2 is a schematic flowchart of an information processing method based on a blockchain according to an exemplary embodiment of the present application;
FIG. 3 is a block linking diagram according to an exemplary embodiment of the present application;
FIG. 4 is a diagram illustrating a process for generating expected credential number data according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of an information processing apparatus based on a block chain according to an exemplary embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and the accompanying drawings. It should be apparent that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, terms related to embodiments of the present application are explained:
the voucher issuing system is a system capable of generating voucher number data of electronic vouchers in an installment order.
Credential acquisition start time: the starting time of obtaining the certificate number data from the certificate issuing system every term is referred to;
credential acquisition deadline: the expiration time is the deadline time for obtaining the certificate number data from the certificate issuing system every term;
voucher redemption time: the time of redeeming the expected number data by the voucher issuing system at each date is defined, and when the redeeming time of the voucher at each date is reached, the voucher issuing system generates expected voucher number data at each date based on voucher number data generated between the voucher acquisition starting time and the voucher acquisition ending time of each date. If the credential number data generated at the credential acquisition start time and the credential acquisition deadline is the same as the expected credential number data, the acquirer of the credential number data may be granted the corresponding authority, such as the authority to log in to the application system, the authority to transfer money, or the authority to grant access to the private venue, and so on.
The certificate number data and the expected certificate number data are both certificate number data generated by the certificate issuing system; the credential redemption parameters refer to parameters that are used to assist in generating the desired credential number data.
In order to meet the existing requirement for ensuring generation of a trusted certificate number, embodiments of the present application provide an information processing method, apparatus, device, and medium based on a block chain. In the embodiment of the application, after the acquisition of the certificate in each period is ended, the summary information of the generated certificate number data in the period is written into the block chain in a transaction mode, so that the expected certificate number data can be prevented from being illegally written into a certificate issuing system after the acquisition of the certificate is ended, and the certificate number data generated in the previous period can be traced. Further, when the voucher cashing time is estimated to reach according to the voucher obtaining deadline and the block outlet period, a target block which is newly added on the block chain and corresponds to the voucher cashing time of the previous time is generated, the voucher cashing parameter of the previous time is generated based on the block head data of the target block, and the voucher cashing parameter is provided for the voucher issuing system to generate expected voucher number data of the current time. Therefore, the expected certificate number data in the previous period is effectively prevented from being generated in advance before the certificate cashing time, the safety and the credibility of the expected certificate number data are ensured, and the risk that the expected certificate number data are illegally tampered is reduced.
Fig. 1 is an architecture diagram of a block chain system according to an exemplary embodiment of the present application. As shown in fig. 1, the blockchain system may include a plurality of blockchain nodes, each of which collectively form the blockchain system. The block link points may be terminal devices or servers, the block chain nodes have equal positions in the block chain system, and each block link point maintains one block chain together.
As shown in fig. 1, the block chain system may interact with the credential issuing system to obtain the credential information provided by the credential issuing system, and perform corresponding data processing on the credential information, such as requesting other block chain nodes to perform consensus processing, block generation, uplink storage, and the like on the credential information. The certificate issuing system can provide a certificate issuing service for a certificate issuing organization, and the certificate issuing system can be a terminal device or a server.
The terminal device may be hardware or software. When the terminal device is hardware, the terminal device is, for example, a mobile phone, a tablet computer, a desktop computer, a wearable smart device, a smart home device, or the like. When the terminal device is software, it may be installed in the above listed hardware devices, in this case, the terminal device is, for example, a plurality of software modules or a single software module, and the embodiments of the present application are not limited. The server may be hardware or software. When the server is hardware, the server is a single server or a distributed server cluster composed of a plurality of servers. When the server is software, the server may be a plurality of software modules or a single software module, and the embodiments of the present application are not limited.
It should be understood that the number of blockchain nodes, credential issuance systems in fig. 1 is merely illustrative. In practical application, any number of block chain nodes and certificate issuing systems are deployed according to actual requirements.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating an information processing method based on a blockchain according to an exemplary embodiment of the present application. Referring to fig. 2, the method may include the steps of:
201. the present-time generated certificate number data generated after the present-time certificate acquisition deadline arrives is acquired from the certificate issuing system.
202. And generating abstract information of the certificate number data by adopting a first information abstract algorithm.
203. And writing the summary information into a first block of the block chain, and generating block header data of the first block according to the hash value of the summary information, wherein the first block is a block newly added on the block chain when the block period arrives.
204. And according to the certificate acquisition deadline and the block output period, determining a target block corresponding to the certificate redemption time of the previous time from blocks which sequentially appear on the block chain from the first block according to the block output period.
205. And during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate current expected voucher number data based on the voucher cashing parameter.
The information processing method based on the block chain provided by the embodiment of the application can be executed by any block chain node in the block chain network. Specifically, after the expiration time of each installment of the certificate acquisition is reached, the certificate issuing system provides the block chain system with the current installment of the generated certificate number data. And any blockchain node in the blockchain system processes the generated certificate number data at the current previous stage by adopting a first information summary algorithm to obtain summary information of the generated certificate number data. The first message summarization algorithm includes, but is not limited to, the following message summarization algorithms: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512.
In this embodiment, every other block output period, a block is added to the block chain. Further optionally, when a block is newly added to the block chain every time the block output period arrives, the block header data of the newly added next block is determined according to the block header data of the previous block. As an example, when determining the new header data of the next block based on the header data of the previous block, the hash value of the header data of the previous block is calculated as the parent block hash value of the next block, and the hash value of the transaction data written to the block in the next block is calculated, and the parent block hash value of the next block and the hash value of the transaction data written to the block in the next block are used as the header data of the next block.
For ease of understanding, fig. 3 is taken as an example for explanation. In fig. 3, the block header data of the nth block is written as the hash value of the parent block associated with the (N + 1) th block into the block header of the (N + 1) th block, and the hash value of all transaction data of the "block of the (N + 1) th block is written in the block header of the (N + 1) th block. Similarly, the block header data of the (N + 1) th block is written as the hash value of the parent block associated with the (N + 2) th block into the block header of the (N + 2) th block, and the hash value of all transaction data of the (N + 2) th block is written in the block header of the (N + 2) th block. "
In this embodiment, after acquiring the digest information of the generated credential number data of the current period, when the block output period arrives, any block link node generates a block according to the digest information of the generated credential number data of the current period and adds the block to the block link. For ease of understanding and distinction, the block generated at this time is referred to as a first block. Further optionally, when a first block is newly added to the block chain, any block link point records the summary information of the generated credential number data in the previous period as transaction information into the block body of the first block, and generates the block header data of the first block according to the hash value of the summary information. As an example, when generating the header data of the first block based on the hash value of the digest information, the hash value of the parent block of the first block may be obtained, and the header data of the first block may be generated based on the hash value of the parent block of the first block and the hash value of the digest information of the generated credential number data.
In this embodiment, according to the credential obtaining deadline and the block output period, the target block corresponding to the current credential redemption time may be determined from blocks that appear in the block chain in sequence according to the block output period after the first block. In an alternative implementation manner, according to the credential obtaining deadline and the block output period, from blocks sequentially appearing on the block chain according to the block output period after the first block, one implementation procedure for determining the target block corresponding to the current credential redemption time is as follows: determining the number of blocks which can be generated from the certificate acquisition deadline to the certificate cashing time according to the certificate acquisition deadline, the certificate cashing time and the block outlet period; and determining the sum of the block number of the first block and the number of the blocks which can be generated as the block number of the target block, wherein the block number of the target block is used for identifying the uplink sequence of the target block in the block chain.
For example, the block-out period is 12 seconds, when the previous voucher capture deadline is 2021-12-1320: 00, and when the previous voucher redemption time is 2021-12-1321: 00, 300 blocks can be generated during the period from 2021-12-1320: 00 to 2021-12-1321: 00. Assuming that the block number of the first block is denoted as N, and N is a positive integer, the block number of the target block is N + 300.
In this embodiment, after determining the target block corresponding to the current credential redemption time of the previous time, the block chain node generates the current credential redemption parameter according to the block header data of the target block during the arrival period of the current credential redemption time of the previous time. Wherein, the timing starting point of the arrival period of the previous voucher cashing lottery time is the voucher cashing lottery time.
Further optionally, in order to further increase the security of the current expected credential number data, when the current credential redemption parameter is generated according to the block header data of the target block, a second information summarization algorithm may be used to generate the summary information of the block header data of the target block, and the summary information of the block header data of the target block is used as the credential redemption parameter. The second information summarization algorithm includes, but is not limited to, the following algorithms: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512.
In this embodiment, the block link point may provide the voucher redemption parameters to the voucher redemption issuance system, which generates the current expected voucher number data based on the voucher redemption parameters. The embodiment of the present application does not limit the manner in which the voucher issuing system generates the expected voucher number data of the current time based on the voucher redemption parameter. As an example, one implementation of the credential issuance system to generate the current expected credential number data based on the credential redemption parameters is to: the voucher issuing system randomly generates 6 numbers among 0 to 60 natural numbers based on the voucher redemption parameter as expected voucher number data at the present time. The following is an exemplary expected credential number data generation algorithm that takes as input the credential redemption parameters to generate expected credential number data:
Figure BDA0003569192510000081
further optionally, an intelligent contract may be deployed in the block chain node, and the block chain node invokes the intelligent contract to execute the block chain-based information processing method. In addition, the block chain node can also store the certificate type, the current previous time, the summary information of the certificate number data and the block number of the target block into the intelligent contract. When the intelligent contract is called to generate the current voucher cashing parameter in the previous period, the intelligent contract can acquire the block head data of the target block from the block chain according to the block number of the target block and generate the current voucher cashing parameter in the previous period according to the block head data of the target block.
According to the information processing method based on the block chain, after the certificate acquisition in each period is ended, the summary information of the generated certificate number data in the period is written into the block chain in a transaction mode, so that the expected certificate number data can be prevented from being illegally written into a certificate issuing system after the certificate acquisition is ended, and the certificate number data generated in the previous period can be traced. Further, when the voucher cashing time is estimated to reach according to the voucher obtaining deadline and the block outlet period, a target block which is newly added on the block chain and corresponds to the voucher cashing time of the previous time is generated, the voucher cashing parameter of the previous time is generated based on the block head data of the target block, and the voucher cashing parameter is provided for the voucher issuing system to generate expected voucher number data of the current time. Therefore, the expected certificate number data of the current previous time is effectively prevented from being generated in advance before the certificate cashing time, and the safety and the credibility of the expected certificate number data are ensured.
In practical applications, the validity of a newly added block in a block chain dynamically changes, and it is likely that the newly added block is replaced by a more valid block. As a further alternative, in order to further enhance the security of the expected voucher number data, after the target block is determined to be a valid block, the current winning parameter may be generated based on the block header data of the target block. Thus, in an alternative implementation, during the arrival of the current voucher redemption time, one implementation of generating the current voucher redemption parameter based on the block header data of the target block is as follows: under the condition that the current previous voucher cashing time is reached, determining whether the target block is effective or not according to the number of blocks which are linked after the target block on the block chain; under the condition that the target block is effective, acquiring block header data of the target block from a block chain according to the block number of the target block; and generating the certificate cashing parameters of the previous period according to the block header data of the target block.
In this embodiment, if a set number of blocks are linked after the target block on the block chain, it indicates that the target block is a valid block. The set number is set according to actual service requirements, and the set number is, for example, 6. Thus, in an alternative implementation, in the case that the current previous voucher redemption time is reached, one implementation of determining whether the target block is valid based on the number of blocks linked on the block chain after the target block is: and under the condition that the current voucher cashing time is reached, monitoring the number of new blocks generated behind the target block on the block chain until the number of the new blocks is monitored to reach the set number, and determining that the target block is effective.
For ease of understanding, the description is made in conjunction with fig. 4. After the expiration time of the previous certificate acquisition, the summary information of the generated certificate number data of the previous time is written into the block N. When the previous voucher cashing time is up, M blocks are newly added to the block chain, wherein M is a positive integer. If 6 blocks are added after the block N + M, that is, after the block N + M +6 is linked to the block chain, it is determined that the block N + M is a valid block, and at this time, the block header data of the block N + M is obtained as the current previous certificate redemption parameter for generating the expected certificate number data.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of step 201 to step 203 may be device a; for another example, the execution subject of steps 201 and 202 may be device a, and the execution subject of step 203 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers themselves do not represent any execution order. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
Fig. 5 is a schematic structural diagram of an information processing apparatus based on a block chain according to an exemplary embodiment of the present application. Referring to fig. 5, the apparatus may include an acquisition module 51 and a processing module 52.
The obtaining module 51 is configured to obtain, from the credential issuing system, the generated credential number data of the current time that is generated after the expiration time of the current time of credential acquisition reaches, and generate the digest information of the credential number data by using a first information digest algorithm.
The processing module 52 is configured to write the summary information into a first block of the block chain, and generate block header data of the first block according to the hash value of the summary information, where the first block is a newly added block on the block chain when the block-out period reaches the time zone; according to the voucher obtaining deadline and the block-out period, determining a target block corresponding to the voucher cashing time at the previous time from blocks which sequentially appear on the block chain according to the block-out period after the first block; and during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate current expected voucher number data based on the voucher cashing parameter.
Further optionally, the processing module 52 is specifically configured to, according to the credential obtaining deadline and the block output period, determine, from blocks sequentially appearing on the block chain according to the block output period after the first block, a target block corresponding to the previous credential redemption time, and then: determining the number of blocks which can be generated from the certificate acquisition deadline to the certificate cashing time according to the certificate acquisition deadline, the certificate cashing time and the block output period; and determining the sum of the block number of the first block and the number of the blocks which can be generated as the block number of the target block, wherein the block number of the target block is used for identifying the uplink sequence of the target block in the block chain.
Further optionally, the processing module 52 generates, according to the block header data of the target block, a current voucher redemption parameter during the time when the previous voucher redemption time arrives, specifically configured to: under the condition that the current previous voucher cashing time is reached, determining whether the target block is effective or not according to the number of blocks which are linked after the target block on the block chain; under the condition that the target block is effective, acquiring block header data of the target block from a block chain according to the block number of the target block; and generating the certificate cashing parameter of the current previous time according to the block header data of the target block.
Further optionally, when the processing module 52 determines whether the target block is valid according to the number of blocks linked after the target block on the block chain when the previous voucher redemption time is reached, specifically: and under the condition that the current voucher cashing time is reached, monitoring the number of new blocks generated behind the target block on the block chain until the number of the new blocks reaches the set number, and determining that the target block is effective.
Further optionally, the processing module 52 is further configured to: when a block is newly added to the block chain every time the block output period is reached, determining the block head data of the newly added next block according to the block head data of the previous block.
Further optionally, the processing module 52 generates, according to the block header data of the target block, when the previous voucher redemption parameter is generated, specifically configured to: and generating abstract information of the block head data of the target block by adopting a second information abstract algorithm, and taking the abstract information of the block head data of the target block as a voucher cashing parameter.
Further optionally, the first message digest algorithm or the second message digest algorithm includes at least one of: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512.
Further optionally, the processing module 52 is further configured to: and storing the certificate type, the current previous time, the summary information of the certificate number data and the block number of the target block into the intelligent contract.
Further optionally, the credential issuing system generates the current expected credential number data based on the credential redemption parameter, including: the voucher issuing system randomly generates 6 numbers among 0 to 60 natural numbers based on the voucher redemption parameter as expected voucher number data at the present time.
The specific implementation of the block chain based information processing apparatus shown in fig. 5 has been described in detail in the above embodiment of the block chain based information processing method, and will not be described in detail here.
Fig. 6 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application. Referring to fig. 6, the computer apparatus includes: a memory 61 and a processor 62.
Memory 61 is used to store computer programs and may be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 61 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 62, coupled to the memory 61, for executing computer programs in the memory 61 for: acquiring current-previous generated certificate number data generated after the current-previous certificate acquisition deadline arrives from a certificate issuing system, and generating abstract information of the certificate number data by adopting a first information abstract algorithm; writing the summary information into a first block of a block chain, and generating block header data of the first block according to the hash value of the summary information, wherein the first block is a block newly added to the block chain when the block period arrives; according to the certificate acquisition deadline and the block output period, determining a target block corresponding to the certificate cashing time of the current previous time from the blocks which sequentially appear on the block chain according to the block output period after the first block; and during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate current expected voucher number data based on the voucher cashing parameter.
Further optionally, the processor 62, according to the credential obtaining deadline and the block output period, determines, from blocks sequentially appearing on the block chain according to the block output period after the first block, a target block corresponding to the previous credential redemption time, and specifically is configured to: determining the number of blocks which can be generated from the certificate acquisition deadline to the certificate cashing time according to the certificate acquisition deadline, the certificate cashing time and the block outlet period; and determining the sum of the block number of the first block and the number of the blocks which can be generated as the block number of the target block, wherein the block number of the target block is used for identifying the uplink sequence of the target block in the block chain.
Further optionally, the processor 62 generates, according to the block header data of the target block, a current voucher redemption parameter during the arrival time of the previous voucher redemption time, specifically for: under the condition that the current previous voucher cashing time is reached, determining whether the target block is effective or not according to the number of blocks which are linked after the target block on the block chain; under the condition that the target block is effective, acquiring block header data of the target block from a block chain according to the block number of the target block; and generating the certificate cashing parameter of the current previous time according to the block header data of the target block.
Further optionally, when the processor 62 determines whether the target block is valid according to the number of blocks linked after the target block on the block chain when the previous voucher redemption time is reached, specifically: and under the condition that the current voucher cashing time is reached, monitoring the number of new blocks generated behind the target block on the block chain until the number of the new blocks reaches the set number, and determining that the target block is effective.
Further optionally, the processor 62 is further configured to: when a block is newly added to the block chain every time the block output period is reached, determining the block head data of the newly added next block according to the block head data of the previous block.
Further optionally, the processor 62 generates, according to the block header data of the target block, when the previous certificate redemption parameter is generated, specifically to: and generating abstract information of the block head data of the target block by adopting a second information abstract algorithm, and taking the abstract information of the block head data of the target block as a voucher cashing parameter.
Further optionally, the first message summarization algorithm or the second message summarization algorithm comprises at least one of: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512.
Further optionally, the processor 62 is further configured to: and storing the certificate type, the current previous time, the summary information of the certificate number data and the block number of the target block into the intelligent contract.
Further optionally, the credential issuance system generates the current expected credential number data based on the credential redemption parameters, including: the voucher issuing system randomly generates 6 numbers among 0 to 60 natural numbers based on the voucher redemption parameter as expected voucher number data at the present time.
Further, as shown in fig. 6, the computer apparatus further includes: communication components 63, display 64, power components 65, audio components 66, and the like. Only some of the components are schematically shown in fig. 6, and the computer device is not meant to include only the components shown in fig. 6. In addition, the components within the dashed box in fig. 6 are optional components, not mandatory components, and may depend on the product form of the computer device. The computer device of this embodiment may be implemented as a terminal device such as a desktop computer, a notebook computer, a smart phone, or an IOT device, or may be a server device such as a conventional server, a cloud server, or a server array. If the computer device of this embodiment is implemented as a terminal device such as a desktop computer, a notebook computer, a smart phone, etc., the computer device may include components within a dashed line frame in fig. 6; if the computer device of this embodiment is implemented as a server device such as a conventional server, a cloud server, or a server array, the components in the dashed box in fig. 6 may not be included.
Accordingly, the present application further provides a computer-readable storage medium storing a computer program, where the computer program is capable of implementing the steps that can be executed by a computer device in the foregoing method embodiments when executed.
The communication assembly described above is configured to facilitate communication between the device in which the communication assembly is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as a WiFi, a 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The display includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The power supply assembly provides power for various components of the device in which the power supply assembly is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
The audio component may be configured to output and/or input an audio signal. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (12)

1. An information processing method based on a block chain is characterized by comprising the following steps:
acquiring the generated certificate number data of the current previous time generated after the expiration time of the current previous time certificate acquisition is reached from a certificate issuing system, and generating abstract information of the certificate number data by adopting a first information abstract algorithm;
writing the summary information into a first block of a block chain, and generating block header data of the first block according to the hash value of the summary information, wherein the first block is a block newly added to the block chain when a block output period is reached;
according to the certificate acquisition deadline and the block output period, determining a target block corresponding to the certificate redemption time of the previous time from the blocks sequentially appearing on the block chain after the first block according to the block output period;
and during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate the current expected voucher number data based on the voucher cashing parameter.
2. The method of claim 1, wherein determining a target block corresponding to a current previous voucher redemption time from blocks sequentially appearing on the block chain according to the block appearing period after the first block according to the voucher acquisition deadline and the block appearing period comprises:
determining the number of blocks which can be generated from the certificate acquisition deadline to the certificate cashing time according to the certificate acquisition deadline, the certificate cashing time and the block outlet period;
determining the sum of the block number of the first block and the number of the blocks which can be generated as the block number of the target block, wherein the block number of the target block is used for identifying the uplink sequence of the target block in the block chain.
3. The method of claim 2, wherein generating current credential redemption parameters based on block header data for the target block during the arrival of current credential redemption times comprises:
determining whether the target block is effective or not according to the number of blocks which are linked up after the target block on the block chain under the condition that the current previous voucher redemption time is reached;
under the condition that the target block is effective, acquiring block header data of the target block from the block chain according to the block number of the target block;
and generating the certificate cashing parameter of the current period according to the block header data of the target block.
4. The method of claim 3, wherein determining whether the target block is valid based on the number of blocks linked on the block chain after the target block if a current previous voucher redemption time is reached comprises:
and under the condition that the current voucher cashing time is reached, monitoring the number of new blocks generated behind the target block on the block chain until the number of the new blocks reaches a set number, and determining that the target block is effective.
5. The method of any of claims 1 to 4, further comprising:
and when a block is newly added to the block chain every time the block output period is reached, determining the block head data of the newly added next block according to the block head data of the previous block.
6. The method according to any one of claims 1 to 4, wherein generating the current voucher redemption parameter based on the block header data of the target block comprises:
and generating abstract information of the block head data of the target block by adopting a second information abstract algorithm, and taking the abstract information of the block head data of the target block as the voucher cashing parameter.
7. The method of claim 6, wherein the first message digest algorithm or the second message digest algorithm comprises at least one of: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512.
8. The method of any of claims 2 to 4, further comprising:
and storing the certificate type, the current previous time, the summary information of the certificate number data and the block number of the target block into an intelligent contract.
9. The method of any of claims 1 to 4, wherein the voucher issuance system generates current expected voucher number data based on the voucher redemption parameters, comprising:
the voucher issuing system randomly generates 6 numbers among 0 to 60 natural numbers based on the voucher redemption parameter as expected voucher number data at the present time.
10. An information processing apparatus based on a block chain, comprising:
the acquisition module is used for acquiring the generated certificate number data of the current previous time generated after the deadline of the current previous-time certificate acquisition is reached from the certificate issuing system and generating the abstract information of the certificate number data by adopting a first information abstract algorithm;
the processing module is used for writing the summary information into a first block of a block chain and generating block header data of the first block according to the hash value of the summary information, wherein the first block is a block newly added to the block chain when a block output period is reached; according to the voucher obtaining deadline and the block-out period, determining a target block corresponding to the voucher cashing time at the previous time from blocks which sequentially appear on the block chain from the first block and then according to the block-out period; and during the arrival period of the current voucher cashing time, generating a current voucher cashing parameter according to the block header data of the target block, wherein the voucher cashing parameter is used for being provided for the voucher issuing system so that the voucher issuing system can generate the current expected voucher number data based on the voucher cashing parameter.
11. A computer device, comprising: a memory and a processor;
the memory for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps of the method of any of claims 1-9.
12. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 9.
CN202210316772.0A 2022-03-28 2022-03-28 Block chain-based information processing method, device, equipment and medium Pending CN115098878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210316772.0A CN115098878A (en) 2022-03-28 2022-03-28 Block chain-based information processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210316772.0A CN115098878A (en) 2022-03-28 2022-03-28 Block chain-based information processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115098878A true CN115098878A (en) 2022-09-23

Family

ID=83287776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210316772.0A Pending CN115098878A (en) 2022-03-28 2022-03-28 Block chain-based information processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115098878A (en)

Similar Documents

Publication Publication Date Title
US10560261B1 (en) Systems and techniques for capture of trusted media data
EP3607697B1 (en) Digital certificate management method, apparatus, and system
CA3057331C (en) Method and apparatus for processing transaction requests
WO2020211496A1 (en) Method, system and apparatus for verifying signature in blockchain ledger, and device
CN111767578B (en) Data inspection method, device and equipment
CN110597918B (en) Account management method, account management device and computer readable storage medium
CN110659907B (en) Method and device for executing intelligent contracts
CN112131298B (en) Data conversion method and device based on block chain
US11070379B2 (en) Signature verification for a blockchain ledger
WO2020199708A1 (en) Monitoring method, apparatus, and device for time service certificate generation request
TW202018567A (en) Privacy transaction method and apparatus based on blockchain, and application method and apparatus therefor
WO2020216204A1 (en) Information acquisition method and apparatus
CN113169866A (en) Techniques to prevent collusion using simultaneous key distribution
CN113971560A (en) Transaction processing method and device
CN111162990B (en) Method and equipment for presenting message notification
CN111669434A (en) Method, system, device and equipment for establishing communication group
CN110008739B (en) Block chain system based on group, group management method and device
CN114385647B (en) Alliance link-out block method, alliance link-out block device, electronic equipment and medium
CN115098878A (en) Block chain-based information processing method, device, equipment and medium
CN110825815A (en) Cloud note system information processing method, equipment and medium based on block chain
US20190251532A1 (en) Systems and methods for providing distributed licensing and subscription management
CN111598544A (en) Method and apparatus for processing information
CN111447216A (en) Method and apparatus for changing consensus node
CN111556160A (en) Data asset admission method and device
CN111292082A (en) Public key management method, device and equipment in block chain type account book

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