Block chain-based information management method and device, equipment and medium

By setting up smart contracts on the blockchain and using digital certificate encryption mechanisms, the tampering risk and signature supervision problems in cross-chain information management are solved, and the security and immutability of multi-node information are realized.

CN119089471AActive Publication Date: 2024-12-06GUANGXI ZHUANG AUTONOMOUS REGION COMM IND SERVICE CO LTD ENG BRANCH

Patent Information

Application Number
CN202411212788.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The prior art has the problem of tampering risks and poor signature supervision in cross-chain information management between multiple blockchains, making it difficult to achieve safe and effective multi-party confirmation and multi-party signatures.

Method used

By setting target smart contracts on the target blockchain, obtaining configuration files and target information, and using digital certificates and public keys for encryption and decryption, ensuring the security and immutability of data during cross-chain transmission, realizing multi-node Target information management.

Benefits of technology

The security management of multi-node target information across blockchain is realized to ensure the security and immutability of data during transmission. Through the key encryption and decryption mechanism, only associated nodes can decrypt and sign information to ensure data. integrity and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089471A_ABST
    Figure CN119089471A_ABST
Patent Text Reader

Abstract

The invention relates to an information management method and device based on a block chain, equipment and a medium, and aims to realize safety management (multi-party confirmation and multi-party signature) of multi-node target information of a cross-block chain, the method comprises the following steps: uploading a target file and a configuration file in a target block chain where a target node is located through the target node; according to the invention, the transmission authority of the target information among the plurality of block chains is determined through the configuration file, so that the target information can be transmitted among the smart contracts of different chains, and the target information can flow in a cross-chain manner. And moreover, the target information is encrypted through the key during cross-chain flowing, and only the associated node can decrypt the target information and sign the target information, so that the security and non-tampering property of the data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of information management technology, and in particular, to a blockchain-based information management method, device, equipment and medium. Background Art

[0002] Blockchain technology is a distributed shared database that is unforgeable, traceable, traceable, open and transparent, and collectively maintained. Smart contracts are a core technology of blockchain and a bridge for application terminals to interact with blockchain systems.

[0003] In order to achieve cross-chain information management between relative nodes of multiple different blockchains (multi-party confirmation and multi-party signature), the commonly used method is offline confirmation, and then each party signs in their own blockchain and uploads it. However, this method has the risk of tampering during offline confirmation, and signing in their own blockchain is not conducive to management, and the signature is not supervised. Summary of the invention

[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0005] The present application aims to at least solve the technical problems existing in the prior art. To this end, the present application proposes a blockchain-based information management method, device, equipment and medium, which can realize the secure management of target information across multiple nodes of the blockchain.

[0006] A first aspect of an embodiment of the present application provides a blockchain-based information management method for setting a target smart contract on a target blockchain, the method comprising:

[0007] Obtaining a configuration file and target information generated by a target node corresponding to the target blockchain, wherein the configuration file includes digital certificates corresponding to multiple associated nodes associated with the target information, a digital certificate of the target node, a first digital signature obtained by digitally signing the target information, and a public key corresponding to the target blockchain;

[0008] Obtaining a second digital signature generated by a private key of the target blockchain through an associated smart contract on an associated blockchain corresponding to each of the associated nodes;

[0009] Decrypting and verifying the second digital signature according to the public key corresponding to the target blockchain, if the verification is successful, generating multiple copies of the target information corresponding to the target information, and encrypting each copy of the target information using the public key in the digital certificate corresponding to each of the associated nodes to obtain an encrypted file;

[0010] Send each encrypted file to the corresponding associated smart contract, so that the encrypted file is sent to the corresponding associated node through the associated smart contract, and the associated node decrypts the encrypted file according to the corresponding private key and verifies it, and after the verification is passed, digitally signs the target information copy with the corresponding private key to obtain a third digital signature, and sends the target information copy carrying the third digital signature to the associated smart contract, and the associated smart contract stores the target information copy carrying the third digital signature in the block of the associated blockchain;

[0011] The target information carrying the first digital signature is stored in a block of the target blockchain.

