CN111192046A - Encryption and decryption method and system based on block chain consensus - Google Patents

Encryption and decryption method and system based on block chain consensus Download PDF

Info

Publication number
CN111192046A
CN111192046A CN201911353816.1A CN201911353816A CN111192046A CN 111192046 A CN111192046 A CN 111192046A CN 201911353816 A CN201911353816 A CN 201911353816A CN 111192046 A CN111192046 A CN 111192046A
Authority
CN
China
Prior art keywords
chain
encryption
storage module
transaction
consensus
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.)
Withdrawn
Application number
CN201911353816.1A
Other languages
Chinese (zh)
Inventor
李宝次
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Gongchain Information Technology Co ltd
Original Assignee
Shandong Gongchain Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Gongchain Information Technology Co ltd filed Critical Shandong Gongchain Information Technology Co ltd
Priority to CN201911353816.1A priority Critical patent/CN111192046A/en
Publication of CN111192046A publication Critical patent/CN111192046A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention discloses an encryption and decryption method and system based on block chain consensus, which comprises a local storage module and a remote storage module, wherein the local storage module is connected with a first private chain, the remote storage module is connected with a second private chain, the first private chain and the second private chain are both connected to a P2P network layer, the P2P network layer is connected to a consensus layer, the consensus layer is connected to a block chain verification module, the block chain verification module is connected to a public chain, the public chain generates a block chain storage node, the block chain storage node is connected to a P2P network layer, the first private chain is connected through the local storage module, the second private chain is connected through the remote storage module, the consensus and the confirmation can be carried out on transaction requests, the quickness of transactions can be ensured, the excitation contradiction generated by an intermediate flow can be eliminated, and the rights and interests of both parties of the transactions can be effectively ensured, the contradiction of practical social problems is saved, and the use and the popularization are facilitated.

Description

