A distributed information authorization authentication method and system based on blockchain
By introducing efficient decentralized execution methods and data encryption mechanisms into blockchain technology, the problems of low efficiency and high resource usage in existing technologies are solved, and efficient, secure and private distributed information authorization authentication is achieved.
Patent Information
- Application Number
- CN202410368784.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The existing distributed information authorization and authentication technology based on blockchain is inefficient and consumes high resources, and cannot effectively solve the needs of large-scale data processing and verification.
By setting up efficient decentralized execution methods, including periodic table marking, broadcast and release of data, online block authorization and authentication, automatic query and storage, combined with random numbers and real-time computing functions, decentralized and encrypted storage of data is achieved , reduce computing resource usage.
It improves the efficiency and reliability of information authorization authentication, reduces the occupation of computing resources, realizes efficient query retrieval and storage, and ensures the security and privacy of data.
Smart Images

Figure CN118278053B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed information authorization, and more specifically, to a distributed information authorization authentication method and system based on blockchain. Background Art
[0002] The importance of distributed information authorization and authentication based on blockchain is mainly reflected in the following aspects: Decentralization and security: The core feature of blockchain technology is decentralization. It does not rely on any centralized third-party organization or server to maintain and manage data. This decentralized feature makes the information authorization and authentication process more secure, transparent and auditable. In addition, blockchain technology uses advanced encryption algorithms to ensure the integrity and security of data and prevent data from being tampered with or forged. Trust establishment: In the traditional information authorization and authentication process, it is usually necessary to rely on centralized third-party organizations to establish trust. However, this centralized trust model has the problems of single point failure and lack of trust. Distributed information authorization and authentication based on blockchain can establish trust in a decentralized network, eliminate dependence on centralized organizations, and thus improve the robustness and reliability of the system. Efficiency: Blockchain technology uses distributed ledgers and consensus mechanisms to make the information authorization and authentication process more efficient. In a distributed ledger, all participants have a complete copy of the ledger and can update and verify data in real time. The consensus mechanism ensures that all participants can reach a consensus and ensure the consistency and accuracy of the data. This efficiency enables distributed information authorization and authentication based on blockchain to cope with large-scale data processing and verification needs. Traceability: Every transaction on the blockchain is permanently recorded and publicly visible, which makes the information authorization and authentication process traceable. Once a problem or dispute occurs, the root cause and responsible person can be traced by viewing the transaction records on the blockchain. This traceability helps improve the transparency and credibility of the system.
[0003] Prior to the technology of the present invention, the existing technology was mainly based on a traditional blockchain method of generating hash values to perform online information calculations on the entire network, which was inefficient. Although decentralized authentication was achieved, the resource occupancy rate was very high. Summary of the invention
[0004] In view of the above problems, the present invention proposes a distributed information authorization and authentication method and system based on blockchain. By setting up an efficient decentralized execution method, the value of data can be seen, the rights and interests of data can be hidden, and the occupation of computing resources can be reduced.
[0005] According to a first aspect of an embodiment of the present invention, a distributed information authorization and authentication method based on blockchain is provided.
[0006] In one or more embodiments, preferably, the distributed information authorization authentication method based on blockchain includes:
[0007] Set the periodic table of data and set specific data tags according to the data;
[0008] Set up the method of broadcasting and publishing compliance data;
[0009] Complete data labeling and authorization authentication, and conduct online block authorization and authentication;
[0010] After obtaining the query requirements, automatically query the data;
[0011] After each online block authorization and authentication is completed, data storage is automatically performed;
[0012] Automatically query and store data based on data modification requirements.
[0013] In one or more embodiments, preferably, the periodic table of setting data performs specific data tag setting according to the data, specifically including:
[0014] Divide the data into regions and obtain the corresponding region numbers;
[0015] Use a string code to represent a certain industry in a region.
[0016] In one or more embodiments, preferably, the method of broadcasting and publishing the compliance data is set, specifically including:
[0017] Obtaining pre-judgmented compliance data;
[0018] The compliant data is published and broadcasted among all nodes in the entire network, and the broadcast is considered complete after each node receives the published data.
[0019] In one or more embodiments, preferably, the data marking and authorization authentication are completed, and online block authorization and authentication are performed, specifically including:
[0020] Set a corresponding periodic table, using the string code and the number of the corresponding area as the corresponding data mark in the periodic table;
[0021] At each stage, the terminal that currently completes the block information recording uses the first calculation formula to generate a random number and records the time when the random number is issued;
[0022] Calculate the i-th block analysis value on each terminal using the second calculation formula, and broadcast it in the network of all terminals;
[0023] Calculate the terminal number selected by the i-th block using the third calculation formula;
[0024] After determining the terminal number selected for the i-th block, the corresponding terminal stores the current data interaction information;
[0025] The corresponding real-time operation value is calculated using the fourth calculation formula according to the terminal number selected in the i-th block, and the dynamic encryption index is calculated using the fifth calculation formula, and the data is encrypted and stored in the corresponding terminal;
[0026] The first calculation formula is:
[0027] (S i , T i )=random(s)
[0028] Among them, S i is the i-th random number, T i is the generation time corresponding to the i-th random number, and random(s) is the random number generation function corresponding to the i-1-th block;
[0029] The second calculation formula is:
[0030] Y (i,j) =Fj(S i )
[0031] Wherein, Fj() is the preset real-time operation function of the jth terminal, Y (i,j) The analysis value of the i-th block calculated by the j-th terminal;
[0032] The third calculation formula is:
[0033] L i=argMin(Y (i,j) -100)
[0034] Among them, argMin() is to extract the (i,j) -100 is the function of the terminal number corresponding to the minimum value, Li is the terminal number selected for the i-th block;
[0035] The fourth calculation formula is:
[0036] Z=Min(Y (i,j) -100)
[0037] Among them, Z is the real-time calculation value;
[0038] The fifth calculation formula is:
[0039] CS=S i +T i
[0040] Among them, CS is the dynamic encryption index.
[0041] In one or more embodiments, preferably, automatically performing data query after obtaining the query requirement specifically includes:
[0042] Determine the time to be queried, and determine which time period it belongs to based on the time;
[0043] Issue query commands across the entire network based on time;
[0044] According to the query command, the dynamic encryption index is automatically obtained according to the fifth calculation formula, and the decryption is completed;
[0045] The decrypted data will be connected to the public platform according to the query requirements and respond to the query tasks.
[0046] In one or more embodiments, preferably, after completing each online block authorization and authentication, data storage is automatically performed, specifically including:
[0047] During the data storage process, the data is only stored locally. Local storage specifically refers to only the terminal where the data is provided;
[0048] After the data storage is completed, during the current data update or upload process, the data is backed up according to the terminal corresponding to the selected terminal number.
[0049] In one or more embodiments, preferably, the automatic query and storage setting according to the data modification requirements specifically includes:
[0050] When data needs to be modified, the time when the query is issued and the corresponding query data modification requirements;
[0051] After the query time is determined, the data is automatically decoded based on the dynamic encryption index to confirm the data source;
[0052] Check whether the corresponding query data modification requirement is allowed by the terminal where the data source is located. If allowed, update it and store it on this terminal.
[0053] According to a second aspect of an embodiment of the present invention, a distributed information authorization and authentication system based on blockchain is provided.
[0054] In one or more embodiments, preferably, the distributed information authorization and authentication system based on blockchain includes:
[0055] The data tag setting module is used to set the periodic table of data and perform specific data tag setting according to the data;
[0056] The data publishing and broadcasting module is used to set the broadcasting and publishing methods of compliant data;
[0057] The block authorization and authentication module is used to complete data marking and authorization authentication, and perform online block authorization and authentication;
[0058] Online query encryption module, used to automatically query data after obtaining query requirements;
[0059] The data storage module is used to automatically store data after completing each online block authorization and authentication;
[0060] The tamper control module is used to automatically query and store settings according to data modification requirements.
[0061] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0062] According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement any one of the methods described in the first aspect of the embodiment of the present invention.
[0063] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0064] In the solution of the present invention, by setting a decentralized execution mode, a highly efficient and reliable decentralized setting is achieved, thereby improving computing reliability.
[0065] In the solution of the present invention, efficient query retrieval and storage are achieved through the combination of randomization and determinism, so that data can be effectively used while being invisible.
[0066] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0067] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0069] Figure 1 It is a flowchart of a distributed information authorization and authentication method based on blockchain according to an embodiment of the present invention.
[0070] Figure 2 It is a periodic table of setting data in a distributed information authorization and authentication method based on blockchain in an embodiment of the present invention, and a flowchart of setting specific data tags according to the data.
[0071] Figure 3 It is a flowchart for setting a method for broadcasting and publishing compliant data in a distributed information authorization and authentication method based on blockchain according to an embodiment of the present invention.
[0072] Figure 4 It is a flowchart of completing data marking and authorization authentication and performing online block authorization and authentication in a distributed information authorization and authentication method based on blockchain in one embodiment of the present invention.
[0073] Figure 5 This is a flowchart of automatically performing data query after obtaining query requirements in a distributed information authorization and authentication method based on blockchain in an embodiment of the present invention.
[0074] Figure 6 This is a flowchart of automatically storing data after completing each online block authorization and authentication in a distributed information authorization and authentication method based on blockchain in one embodiment of the present invention.
[0075] Figure 7 This is a flowchart of automatic query and storage settings according to data modification requirements in a distributed information authorization and authentication method based on blockchain in an embodiment of the present invention.
[0076] Figure 8 It is a structural diagram of a distributed information authorization and authentication system based on blockchain according to an embodiment of the present invention.
[0077] Fig. 9 It is a structural diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0078] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0080] The importance of distributed information authorization and authentication based on blockchain is mainly reflected in the following aspects: Decentralization and security: The core feature of blockchain technology is decentralization. It does not rely on any centralized third-party organization or server to maintain and manage data. This decentralized feature makes the information authorization and authentication process more secure, transparent and auditable. In addition, blockchain technology uses advanced encryption algorithms to ensure the integrity and security of data and prevent data from being tampered with or forged. Trust establishment: In the traditional information authorization and authentication process, it is usually necessary to rely on centralized third-party organizations to establish trust. However, this centralized trust model has the problems of single point failure and lack of trust. Distributed information authorization and authentication based on blockchain can establish trust in a decentralized network, eliminate dependence on centralized organizations, and thus improve the robustness and reliability of the system. Efficiency: Blockchain technology uses distributed ledgers and consensus mechanisms to make the information authorization and authentication process more efficient. In a distributed ledger, all participants have a complete copy of the ledger and can update and verify data in real time. The consensus mechanism ensures that all participants can reach a consensus and ensure the consistency and accuracy of the data. This efficiency enables distributed information authorization and authentication based on blockchain to cope with large-scale data processing and verification needs. Traceability: Every transaction on the blockchain is permanently recorded and publicly visible, which makes the information authorization and authentication process traceable. Once a problem or dispute occurs, the root cause and responsible person can be traced by viewing the transaction records on the blockchain. This traceability helps improve the transparency and credibility of the system.
[0081] Prior to the technology of the present invention, the existing technology was mainly based on a traditional blockchain method of generating hash values to perform online information calculations on the entire network, which was inefficient. Although decentralized authentication was achieved, the resource occupancy rate was very high.
[0082] In the embodiment of the present invention, a distributed information authorization and authentication method and system based on blockchain are provided. The solution allows data value to be seen, data rights to be hidden, and reduces the occupation of computing resources by setting up an efficient decentralized execution method.
[0083] According to a first aspect of an embodiment of the present invention, a distributed information authorization and authentication method based on blockchain is provided.
[0084] Figure 1 It is a flowchart of a distributed information authorization and authentication method based on blockchain according to an embodiment of the present invention.
[0085] In one or more embodiments, preferably, the distributed information authorization authentication method based on blockchain includes:
[0086] S101, setting a periodic table of data, and setting specific data tags according to the data;
[0087] S102, setting a method for broadcasting and publishing compliance data;
[0088] S103, complete data marking and authorization authentication, and perform online block authorization and authentication;
[0089] S104, after obtaining the query demand, automatically perform data query;
[0090] S105, after completing each online block authorization and authentication, automatically store data;
[0091] S106. Automatically query and store settings according to data modification requirements.
[0092] In an embodiment of the present invention, in order to be able to have sufficient information markings on the data, the stored data is marked, and the marking information includes information such as the type of data. On this basis, the decentralized operation and decoding of the data are combined to achieve low-computational data broadcast publishing and deployment, and establish a lightweight data distributed information authorization and authentication method.
[0093] Figure 2 It is a periodic table of setting data in a distributed information authorization and authentication method based on blockchain in an embodiment of the present invention, and a flowchart of setting specific data tags according to the data.
[0094] like Figure 2As shown, in one or more embodiments, preferably, the periodic table of setting data performs specific data mark setting according to the data, specifically including:
[0095] S201, dividing the data into regions and obtaining numbers of corresponding regions;
[0096] S202. Use a string code to represent a certain industry in a region.
[0097] In an embodiment of the present invention, a periodic table of data is designed, the data is divided into regions, and the numbers of the corresponding regions are obtained. 2. A string of codes represents open data of considerable volume and quality in a certain industry in a region (if marked as sensitive data, it cannot be opened for commercial purposes). The identification of this group of data can be learned and automatically coded by AI, and can also be decoded by AI. The decoded description can clearly show people which region, industry, approximate quality, and approximate price range the group of data belongs to.
[0098] Figure 3 It is a flowchart for setting a method for broadcasting and publishing compliant data in a distributed information authorization and authentication method based on blockchain according to an embodiment of the present invention.
[0099] like Figure 3 As shown, in one or more embodiments, preferably, the method of broadcasting and publishing the compliance data is set, specifically including:
[0100] S301, obtaining pre-determined compliance data;
[0101] S302: Publish and broadcast the compliant data among all nodes in the entire network, and consider the broadcasting completed after each node receives the published data.
[0102] In the embodiment of the present invention, after obtaining the current compliant data, the data is published and broadcasted among all nodes in the entire network, so that after each node receives the above data, it is considered that the broadcast is completed.
[0103] Figure 4 It is a flowchart of completing data marking and authorization authentication and performing online block authorization and authentication in a distributed information authorization and authentication method based on blockchain in one embodiment of the present invention.
[0104] like Figure 4 As shown, in one or more embodiments, preferably, the completion of data marking and authorization authentication, and the online block authorization and authentication, specifically include:
[0105] S401, setting a corresponding periodic table, using the string code and the number of the corresponding area as the corresponding data mark in the periodic table;
[0106] S402, at each stage, the terminal that has currently completed the block information recording generates a random number using the first calculation formula and records the time when the random number is issued;
[0107] S403, using the second calculation formula to calculate the i-th block analysis value on each terminal, and broadcasting it in the network of all terminals;
[0108] S404, calculating the terminal number selected by the i-th block using the third calculation formula;
[0109] S405, after determining the terminal number selected for the i-th block, the corresponding terminal stores the current data interaction information;
[0110] S406, using the fourth calculation formula to calculate the corresponding real-time operation value according to the terminal number selected in the i-th block, and using the fifth calculation formula to calculate the dynamic encryption index, encrypting the data and storing it in the corresponding terminal;
[0111] The first calculation formula is:
[0112] (S i , T i )=random(s)
[0113] Among them, S i is the i-th random number, T i is the generation time corresponding to the i-th random number, and random(s) is the random number generation function corresponding to the i-1-th block;
[0114] The second calculation formula is:
[0115] Y (i,j) =Fj(S i )
[0116] Wherein, Fj() is the preset real-time operation function of the jth terminal, Y (i,j) The analysis value of the i-th block calculated by the j-th terminal;
[0117] The third calculation formula is:
[0118] L i=argMin(Y (i,j) -100)
[0119] Among them, argMin() is to extract the (i,j) -100 is the function of the terminal number corresponding to the minimum value, Li is the terminal number selected for the i-th block;
[0120] The fourth calculation formula is:
[0121] Z=Min(Y (i,j) -100)
[0122] Among them, Z is the real-time calculation value;
[0123] The fifth calculation formula is:
[0124] CS=S i +T i
[0125] Among them, CS is the dynamic encryption index.
[0126] In an embodiment of the present invention, data marking and authorization authentication are required before broadcasting and publishing compliant data; first, a corresponding periodic table is set, and the string code and the number of the corresponding area are connected as the corresponding data mark in the periodic table; secondly, at each stage, the terminal that currently completes the block information recording issues a random number, and records the time when the random number is issued; then, according to the second calculation formula, the calculation of the i-th block analysis value calculated by the j-th terminal is completed, and published to the entire network for comparison. When it is determined which terminal is closest to the current random number, it is considered that the corresponding terminal is used to store the data ledger at the current moment, as the authorized storage of the ledger corresponding to the current data information; when the corresponding ledger needs to be retrieved, it is automatically encrypted and extracted through the fifth calculation formula.
[0127] Figure 5 This is a flowchart of automatically performing data query after obtaining query requirements in a distributed information authorization and authentication method based on blockchain in an embodiment of the present invention.
[0128] like Figure 5 As shown, in one or more embodiments, preferably, after obtaining the query requirement, automatically performing data query specifically includes:
[0129] S501, determine the time to be queried, and determine which time period it belongs to according to the time;
[0130] S502, issuing a query command across the entire network according to the time;
[0131] S503, automatically obtaining a dynamic encryption index according to the fifth calculation formula according to the query command, and completing decryption;
[0132] S504: dock the decrypted data on the public platform according to the query requirements and respond to the query task.
[0133] In an embodiment of the present invention, when an online query is required, first, it is necessary to determine the time to be queried, determine which time period it belongs to based on the time, and then issue a query command on the entire network based on the time. The corresponding query command will be received on the corresponding terminal, and the dynamic encryption index will be automatically obtained according to the fifth calculation formula based on the query command, and the decryption will be completed. The corresponding data will be connected on the public platform, but the time data will not be sent to the terminal corresponding to the query requirement. However, it can provide feedback on whether the corresponding query is correct.
[0134] Figure 6 This is a flowchart of automatically storing data after completing each online block authorization and authentication in a distributed information authorization and authentication method based on blockchain in one embodiment of the present invention.
[0135] like Figure 6 As shown, in one or more embodiments, preferably, after completing each online block authorization and authentication, data storage is automatically performed, specifically including:
[0136] S601, during the data storage process, the data is only stored locally, and local storage specifically refers to only the terminal where the data is provided;
[0137] S602: After the data storage is completed, during the current data update or upload process, the data is backed up according to the terminal corresponding to the selected terminal number.
[0138] In an embodiment of the present invention, during the data storage process, the data is only stored locally and stored on the terminal corresponding to the selected terminal number. When the stored data is used, it will be called to the public platform, and the data on the public platform will be automatically destroyed after a preset time period.
[0139] Figure 7 This is a flowchart of automatic query and storage settings according to data modification requirements in a distributed information authorization and authentication method based on blockchain in an embodiment of the present invention.
[0140] like Figure 7 As shown, in one or more embodiments, preferably, the automatic query and storage setting according to the data modification requirements specifically includes:
[0141] S701, when data needs to be modified, the time of issuing the query and the corresponding query data modification requirements;
[0142] S702, after the query time is determined, the dynamic encryption index is automatically determined and decoded to confirm the data source;
[0143] S703: Check whether the corresponding query data modification requirement is allowed by the terminal where the data source is located. If allowed, update the data and store it on the terminal.
[0144] In the embodiment of the present invention, since the data is fed back to the public platform only when it is used, the corresponding permissions are automatically formed when the data is used, but the data is actually still invisible, and due to the modification of the current data, it can only be completed when the corresponding data is uploaded.
[0145] According to a second aspect of an embodiment of the present invention, a distributed information authorization and authentication system based on blockchain is provided.
[0146] Figure 8 It is a structural diagram of a distributed information authorization and authentication system based on blockchain according to an embodiment of the present invention.
[0147] In one or more embodiments, preferably, the distributed information authorization and authentication system based on blockchain includes:
[0148] The data mark setting module 801 is used to set the periodic table of data and perform specific data mark setting according to the data;
[0149] The data publishing and broadcasting module 802 is used to set the broadcasting and publishing methods of the compliance data;
[0150] The block authorization and authentication module 803 is used to complete data marking and authorization authentication, and perform online block authorization and authentication;
[0151] The online query encryption module 804 is used to automatically query data after obtaining the query requirements;
[0152] The data storage module 805 is used to automatically store data after completing each online block authorization and authentication;
[0153] The tampering control module 806 is used to automatically query and store settings according to data modification requirements.
[0154] In the embodiment of the present invention, a system suitable for different structures is realized through a series of modular designs. The system can achieve closed-loop, reliable and efficient execution through collection, analysis and control.
[0155] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0156] According to a fourth aspect of an embodiment of the present invention, an electronic device is provided. Fig. 9It is a structural diagram of an electronic device in one embodiment of the present invention. Fig. 9 The electronic device shown is a distributed information authorization and authentication device based on blockchain, which includes a general computer hardware structure, which includes at least a processor 901 and a memory 902. The processor 901 and the memory 902 are connected via a bus 903. The memory 902 is suitable for storing instructions or programs executable by the processor 901. The processor 901 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 901 executes the instructions stored in the memory 902 to execute the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 903 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 904 and the display device and the input / output (I / O) device 905. The input / output (I / O) device 905 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 905 is connected to the system through an input / output (I / O) controller 906.
[0157] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0158] In the solution of the present invention, by setting a decentralized execution mode, a highly efficient and reliable decentralized setting is achieved, thereby improving computing reliability.
[0159] In the solution of the present invention, efficient query retrieval and storage are achieved through the combination of randomization and determinism, so that data can be effectively used while being invisible.
[0160] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0161] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0164] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A distributed information authorization and authentication method based on blockchain, characterized in that: The method includes: Set the periodic table of data and set specific data tags according to the data; Set up the method of broadcasting and publishing compliance data; Complete data labeling and authorization authentication, and conduct online block authorization and authentication; After obtaining the query requirements, automatically query the data; After each online block authorization and authentication is completed, data storage is automatically performed; Automatically query and store data based on data modification requirements; The periodic table of setting data, performing specific data mark setting according to the data, specifically includes: Divide the data into regions and obtain the corresponding region numbers; Use a string code to represent a certain industry in a region; The completion of data marking and authorization authentication, and online block authorization and authentication, specifically includes: Set a corresponding periodic table, using the string code and the number of the corresponding area as the corresponding data mark in the periodic table; At each stage, the terminal that currently completes the block information recording uses the first calculation formula to generate a random number and records the time when the random number is issued; Calculate the i-th block analysis value on each terminal using the second calculation formula, and broadcast it in the network of all terminals; Calculate the terminal number selected by the i-th block using the third calculation formula; After determining the terminal number selected for the i-th block, the corresponding terminal stores the current data interaction information; The dynamic encryption index is calculated using the fifth calculation formula, and the data is encrypted and stored in the corresponding terminal; The first calculation formula is: (S i ,T i )=random(s) Among them, S i is the i-th random number, T i is the generation time corresponding to the i-th random number, and random(s) is the random number generation function corresponding to the i-1-th block; The second calculation formula is: Y (i,j) =Fj(S i ) Among them, Fj() is the preset real-time operation function of the jth terminal, Y (i,j) is the analysis value of the i-th block calculated on the j-th terminal; The third calculation formula is: <h2 style=";text-align:left;direction:ltr">Li=argMin(Y<h2 style=";text-align:left;direction:ltr"> (i,j) <h2 style=";text-align:left;direction:ltr"> -100) Among them, argMin() is to extract the (i,j) -100 is the function of the terminal number corresponding to the minimum value, Li is the terminal number selected for the i-th block; The fifth calculation formula is: CS=S i +T i Among them, CS is the dynamic encryption index.
2. A distributed information authorization and authentication method based on blockchain as claimed in claim 1, characterized in that: The method of broadcasting and publishing compliance data is set, specifically including: Obtaining pre-judgmented compliance data; The compliant data is published and broadcasted among all nodes in the entire network, and the broadcast is considered complete after each node receives the published data.
3. A distributed information authorization and authentication method based on blockchain as claimed in claim 1, characterized in that: After obtaining the query requirements, automatically querying the data includes: Determine the time to be queried, and determine which time period it belongs to based on the time; Issue query commands across the entire network based on time; According to the query command, the dynamic encryption index is automatically obtained according to the fifth calculation formula, and the decryption is completed; The decrypted data will be connected to the public platform according to the query requirements and respond to the query tasks.
4. A distributed information authorization and authentication method based on blockchain as claimed in claim 1, characterized in that: After each online block authorization and authentication is completed, data storage is automatically performed, specifically including: During the data storage process, the data is only stored locally. Local storage specifically means that the data is only stored on the terminal where the data is provided. After the data storage is completed, during the current data update or upload process, the data is backed up according to the terminal corresponding to the selected terminal number.
5. A distributed information authorization and authentication method based on blockchain as claimed in claim 1, characterized in that: The automatic query and storage setting according to the data modification requirements specifically includes: When data needs to be modified, the time when the query is issued and the corresponding query data modification requirements; After the query time is determined, the dynamic encryption index is automatically obtained according to the fifth calculation formula, and the decryption is completed to confirm the data source; Check whether the corresponding query data modification requirement is allowed by the terminal where the data source is located. If allowed, update it and store it on this terminal.
6. A distributed information authorization and authentication system based on blockchain, characterized in that: The system is used to implement the method according to any one of claims 1 to 5, and the system comprises: The data tag setting module is used to set the periodic table of data and perform specific data tag setting according to the data; Data publishing and broadcasting module, used to set the broadcasting and publishing methods of compliance data; The block authorization and authentication module is used to complete data marking and authorization authentication, and perform online block authorization and authentication; Online query encryption module, used to automatically query data after obtaining query requirements; The data storage module is used to automatically store data after completing each online block authorization and authentication; The tamper control module is used to automatically query and store settings according to data modification requirements.
7. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 5 when executed by a processor.
8. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-5.