[0012] The embodiment of the present application provides a blockchain-based information management method. In order to achieve the secure management of target information of multiple nodes across blockchains (multi-party confirmation and multi-party signature), the method uploads the target file and configuration file in the target blockchain where the target node is located, and determines the transmission authority of the target information between multiple blockchains through the configuration file, so that the smart contracts of different chains can transmit the target information to each other, and the target information can flow across chains. Moreover, when the target information flows across chains, it is encrypted by a key, and only the associated node can decrypt and sign it, ensuring the security and non-tamperability of the data.

[0013] In some embodiments of the present application, the process of generating the first digital signature includes:

[0014] The target node performs hash processing on the target information to obtain a first hash value;

[0015] The target node digitally signs the first hash value according to the corresponding private key to obtain a first digital signature;

[0016] Before the associated smart contract on the associated blockchain corresponding to each of the associated nodes is signed by the second digital signature generated by the private key of the target blockchain, the method further includes:

[0017] Decrypting the first digital signature according to the public key in the digital certificate of the target node to obtain a second hash value;

[0018] If the second hash value is not equal to the first hash value, the target information is returned to the target node.

[0019] In some embodiments of the present application, before sending the encrypted file to the associated node through the associated smart contract, the method further includes:

[0020] Sending the first digital signature to the associated smart contract;

[0021] The associated smart contract storing the target information copy carrying the third digital signature in a block of the associated blockchain includes:

[0022] The associated smart contract generates a block of the associated blockchain by using the target information carrying the third digital signature and a copy of the target information carrying the first digital signature.

[0023] In some embodiments of the present application, after the associated smart contract stores the copy of the target information carrying the third digital signature in a block of the associated blockchain, the method further includes:

[0024] Receiving a copy of the target information carrying the third digital signature sent by the associated smart contract;

[0025] Generate a block of the target blockchain using the copy of the target information carrying the third digital signature and the target information carrying the first digital signature.

[0026] In some embodiments of the present application, both the target blockchain and the associated blockchain are consortium chains.

[0027] In some embodiments of the present application, the configuration file is stored in the target blockchain.

[0028] In some embodiments of the present application, before obtaining the configuration file and the target information generated by the target node corresponding to the target blockchain, the method further includes:

[0029] The target node applies to the CA organization for the public key and private key of the target node and the plurality of associated nodes.

[0030] A second aspect of an embodiment of the present application provides an information management device based on blockchain, the device comprising:

[0031] An information receiving unit is used to obtain a configuration file and target information generated by a target node corresponding to a target blockchain, wherein the configuration file includes digital certificates corresponding to a plurality of associated nodes associated with the target information, a digital certificate of the target node, a first digital signature obtained by digitally signing the target information, and a public key corresponding to the target blockchain;

[0032] A signature receiving unit, configured to obtain a second digital signature generated by a private key of the target blockchain through an associated smart contract on an associated blockchain corresponding to each of the associated nodes;

[0033] A first processing unit is used to decrypt and verify the second digital signature according to the public key corresponding to the target blockchain. If the verification is successful, multiple copies of the target information corresponding to the target information are generated, and each copy of the target information is encrypted using the public key in the digital certificate corresponding to each of the associated nodes to obtain an encrypted file;

[0034] A second processing unit is configured to send each encrypted file to the corresponding associated smart contract, so as to send the encrypted file to the corresponding associated node through the associated smart contract, and the associated node decrypts and verifies the encrypted file according to the corresponding private key, and after the verification is passed, digitally signs the target information copy with the corresponding private key to obtain a third digital signature, and sends the target information copy carrying the third digital signature to the associated smart contract, so that the associated smart contract stores the target information copy carrying the third digital signature in the block of the associated blockchain;

[0035] A data uploading unit is used to store the target information carrying the first digital signature in a block of the target blockchain.

[0036] The third aspect of an embodiment of the present application provides an electronic device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the blockchain-based information management method.

[0037] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the blockchain-based information management method.

[0038] It can be understood that the beneficial effects of the second to fourth aspects compared with the related art are the same as the beneficial effects of the first aspect compared with the related art. Please refer to the relevant description in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0040] Figure 1 This is a flowchart of a blockchain-based information management method provided by an embodiment of the present application;

[0041] Figure 2 This is a structural diagram of a blockchain-based information management device provided by an embodiment of the present application;

[0042] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0046] like Figure 1 An embodiment of the present application provides a blockchain-based information management method for setting a target smart contract on a target blockchain, the method comprising steps S110 to S150:

[0047] Step S110, obtain a configuration file and target information generated by a target node corresponding to the target blockchain, wherein the configuration file includes digital certificates corresponding to multiple associated nodes associated with the target information, a digital certificate of the target node, a first digital signature obtained after digitally signing the target information, and a public key corresponding to the target blockchain.

[0048] Step S120, obtaining a second digital signature generated by the private key of the target blockchain through the associated smart contract on the associated blockchain corresponding to each associated node.

[0049] Step S130, decrypt the second digital signature according to the public key corresponding to the target blockchain and verify it. If the verification passes, generate multiple copies of the target information corresponding to the target information, and use the public key in the digital certificate corresponding to each associated node to encrypt each copy of the target information to obtain an encrypted file.

[0050] Step S140, each encrypted file is sent to the corresponding associated smart contract, so that the encrypted file is sent to the corresponding associated node through the associated smart contract, and the associated node decrypts the encrypted file according to the corresponding private key and verifies it, and after the verification is passed, the target information copy is digitally signed by the corresponding private key to obtain a third digital signature, and the target information copy carrying the third digital signature is sent to the associated smart contract, and the associated smart contract stores the target information copy carrying the third digital signature in the block of the associated blockchain.

[0051] Step S150, storing the target information carrying the first digital signature in a block of the target blockchain.

[0052] In the embodiment of the present application, the target node refers to the node where the target information is generated, and the node can be a terminal that can access the block.

[0053] The target information includes, but is not limited to, key documents such as bidding documents, contracts, leaflets and invoices, and the bidding documents are used as examples later. The target information copy refers to a photocopy of the target information, which is the same material.

[0054] An associated node associated with target information refers to a node that jointly confirms and signs the target information with the target node. For example, companies A, B, and C jointly implement a project, and the bidding documents need to be jointly confirmed and signed by the three companies. Company A generates the bidding documents through terminal A, and terminal A corresponding to company A is the target node. Company B confirms and signs through terminal B, and company C confirms and signs through terminal C. Then terminal B and terminal C are the associated nodes corresponding to the target information.

[0055] The blockchain connected to the associated node is called the associated blockchain, and the blockchain connected to the target node is called the target blockchain. For example, there are three blockchains, blockchain 1, blockchain 2, and blockchain 3. Terminal A is connected to blockchain 1, terminal B is only connected to blockchain 2, and terminal C is only connected to blockchain 3. If blockchain 1 is the target blockchain, then 2 to 3 are all associated blockchains.

[0056] Digital certificates and digital signatures are not introduced here.

[0057] Smart contracts are special protocols used to formulate contracts in blockchains. They are automatically executed contracts. The target smart contract refers to the smart contract in the target blockchain, and the associated smart contract refers to the smart contract in the associated blockchain. The cross-chain smart contract service can realize the data transmission between the target smart contract and the associated smart contract.

[0058] The purpose of this embodiment is to enable multiple nodes in different blockchains to verify and sign the target information and generate blocks in the blockchain. The implementation process of this embodiment is as follows:

[0059] In step S110, the target node first generates target information and uploads the target information to the target blockchain. Then the target smart contract on the target blockchain receives the target information and obtains the configuration file, where the configuration file is stored in the target blockchain in advance. The configuration file includes:

[0060] 1. The digital signature of the target node (i.e., the first digital signature). The target node signs the target information using its own private key to prove to other associated nodes that the target node has confirmed and signed the target information.

[0061] 2. The digital certificate of the target node is used by the target smart contract to identify the target node, and the public key included in the digital certificate is received. The public key is mainly used to verify the digital signature of the target node so that the target smart contract can determine the authenticity of the signature.

[0062] 3. The digital certificate of the associated node is used by the target smart contract to identify the associated node and receive the public key included in the digital certificate. The public key is mainly used to encrypt the target information copy to protect the target information copy (to prevent malicious nodes from tampering with it). Then only the corresponding node holding the private key corresponding to the public key can decrypt and obtain the target information copy.