Encryption and decryption method and system based on block chain consensus
Technical Field
The present invention relates to the field of blockchain encryption and decryption, and more particularly, to an encryption and decryption method and system based on blockchain consensus.
Background
The consensus mechanism is one of the core technologies of blockchains. The consensus mechanism is a mechanism for users who are not trusted with each other in the blockchain to achieve trust, and is a basis for record transmission, verification and replication in the blockchain.
In recent years, with the development of the shared economy, the trust problem of the transaction process is particularly prominent, so that the encryption and decryption protection is performed by adopting a consensus mechanism of the block chain, and effective optimization can be performed on the problem of the shared economy, and a system and a using method are needed to be provided.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide an encryption and decryption method and system based on blockchain consensus, wherein a first private chain is connected through a local storage module, and a second private chain is connected in combination with a remote storage magic hole, so that a transaction request can be consensus and confirmed, the transaction rapidity is ensured, the excitation contradiction generated in an intermediate flow is eliminated, meanwhile, the transaction information can be independently read and verified, the integrity and the accuracy of a transaction record are ensured, the falsification is avoided, the rights and interests of two transaction parties are effectively ensured, the social and practical problems are saved, and the use and the popularization are facilitated.
In order to solve the above problems, the present invention adopts the following technical solutions.
The encryption and decryption method and system based on block chain consensus comprise a local storage module and a remote storage module, wherein the local storage module is connected with a first private chain, the remote storage module is connected with a second private chain, the first private chain and the second private chain are both connected to a P2P network layer, the P2P network layer is connected to a consensus layer, the consensus layer is connected to a block chain verification module, the block chain verification module is connected to a public chain, the public chain generates a block chain storage node, and the block chain storage node is connected to a P2P network layer.
Furthermore, the local storage module is connected with a network system, the network system is connected with the remote storage module, and the local storage module and the remote storage module are connected through the network system, so that the transaction request can be sent conveniently, and the operation is convenient.
Furthermore, the local storage module is connected with a first unidirectional encryption chain, the first unidirectional encryption chain is connected with the block chain storage node, and the local storage module is connected with the first unidirectional encryption chain, so that the block chain storage node can be read only, data tampering is avoided, and the integrity of transaction information is ensured.
Furthermore, the remote storage module is connected with a second unidirectional encryption chain, the second unidirectional encryption chain is connected with the block chain storage node, and the remote storage module is connected with the second unidirectional encryption chain, so that the block chain storage node can be read only, data tampering is avoided, and the accuracy of transaction information is ensured.
Furthermore, the network system comprises a wireless network protocol and a wired network protocol, and can exchange network data and improve the transaction efficiency.
Further, the encryption and decryption method comprises the following steps:
a1, the local storage module interacts with the remote storage module through the network system to generate and store the transaction request code;
a2, the local storage module connects the first private chain according to the transaction request code, generates the first encrypted field of the transaction, connects the P2P network layer;
a3, connecting the remote storage module with a second private chain according to the transaction request code to generate a second encrypted field of the transaction, and connecting with a P2P network layer;
the A4 and P2P network layers receive the first encrypted transaction field and the second encrypted transaction field, are connected with the consensus layer to form a consensus field, and are connected with the block chain verification module;
a5, the block chain verification module receives the consensus field to judge information, and the transaction information is connected to the consensus chain after matching;
a6, the public chain generates transaction confirmation information according to the judgment result, forms block chain storage nodes and returns to the P2P network layer;
a7, the local storage module receives the transaction confirmation information through the first private link, and the remote farmer module receives the transaction confirmation information through the second private link to form transaction results, which are backed up and stored respectively.
Further, the transaction first encryption field and the transaction second encryption field of the step a4 each include two fields of a public transaction code and a private password character.
Further, the step a7 further includes that the local storage module receives the transaction confirmation information through the first unidirectional encryption chain read-only block chain storage node, and the remote storage module receives the transaction confirmation information through the second unidirectional encryption chain read-only block chain storage node, and simultaneously performs comparison and verification on the transaction request code.
Compared with the prior art, the invention has the advantages that:
(1) according to the scheme, the local storage module is connected with the first private chain, and the remote storage magic hole is connected with the second private chain, so that the transaction request can be identified and confirmed, the transaction rapidity is guaranteed, and the excitation contradiction generated in the middle process is eliminated.
(2) The local storage module and the remote storage module are connected through the network system, so that the transaction request can be sent conveniently, and the operation is convenient.
(3) The local storage module is connected with the first one-way encryption chain, so that the block chain storage node can be read only, data tampering is avoided, and the integrity of transaction information is ensured.
(4) The remote storage module is connected with the second unidirectional encryption chain, so that the block chain storage node can be read only, data tampering is avoided, and the accuracy of transaction information is ensured.
(5) Network data exchange can be carried out, and the transaction efficiency is improved.
(6) By sending, verifying, feeding back and matching the transaction request, the security of the transaction is effectively improved, and the rights and interests of both parties are ensured.
Drawings
FIG. 1 is a schematic block diagram of the system of the present invention.
The reference numbers in the figures illustrate:
1 local storage module, 11 first private chain, 12 remote storage module, 13 second private chain, 14P2P network layer, 15 consensus layer, 16 blockchain verification module, 17 public chain, 18 blockchain storage node, 2 network system, 21 first unidirectional encryption chain, 22 second unidirectional encryption chain.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention; it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work are within the scope of the present invention.
Referring to fig. 1, an encryption and decryption method and system based on blockchain consensus includes a local storage module 1 and a remote storage module 12, where the local storage module 1 is connected to a first private chain 11, the remote storage module 12 is connected to a second private chain 13, the first private chain 11 and the second private chain 13 are both connected to a P2P network layer 14, the P2P network layer 14 is connected to a consensus layer 15, the consensus layer 15 is connected to a blockchain verification module 16, the blockchain verification module 16 is connected to a public chain 17, the public chain 17 generates a blockchain storage node 18, the blockchain storage node 18 is connected to the P2P network layer 15, the local storage module 1 is connected to a network system 2, the network system 2 includes a wireless network protocol and a wired network protocol, and can directly perform information interaction through the network system 2 to ensure transaction efficiency, the network system 2 is connected to the remote storage module 13, the local storage module 1 is connected to a first unidirectional encryption chain 21, first one-way encryption chain 21 is connected in block chain storage node 18, and local storage module 1 can directly read the transaction confirmation information through first one-way encryption chain 21, and then carries out present storage, guarantees follow-up verification, improves transaction security, does benefit to and maintains self rights and interests, and remote storage module 13 is connected with second one-way encryption chain 22, and second one-way encryption chain 22 is connected in block chain storage node 18.
The encryption and decryption method comprises the following steps:
a1, the local storage module interacts with the remote storage module through the network system to generate and store the transaction request code;
a2, the local storage module connects the first private chain according to the transaction request code, generates the first encrypted field of the transaction, connects the P2P network layer;
a3, connecting the remote storage module with a second private chain according to the transaction request code to generate a second encrypted field of the transaction, and connecting with a P2P network layer;
the A4 and P2P network layers receive the first encrypted transaction field and the second encrypted transaction field, are connected with the consensus layer to form a consensus field, and are connected with the block chain verification module;
a5, the block chain verification module receives the consensus field to judge information, and the transaction information is connected to the consensus chain after matching;
a6, the public chain generates transaction confirmation information according to the judgment result, forms block chain storage nodes and returns to the P2P network layer;
a7, the local storage module receives the transaction confirmation information through the first private link, the remote prompting farmer module receives the transaction confirmation information through the second private link to form transaction results, the transaction results are stored in a backup mode respectively, the remote storage module receives the transaction confirmation information through the first one-way encryption chain read-only block chain storage node, and the remote storage module receives the transaction confirmation information through the second one-way encryption chain read-only block chain storage node and compares and verifies the transaction request codes.
The foregoing is only a preferred embodiment of the present invention; the scope of the invention is not limited thereto. Any person skilled in the art should be able to cover the technical scope of the present invention by equivalent or modified solutions and modifications within the technical scope of the present invention.

Claims (8)

1. An encryption and decryption method and system based on block chain consensus comprise a local storage module (1) and a remote storage module (12), and are characterized in that: the local storage module (1) is connected with a first private chain (11), the remote storage module (12) is connected with a second private chain (13), the first private chain (11) and the second private chain (13) are both connected to a P2P network layer (14), the P2P network layer (14) is connected to a consensus layer (15), the consensus layer (15) is connected to a blockchain verification module (16), the blockchain verification module (16) is connected to a public chain (17), the public chain (17) generates a blockchain storage node (18), and the blockchain storage node (18) is connected to a P2P network layer (15).
2. The encryption and decryption method and system based on blockchain consensus as claimed in claim 1, wherein: the local storage module (1) is connected with a network system (2), and the network system (2) is connected with a remote storage module (13).
3. The encryption and decryption method and system based on blockchain consensus as claimed in claim 1, wherein: the local storage module (1) is connected with a first unidirectional encryption chain (21), and the first unidirectional encryption chain (21) is connected with the block chain storage node (18).
4. The encryption and decryption method and system based on blockchain consensus as claimed in claim 1, wherein: the remote storage module (13) is connected with a second unidirectional encryption chain (22), and the second unidirectional encryption chain (22) is connected with the block chain storage node (18).
5. The encryption and decryption method and system based on blockchain consensus as claimed in claim 1, wherein: the network system (2) includes a wireless network protocol and a wired network protocol.
6. The encryption and decryption method and system based on blockchain consensus as claimed in claim 1, wherein: the encryption and decryption method comprises the following steps:
a1, the local storage module interacts with the remote storage module through the network system to generate and store the transaction request code;
a2, the local storage module connects the first private chain according to the transaction request code, generates the first encrypted field of the transaction, connects the P2P network layer;
a3, connecting the remote storage module with a second private chain according to the transaction request code to generate a second encrypted field of the transaction, and connecting with a P2P network layer;
the A4 and P2P network layers receive the first encrypted transaction field and the second encrypted transaction field, are connected with the consensus layer to form a consensus field, and are connected with the block chain verification module;
a5, the block chain verification module receives the consensus field to judge information, and the transaction information is connected to the consensus chain after matching;
a6, the public chain generates transaction confirmation information according to the judgment result, forms block chain storage nodes and returns to the P2P network layer;
a7, the local storage module receives the transaction confirmation information through the first private link, and the remote farmer module receives the transaction confirmation information through the second private link to form transaction results, which are backed up and stored respectively.
7. The method and system according to claim 6, wherein the encryption and decryption method and system based on blockchain consensus are characterized in that: the transaction first encryption field and the transaction second encryption field of the step A4 each include two fields, namely, public transaction code and private password characters.
8. The method and system according to claim 6, wherein the encryption and decryption method and system based on blockchain consensus are characterized in that: and step A7, the local storage module receives the transaction confirmation information through the first unidirectional encryption chain read-only block chain storage node, and the remote storage module receives the transaction confirmation information through the second unidirectional encryption chain read-only block chain storage node and compares and verifies the transaction request code.
CN201911353816.1A 2019-12-25 2019-12-25 Encryption and decryption method and system based on block chain consensus Withdrawn CN111192046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911353816.1A CN111192046A (en) 2019-12-25 2019-12-25 Encryption and decryption method and system based on block chain consensus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911353816.1A CN111192046A (en) 2019-12-25 2019-12-25 Encryption and decryption method and system based on block chain consensus

Publications (1)

Publication Number Publication Date
CN111192046A true CN111192046A (en) 2020-05-22

Family

ID=70709433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911353816.1A Withdrawn CN111192046A (en) 2019-12-25 2019-12-25 Encryption and decryption method and system based on block chain consensus

Country Status (1)

Country Link
CN (1) CN111192046A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382168A (en) * 2020-05-28 2020-07-07 支付宝(杭州)信息技术有限公司 Node group creating method and node group-based transaction method in alliance chain network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382168A (en) * 2020-05-28 2020-07-07 支付宝(杭州)信息技术有限公司 Node group creating method and node group-based transaction method in alliance chain network

Similar Documents

Publication Publication Date Title
CN110569675B (en) Multi-Agent transaction information protection method based on block chain technology
Yang et al. Blockchain-based publicly verifiable data deletion scheme for cloud storage
CN108667612B (en) Trust service architecture and method based on block chain
CN108418680B (en) Block chain key recovery method and medium based on secure multi-party computing technology
CN108064440B (en) FIDO authentication method, device and system based on block chain
CN111046352B (en) Identity information security authorization system and method based on block chain
CN107231351B (en) Electronic certificate management method and related equipment
CN109447647A (en) A kind of safety payment system based on block chain
WO2019007396A1 (en) Method and device for conducting encrypted transaction based on smart contract, and blockchain
CN110958111B (en) Block chain-based identity authentication mechanism of electric power mobile terminal
CN113553574A (en) Internet of things trusted data management method based on block chain technology
CN102448061B (en) Method and system for preventing phishing attack on basis of mobile terminal
US20100122082A1 (en) User identity validation system and method
CN111324881B (en) Data security sharing system and method fusing Kerberos authentication server and block chain
CN109450843B (en) SSL certificate management method and system based on block chain
WO2020186822A1 (en) Blockchain-based data querying method, device and apparatus, and readable storage medium
US20230089134A1 (en) Data communication method and apparatus, computer device, and storage medium
WO2020042798A1 (en) Cryptographic operation and working key creation method and cryptographic service platform and device
CN109547218B (en) Alliance link node key distribution and backup system for improving BIP (building information processing) protocol
CN113643134B (en) Internet of things blockchain transaction method and system based on multi-key homomorphic encryption
CN111444492A (en) Digital identity verification method based on medical block chain
CN114205136A (en) Traffic data resource sharing method and system based on block chain technology
TWI501614B (en) Symmetric Dynamic Authentication and Key Exchange System and Its
ES2224799A1 (en) Secure mutual authentication system
CN114357492A (en) Medical data privacy fusion method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200522