Evidence processing method, device and electronic device based on alliance chain
By creating the current block and recording the key value in the alliance chain, the problem of low block retrieval efficiency is solved, fast query and efficient storage of evidence information are realized, and the efficiency of the litigation process is improved.
Patent Information
- Application Number
- CN202111613408.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-27
AI Technical Summary
The existing block retrieval mechanism is inefficient during the litigation process, resulting in cumbersome evidence information retrieval, easily causing evidence loss, and affecting litigation efficiency and success rate.
Create the current block in the alliance chain, generate the initial key value based on the certificate holder information, obtain the first block key that matches the current block, and record it in the current block to achieve certificate retention Encrypted storage and fast retrieval of user information.
By associating all relevant blocks of the same certificate holder, the certificate holder does not need to download the entire consortium chain, but only needs to provide the key when the certificate was recently deposited to quickly query the relevant blocks, improving the preservation of evidence. and retrieval efficiency.
Smart Images

Figure CN114338719B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to an evidence processing method, device and electronic equipment based on alliance chain. Background Art
[0002] Electronic evidence storage is the process of storing electronic data evidence information in a secure and stable database so that it can be called upon when needed. It also uses specific technologies to record this process through data to prove the status of electronic data at a specific time, and to prove that the electronic data has not been tampered with after storage.
[0003] With the advent of the big data era, electronic evidence is increasingly being brought to court as evidence in judicial disputes. Blockchain technology, with its encryption, immutability, irrevocability, and multi-party participation, has become a key factor in confirming the legal validity of electronic evidence. The judicial alliance chain, led by courts at all levels, connecting notary offices, CA (Certification Authority) / RA (Registration Authority), judicial appraisal centers and other institutions, has become the main technology for effective judicial evidence. However, with the randomness of various cases, we cannot predict which evidence is needed for litigation, so we need to open all nodes to allow evidence information to be uploaded to the chain. At this time, the number of data and nodes is huge, and the evidence information is irregularly distributed in different blocks. It is a very cumbersome task to retrieve and record blocks, and the litigation process is relatively compact. If there is no mechanism to quickly query the evidence information, it will affect the efficiency and even the success rate of the litigation.
[0004] The existing block retrieval mechanism is to store the user address in the block name file when creating a block, and establish an address-based table index mechanism. This block retrieval mechanism needs to parse the blockchain one by one during retrieval, and the retrieval efficiency is low. It is not applicable to scenarios such as litigation processes that have certain time requirements. In addition, the evidence holder needs to save a lot of block information, which can easily cause the loss of evidence. Summary of the invention
[0005] The purpose of the present invention is to provide an evidence processing method, device and electronic device based on alliance chain to facilitate the preservation and retrieval of evidence.
[0006] In a first aspect, an embodiment of the present invention provides an evidence processing method based on a consortium chain, including:
[0007] When receiving a proof request uploaded by a proof holder, a current block is created in the alliance chain; wherein the proof request includes the proof holder information and the evidence information;
[0008] Encrypting and storing the evidence holder information and the evidence information in the current block;
[0009] Generate an initial key value of the current block according to the evidence holder information and the evidence information;
[0010] Based on the initial key value, obtain the key of a first block matching the current block from a block before the current block in the alliance chain, where the first block is the block closest to the current block and whose certificate holder is the same as that of the current block;
[0011] The key of the first block and the initial key value are recorded in the current block as the key of the current block.
[0012] Furthermore, before obtaining the key of a first block matching the current block from a block before the current block in the alliance chain based on the initial key value, the method further includes:
[0013] Determine whether the evidence storage request is uploaded by the evidence holder for the first time;
[0014] When the judgment result is that the evidence request is not the first upload by the evidence holder, the step of obtaining the key of the first block matching the current block from the block before the current block in the alliance chain based on the initial key value is executed.
[0015] Furthermore, the determining whether the evidence storage request is uploaded by the evidence holder for the first time includes:
[0016] Check whether the evidence storage request carries a first upload flag;
[0017] When the evidence storage request does not carry the first upload mark, it is determined that the evidence storage request is not the first upload by the evidence holder.
[0018] Furthermore, the method further comprises:
[0019] When the result of determination is that the evidence storage request is the first upload by the evidence holder, the initial key value is recorded in the current block as the key of the current block.
[0020] Furthermore, the obtaining, based on the initial key value, from a block in the alliance chain that is located before the current block, a key of a first block that matches the current block includes:
[0021] According to the initial key value, the blocks before the current block in the alliance chain are decoded and verified in order of distance from the current block, and the block that passes the first verification is determined as the first block;
[0022] Obtain the key of the first block.
[0023] Furthermore, after recording the key of the first block and the initial key value as the key of the current block in the current block, the method further includes:
[0024] Obtaining an evidence retrieval request to determine a target key to be retrieved, wherein the target key includes at least one key value;
[0025] According to the target key, a target number of second blocks are retrieved from the alliance chain; wherein the target number is equal to the number of key values in the target key;
[0026] The evidence information stored in each of the second blocks is determined as the target evidence information corresponding to the evidence retrieval request.
[0027] Further, the retrieving a target number of second blocks from the alliance chain according to the target key includes:
[0028] According to the target key, each block in the alliance chain is decoded and verified in order from near to far distance from the most recently created block in the alliance chain until the number of second blocks that pass the verification is equal to the number of key values in the target key.
[0029] In a second aspect, an embodiment of the present invention further provides an evidence processing device based on a consortium chain, comprising:
[0030] A creation module, used to create a current block in the alliance chain when receiving a proof request uploaded by a proof holder; wherein the proof request includes the proof holder information and the evidence information;
[0031] A storage module, used to encrypt and store the evidence holder information and the evidence information in the current block;
[0032] A generation module, used to generate an initial key value of the current block according to the evidence holder information and the evidence information;
[0033] an acquisition module, configured to acquire, based on the initial key value, a key of a first block that matches the current block from a block before the current block in the alliance chain, wherein the first block is a block that is closest to the current block and whose evidence holder is the same as that of the current block;
[0034] A recording module is used to record the key of the first block and the initial key value in the current block as the key of the current block.
[0035] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method of the first aspect when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect is executed.
[0037] The evidence processing method, device and electronic device based on alliance chain provided by the embodiments of the present invention create a current block in the alliance chain when receiving an evidence request uploaded by an evidence holder; wherein the evidence request includes evidence holder information and evidence information; the evidence holder information and the evidence information are encrypted and stored in the current block; based on the evidence holder information and the evidence information, an initial key value of the current block is generated; based on the initial key value, a key of the first block matching the current block is obtained from the block before the current block in the alliance chain, the first block being the block closest to the current block and the evidence holder being the same as the evidence holder of the current block; the key of the first block and the initial key value are recorded in the current block as the key of the current block. In this way, when the evidence holder deposits evidence, the newly generated block will record the keys of all blocks previously deposited by the evidence holder, thereby associating all related blocks of the same evidence holder. The evidence holder does not need to download the entire alliance chain, but only needs to provide the key recorded when the evidence was deposited most recently to quickly query all blocks related to the evidence holder. The retrieval efficiency is high, which facilitates the preservation and retrieval of evidence. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flowchart of an evidence processing method based on a consortium chain provided in an embodiment of the present invention;
[0040] Figure 2 A flowchart of another evidence processing method based on alliance chain provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of creating a block in a consortium chain provided by an embodiment of the present invention;
[0042] Figure 4 A schematic diagram of a decoding verification provided by an embodiment of the present invention;
[0043] Figure 5 A schematic diagram of a recording key provided by an embodiment of the present invention;
[0044] Figure 6 A schematic diagram of a block search provided by an embodiment of the present invention;
[0045] Figure 7 A schematic diagram of the structure of an evidence processing device based on a consortium chain provided in an embodiment of the present invention;
[0046] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] The block information of the same person (or organization) in the judicial alliance chain is scattered, resulting in low retrieval efficiency, and individuals (or organizations) need to save a lot of block information, which easily leads to loss of evidence. For the compact litigation process, it will bring many inconveniences. The embodiment of the present invention provides an evidence processing method, device and electronic device based on the alliance chain. For individuals (institutions), there is no need to download the entire alliance chain, only identity verification is required to query all relevant blocks, which provides convenience for the preservation and query (retrieval) of electronic evidence.
[0049] To facilitate understanding of this embodiment, a method for processing evidence based on a consortium chain disclosed in an embodiment of the present invention is first introduced in detail.
[0050] The embodiment of the present invention provides a method for evidence processing based on a consortium chain, which can be executed by an electronic device with data processing capabilities. Figure 1 The flowchart of a method for evidence processing based on a consortium chain is shown, and the method mainly includes the following steps S102 to S110:
[0051] Step S102, when receiving a proof request uploaded by a proof holder, a current block is created in the alliance chain; wherein the proof request includes the proof holder information and evidence information.
[0052] The evidence holder may be an individual or an organization, the evidence holder information may be but is not limited to an identity document (ID), and the evidence information may be but is not limited to bill forms, contract documents and other information.
[0053] Step S104, encrypt and store the evidence holder information and evidence information in the current block.
[0054] After the validity of the evidence holder information and evidence information is verified, it will be uploaded to the chain and then encrypted and stored in the newly created block. The specific method of encrypted storage can refer to the relevant existing technology and will not be repeated here.
[0055] Step S106, generating the initial key value of the current block according to the evidence holder information and the evidence information.
[0056] The specific method of generating the initial key can refer to the relevant existing technology and will not be repeated here.
[0057] Step S108, based on the initial key value, obtain the key of the first block that matches the current block from the block before the current block in the alliance chain, where the first block is the block closest to the current block and whose evidence holder is the same as the evidence holder of the current block.
[0058] Step S110 , recording the key of the first block and the initial key value as the key of the current block in the current block.
[0059] This completes the evidence storage process.
[0060] By applying the evidence processing method based on the alliance chain provided by the embodiment of the present invention, when the evidence holder stores evidence, the newly generated block will record the keys of all blocks previously stored by the evidence holder, thereby associating all related blocks of the same evidence holder. The evidence holder does not need to download the entire alliance chain, but only needs to provide the key recorded when the evidence was most recently stored to quickly query all blocks related to the evidence holder, which has high retrieval efficiency and facilitates the preservation and retrieval of evidence.
[0061] Considering that when the evidence holder uploads the evidence request for the first time, there is no first block matching the current block, in this embodiment, before executing step S108, it is first determined whether the evidence request is the first upload by the evidence holder; when the determination result is that the evidence request is not the first upload by the evidence holder, step S108 is executed, and when the determination result is that the evidence request is the first upload by the evidence holder, the initial key value is directly recorded as the key of the current block in the current block. This improves the efficiency of evidence storage.
[0062] In some possible embodiments, it is possible to determine whether the evidence storage request is the first upload by the evidence holder in the following manner: check whether the evidence storage request carries a first upload mark; when the evidence storage request does not carry a first upload mark, it is determined that the evidence storage request is not the first upload by the evidence holder; conversely, when the evidence storage request carries a first upload mark, it is determined that the evidence storage request is the first upload by the evidence holder. The first upload mark can be added to the evidence storage request by the user before uploading the evidence storage request by checking the first upload icon on the page. This judgment method is simple and quick.
[0063] In some possible embodiments, the above step S108 can be implemented through the following process: according to the initial key value, the blocks before the current block in the alliance chain are decoded and verified in order from near to far distance from the current block, and the block that passes the first verification is determined as the first block; the key of the first block is obtained.
[0064] Since the key of each block is related to the information of the certificate holder, the keys of each block related to the same certificate holder have a certain degree of similarity. In this embodiment, the previous block (i.e., the block before the current block in the alliance chain) is traversed and decoded by the initial key value of the current block. When the key of a traversed block matches or is the same as the initial key value of the current block, the verification is passed, and this block is the first block, and no further traversal is performed.
[0065] Furthermore, the above method also includes an evidence retrieval process, and the evidence retrieval process is specifically as follows: obtaining an evidence retrieval request to determine the target key to be retrieved, the target key includes at least one key value, that is, the target key can be a key string composed of at least one key value; according to the target key, retrieving a target number of second blocks from the alliance chain (obtaining the address of each second block); wherein the target number is equal to the number of key values in the target key; obtaining the evidence information stored in each second block according to the address of each second block, and determining the evidence information stored in each second block as the target evidence information corresponding to the evidence retrieval request.
[0066] In some possible embodiments, the second block can be retrieved through the following process: according to the target key, each block in the alliance chain is decoded and verified in order from the nearest to the farthest distance from the most recently created block in the alliance chain, until the number of second blocks that have passed the verification is equal to the number of key values in the target key.
[0067] In the evidence processing method based on the alliance chain provided by the embodiment of the present invention, after an individual or organization submits a proof request to the alliance chain, a block will be created to encrypt and store the proof holder information and the evidence information. After the proof holder information and the evidence information are integrated and encrypted, a KEY value (initial key value) will be generated; the block includes a detection bit, which decodes and verifies the previous block, records the KEY (key) of the previous block that passed the first verification, and integrates it with the KEY value of the current block to update the KEY of the current block; when there is a need for evidence retrieval, the proof holder only needs to provide the KEY, verify the KEY, obtain the block address, and retrieve all blocks from the alliance chain through the address to achieve the purpose of fast retrieval.
[0068] For ease of understanding, the embodiment of the present invention also provides another evidence processing method based on the alliance chain, such as Figure 2 As shown, the method includes:
[0069] When storing evidence, execute steps S202 to S206.
[0070] Step S202: An individual (or organization) provides electronic evidence to a judicial authority. The electronic evidence includes information about the holder of the evidence and evidence information.
[0071] In step S204, the judicial authority encrypts the electronic evidence and stores it on the chain into the current block created in the alliance chain.
[0072] Step S206, the current block generates a KEY value, decodes and verifies the previous block through the detection bit, and records the KEY of the previous block that passes the first verification and the KEY value generated by the current block in the current block at the same time.
[0073] Evidence can be stored multiple times through steps S202 to S206, and the process of steps S202 to S206 is completed in the non-retrieval stage.
[0074] When litigation occurs, the search phase is entered and steps S208 to S210 are executed.
[0075] Step S208: The individual (or organization) provides the current KEY to the judicial authority.
[0076] In step S210, the judicial authority uses the provided KEY to find all evidence blocks belonging to the same individual (or organization) in the alliance chain.
[0077] For ease of understanding, the embodiments of the present invention also refer to Figures 3 to 6 The above method is introduced as an example, as follows:
[0078] (1) Individuals submit information such as identity ID, bill forms, contract documents, etc. to the court. The court, notary office, CA / RA, judicial appraisal center and other institutions verify the validity of this electronic evidence and upload it to the chain. The alliance chain will create a Figure 3 The block Block#51655 shown is a KEY that will be generated by Block#1365.
[0079] (2) Figure 4 As shown, the detection bit in Block#1365 decodes and verifies the previous block. Since it is the first time for an individual to upload electronic evidence, there is no verified block in the previous block, so the KEY generated by block Block#1365 is recorded in Block#1365.
[0080] (3) Figure 5 As shown, when an individual submits electronic evidence to the court again, a block Block#112251 will be created again according to step (1), and a KEY1 will be generated for the current block Block#112251; the current block will decode and authenticate the previous block according to step (2), and the KEY will be decoded at Block#51655, indicating that the verification is successful, the KEY will be recorded, and the KEY and KEY1 will be recorded together in the current block Block#112251.
[0081] (4) Figure 6 As shown, after a period of time, the individual already owns n blocks in this alliance chain. The individual and the court also hold a string of KEY values. When a lawsuit needs to arise, iterative verification is performed in the alliance chain based on this serial KEY value, and all the evidence blocks of the individual can be quickly retrieved.
[0082] Corresponding to the above-mentioned evidence processing method based on alliance chain, the embodiment of the present invention also provides an evidence processing device based on alliance chain, see Figure 7 The schematic diagram of the structure of a consortium chain-based evidence processing device is shown, and the device includes:
[0083] The creation module 71 is used to create a current block in the alliance chain when receiving a proof request uploaded by the proof holder; wherein the proof request includes the proof holder information and the evidence information;
[0084] Storage module 72, used to encrypt and store the evidence holder information and evidence information in the current block;
[0085] A generation module 73, used to generate an initial key value of the current block according to the evidence holder information and the evidence information;
[0086] An acquisition module 74 is configured to acquire, based on the initial key value, a key of a first block that matches the current block from a block that is located before the current block in the alliance chain, wherein the first block is a block that is closest to the current block and whose evidence holder is the same as the evidence holder of the current block;
[0087] The recording module 75 is used to record the key and the initial key value of the first block as the key of the current block in the current block.
[0088] The evidence processing device based on the alliance chain provided by the embodiment of the present invention creates a current block in the alliance chain when receiving an evidence request uploaded by an evidence holder; wherein the evidence request includes evidence holder information and evidence information; the evidence holder information and the evidence information are encrypted and stored in the current block; based on the evidence holder information and the evidence information, an initial key value of the current block is generated; based on the initial key value, a key of the first block matching the current block is obtained from the block before the current block in the alliance chain, the first block being the block closest to the current block and the evidence holder being the same as the evidence holder of the current block; the key of the first block and the initial key value are recorded in the current block as the key of the current block. In this way, when the evidence holder deposits evidence, the newly generated block will record the keys of all blocks previously deposited by the evidence holder, thereby associating all related blocks of the same evidence holder. The evidence holder does not need to download the entire alliance chain, but only needs to provide the key recorded when the evidence was deposited most recently to quickly query all blocks related to the evidence holder. The retrieval efficiency is high, which facilitates the preservation and retrieval of evidence.
[0089] Furthermore, the above-mentioned device also includes a judgment module connected to the above-mentioned acquisition module 74 and recording module 75 respectively, and the judgment module is used to judge whether the evidence request is uploaded for the first time by the evidence holder. The acquisition module 74 is also used to obtain the key of the first block matching the current block from the block before the current block in the alliance chain based on the initial key value when the judgment result of the judgment module is that the evidence request is not uploaded for the first time by the evidence holder. The recording module 75 is also used to record the initial key value as the key of the current block in the current block when the judgment result of the judgment module is that the evidence request is uploaded for the first time by the evidence holder.
[0090] Furthermore, the above-mentioned judgment module is specifically used to: check whether the evidence request carries the first upload mark; when the evidence request does not carry the first upload mark, determine that the evidence request is not the first upload by the evidence holder.
[0091] Furthermore, the acquisition module 74 is specifically used to: decode and verify the blocks before the current block in the alliance chain in order of distance from the current block according to the initial key value, and determine the block that passes the first verification as the first block; obtain the key of the first block.
[0092] Furthermore, the above-mentioned device also includes a retrieval module, which is used to: obtain an evidence retrieval request to determine a target key to be retrieved, the target key includes at least one key value; according to the target key, retrieve a target number of second blocks from the alliance chain; wherein the target number is equal to the number of key values in the target key; and determine the evidence information stored in each second block as the target evidence information corresponding to the evidence retrieval request.
[0093] Furthermore, the above-mentioned retrieval module is specifically used to: according to the target key, in order of distance from the most recently created block in the alliance chain, decode and verify each block in the alliance chain in turn, until the number of second blocks that have passed the verification is equal to the number of key values in the target key.
[0094] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0095] See also Figure 8 An embodiment of the present invention further provides an electronic device 100, comprising: a processor 80, a memory 81, a bus 82 and a communication interface 83, wherein the processor 80, the communication interface 83 and the memory 81 are connected via the bus 82; the processor 80 is used to execute an executable module stored in the memory 81, such as a computer program.
[0096] The memory 81 may include a random access memory (RAM) and may also include a non-volatile memory (NVM), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 83 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0097] The bus 82 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0098] Among them, the memory 81 is used to store programs, and the processor 80 executes the program after receiving the execution instruction. The method executed by the process definition device disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 80 or implemented by the processor 80.
[0099] The processor 80 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 80. The above processor 80 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 81, and the processor 80 reads the information in the memory 81 and completes the steps of the above method in combination with its hardware.
[0100] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the evidence processing method based on the alliance chain described in the previous method embodiment is executed. The computer-readable storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.
[0101] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0102] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for evidence processing based on alliance chain, characterized in that: include: When receiving a proof request uploaded by a proof holder, a current block is created in the alliance chain; wherein the proof request includes the proof holder information and the evidence information; Encrypting and storing the evidence holder information and the evidence information in the current block; Generate an initial key value of the current block according to the evidence holder information and the evidence information; Based on the initial key value, obtain the key of the first block that matches the current block from the block before the current block in the alliance chain, the first block being the block closest to the current block and having the same certificate holder as the current block; perform traversal decoding operation on the previous block using the initial key value of the current block, and when the key of a traversed block matches or is identical to the initial key value of the current block in similarity, verification is passed, and this block is the first block; The key of the first block and the initial key value are recorded in the current block as the key of the current block.
2. The evidence processing method based on alliance chain according to claim 1 is characterized in that: Before obtaining a key of a first block matching the current block from a block preceding the current block in the alliance chain based on the initial key value, the method further includes: Determine whether the evidence storage request is uploaded by the evidence holder for the first time; When the judgment result is that the evidence request is not the first upload by the evidence holder, the step of obtaining the key of the first block matching the current block from the block before the current block in the alliance chain based on the initial key value is executed.
3. The evidence processing method based on alliance chain according to claim 2 is characterized in that: The determining whether the evidence storage request is uploaded by the evidence holder for the first time includes: Check whether the evidence storage request carries a first upload flag; When the evidence storage request does not carry the first upload mark, it is determined that the evidence storage request is not the first upload by the evidence holder.
4. The evidence processing method based on alliance chain according to claim 2 is characterized in that: The method further comprises: When the result of determination is that the evidence storage request is the first upload by the evidence holder, the initial key value is recorded in the current block as the key of the current block.
5. The evidence processing method based on alliance chain according to claim 1 is characterized in that: The obtaining, based on the initial key value, from a block in the alliance chain that is located before the current block, a key of a first block that matches the current block, comprises: According to the initial key value, the blocks before the current block in the alliance chain are decoded and verified in order of distance from the current block, and the block that passes the first verification is determined as the first block; Obtain the key of the first block.
6. The evidence processing method based on alliance chain according to claim 1 is characterized in that: After recording the key of the first block and the initial key value as the key of the current block in the current block, the method further includes: Obtaining an evidence retrieval request to determine a target key to be retrieved, wherein the target key includes at least one key value; According to the target key, a target number of second blocks are retrieved from the alliance chain; wherein the target number is equal to the number of key values in the target key; The evidence information stored in each of the second blocks is determined as the target evidence information corresponding to the evidence retrieval request.
7. The evidence processing method based on alliance chain according to claim 6 is characterized in that: The retrieving a target number of second blocks from the alliance chain according to the target key includes: According to the target key, each block in the alliance chain is decoded and verified in order from near to far distance from the most recently created block in the alliance chain until the number of second blocks that pass the verification is equal to the number of key values in the target key.
8. An evidence processing device based on alliance chain, characterized in that: include: A creation module, used to create a current block in the alliance chain when receiving a proof request uploaded by a proof holder; wherein the proof request includes the proof holder information and the evidence information; A storage module, used to encrypt and store the evidence holder information and the evidence information in the current block; A generation module, used to generate an initial key value of the current block according to the evidence holder information and the evidence information; An acquisition module is used to acquire the key of a first block matching the current block from a block before the current block in the alliance chain based on the initial key value, wherein the first block is a block closest to the current block and whose evidence holder is the same as the evidence holder of the current block; a traversal decoding operation is performed on the previous block by using the initial key value of the current block, and when the key of a traversed block matches or is identical to the initial key value of the current block in similarity, verification is passed, and the block is the first block; A recording module is used to record the key of the first block and the initial key value in the current block as the key of the current block.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is performed.