[0063] 4. The public key of the target blockchain is mainly used by the target smart contract to decrypt the second digital signature sent from the other associated smart contracts. The second digital signature is a signature file obtained by the associated node signing the address of the target blockchain. The private key used for the signature is the private key of the target blockchain. After the target node and the associated node confirm the agreement, it can be sent in advance by the smart contract. The target smart contract can decrypt the second digital signature. Because the public key of the target blockchain exists in the configuration file, and the second digital signature sent by the associated blockchain can be received, it proves that the target node and the associated node have reached an agreement (or negotiated in advance) using the corresponding smart contract and blockchain (because the target node and the associated node are connected to different blockchains). If no agreement is reached, the public key of the target blockchain will not exist in the configuration file, the private key will not be transmitted in advance, and the target information cannot be confirmed and signed by different nodes in different blockchains.

[0064] In step S130, the second digital signature of the public key of the target blockchain is first verified, that is, decrypted and then compared. If the verification is passed, multiple copies of the target information are made. For example, if there are three signatories, two copies of the file are required. The target information copy is then encrypted. Since the first smart contract is fair, the target information will not be tampered with, but the target information copy needs to be uploaded to other nodes of other blockchains, so it needs to be encrypted to prevent other nodes from tampering with it. Public key can be used for encryption here, because the digital certificate has the public key of the associated node. The target information copy is encrypted using the public key, and only the associated node holds the corresponding private key to verify.

[0065] In step S140, the encrypted copy of the information is sent to the associated node through the associated associated smart contract. It should be noted that because the digital certificate in the configuration file provides a unique identity, when the encrypted copy of the information is sent, the digital certificate can be sent to the associated smart contract through the target smart contract. When the associated node receives the encrypted copy of the information, it can first decrypt the encrypted copy of the information with its own private key, and then use the private key it holds to digitally sign after verifying that the target copy of the information is correct. After signing, the target copy of the information is uploaded to the associated smart contract, and the associated smart contract generates the block.

[0066] It should be noted that the target node and the associated node communicate the specific content of the target information in advance, so after receiving the copy of the target information, the content can be verified. Signing the target information on the blockchain provides a tamper-free environment.

[0067] In step S150, the target information carrying the first signature is uploaded to the blockchain to generate a block.

[0068] The beneficial effects of this embodiment include:

[0069] In order to achieve the security management of target information of multiple nodes across blockchains (multi-party confirmation and multi-party signature), this method uploads the target file and configuration file in the target blockchain where the target node is located, and determines the transmission authority of the target information between multiple blockchains through the configuration file, so that the smart contracts of different chains can transmit the target information to each other, and the target information can flow across chains. Moreover, when the target information flows across chains, it is encrypted by a key, and only the associated node can decrypt and sign it, ensuring the security and non-tamperability of the data.

[0070] In some embodiments of the present application, the process of generating the first digital signature includes:

[0071] The target node performs hash processing on the target information to obtain a first hash value;

[0072] The target node digitally signs the first hash value according to the corresponding private key to obtain a first digital signature;

[0073] Before the associated smart contract on the associated blockchain corresponding to each associated node is signed by the second digital signature generated by the private key of the target blockchain, the method further includes:

[0074] Decrypt the first digital signature according to the public key in the digital certificate of the target node to obtain a second hash value;

[0075] If the second hash value is not equal to the first hash value, the target information is returned to the target node.

[0076] There is a situation where the target node forges a digital signature. If there is a problem with the digital signature uploaded by the target node, the target information will be returned to avoid uploading an incorrect digital signature and ensure fairness to multiple associated nodes.

[0077] In some embodiments of the present application, before sending the encrypted file to the associated node through the associated smart contract, the method further includes:

[0078] Sending the first digital signature to the associated smart contract;

[0079] The associated smart contract stores a copy of the target information carrying the third digital signature in a block of the associated blockchain including:

[0080] The associated smart contract generates a block of the associated blockchain by using the target information carrying the third digital signature and a copy of the target information carrying the first digital signature.

[0081] In this embodiment, the target node can view the signatures of the associated nodes through the target blockchain to ensure that each associated node has confirmed the target information and obtained the corresponding signature for easy verification.

[0082] In some embodiments of the present application, after the associated smart contract stores the copy of the target information carrying the third digital signature in a block of the associated blockchain, the method further includes:

