CN110532290B - Information verification device, method and storage medium based on block chain - Google Patents
Information verification device, method and storage medium based on block chain Download PDFInfo
- Publication number
- CN110532290B CN110532290B CN201910675873.5A CN201910675873A CN110532290B CN 110532290 B CN110532290 B CN 110532290B CN 201910675873 A CN201910675873 A CN 201910675873A CN 110532290 B CN110532290 B CN 110532290B
- Authority
- CN
- China
- Prior art keywords
- information
- verification
- participant
- verification result
- decoded
- 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.)
- Active
Links
- 238000012795 verification Methods 0.000 title claims abstract description 262
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000005516 engineering process Methods 0.000 claims abstract description 18
- 238000004422 calculation algorithm Methods 0.000 claims description 36
- 239000003999 initiator Substances 0.000 description 10
- 238000010586 diagram Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000002356 single layer Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Storage Device Security (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention relates to a blockchain technology, and discloses a blockchain-based information verification device, a blockchain-based information verification method and a storage medium, wherein the blockchain-based information verification method comprises the following steps: acquiring the coding information of a first participant, decoding the coding information of the first participant and the coding information of a second participant after uploading the coding information to a blockchain, performing contrast verification on the decoded information, and acquiring a contrast verification result after verification is passed; after uploading the encoded information of the first intermediate party, decoding the encoded information of the first intermediate party, and performing recursion verification on the decoded information and the comparison verification result to obtain a first recursion verification result; carrying out mixed verification on the decoded information and the coded information of the first participant and the second participant after decoding respectively to obtain a first mixed verification result; and if the first recursion verification result or the first mixed verification result is that the verification is not passed, generating a warning message and feeding back. The invention can improve the accuracy and the safety of the information.
Description
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain-based information verification device, method, and storage medium.
Background
In conventional information systems, each party typically holds information about its own transaction in an internal ERP system. In the mode, in the transaction in which multiple parties participate together, the information of each party is split, if one party is wrong or maliciously tampered during input, the information is difficult to discover in time, and in the transaction in which the multiple parties participate together, the accuracy and the safety of the information of each party are required to be improved.
Disclosure of Invention
The invention aims to provide a block chain-based information verification device, a block chain-based information verification method and a storage medium, aiming at improving the accuracy and the safety of information.
In order to achieve the above object, the present invention provides a blockchain-based information verification device, including a memory and a processor connected to the memory, wherein a verification program capable of running on the processor is stored in the memory, and the verification program when executed by the processor realizes the following steps:
acquiring the coding information of a first participant in a blockchain, after a second participant uploads the coding information of a second participant to the blockchain based on the coding information of the first participant, adopting a preset decoding algorithm to decode the coding information of the first participant and the coding information of the second participant, comparing and verifying the decoded coding information of the first participant and the decoded coding information of the second participant, and acquiring a comparison verification result after verification is passed;
after a first intermediate party uploads the encoded information of the first intermediate party to a blockchain according to a participation sequence and based on the encoded information of the second party, decoding the encoded information of the first intermediate party by adopting the decoding algorithm, and performing recursion verification on the decoded encoded information of the first intermediate party and the comparison verification result to obtain a first recursion verification result;
carrying out mixed verification on the decoded encoded information of the first intermediate party, the decoded encoded information of the first participant and the decoded encoded information of the second participant respectively to obtain a first mixed verification result;
and if the first recursion verification result or the first mixed verification result is that verification fails, generating a warning message and feeding back.
Preferably, when the verification program is executed by the processor, the following steps are further implemented:
if the first recursion verification result and the first mixed verification result are verification passing, uploading the coding information of the Nth intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant in the Nth intermediate party, decoding the coding information of the Nth intermediate party by adopting the decoding algorithm, and recursion verifying the decoded coding information of the Nth intermediate party and the (N-1) recursion verification result to obtain an Nth recursion verification result, wherein N is an integer greater than or equal to 2;
the decoded coding information of the Nth intermediate party is respectively mixed with the decoded coding information of the first participant, the decoded coding information of the second participant and the decoded coding information of the first to (N-1) th intermediate parties to obtain an Nth mixed verification result;
and if the Nth recursion verification result or the Nth mixed verification result is that verification fails, generating a warning message and feeding back.
Preferably, when the verification program is executed by the processor, the following steps are further implemented:
and if the Nth recursion verification result and the Nth mixed verification result are verification passing, classifying the decoded encoded information of the first participant or the decoded encoded information of the second participant according to a plurality of classifying factors in a preset standard so as to classify the information with the same classifying factors into the same set and classify the information with different classifying factors into different sets.
Preferably, the predetermined decoding algorithm is a natural language-based dummy code decryption algorithm.
In order to achieve the above object, the present invention further provides a blockchain-based information verification method, including:
s1, acquiring coding information of a first participant in a blockchain, after a second participant uploads the coding information of the second participant to the blockchain based on the coding information of the first participant, adopting a preset decoding algorithm to decode the coding information of the first participant and the coding information of the second participant, comparing and verifying the decoded coding information of the first participant and the decoded coding information of the second participant, and acquiring a comparison verification result after verification is passed;
s2, after the first intermediate party uploads the encoded information of the first intermediate party to a blockchain according to the participation sequence and based on the encoded information of the second participant, decoding the encoded information of the first intermediate party by adopting the decoding algorithm, and performing recursion verification on the decoded encoded information of the first intermediate party and the comparison verification result to obtain a first recursion verification result;
s3, carrying out mixed verification on the decoded encoded information of the first intermediate party and the decoded encoded information of the first participant and the decoded encoded information of the second participant respectively to obtain a first mixed verification result;
and S4, if the first recursion verification result or the first mixed verification result is that verification fails, generating a warning message and feeding back.
Preferably, after step S3, further comprising:
if the first recursion verification result and the first mixed verification result are verification passing, uploading the coding information of the Nth intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant in the Nth intermediate party, decoding the coding information of the Nth intermediate party by adopting the decoding algorithm, and recursion verifying the decoded coding information of the Nth intermediate party and the (N-1) recursion verification result to obtain an Nth recursion verification result, wherein N is an integer greater than or equal to 2;
the decoded coding information of the Nth intermediate party is respectively mixed with the decoded coding information of the first participant, the decoded coding information of the second participant and the decoded coding information of the first to (N-1) th intermediate parties to obtain an Nth mixed verification result;
and if the Nth recursion verification result or the Nth mixed verification result is that verification fails, generating a warning message and feeding back.
Preferably, the information verification method based on the blockchain further comprises the following steps:
and if the Nth recursion verification result and the Nth mixed verification result are verification passing, classifying the decoded encoded information of the first participant or the decoded encoded information of the second participant according to a plurality of classifying factors in a preset standard so as to classify the information with the same classifying factors into the same set and classify the information with different classifying factors into different sets.
Preferably, the predetermined decoding algorithm is a natural language-based dummy code decryption algorithm.
Preferably, before step S1, the method further includes: and the coding information of the first participant, the coding information of the second participant and the coding information of the first intermediate party are encrypted by adopting a preset block chain encryption technology before uploading the block chain.
The present invention also provides a computer readable storage medium having stored thereon an authentication program which when executed by a processor implements the steps of the blockchain-based information authentication method described above.
The beneficial effects of the invention are as follows: in the invention, in the business participated by multiple parties, the first party and the second party encode information and upload the information into the blockchain, the information in the blockchain is decoded and can be subjected to comparison verification to obtain a comparison verification result, the subsequent intermediate party uploads the own encoded information according to the participation sequence and based on the encoded information of the second party, and after the information is decoded in the blockchain, the recursion verification and the mixed verification of the information can be performed, and warning information is generated and fed back for the recursion verification or the mixed verification which does not pass. The invention combines the distributed account book of the block chain and the verification of the information to form a novel information system, breaks the limit of the existing information system, carries out recursion verification and mixed verification on the information in the block chain, can ensure the consistency of the information of all parties, prevents the information from being falsified or maliciously tampered, and improves the accuracy and the safety of the information.
Drawings
FIG. 1 is a schematic view of an alternative application environment according to various embodiments of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of an embodiment of the blockchain-based information verification device of FIG. 1;
FIG. 3 is a block diagram of an embodiment of the verification process of FIGS. 1 and 2;
FIG. 4 is a flowchart illustrating an embodiment of a blockchain-based information verification method of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Referring to fig. 1, a schematic view of an application environment of a preferred embodiment of the present invention is shown. In this embodiment, the blockchain-based information verification device 1 receives information input by a first party, a second party, a first intermediate party, a second intermediate party, and the like through an information input platform, where the first party, the second party, the first intermediate party, the second intermediate party, and the like are parties related to participating in service processing. After the first party, the second party, the first intermediate party, the second intermediate party and the like input information to the information input platform, the information is encoded, and then the information is encrypted by adopting a blockchain encryption technology and then uploaded to a blockchain. The blockchain-based information verification device 1 verifies the uploaded information.
The blockchain-based information verification device 1 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction. The blockchain-based information verification device 1 may be a computer, a server group formed by a single network server, a plurality of network servers or a cloud formed by a large number of hosts or network servers based on cloud computing, wherein the cloud computing is one of distributed computing and is a super virtual computer formed by a group of loosely coupled computer sets.
Referring to fig. 2, in the present embodiment, the blockchain-based information verification device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 that may be communicatively connected to each other through a system bus, and the memory 11 stores a verification program that may be executed on the processor 12. It should be noted that fig. 2 only shows a blockchain-based information verification device 1 having components 11-13, but it should be understood that not all of the illustrated components are required to be implemented, and that more or fewer components may alternatively be implemented.
Wherein the storage 11 comprises a memory and at least one type of readable storage medium. The memory provides a buffer for the operation of the blockchain-based information verification device 1; the readable storage medium may be a non-volatile storage medium such as flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the readable storage medium may be an internal storage unit of the blockchain-based information verification device 1, such as a hard disk of the blockchain-based information verification device 1; in other embodiments, the nonvolatile storage medium may also be an external storage device of the blockchain-based information verification device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which is provided on the blockchain-based information verification device 1. In the present embodiment, the readable storage medium of the memory 11 is generally used for storing an operating system and various types of application software installed in the blockchain-based information authentication apparatus 1, for example, program codes or the like of the authentication program 10 in an embodiment of the present invention. Further, the memory 11 may be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip for running program code or processing data stored in the memory 11, such as running the authentication program 10, etc.
The network interface 13 may comprise a standard wireless network interface, a wired network interface, which network interface 13 is typically used for establishing a communication connection between the blockchain-based information verification device 1 and other electronic equipment.
The authentication program 10 is stored in a memory 11 and comprises at least one computer readable instruction stored in the memory 11, the at least one computer readable instruction being executable by a processor 12 to implement the methods of the embodiments of the present application; and, the at least one computer readable instruction may be divided into different logic modules, depending on the functionality implemented by the parts thereof.
In one embodiment, the verification process 10 is executed by the processor 12 to implement the following steps:
acquiring the coding information of a first participant in a blockchain, after a second participant uploads the coding information of a second participant to the blockchain based on the coding information of the first participant, adopting a preset decoding algorithm to decode the coding information of the first participant and the coding information of the second participant, comparing and verifying the decoded coding information of the first participant and the decoded coding information of the second participant, and acquiring a comparison verification result after verification is passed;
after a first intermediate party uploads the encoded information of the first intermediate party to a blockchain according to a participation sequence and based on the encoded information of the second party, decoding the encoded information of the first intermediate party by adopting the decoding algorithm, and performing recursion verification on the decoded encoded information of the first intermediate party and the comparison verification result to obtain a first recursion verification result;
carrying out mixed verification on the decoded encoded information of the first intermediate party, the decoded encoded information of the first participant and the decoded encoded information of the second participant respectively to obtain a first mixed verification result;
and if the first recursion verification result or the first mixed verification result is that verification fails, generating a warning message and feeding back.
Further, when the verification program is executed by the processor, the following steps are also implemented:
if the first recursion verification result and the first mixed verification result are verification passing, uploading the coding information of the Nth intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant in the Nth intermediate party, decoding the coding information of the Nth intermediate party by adopting the decoding algorithm, and recursion verifying the decoded coding information of the Nth intermediate party and the (N-1) recursion verification result to obtain an Nth recursion verification result, wherein N is an integer greater than or equal to 2;
the decoded coding information of the Nth intermediate party is respectively mixed with the decoded coding information of the first participant, the decoded coding information of the second participant and the decoded coding information of the first to (N-1) th intermediate parties to obtain an Nth mixed verification result;
and if the Nth recursion verification result or the Nth mixed verification result is that verification fails, generating a warning message and feeding back.
Further, when the verification program is executed by the processor, the following steps are also implemented:
and if the Nth recursion verification result and the Nth mixed verification result are verification passing, classifying the decoded encoded information of the first participant or the decoded encoded information of the second participant according to a plurality of classifying factors in a preset standard so as to classify the information with the same classifying factors into the same set and classify the information with different classifying factors into different sets.
Further, the predetermined decoding algorithm is a natural language-based dummy code decryption algorithm.
Referring to fig. 3, a program block diagram of the verification program 10 of fig. 1 and 2 is shown. The authentication program 10 is divided into a plurality of modules which are stored in a memory 12 and executed by a processor 13 to complete the present invention. The invention may refer to a series of computer program instruction segments capable of performing a specified function.
The verification procedure 10 may be partitioned into: a contrast verification module 101, a recursion verification module 102, a hybrid verification module 103, and a feedback module 104.
The comparison verification module 101 is configured to obtain the encoded information of a first participant in the blockchain, decode the encoded information of the first participant and the encoded information of the second participant by using a predetermined decoding algorithm after the second participant uploads the encoded information of the second participant to the blockchain based on the encoded information of the first participant, perform comparison verification on the decoded encoded information of the first participant and the decoded encoded information of the second participant, and obtain a comparison verification result after verification is passed;
the recursion verification module 102 is configured to, after a first intermediate party uploads the encoded information of the first intermediate party to a blockchain according to a participation order and based on the encoded information of the second party, decode the encoded information of the first intermediate party by using the decoding algorithm, and recursion verify the decoded encoded information of the first intermediate party and the comparison verification result to obtain a first recursion verification result;
the hybrid verification module 103 is configured to perform hybrid verification on the decoded encoded information of the first intermediate party and the decoded encoded information of the first participant and the decoded encoded information of the second participant, respectively, to obtain a first hybrid verification result;
the feedback module 104 is configured to generate a warning message and perform feedback if the first recursive verification result or the first hybrid verification result is that the verification is failed
The specific principle is described with reference to fig. 4 below, which is a flowchart of the method.
As shown in fig. 4, fig. 4 is a flowchart illustrating an embodiment of a blockchain-based information verification method according to the present invention, wherein the processor 13 of the blockchain-based information verification device 1 implements the following steps when executing the verification program 10 stored in the memory 12:
step S1, acquiring coding information of a first participant in a blockchain, after a second participant uploads the coding information of the second participant to the blockchain based on the coding information of the first participant, adopting a preset decoding algorithm to decode the coding information of the first participant and the coding information of the second participant, comparing and verifying the decoded coding information of the first participant and the decoded coding information of the second participant, and acquiring a comparison verification result after verification is passed;
firstly, the information of a first participant is encrypted by a coding and blockchain encryption technology and then stored in a blockchain, and the stored information is decrypted by a corresponding blockchain decryption technology to obtain the coding information of the first participant. The second party obtains the coding information of the first party from the block chain, obtains corresponding information after decoding, and uploads own information according to the information. The information of the second party is stored in the blockchain after being encrypted by the encoding and blockchain encryption technology. And then, comparing and verifying the information of the first participant and the second participant in the blockchain, specifically, firstly adopting a preset decoding algorithm to decode the encoded information of the first participant and the encoded information of the second participant, and then comparing and verifying after decoding.
Wherein the first party is, for example, the sponsor of the service and the second party is the sponsor of the service.
When performing the comparison verification, the comparison verification includes whether the field names (keys), the field values (values) and the like corresponding to the information of the two parties are respectively consistent, for example: verifying whether the product number, the product name (key), the specification (value), the code and the like are respectively consistent;
information decoded by the first party: 3ue8qikmd, single layer printed circuit board X280dx25edb;
information decoded by the second party: 3ue8qikmd, single layer printed circuit board X280dx25edb;
and through comparison verification, the information of the two parties is consistent, and the verification is passed.
The comparison verification result comprises information of comparison verification of the first party and the second party and information of verification passing. Of course, if the comparison verification of this time is not passed, a warning message is generated and fed back.
Step S2, after a first intermediate party uploads the coding information of the first intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant, the coding information of the first intermediate party is decoded by adopting the decoding algorithm, and the decoded coding information of the first intermediate party and the comparison verification result are subjected to recursion verification to obtain a first recursion verification result;
when the first party is the initiator of the service and the second party is the sponsor of the service, the first to nth intermediate parties can be the transacting party entrusted by the second party. According to the sequence of participation of the first to N-th intermediate parties, the first intermediate party acquires the coding information of the second party from the block chain, obtains corresponding information after decoding, and uploads own information according to the information. The information of the first intermediate party is stored in the blockchain after being encrypted by a blockchain encryption technology. And then, performing recursion verification on the first intermediate party and the verification result in the blockchain, specifically, decoding the encoded information of the first intermediate party by adopting the decoding algorithm, and performing recursion verification after decoding.
The recursive verification refers to the verification of the previous verification result and the current information, namely the verification of the verification result and the information, which is the recursive verification, but not the direct verification of the information and the information. The recursive verification has the advantages that the recursive verification actually comprises the information of the first intermediate party, the information of the first participator and the information of the second participator and the comparison verification result of the first participator and the second participator, so that the information verification is more accurate and reliable.
In the recursive verification, verifying whether the information in the comparison verification result is consistent with the field name (key), the field value (value) and the like corresponding to the information of the first intermediate party respectively is included. If the two are consistent, the verification is passed.
The first recursion verification result comprises the information of the comparison verification result, the information corresponding to the first intermediate party and used for recursion verification and the information of whether verification is passed or not.
And if the first recursion verification result is that the verification is not passed, generating a warning message and feeding back.
Step S3, performing mixed verification on the decoded encoded information of the first intermediate party and the decoded encoded information of the first participant and the decoded encoded information of the second participant respectively to obtain a first mixed verification result;
and S4, if the first recursion verification result or the first mixed verification result is that verification fails, generating a warning message and feeding back.
After the recursive verification, the decoded encoded information of the first intermediate party and the decoded encoded information of the first participant are separately verified, and the decoded encoded information of the first intermediate party and the decoded encoded information of the second participant are separately verified, that is, the mixed verification is performed, so as to further confirm whether the verification of the information is accurate and reliable.
The first mixed verification result comprises information for verifying the first intermediate party and the first participator, information for verifying whether the first intermediate party and the first participator pass or not, information for verifying the first intermediate party and the second participator and information for verifying whether the first intermediate party and the first participator pass or not.
If the first intermediate party and the first participant do not pass the verification, or the first intermediate party and the second participant do not pass the verification, namely the first mixed verification result is that the verification is not passed, a warning message is generated and fed back.
There may be one or more intermediaries. In one embodiment, when there are multiple intermediaries, i.e. including the first to (N-1) th intermediaries, the method further includes, after step S3, further steps of:
if the first recursion verification result and the first mixed verification result are verification passing, uploading the coding information of the Nth intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant in the Nth intermediate party, decoding the coding information of the Nth intermediate party by adopting the decoding algorithm, and recursion verifying the decoded coding information of the Nth intermediate party and the (N-1) recursion verification result to obtain an Nth recursion verification result, wherein N is an integer greater than or equal to 2;
the decoded coding information of the Nth intermediate party is respectively mixed with the decoded coding information of the first participant, the decoded coding information of the second participant and the decoded coding information of the first to (N-1) th intermediate parties to obtain an Nth mixed verification result;
and if the Nth recursion verification result or the Nth mixed verification result is that verification fails, generating a warning message and feeding back.
When each intermediate party uploads information according to the participation sequence and based on the coding information of the second participant, the information of each intermediate party is stored in a blockchain after being encrypted by coding and a blockchain encryption technology, the stored information is decrypted by using a corresponding blockchain decryption technology to obtain the coding information of each intermediate party, and then the information of each intermediate party is decoded to obtain the information of the intermediate party. And carrying out recursion verification on the information of the intermediate party and the last recursion verification result, and carrying out mixed verification on the information of the intermediate party and the information of the first participant, the second participant and the previous intermediate parties respectively. And if the recursive verification result or the mixed verification result is that the verification is not passed, generating a warning message and feeding back.
In the above embodiment, the blockchain encryption and decryption technique may be a hash algorithm or an asymmetric encryption and decryption algorithm. The predetermined decoding algorithm is a natural language based dummy code decryption algorithm. The information of the uploaded blockchain is subjected to dummy coding encryption by using a natural language idea to form an encryption dictionary base which belongs to the common multiple parties, so that the calculation speed can be improved, the data safety is improved, the blockchain encryption and decryption technology is adopted to encrypt and decrypt the information on the basis of the natural language dummy coding, and the information is stored in the blockchain, so that the judgment of the information is not interfered by the outside, and the safety and the accuracy of the information are completely ensured.
In other embodiments, on the basis of the above embodiments, the method further includes: and if the Nth recursion verification result and the Nth mixed verification result are verification passing, classifying the decoded encoded information of the first participant or the decoded encoded information of the second participant according to a plurality of classifying factors in a preset standard so as to classify the information with the same classifying factors into the same set and classify the information with different classifying factors into different sets.
The predetermined standards include national standards, industry standards, international standards, and a plurality of classifying factors in the predetermined standards are, for example, specification and model numbers of products, component contents, processing technology, actual use, sources and the like. If all the information passes verification, the information of the first party or the second party can be classified according to the standard, the information with the same classification factors is classified into the same set, and the information with different classification factors is classified into different sets.
The invention is illustrated by the following examples.
Taking a first party as a transaction initiator, a second party as a supply chain provider, and a middle party as a logistics related party as an example:
after the transaction initiator initiates the transaction, uploading own transaction information (including basic information of the transaction initiator, information of a supply chain provider, product information, purchase information, transaction mode information and the like) to a platform, encoding, encrypting by using a blockchain encryption technology and uploading to a blockchain;
the supply chain provider acquires the information of the transaction initiator from the blockchain, decrypts the information through the blockchain decryption technology and then decodes the information to obtain transaction information, then the supply chain provider selects a corresponding logistics related party, uploads the transaction information of the transaction initiator, the own basic information and the logistics related party information to the platform, encodes the transaction information, encrypts the transaction information through the blockchain encryption technology and uploads the encrypted transaction information to the blockchain. In the blockchain, comparing and verifying the transaction information uploaded by the transaction initiator and the information uploaded by the supply chain provider, and obtaining a comparison and verification result if the verification is passed;
according to the logistics sequence, the logistics related party acquires the information uploaded by the supply chain provider from the blockchain, decrypts the information by the blockchain decryption technology and then decodes the information to obtain the transaction information of the transaction initiator and the basic information of the supply chain provider, and then the logistics related party uploads the transaction information of the transaction initiator, the basic information of the supply chain provider and the logistics information to the platform for encoding, encrypts the information by the blockchain encryption technology and uploads the encrypted information to the blockchain. In the blockchain, recursion verification is carried out on the information uploaded by the logistics related party and the comparison verification result, and mixed verification is carried out on the information uploaded by the logistics related party, the transaction information of the transaction initiator, the information uploaded by the logistics related party and the information uploaded by the supply chain provider.
When there are N logistics related parties, the operations performed by the subsequent logistics related parties are similar to those performed by the logistics related parties, until all the information verification operations are performed.
In addition, the embodiment of the invention also provides a computer readable storage medium, which can be any one or any combination of a plurality of hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory and the like. The computer readable storage medium includes an authentication program, and the authentication program is executed by the processor to implement the functions as described above with reference to fig. 4, which is not repeated herein.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (8)
1. A blockchain-based information verification device, comprising a memory and a processor connected to the memory, wherein a verification program capable of running on the processor is stored in the memory, and the verification program realizes the following steps when executed by the processor:
acquiring the coding information of a first participant in a blockchain, after a second participant uploads the coding information of a second participant to the blockchain based on the coding information of the first participant, adopting a preset decoding algorithm to decode the coding information of the first participant and the coding information of the second participant, comparing and verifying the decoded coding information of the first participant and the decoded coding information of the second participant, and acquiring a comparison verification result after verification is passed;
after a first intermediate party uploads the encoded information of the first intermediate party to a blockchain according to a participation sequence and based on the encoded information of the second party, decoding the encoded information of the first intermediate party by adopting the decoding algorithm, and performing recursion verification on the decoded encoded information of the first intermediate party and the comparison verification result to obtain a first recursion verification result;
carrying out mixed verification on the decoded encoded information of the first intermediate party, the decoded encoded information of the first participant and the decoded encoded information of the second participant respectively to obtain a first mixed verification result;
if the first recursion verification result or the first mixed verification result is that verification fails, generating a warning message and feeding back; or if the first recursive verification result and the first mixed verification result are verification passing, executing the following steps:
after uploading the coding information of the Nth intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant, decoding the coding information of the Nth intermediate party by adopting the decoding algorithm, and carrying out recursion verification on the decoded coding information of the Nth intermediate party and a (N-1) recursion verification result to obtain an Nth recursion verification result, wherein N is an integer greater than or equal to 2;
the decoded coding information of the Nth intermediate party is respectively mixed with the decoded coding information of the first participant, the decoded coding information of the second participant and the decoded coding information of the first to (N-1) th intermediate parties to obtain an Nth mixed verification result;
and if the Nth recursion verification result or the Nth mixed verification result is that verification fails, generating a warning message and feeding back.
2. The blockchain-based information verification device of claim 1, wherein the verification program, when executed by the processor, further performs the steps of:
and if the Nth recursion verification result and the Nth mixed verification result are verification passing, classifying the decoded encoded information of the first participant or the decoded encoded information of the second participant according to a plurality of classifying factors in a preset standard so as to classify the information with the same classifying factors into the same set and classify the information with different classifying factors into different sets.
3. The blockchain-based information verification device of claim 1 or 2, wherein the predetermined decoding algorithm is a natural language-based dummy code decryption algorithm.
4. A blockchain-based information verification method, characterized in that the blockchain-based information verification method comprises:
s1, acquiring coding information of a first participant in a blockchain, after a second participant uploads the coding information of the second participant to the blockchain based on the coding information of the first participant, adopting a preset decoding algorithm to decode the coding information of the first participant and the coding information of the second participant, comparing and verifying the decoded coding information of the first participant and the decoded coding information of the second participant, and acquiring a comparison verification result after verification is passed;
s2, after the first intermediate party uploads the encoded information of the first intermediate party to a blockchain according to the participation sequence and based on the encoded information of the second participant, decoding the encoded information of the first intermediate party by adopting the decoding algorithm, and performing recursion verification on the decoded encoded information of the first intermediate party and the comparison verification result to obtain a first recursion verification result;
s3, carrying out mixed verification on the decoded encoded information of the first intermediate party and the decoded encoded information of the first participant and the decoded encoded information of the second participant respectively to obtain a first mixed verification result;
s4, if the first recursion verification result or the first mixed verification result is that verification fails, generating a warning message and feeding back; or,
s5, if the first recursion verification result and the first mixed verification result are verification passing, executing the following steps:
s51, after uploading the coding information of the Nth intermediate party to a blockchain according to the participation sequence and based on the coding information of the second participant, decoding the coding information of the Nth intermediate party by adopting the decoding algorithm, and carrying out recursion verification on the decoded coding information of the Nth intermediate party and a (N-1) recursion verification result to obtain an Nth recursion verification result, wherein N is an integer greater than or equal to 2;
s52, carrying out mixed verification on the decoded coding information of the Nth intermediate party, the decoded coding information of the first participant, the decoded coding information of the second participant and the decoded coding information of the first to (N-1) th intermediate parties respectively to obtain an Nth mixed verification result;
and S53, if the Nth recursion verification result or the Nth mixed verification result is that verification fails, generating a warning message and feeding back.
5. The blockchain-based information verification method of claim 4, further comprising:
and if the Nth recursion verification result and the Nth mixed verification result are verification passing, classifying the decoded encoded information of the first participant or the decoded encoded information of the second participant according to a plurality of classifying factors in a preset standard so as to classify the information with the same classifying factors into the same set and classify the information with different classifying factors into different sets.
6. The blockchain-based information verification method of claim 4 or 5, wherein the predetermined decoding algorithm is a natural language-based dummy code decryption algorithm.
7. The blockchain-based information verification method of claim 4, further comprising, prior to step S1: and the coding information of the first participant, the coding information of the second participant and the coding information of the first intermediate party are encrypted by adopting a preset block chain encryption technology before uploading the block chain.
8. A computer readable storage medium, wherein a verification program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the blockchain-based information verification method of any of claims 4 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910675873.5A CN110532290B (en) | 2019-07-25 | 2019-07-25 | Information verification device, method and storage medium based on block chain |
PCT/CN2020/086277 WO2021012732A1 (en) | 2019-07-25 | 2020-04-23 | Blockchain-based information verification apparatus and method, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910675873.5A CN110532290B (en) | 2019-07-25 | 2019-07-25 | Information verification device, method and storage medium based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110532290A CN110532290A (en) | 2019-12-03 |
CN110532290B true CN110532290B (en) | 2023-05-12 |
Family
ID=68661948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910675873.5A Active CN110532290B (en) | 2019-07-25 | 2019-07-25 | Information verification device, method and storage medium based on block chain |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110532290B (en) |
WO (1) | WO2021012732A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532290B (en) * | 2019-07-25 | 2023-05-12 | 深圳壹账通智能科技有限公司 | Information verification device, method and storage medium based on block chain |
CN111967609B (en) * | 2020-08-14 | 2021-08-06 | 深圳前海微众银行股份有限公司 | Model parameter verification method, device and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682308A (en) * | 2017-08-16 | 2018-02-09 | 北京航空航天大学 | The electronic evidence preservation system for Channel Technology of being dived based on block chain |
CN109933404A (en) * | 2018-12-12 | 2019-06-25 | 阿里巴巴集团控股有限公司 | A kind of decoding method and system based on block chain intelligence contract |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111271B (en) * | 2009-12-25 | 2015-07-29 | 卡巴斯克 | Network security certification method and device thereof |
WO2017044554A1 (en) * | 2015-09-11 | 2017-03-16 | Aware, Inc. | Biometric verification of a blockchain database transaction contributor |
KR101727126B1 (en) * | 2015-12-29 | 2017-04-14 | 주식회사 코인플러그 | Method and server for notarizing and verifying file |
WO2018037148A1 (en) * | 2016-08-22 | 2018-03-01 | Nokia Technologies Oy | Method and apparatus for blockchain verification of healthcare prescriptions |
EP3396612A1 (en) * | 2017-04-24 | 2018-10-31 | BlockSettle AB | Method and system for creating a user identity |
US11030681B2 (en) * | 2017-07-21 | 2021-06-08 | International Business Machines Corporation | Intermediate blockchain system for managing transactions |
CN107888382B (en) * | 2017-11-24 | 2019-11-19 | 中钞信用卡产业发展有限公司杭州区块链技术研究院 | A kind of methods, devices and systems of the digital identity verifying based on block chain |
CN108717629A (en) * | 2018-05-14 | 2018-10-30 | 现在(北京)支付股份有限公司 | A kind of intelligent payment method, system and electronic equipment |
CN109194708B (en) * | 2018-07-24 | 2021-07-13 | 哈尔滨工程大学 | Distributed storage system based on block chain technology and identity authentication method thereof |
CN109949019A (en) * | 2018-11-15 | 2019-06-28 | 陕西医链区块链集团有限公司 | Payment system based on medical block chain |
CN109829719B (en) * | 2019-02-22 | 2021-06-25 | 中国农业银行股份有限公司 | Connectionless cross account book DvP settlement method and system |
CN110532290B (en) * | 2019-07-25 | 2023-05-12 | 深圳壹账通智能科技有限公司 | Information verification device, method and storage medium based on block chain |
-
2019
- 2019-07-25 CN CN201910675873.5A patent/CN110532290B/en active Active
-
2020
- 2020-04-23 WO PCT/CN2020/086277 patent/WO2021012732A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682308A (en) * | 2017-08-16 | 2018-02-09 | 北京航空航天大学 | The electronic evidence preservation system for Channel Technology of being dived based on block chain |
CN109933404A (en) * | 2018-12-12 | 2019-06-25 | 阿里巴巴集团控股有限公司 | A kind of decoding method and system based on block chain intelligence contract |
Also Published As
Publication number | Publication date |
---|---|
CN110532290A (en) | 2019-12-03 |
WO2021012732A1 (en) | 2021-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10841628B1 (en) | System and techniques for digital data lineage verification | |
US8712037B2 (en) | Data encoding and decoding apparatus and method thereof for verifying data integrity | |
US11456858B2 (en) | Bidirectionally linked blockchain structure | |
CN110598433B (en) | Block chain-based anti-fake information processing method and device | |
CN105719144A (en) | Food safety tracing method and food safety tracing system based on two-dimensional code | |
CN110532290B (en) | Information verification device, method and storage medium based on block chain | |
CN111314172A (en) | Data processing method, device and equipment based on block chain and storage medium | |
CN109359276B (en) | Anti-counterfeiting code generation method, device, equipment and storage medium | |
CN111404892B (en) | Data supervision method and device and server | |
CN115964728A (en) | File encryption method and device based on consensus algorithm | |
CN111859439A (en) | Electronic contract processing method and device and electronic equipment | |
CN108846671B (en) | Online secure transaction method and system based on block chain | |
CN113517982B (en) | Password generation method, password execution method and terminal | |
CN112561015B (en) | Bar code encoding and decoding method, device, system, equipment and medium | |
JP6273226B2 (en) | Encryption system, authentication system, encryption device, decryption device, authenticator generation device, verification device, encryption method, authentication method | |
CN113849859A (en) | Linux kernel modification method, terminal device and storage medium | |
CN113542187A (en) | File uploading and downloading method and device, computer device and medium | |
CN108848096B (en) | Method, device, equipment and computer readable storage medium for processing service contract | |
CN111949996A (en) | Generation method, encryption method, system, device and medium of security private key | |
CN114444027A (en) | Software signature implanting method, software signature verifying device, electronic equipment and medium | |
CN114692124A (en) | Data reading and writing method and device and electronic equipment | |
CN112699366A (en) | Cross-platform login-free secure communication method and device and electronic equipment | |
CN109257341B (en) | Block chain address management method and equipment | |
CN111681014A (en) | Product non-polar number identity authentication device, system and encryption transmission method | |
CN112149069A (en) | Generation method, use method and device of authorization check character string |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |