A method for completely erasing non-transactional harmful data authorized on a permissioned chain
By using the collaboration of authorized nodes and distributed clients on the permission chain, off-site multi-step erasure and verification are realized, which solves the problems of illegal data writing and privacy protection in the blockchain, improves data management efficiency and privacy protection, and reduces Reduces network load and ensures data integrity and decentralization.
Patent Information
- Application Number
- CN202210100479.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-01-27
AI Technical Summary
The non-tamperable nature of existing blockchain technology makes it difficult to manage the writing and dissemination of illegal data, and cannot effectively protect user privacy. Especially as the scale of data grows and the scale of the network expands, the supervision methods of existing solutions It is inefficient and may lead to overloading, destroying decentralization.
Adopt the method of complete erasure of non-transaction harmful data authorized on the permission chain, through the cooperation of user nodes, authorized nodes and distributed clients, using off-site multi-step erasure, verification and demonstration after erasure, adjustment and setting erasure cycle and Steps to initialize new user nodes, implement local erasure and verification of data, ensure data integrity and validity, and demonstrate it through third-party distributed cloud storage.
It effectively solves the problem of permanent writing of harmful information and data volume growth on the chain, reduces the network load, ensures the integrity and privacy of data, avoids the large-scale spread of harmful data, and supports flexible erasure cycles and instant triggers. Enhances the decentralization of the blockchain.
Smart Images

Figure CN114461623B
Abstract
Description
Technical Field
[0001] The present invention relates to blockchain supervision technology, and in particular to a method for completely erasing non-transaction harmful data authorized on a permission chain. Background Art
[0002] Blockchain can be used to implement timestamp services, achieve fairness and correctness in secure multi-party computing, and establish smart contracts. Blockchain can also provide users with the ability to publish information. Due to the tamper-proof nature of traditional blockchain, this information cannot be reviewed or edited and will exist permanently on the chain as long as the target blockchain network continues to exist.
[0003] However, the insertion of arbitrary data has caused some serious problems. The writing of illegal data content has always been a huge challenge for law enforcement agencies. The current general view is that the data content in the full node (storing the complete ledger data in the blockchain) in the blockchain network is immutable and cannot be edited. Under this premise, user nodes may inadvertently store and spread illegal content, and malicious users may exploit this flaw. In addition, the application requirements of government supervision may conflict with the current immutable settings in the blockchain protocol. Another issue that needs attention is user privacy protection.
[0004] The EU's GDPR (General Data Protection Regulation) states that every data subject has the right to be forgotten, that is, the right to obtain the erasure of his or her personal data from the data controller without undue delay. As a rapidly developing application system, blockchain needs to include mechanisms to implement privacy protection to ensure the security needs of user subjects. In addition to legal and privacy protection, the growing scale of blockchain is also a matter of concern. Although some light nodes can operate normally without complete blockchain data, new nodes still need to synchronize complete data for verification when they join, which increases the demand for processing existing full ledger data.
[0005] In order to solve the problem of harmful data being inserted into the blockchain at will, existing solutions mainly focus on two aspects: ex ante supervision and ex post supervision. Ex ante supervision takes effect before data is written into the blockchain. The main solution is to increase transaction fees and content supervision. However, adding data filtering or transaction fee calculation operations during the data writing phase will reduce transaction speeds, and content supervision based on machine learning solutions requires high-computing servers. Since high-computing servers are usually concentrated in the hands of a few people, the addition of such centralized nodes will undermine the decentralization of the blockchain. Ex post supervision solutions need to process data that has already been uploaded to the chain, and require the consensus of the entire network to perform modification or erasure operations. This behavior requires the execution of multi-party secure computing, which will consume a lot of load for large-scale networks and take a long time. In addition, voting behavior may in some sense promote the spread of erased objects (illegal data, etc.), causing more serious effects.
[0006] Unlike traditional blockchain, as a distributed ledger technology, each node participating in the permissioned chain system is licensed, which reduces the difficulty of designing data processing solutions. The existing supervision of harmful data in the permissioned chain is only aimed at hiding the key values in the distributed ledger, and does not completely clear the data. Summary of the invention
[0007] Purpose of the invention: The purpose of the present invention is to solve the deficiencies in the prior art and provide a method for completely erasing non-transactional harmful data authorized on a permission chain.
[0008] Technical solution: The present invention provides a method for completely erasing authorized non-transaction harmful data on a permission chain, comprising a user node, an authorization node, a distributed client and non-transaction data; the user node uses a distributed client to interact with the permission chain network; the authorization node authenticates the distributed client that joins the permission chain network, and authorizes the erasure operation of the user node in the permission chain network; the distributed client saves the account book information in the permission chain, and generates or verifies the transaction in the block; the non-transaction data is the supplementary information inserted by the user node in the input script and output script of the transaction when the distributed client generates the transaction; the specific method for completely erasing non-transaction harmful data comprises the following steps:
[0009] Step S1: Offsite multi-step erasure
[0010] When the user node of the permission chain writes non-transaction data, additional information is added. After the data is uploaded to the chain, if the consensus among the authorized nodes determines that the non-transaction data contains harmful data, the authorized distributed client will perform local erasure of the data;
[0011] Step S2: Verification and demonstration after erasure
[0012] The user nodes of the permission chain use the additional information in the non-transaction data to verify the full ledger data of the permission chain. Users who insert the corresponding data after erasure can provide cryptographic-based evidence; including block data integrity verification, consistency verification, validity verification and evidence provision;
[0013] Step S3: Adjust and set the erasing cycle.
[0014] Authorized nodes set specific block segments to perform instant trigger erasure, or set periodic erasure of all network nodes;
[0015] Step S4: Initialize new user node
[0016] New user nodes added to the permissioned chain network synchronize the erased and unerased parts of the full ledger data.
[0017] Furthermore, the specific steps of the remote multi-step erasure in step S1 are:
[0018] S1.1. New transaction writing: The user node pre-processes the inserted data through the distributed client and stores it in the third-party cloud storage and obtains the storage credentials. Then, the inserted data and additional information such as the storage credentials are written into the non-transaction area.
[0019] S1.2. Determination of harmful data and authorization to erase it: User nodes in the permissioned chain network elect an authorization node. If the authorization node finds harmful data in the local ledger, it locates the corresponding harmful data and initiates authorization to erase the block interval.
[0020] S1.3. Local erasure of a remote distributed client: After receiving an erasure request from an authorization node, the distributed client executes data erasure of the segment specified by the authorization node or performs periodic erasure according to the received information.
[0021] Furthermore, the detailed process of writing a new transaction in step S1.1 is as follows:
[0022] (1) The user node in the permission chain first randomly generates an encryption key dk←{0,1} λ , and then use symmetric encryption to write the information plaintext t D Get the ciphertext t C ←Enc(dk,t D );
[0023] (2) The user node will encrypt the ciphertext t C Store to third-party distributed cloud storage and obtain data storage credentials
[0024] (3) To verify the erased transaction data, the user node calculates the erased transaction hash value hash(Tx′) and the inserted data plaintext tD The hash value hash(t D ), combined to obtain non-transaction data And write it into the generated transaction.
[0025] Furthermore, the detailed process of harmful data determination and erasure authorization in step S1.2 is as follows:
[0026] (1) User nodes elect authorized nodes through the heartbeat mechanism. When there is no authorized node in the permission chain network, the user nodes of the permission chain network first switch to the candidate state and vote. The user node that receives the majority of votes becomes the new authorized node. The authorized node periodically sends heartbeat information to all user nodes to maintain its dominant position. If the user node does not receive the heartbeat information for a period of time, the permission chain will re-select a new authorized node because there is no authorized node. At this time, all user nodes switch to the candidate state and enter a new term, voting to elect a new authorized node;
[0027] (2) The permission chain authorized node retrieves the full ledger block data If harmful data is detected in the blockchain or a request to erase sensitive data involving user privacy is received, the block interval [q s ,q e ], where q s and q e Representing blocks of block heights s and e respectively, generating erase authorization transactions.
[0028] Furthermore, the detailed process of the remote distributed client performing local erasure in step S1.3 is as follows:
[0029] (1) Distributed client DApp queries the current permission chain data The current block height n determines the block range that needs to be erased [q s ,q e ], get the set of on-chain blocks that need to be erased
[0030] (2) Distributed client DApp for transaction data Execution judgment If the result is true, the data is non-transaction data and is selected. If the result is false, the data content is ignored. i Represents the block data of a specific block height i, Represents the jth transaction data in the i-th block data;
[0031] (3) Distributed Client DApp iExecute the non-transaction data erasure algorithm txPrune to erase the selected non-transaction data, where the input is the permission chain data C p and erase block interval [q s ,q e ], the output is the erased permission chain data in To perform an erase operation Data, after erasure, non-transaction data becomes:
[0032] The method of erasing algorithm txPrune is as follows:
[0033] (A) Distributed client DApp reads the permission chain data that needs to be erased and erase block interval [q s ,q e ], B n For the block with the current block height of n, locate the target block data
[0034] (B) Distributed client DApp extracts Tx i,j , for each transaction data If the block Bi has not been erased, P. <Tx i,j ;t D >=true, the distributed client DApp is erased t in D get
[0035] (C) Distributed client DApp returns the erased permission chain data
[0036] Furthermore, the detailed process of step S2 is as follows:
[0037] S2.1. Distributed client DApp reads the permission chain block data without performing block erasure operation Read the block data with block height i First check block B i The previous block B saved in i-1 The hash value PrevBlockHash is correct, and then the block generation data is checked to see if it complies with the permission chain network settings, and finally the transactions packaged in the block are calculated. The MerkleRoot value for each transaction Check whether the output script output corresponds to the value of the input script input, and check the validity of the transaction lock time lockTime. If the above checks are passed, the unerased blockchain data is valid;
[0038] S2.2. Distributed client DApp reads the permission chain block data that has been erased from the blockchain Read the block data with block height i Calculate the erased transaction hash value f(Tx i ,*)=g(Tx i ,1)·g(Tx i ,2)·...g(Tx i ,u), where u is block B i The number of transactions saved in the , where the erased part of the transaction is verified by the hash (Tx ′) inserted in the data. If the calculation result f (Tx i ,*) can verify the erasure part of the license chain If the integrity and consistency of the block are verified, the verification is passed and the content of this part of the block is valid; otherwise, the erased part fails to pass the verification and the erase operation is invalid;
[0039] S2.3. Users who insert corresponding data after erasure can use the encrypted copy in the third-party distributed cloud storage combined with the data storage certificate in the block transaction for proof. Users who need to prove the erased on-chain data provide the encryption key dk of the corresponding data. The proving party can prove the data by erasing part of the transaction. get and hash(t D );
[0040] S2.4. The party providing evidence downloads the encrypted data from the third-party distributed storage. C And use dk to decrypt to get t D , calculate hash(t' D ), if hash(t' D )=hash(t D ), the erased data is verified.
[0041] Furthermore, the detailed process of step S3 is as follows:
[0042] S3.1. The authorization node in the permission chain confirms the erasure operation based on consensus and generates an erasure authorization transaction, in which the transaction transfer amount is 0 and the erasure related information is set to {p,q s ,q e}, where p is the erasure period, which is set to the transfer-in account address after encoding, and the erasure authorization is written into the account data;
[0043] S3.2, after receiving a new block, if there is a transaction with a transfer amount of 0 initiated by an authorized node in the block, the DApp client will decode the transfer account address and extract the erase setting {p,q s ,q e}, then make an erase setting judgment and start adjusting the local erase setting of the node;
[0044] S3.3. If the erasure period p≠0, the distributed client DApp ignores the rest of the information in the heartbeat data packet and periodically executes the erasure interval [q n -p,q n ] in the block data where q n The latest block.
[0045] S3.4. If the erasure period p = 0, the distributed client DApp performs an immediate erasure, erasing the block data in the specified interval in the local block ledger data.
[0046] Furthermore, the detailed process of step S4 is as follows:
[0047] S4.1. After a new node joins the permissioned chain network, it receives node synchronization information to confirm the authorized node in the current term, and synchronizes the full ledger data in the current network from the user node in the permissioned chain;
[0048] S4.2. If periodic erasure is being performed in the current permission chain network, the new node will retrieve the full ledger data after synchronizing to the full ledger data that has not completed periodic erasure. Reverse the order of the transactions in the block related to the erasure cycle setting, and extract the erasure cycle {p,q s ,q e}, re-erase the most recent cycle to obtain the full ledger data consistent with other nodes;
[0049] S4.3. If instant erasure is being performed in the current permission chain network, after the new node synchronizes to the full ledger data that has not been erased, it extracts the erasure setting {p,q s ,q e}, re-execute instant erasure locally to ensure the consistency of all ledger data in the network.
[0050] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0051] (1) The present invention uses a distributed client to perform off-site synchronous erasure. This solution is easy to deploy. During the data writing phase, only the erased data index needs to be inserted, which avoids the additional network load caused by the full network consensus under multi-party secure computing in the existing erasure solution. It effectively handles the permanent writing of harmful information on the chain and alleviates the rapid growth of block data volume.
[0052] (2) In the on-chain data verification stage, the present invention verifies the integrity and validity of the block data based on the erasure status. The erasure of part of the block data can be verified by erasing the hash value of the part, thereby ensuring the integrity and validity of the on-chain data. Users can also verify the inserted data erased on the chain through encrypted data in a third-party distributed cloud storage.
[0053] (3) Based on the characteristics of the permission chain, the present invention uses authorized nodes to adjust the erasure cycle of all nodes in the permission chain and supports triggered erasure in specific scenarios, effectively avoiding the large-scale dissemination of harmful data on the permission chain. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is the overall system framework diagram of the present invention.
[0055] Figure 2 It is a schematic diagram of the on-chain data erasure phase of the embodiment.
[0056] Figure 3 It is a schematic diagram of the on-chain data verification phase of the embodiment. DETAILED DESCRIPTION
[0057] The technical solution of the present invention is described in detail below, but the protection scope of the present invention is not limited to the embodiments.
[0058] like Figure 1 As shown, the present invention relates to user nodes, authorization nodes, distributed clients and non-transaction data; user nodes use distributed clients to interact with the permission chain network; authorization nodes authenticate distributed clients that join the permission chain network and authorize the erasure operation of user nodes in the permission chain network; distributed clients save the account book information in the permission chain and generate or verify transactions in blocks; non-transaction data is supplementary information for auxiliary transaction execution inserted by user nodes in the input script and output script of the transaction when the distributed client generates a transaction.
[0059] The method for completely erasing non-transaction harmful data authorized on the permission chain of this embodiment specifically includes the following steps:
[0060] Stage 1 (multi-step erasure at a different location):
[0061] 1.1、New transaction writing
[0062] The user node in the permission chain first randomly generates an encryption key dk←{0,1} λ , and then use symmetric encryption to write the information plaintext t D Get the ciphertext t C ←Enc(dk,t D );The user node will encrypt the ciphertext t C Store to third-party distributed cloud storage and obtain data storage credentials To verify the erased transaction data, the user node calculates the erased transaction hash value hash(Tx′) and the inserted data plaintext t D The hash value hash(t D ), combined to obtain non-transaction data And write it into the generated transaction;
[0063] 1.2. Determination of harmful data and authorization for erasure
[0064] User nodes in the permission chain network elect authorized nodes through the heartbeat mechanism, that is, when there is no authorized node in the permission chain network, the user node first switches to the candidate state and votes. The user node that receives the majority of votes becomes the new authorized node. The authorized node periodically sends heartbeat information to all user nodes to maintain its dominant position. If the user node does not receive the heartbeat information for a period of time, the permission chain will re-select a new authorized node because there is no authorized node. All user nodes in the permission chain switch to the candidate state and enter a new term, and vote to elect a new node; after the election, the authorized node in the permission chain retrieves the full ledger block data If harmful data is detected in the blockchain or a request to erase sensitive data involving user privacy is received, the block interval [q s ,q e ], where "q s " and "q e " indicates that the block with block height s and e generates an erasure authorization transaction;
[0065] 1.3. Local Wipe of Remote Distributed Clients
[0066] Distributed client DApp queries the current permission chain data The current block height n determines the block range that needs to be erased [q s ,q e ], get the set of on-chain blocks that need to be erased Then, the distributed client DApp processes the transaction data Execution judgment If the result is true, the data is non-transaction data and is selected. If the result is false, the data content is ignored.i Represents the block data of a specific block height i, Represents the jth transaction data in the i-th block data; distributed client DApp i Execute the non-transaction data erasure algorithm txPrune to erase the selected non-transaction data, where the input is the permission chain data and erase block interval [q s ,q e ], the output is the erased permission chain data in To perform an erase operation Data, after erasure, non-transaction data becomes like Figure 2 shown.
[0067] Stage 2 (Verification and demonstration after erasure):
[0068] 2.1. Distributed client DApp reads the permission chain block data without performing block erasure operation Read the block data with block height i First check block B i The previous block B saved in i-1 The hash value PrevBlockHash is correct, and then the block generation data is checked to see if it complies with the permission chain network settings, and finally the transactions packaged in the block are calculated. The MerkleRoot value for each transaction Check whether the output script output corresponds to the value of the input script input, and check the validity of the transaction lock time lockTime. If all the above checks are passed, the unerased blockchain data is valid; then, the distributed client DApp reads the permission chain block data that has executed blockchain erasure Read the block data with block height i Calculate the erased transaction hash value f(Tx i , *) = g(Tx i , 1)·g(Tx i ,2)·...g(Tx i , u), where u is block B i The number of transactions saved in the , where the erased part of the transaction is verified by the hash (Tx ′) inserted in the data. If the calculation result f (Tx i ,*) can verify the erasure part of the permission chain If the integrity and consistency of the block are verified, the verification is passed and the content of this part of the block is valid; otherwise, the erased part fails to pass the verification and the erase operation is invalid;
[0069] 2.2. After erasure, the user node that inserts the corresponding data can use the encrypted copy in the third-party distributed cloud storage combined with the data storage certificate in the block transaction for proof. The user who needs to prove the erased on-chain data provides the encryption key dk of the corresponding data. The proving party can prove the data by erasing part of the transaction. get and hash(t D );The party who presents the evidence downloads the encrypted data from the third-party distributed storage t C And use dk to decrypt to get t D , calculate hash(t′ D ), if hash(t′ D )=hash(t D ), the erased data is verified.
[0070] Step 3 (Adjusting and setting the erase cycle)
[0071] 3.1. The authorization node in the permission chain generates an erasure authorization transaction based on consensus confirmation of the erasure operation, where the transaction transfer amount is 0 and the erasure related information is set to {p, q s ,q e}, where p is the erasure period, which is set to the transfer-in account address after encoding, and the erasure authorization is written into the account data;
[0072] 3.2. After receiving a new block, if there is a transaction with a transfer amount of 0 initiated by an authorized node in the block, the DApp client in the permissioned chain network decodes the transfer account address and extracts the erase setting {p, q s ,q e}, then make an erasure setting judgment and start adjusting the node's local erasure settings; if the erasure period p≠0, the distributed client DApp ignores the rest of the information in the heartbeat data packet, and periodically executes the erasure interval [q n -p,q n ] in the block data where q n is the latest block; if the erasure period p = 0, the distributed client DApp performs an immediate erasure, erasing the block data in the specified interval in the local block ledger data
[0073] Step 4 (initialize new user node)
[0074] 4.1. After a new node joins the permissioned chain network, it receives node synchronization information to confirm the authorized node in the current term, and synchronizes the full ledger data in the current network from the user node in the permissioned chain;
[0075] 4.2. If periodic erasure is being performed in the current permission chain network, the new node will retrieve the full ledger data after synchronizing to the full ledger data that has not completed periodic erasure. , retrieve the transactions in the relevant blocks of the erasure cycle setting in reverse order, and extract the erasure cycle {p, q s ,q e}, re-execute the erasure operation for the most recent cycle to obtain the full ledger data consistent with other nodes; if the current permission chain network is performing instant erasure, after the new node synchronizes to the full ledger data that has not been erased, it extracts the erasure setting {p, q s ,q e}, re-execute instant erasure locally to ensure the consistency of all ledger data in the network, such as Figure 3 shown.
[0076] It can be seen from the above embodiments that the present invention can effectively handle the permanent writing of harmful information on the chain by performing local erasure operations through distributed clients, and the design scheme uses the hash value of the erased data to verify the integrity and validity of the data on the chain, and uses a third-party distributed cloud storage to save encrypted copies to achieve cryptographic-based user proof. In addition, allowing the erasure cycle to be variable allows the permission chain network to more flexibly respond to emergencies of illegal data insertion.
Claims
1. A method for completely erasing non-transactional harmful data authorized on a permissioned chain, Features: It includes user nodes, authorization nodes, distributed clients and non-transaction data; the user node uses the distributed client to interact with the permission chain network; the authorization node authenticates the distributed client that joins the permission chain network and authorizes the erasure operation of the user node in the permission chain network; the distributed client saves the account information in the permission chain and generates or verifies the transaction in the block; the non-transaction data is the supplementary information inserted by the user node in the input script and output script of the transaction when the distributed client generates the transaction; the specific method for completely erasing non-transaction harmful data includes the following steps: Step S1: Offsite multi-step erasure When the user node of the permission chain writes non-transaction data, additional information is added. After the data is uploaded to the chain, if the consensus among the authorized nodes determines that the non-transaction data contains harmful data, the authorized distributed client will perform local erasure of the data; Step S2: Verification and demonstration after erasure The user node of the permission chain uses the additional information in the non-transaction data to verify the full ledger data of the permission chain. The user who inserts the corresponding data after erasure can provide cryptographic proof; Step S3: Adjust and set the erasing cycle Authorized nodes set specific block segments to perform instant trigger erasure, or set periodic erasure of all network nodes; Step S4: Initialize new user node New user nodes added to the permissioned chain network synchronize the erased and unerased parts of the full ledger data.
2. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 1, Features: The specific steps of remote multi-step erasing in step S1 are as follows: S1.
1. New transaction writing: The user node pre-processes the inserted data through the distributed client and stores it in the third-party cloud storage and obtains the storage credentials. Then, the inserted data and additional information such as the storage credentials are written into the non-transaction area. S1.
2. Determination of harmful data and authorization to erase it: User nodes in the permissioned chain network elect authorized nodes. If the authorized node finds harmful data in the local ledger, it locates the corresponding harmful data and initiates authorization to erase the block interval; S1.
3. Local erasure of distributed clients: After receiving the erasure request from the authorization node, the distributed client executes data erasure of the segment specified by the authorization node or performs periodic erasure according to the received information.
3. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 2, Features: The detailed process of writing a new transaction in step S1.1 is as follows: (1) The user node in the permission chain first randomly generates an encryption key dk←{0,1} λ , and then use symmetric encryption to write the information plaintext t D Get the ciphertext t C ←Enc(dk,t D ); (2) The user node will encrypt the ciphertext t C Store to third-party distributed cloud storage and obtain data storage credentials (3) To verify the erased transaction data, the user node calculates the erased transaction hash value hash(Tx′) and the inserted data plaintext t D The hash value hash(t D ), combined to obtain non-transaction data And write it into the generated transaction.
4. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 2, Features: The detailed process of harmful data determination and erasure authorization in step S1.2 is as follows: (1) User nodes elect authorized nodes through the heartbeat mechanism. When there is no authorized node in the permission chain network, the user nodes of the permission chain network first switch to the candidate state and vote. The user node that receives the majority of votes becomes the new authorized node. The authorized node periodically sends heartbeat information to all user nodes to maintain its dominant position. If the user node does not receive the heartbeat information for a period of time, the permission chain will re-select a new authorized node because there is no authorized node. At this time, all user nodes switch to the candidate state and enter a new term, voting to elect a new authorized node; (2) The permission chain authorized node retrieves the full ledger block data If harmful data is detected in the blockchain or a request to erase sensitive data involving user privacy is received, the block interval [q s ,q e ], where q s and q e Representing blocks of block heights s and e respectively, generating erase authorization transactions.
5. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 2, Features: The detailed process of local erasure by the remote distributed client in step S1.3 is as follows: (1) Distributed client DApp queries the current permission chain data The current block height n determines the block range that needs to be erased [q s ,q e ], get the set of on-chain blocks that need to be erased (2) Distributed client DApp for transaction data Execution judgment If the result is true, the data is non-transaction data and is selected. If the result is false, the data content is ignored. i Represents the block data of a specific block height i, Represents the jth transaction data in the i-th block data; (3) Distributed Client DApp i Execute the non-transaction data erasure algorithm txPrune to erase the selected non-transaction data, where the input is the permission chain data and erase block interval [q s ,q e ], the output is the erased permission chain data in To perform an erase operation Data, after erasure, non-transaction data becomes: The method of erasing algorithm txPrune is as follows: (A) Distributed client DApp reads the permission chain data that needs to be erased and erase block interval [q s ,q e ], B n For the block with the current block height of n, locate the target block data (B) Distributed client DApp extracts Tx i,j , for each transaction data If block B i Erase operation not performed P: <Tx i,j ;t D >=true, the distributed client DApp is erased t in D get (C) Distributed client DApp returns the erased permission chain data 6. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 1, Features: The detailed process of step S2 is as follows: S2.
1. Distributed client DApp reads the permission chain block data without performing block erasure operation Read the block data with block height i First check block B i The previous block B saved in i-1 The hash value PrevBlockHash is correct, and then the block generation data is checked to see if it complies with the permission chain network settings, and finally the transactions packaged in the block are calculated. The MerkleRoot value for each transaction Check whether the output script output corresponds to the value of the input script input, and check the validity of the transaction lock time lockTime. If all the checks pass, the unerased blockchain data is valid; S2.
2. Distributed client DApp reads the permission chain block data that has been erased from the blockchain Read the block data with block height i Calculate the erased transaction hash value f(Tx i ,*)=g(Tx i ,1)·g(Tx i ,2)·…g(Tx i ,u), where u is block B i The number of transactions saved in the , where the erased part of the transaction is verified by the hash (Tx ′) inserted in the data. If the calculation result f (Tx i ,*) can verify the erasure part of the license chain If the integrity and consistency of the block are verified, the verification is passed and the content of this part of the block is valid; otherwise, the erased part fails to pass the verification and the erase operation is invalid; S2.
3. Users who insert corresponding data after erasure can use the encrypted copy in the third-party distributed cloud storage combined with the data storage certificate in the block transaction for proof. Users who need to prove the erased on-chain data provide the encryption key dk of the corresponding data. The proving party can prove the data by erasing part of the transaction. get and hash(t D ); S2.
4. The party providing evidence downloads the encrypted data from the third-party distributed storage. C And use dk to decrypt to get t D , calculate hash(t' D ), if hash(t' D )=hash(t D ), the erased data is verified.
7. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 1, Features: The detailed process of step S3 is as follows: S3.
1. The authorization node in the permission chain confirms the erasure operation based on consensus and generates an erasure authorization transaction, in which the transaction transfer amount is 0 and the erasure related information is set to {p,q s ,q e }, where p is the erasure period, which is set to the transfer-in account address after encoding, and the erasure authorization is written into the account data; S3.2, after receiving a new block, if there is a transaction with a transfer amount of 0 initiated by an authorized node in the block, the DApp client will decode the transfer account address and extract the erase setting {p,q s ,q e }, then make an erase setting judgment and start adjusting the local erase setting of the node; If the erasure period p≠0, the distributed client DApp ignores the rest of the information in the heartbeat data packet and periodically executes the erasure interval [q n -p,q n ] in the block data where q n The latest block. If the erasure period p = 0, the distributed client DApp performs an immediate erasure, erasing the block data in the specified interval in the local block ledger data.
8. The method for completely erasing non-transactional harmful data authorized on a permission chain according to claim 1, Features: The detailed process of step S4 is as follows: S4.
1. After the new user node joins the permission chain network, it receives the node synchronization information to confirm the authorized node in the current term, and synchronizes the full ledger data in the current network from the user node in the permission chain; S4.
2. If periodic erasure is being performed in the current permission chain network, the new user node will retrieve the full ledger data after synchronizing to the full ledger data that has not completed periodic erasure. Reverse the order of the transactions in the block related to the erasure cycle setting, and extract the erasure cycle {p,q s ,q e }, re-erase the most recent cycle to obtain the full ledger data consistent with other nodes; S4.
3. If instant erasure is being performed in the current permission chain network, after the new user node synchronizes to the full ledger data that has not been erased, it extracts the erasure setting {p,q s ,q e }, re-execute instant erasure locally to ensure the consistency of all ledger data in the network.
Citation Information
Cited By
Method for extracting and parsing bitcoin transaction autonomy information
US12626253B2
Method for extracting and parsing bitcoin transaction autonomy information
US20250037124A1