[0083] Receiving a copy of the target information with a third digital signature sent by the associated smart contract;

[0084] The target information copy carrying the third digital signature and the target information carrying the first digital signature are used to generate a block of the target blockchain.

[0085] In this embodiment, each associated node can view the signatures of other associated nodes including the target node on the corresponding blockchain to ensure that each associated node has confirmed the target information and obtained the signature for easy verification.

[0086] In some embodiments of the present application, both the target blockchain and the associated blockchain are consortium chains.

[0087] In some embodiments of the present application, the configuration file is stored in the target blockchain, wherein the digital certificates corresponding to the multiple associated nodes associated with the target information in the configuration file, the digital certificate of the target node, and the first digital signature obtained by digitally signing the target information can be uploaded through the target node.

[0088] In some embodiments of the present application, before obtaining the configuration file and the target information generated by the target node corresponding to the target blockchain, the method further includes:

[0089] The target node applies to the CA for the public and private keys of the target node and multiple associated nodes. The CA is a trustworthy organization.

[0090] In some embodiments of the present application, the following examples are provided:

[0091] The three companies, namely, company terminal A (i.e., target node), company terminal B (i.e., associated node) and company terminal C (i.e., associated node), implement the bidding documents and reach an agreement in advance:

[0092] Confirm the content of the bidding documents; send the private key of Company A's blockchain 1 to other blockchains through smart contracts.

[0093] Step (1), company terminal A requests the digital certificates corresponding to company terminal A, company terminal B, and company terminal C from CA. The private key is stored by each company. The digital certificate contains the public key, and the private key can be uploaded by each company to the corresponding blockchain.

[0094] In step (2), company terminal A will generate a bidding document (i.e., target information), and hash the bidding document using a private key to obtain a first digital signature, and upload the bidding document, the first digital signature, and the digital certificate to blockchain 1.

[0095] In step (3), the company terminal B generates a second digital signature b through the smart contract in blockchain 2, using the address of blockchain 1 as the basic information and the private key of blockchain 1 as the encryption key, and sends the second digital signature b to the smart contract in blockchain 1.

[0096] In step (4), the company terminal C generates a second digital signature c through the smart contract in blockchain 3, using the address of blockchain 1 as the basic information and the private key of blockchain 1 as the encryption key, and sends the second digital signature c to the smart contract in blockchain 1.

[0097] In step (5), the blockchain 1 smart contract uses the public key of blockchain 1 stored in advance to decrypt the second digital signature b of step (3) and the digital signature c of step (4) and verify them.

[0098] Step (6), after the verification in step (5) is successful, two copies of the tender document are generated, and then the two copies of the tender document are encrypted respectively using the public key in the digital integer.

[0099] Step (7), sending the encrypted copy of the bidding document carrying the digital certificate of company terminal B to the smart contract of blockchain 2, and sending the encrypted copy of the bidding document carrying the digital certificate of company terminal C to the smart contract of blockchain 3.

[0100] In step (8), the smart contract of blockchain 2 sends the encrypted copy of the bidding document to company terminal B, which decrypts the encrypted copy of the bidding document using the corresponding private key to obtain a copy of the bidding document, and digitally signs the copy of the bidding document using the private key to obtain a third digital signature b, and sends the copy of the bidding document carrying the third digital signature b to blockchain 1 and blockchain 3.

[0101] The smart contract of blockchain 2 stores two copies of the bidding document carrying the third digital signature and the bidding document carrying the first digital signature in block 2 of the blockchain.

[0102] In step (9), the smart contract of blockchain 3 sends the encrypted file to company terminal C, which decrypts the encrypted file using the corresponding private key to obtain a copy of the bidding document, digitally signs the copy of the bidding document using the private key, and sends the copy of the bidding document carrying the third digital signature c to blockchain 1 and blockchain 2.

[0103] The smart contract of blockchain 3 stores two copies of the tender document carrying the third digital signature and the tender document carrying the first digital signature in the block of blockchain 3.

[0104] In step (10), the smart contract of blockchain 1 stores two copies of the bidding document carrying the third digital signature and the bidding document carrying the first digital signature in block 1 of the blockchain.

[0105] In order to achieve the security management of target information of multiple nodes across blockchains (multi-party confirmation and multi-party signature), this method uploads the target file and configuration file in the target blockchain where the target node is located, and determines the transmission authority of the target information between multiple blockchains through the configuration file, so that the smart contracts of different chains can transmit the target information to each other, and the target information can flow across chains. Moreover, when the target information flows across chains, it is encrypted by a key, and only the associated node can decrypt and sign it, ensuring the security and non-tamperability of the data.

[0106] like Figure 2 As shown, one embodiment of the present application provides an information management device based on blockchain, the device comprising:

[0107] The information receiving unit 1100 is used to obtain a configuration file and target information generated by a target node corresponding to a target blockchain, wherein the configuration file includes digital certificates corresponding to multiple associated nodes associated with the target information, a digital certificate of the target node, a first digital signature obtained by digitally signing the target information, and a public key corresponding to the target blockchain;

[0108] The signature receiving unit 1200 is used to obtain a second digital signature generated by the private key of the target blockchain through the associated smart contract on the associated blockchain corresponding to each associated node;

[0109] The first processing unit 1300 is used to decrypt and verify the second digital signature according to the public key corresponding to the target blockchain. If the verification is successful, multiple copies of target information corresponding to the target information are generated, and each copy of the target information is encrypted using the public key in the digital certificate corresponding to each associated node to obtain an encrypted file;

[0110] The second processing unit 1400 is used to send each encrypted file to the corresponding associated smart contract, so as to send the encrypted file to the corresponding associated node through the associated smart contract, and the associated node decrypts the encrypted file according to the corresponding private key and verifies it, and after the verification is passed, digitally signs the target information copy with the corresponding private key to obtain a third digital signature, and sends the target information copy carrying the third digital signature to the associated smart contract, and the associated smart contract stores the target information copy carrying the third digital signature in the block of the associated blockchain;

[0111] The data upload unit 1500 is used to store the target information carrying the first digital signature in a block of the target blockchain.

[0112] It should be noted that the blockchain-based information management device provided in this embodiment and the above-mentioned blockchain-based information management method are based on the same embodiment concept, so the relevant content of the above-mentioned blockchain-based information management method is also applicable to the content of the blockchain-based information management system, and therefore, it will not be repeated here.

[0113] like Figure 3 The embodiment of the present application further provides an electronic device, the electronic device comprising:

[0114] at least one memory;

[0115] at least one processor;

[0116] at least one program;

[0117] The program is stored in the memory, and the processor executes at least one program to implement the blockchain-based information management method implemented in the present disclosure.

[0118] The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a vehicle-mounted computer, etc.

[0119] The electronic device according to the embodiment of the present application is described in detail below.

[0120] The processor 1600 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention.

[0121] The memory 1700 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1700 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the program code is stored in the memory 1700, and the processor 1600 calls and executes the information management method based on blockchain in the embodiment of the present invention.

[0122] Input / output interface 1800, used to implement information input and output;

[0123] The communication interface 1900 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0124] Bus 2000 , which transmits information between various components of the device (e.g., processor 1600 , memory 1700 , input / output interface 1800 , and communication interface 1900 );

[0125] The processor 1600 , the memory 1700 , the input / output interface 1800 , and the communication interface 1900 are connected to each other in communication within the device via the bus 2000 .

[0126] An embodiment of the present invention also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned blockchain-based information management method.

[0127] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0128] The embodiments described in the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0129] Those skilled in the art will appreciate that the technical solutions shown in the figures do not limit the embodiments of the present invention and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0130] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0132] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0133] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs.

[0138] 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 blockchain-based information management method, characterized in that: For setting a target smart contract on a target blockchain, the method comprises: Obtaining a configuration file and target information generated by a target node corresponding to the target blockchain, wherein the configuration file includes digital certificates corresponding to multiple associated nodes associated with the target information, a digital certificate of the target node, a first digital signature obtained by digitally signing the target information, and a public key corresponding to the target blockchain; Obtaining a second digital signature generated by a private key of the target blockchain through an associated smart contract on an associated blockchain corresponding to each of the associated nodes; Decrypting and verifying the second digital signature according to the public key corresponding to the target blockchain, if the verification is successful, generating multiple copies of the target information corresponding to the target information, and encrypting each copy of the target information using the public key in the digital certificate corresponding to each of the associated nodes to obtain an encrypted file; Send each encrypted file to the corresponding associated smart contract, so that the encrypted file is sent to the corresponding associated node through the associated smart contract, and the associated node decrypts the encrypted file according to the corresponding private key and verifies it, and after the verification is passed, digitally signs the target information copy with the corresponding private key to obtain a third digital signature, and sends the target information copy carrying the third digital signature to the associated smart contract, and the associated smart contract stores the target information copy carrying the third digital signature in the block of the associated blockchain; The target information carrying the first digital signature is stored in a block of the target blockchain.

2. The information management method based on blockchain according to claim 1 is characterized in that: The generation process of the first digital signature includes: The target node performs hash processing on the target information to obtain a first hash value; The target node digitally signs the first hash value according to the corresponding private key to obtain a first digital signature; Before the associated smart contract on the associated blockchain corresponding to each of the associated nodes is signed by the second digital signature generated by the private key of the target blockchain, the method further includes: Decrypting the first digital signature according to the public key in the digital certificate of the target node to obtain a second hash value; If the second hash value is not equal to the first hash value, the target information is returned to the target node.

3. The information management method based on blockchain according to claim 1 is characterized in that: Before sending the encrypted file to the associated node through the associated smart contract, the method further includes: Sending the first digital signature to the associated smart contract; The associated smart contract storing the target information copy carrying the third digital signature in a block of the associated blockchain includes: The associated smart contract generates a block of the associated blockchain by using the target information carrying the third digital signature and a copy of the target information carrying the first digital signature.

4. The information management method based on blockchain according to claim 1 is characterized in that: After the associated smart contract stores the copy of the target information carrying the third digital signature in a block of the associated blockchain, the method further includes: Receiving a copy of the target information carrying the third digital signature sent by the associated smart contract; Generate a block of the target blockchain using the copy of the target information carrying the third digital signature and the target information carrying the first digital signature.

5. The information management method based on blockchain according to claim 1 is characterized in that: The target blockchain and the associated blockchain are both consortium chains.

6. The information management method based on blockchain according to claim 1 is characterized in that: The configuration file is stored in the target blockchain.

7. The information management method based on blockchain according to claim 1 is characterized in that: Before obtaining the configuration file and the target information generated by the target node corresponding to the target blockchain, the method further includes: The target node applies to the CA organization for the public key and private key of the target node and the plurality of associated nodes.

8. An information management device based on blockchain, characterized in that: The device comprises: An information receiving unit is used to obtain a configuration file and target information generated by a target node corresponding to a target blockchain, wherein the configuration file includes digital certificates corresponding to a plurality of associated nodes associated with the target information, a digital certificate of the target node, a first digital signature obtained by digitally signing the target information, and a public key corresponding to the target blockchain; A signature receiving unit, configured to obtain a second digital signature generated by a private key of the target blockchain through an associated smart contract on an associated blockchain corresponding to each of the associated nodes; A first processing unit is used to decrypt and verify the second digital signature according to the public key corresponding to the target blockchain. If the verification is successful, multiple copies of the target information corresponding to the target information are generated, and each copy of the target information is encrypted using the public key in the digital certificate corresponding to each of the associated nodes to obtain an encrypted file; A second processing unit is configured to send each encrypted file to the corresponding associated smart contract, so as to send the encrypted file to the corresponding associated node through the associated smart contract, and the associated node decrypts and verifies the encrypted file according to the corresponding private key, and after the verification is passed, digitally signs the target information copy with the corresponding private key to obtain a third digital signature, and sends the target information copy carrying the third digital signature to the associated smart contract, so that the associated smart contract stores the target information copy carrying the third digital signature in the block of the associated blockchain; A data uploading unit is used to store the target information carrying the first digital signature in a block of the target blockchain.

9. An electronic device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the blockchain-based information management method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the blockchain-based information management method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Blockchain-based digital document system

    EP3993318A1

  • Application configuration file management method and device

    WO2020233373A1

  • Service processing system and method based on blockchain

    WO2020244231A1

Cited By

  • Address book data encryption method and device based on block chain, equipment, medium and product

    CN119544369A

  • Blockchain-based address book data encryption method and device, equipment, medium and product

    CN119544369B