Block content modification method and device based on editable blockchain

By adopting editable blockchain technology on the blockchain, the hash conflict value is calculated using the trapped gate sharding and homomorphic-chameleon function between privileged nodes, the transaction content is modified, the loss and management problems caused by non-modification are solved, and a fair and efficient editing method is provided.

CN113064952BActive Publication Date: 2025-08-12INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110477124.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-29
Publication Date
2025-08-12
Estimated Expiration
2041-04-29

AI Technical Summary

Technical Problem

The existing blockchain trading system cannot modify the data on the chain, resulting in permanent losses when wrong transactions or keys are lost, and the amount of data cannot be modified appropriately, causing economic losses.

Method used

Editable blockchain technology is adopted to calculate hash conflict values through trapped gate shard broadcasting and verification between privileged nodes, and use homomorphic-chameleon function to calculate hash conflict values to achieve content modification.

Benefits of technology

It reduces the losses caused by the inability to revoke content on the transaction blockchain, provides fair and efficient blockchain editing methods, and solves functional and management problems caused by unmodification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113064952B_ABST
    Figure CN113064952B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for modifying block content based on an editable blockchain, relating to the field of blockchain technology. The method comprises: broadcasting a corresponding trapdoor shard among privileged nodes on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; receiving the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculating a trapdoor based on the trapdoor shard and the received trapdoor shard; verifying the trapdoor, and after verification, calculating a hash collision value based on the trapdoor, first content, second content, and the corresponding trapdoor shard, thereby completing the modification of the first content to the second content; wherein the first content and the second content are the content before and after the modification on the editable blockchain, respectively. The present invention can reduce various losses caused by the inability to rescind content on transaction blockchains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method and device for modifying block content based on an editable blockchain. Background Art

[0002] Blockchain, a decentralized, tamper-proof, and traceable distributed ledger system, has been applied to various sectors of society. Its core concept is to shift from centralized bookkeeping to a distributed ledger with shared backup, enhancing its tamper-resistance and security through public oversight. Currently, major banks have established blockchain trading platforms and are implementing them in real-world transactions. Their primary goal is to create a blockchain trading platform that transparently processes all types of transaction data while also ensuring traceability and tamper-resistant content control. However, there are always two sides to the coin. While blockchain's immutability provides data security for distributed ledgers, it also poses a significant challenge to the management of content on the blockchain. Over the past decade of blockchain's development, the massive growth in data has placed enormous demands on storage. Furthermore, human error is inevitable during bank transaction transfers. If errors occur in transaction systems and no modifications can be made, significant losses can result. These characteristics have led to numerous practical challenges for existing blockchain systems.

[0003] Existing banking blockchain transaction systems are built on standard blockchain platforms. Their primary drawback is the inability to modify on-chain data, leading to numerous real-world problems. For example, incorrectly entering a cash transfer address results in permanent and irreversible loss; losing a key also results in irreversible, permanent losses. Furthermore, the volume of banking transaction data is enormous, with applications potentially handling tens of billions of yuan in transactions per day. Limiting access to ledger databases without the ability to perform appropriate modifications inevitably leads to a variety of real-world problems, potentially even causing irreparable financial losses. Summary of the Invention

[0004] To address the problems in the prior art, the present invention provides a method and device for modifying block content based on an editable blockchain, which specifically includes the following technical solutions:

[0005] In a first aspect, the present invention provides a method for modifying block content based on an editable blockchain, comprising:

[0006] Broadcast its corresponding trapdoor shard among all privileged nodes on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard;

[0007] Receive the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculate the trapdoor based on its own trapdoor shard and the received trapdoor shards;

[0008] Verifying the trapdoor, and after passing the verification, calculating a hash collision value based on the trapdoor, the first content, the second content, and the trapdoor fragment corresponding to the trapdoor, thereby completing the modification of the first content into the second content;

[0009] The first content and the second content are the content before and after modification on the editable blockchain, respectively.

[0010] Furthermore, after completing the modification of the first content into the second content, the method further includes:

[0011] Generate a random number and use the random number as the updated trapdoor shard;

[0012] An updated public key shard is determined based on the updated trapdoor shard and the updated public key shard is published.

[0013] The step of calculating the trapdoor based on the own trapdoor fragment and the received trapdoor fragment comprises:

[0014] Perform four arithmetic operations based on all trapdoor slices;

[0015] Determine that the results of the four arithmetic operations are trapdoors.

[0016] The verifying of the trapdoor includes:

[0017] Determining whether the trapdoor satisfies a preset calculation formula of a homomorphic-chameleon function;

[0018] If the trapdoor satisfies the calculation formula, it is determined that the trapdoor verification has passed.

[0019] In a second aspect, the present invention provides a block content modification device based on an editable blockchain, comprising:

[0020] A broadcast module, configured to broadcast its corresponding trapdoor shard among the privileged nodes on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard;

[0021] A calculation module, configured to receive the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculate the trapdoor based on its own trapdoor shards and the received trapdoor shards;

[0022] an editing module, configured to verify the trapdoor, and after verification, calculate a hash collision value based on the trapdoor, the first content, the second content, and its own corresponding trapdoor fragment, thereby completing the modification of the first content into the second content;

[0023] The first content and the second content are the content before and after modification on the editable blockchain, respectively.

[0024] Furthermore, it also includes:

[0025] An update module, configured to generate a random number and use the random number as an updated trapdoor shard;

[0026] The publishing module is used to determine the updated public key shard based on the updated trapdoor shard and publish the updated public key shard.

[0027] Wherein, the calculation module includes:

[0028] The calculation unit is used to perform four arithmetic operations based on all the trapdoor slices;

[0029] A determining unit is used to determine whether the result of the four arithmetic operations is a trapdoor.

[0030] Wherein, the editing module includes:

[0031] a judging unit, configured to judge whether the trapdoor satisfies a preset calculation formula of a homomorphic-chameleon function;

[0032] A passing unit is configured to determine that the trapdoor verification has passed if the trapdoor satisfies the calculation formula.

[0033] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for modifying block content based on an editable blockchain are implemented.

[0034] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for modifying block content based on an editable blockchain.

[0035] As can be seen from the above technical solution, the present invention provides a method and device for modifying block content based on an editable blockchain. The method broadcasts its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard. The method then receives the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain and calculates a trapdoor based on its own trapdoor shard and the received trapdoor shard. The trapdoor is then verified, and after verification, a hash collision value is calculated based on the trapdoor, first content, second content, and its corresponding trapdoor shard, thereby modifying the first content to the second content. The first content and the second content are the content before and after the modification on the editable blockchain, respectively. This method can reduce various losses caused by the inability to rescind content on transaction blockchains. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 Schematic diagram of the structure of the transfer transaction system in an embodiment of the present invention.

[0038] Figure 2 Schematic diagram of the first flow chart of a method for modifying block content based on an editable blockchain in an embodiment of the present invention.

[0039] Figure 3 2 is a schematic diagram of a second flow chart of a method for modifying block content based on an editable blockchain in an embodiment of the present invention.

[0040] Figure 4 This is a first structural diagram of a block content modification device based on an editable blockchain in an embodiment of the present invention.

[0041] Figure 5 This is a second structural diagram of the block content modification device based on the editable blockchain in an embodiment of the present invention.

[0042] Figure 6 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0044] The various security risks of transaction systems arising from the flaws of existing blockchains necessitate the design of effective, editable blockchain protocols in a controlled manner to address these issues. Information within blockchain applications must be editable under oversight to prevent sensitive and harmful information from being uploaded to the blockchain. Under appropriate conditions, certain private data should be deleted to prevent it from negatively impacting social and personal development. Appropriate content editing operations should also be permitted to optimize the blockchain's content. Industry-wide blockchain platforms should provide transaction correction and update capabilities in a fair, reliable, and transparent manner. Editable blockchain technology can provide technical updates and support for transfer transaction systems.

[0045] The present invention addresses the shortcomings of existing systems, which completely prevent the modification of transaction information, by implementing a bank transfer transaction system based on an editable blockchain. It provides a fair, efficient, and decentralized blockchain editing method. This system can address functional and regulatory issues caused by the inability to modify blockchain content, as well as mitigate losses caused by the inability to reverse erroneous transfer information.

[0046] An embodiment of the present invention proposes a block content modification method based on an editable blockchain, and the transfer transaction method is applied to a block content modification system based on an editable blockchain.

[0047] The overall architecture of the transfer transaction system consists of two modules: a standard blockchain module and an editable blockchain module. Nodes are categorized as privileged nodes and standard nodes. The standard blockchain module stores immutable blockchain information, and its content cannot be modified. It is primarily established to serve the editable blockchain module. Privileged nodes can edit the content of the editable blockchain module under reasonable circumstances through a consensus algorithm. Privileged nodes are established by the authoritative bank organizational structure. For example, for interbank applications, the four major state-owned banks could each hold a shard of private keys. For intrabank applications, key departments such as the head office, architecture, and security could each hold a shard of private keys. Standard nodes, representing transaction nodes in bank transactions, do not participate in blockchain consensus operations and only conduct standard transfer transactions.

[0048] like Figure 1As shown, the transfer transaction system consists of a standard blockchain module and an editable blockchain module. The standard blockchain module includes smart contracts, which are primarily used to generate public keys and verify private keys. The editable blockchain module allows for editing blockchain content. The model's nodes include privileged nodes and standard nodes. Privileged nodes are a consensus group that can edit the blockchain. Their members possess trust and credibility, and they reach a Proof of Authority (PoA) consensus. This means that a majority vote determines whether to edit block content. This privileged node group can be constructed based on the actual needs of a bank's transaction transfer system. For example, it could include key departments such as the head office, security, IT architecture, and development. Generally speaking, privileged nodes manage keys and perform identity authentication operations through the standard blockchain. They also oversee transaction information on the editable blockchain.

[0049] Regular blockchains constrain editable blockchain systems. Editable blockchains, on the other hand, utilize regular blockchains as a privileged node to verify and trace edited information. Through smart contracts published on regular blockchains, they can generate and store editable key blocks. When private keys are generated, the public key is also published on the smart contract, ensuring that the private key remains private.

[0050] The present invention provides an embodiment of a method for modifying block content based on an editable blockchain, see Figure 2 The block content modification method based on the editable blockchain specifically includes the following contents:

[0051] S101: Broadcasting the corresponding trapdoor shard among the privileged nodes on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard;

[0052] The base g of the Chameleon hash function and two large prime numbers p and q satisfying p = kq + 1 are made public in the entire editable blockchain network, where k is an arbitrary integer.

[0053] In this step, when the content m (first content) on the blockchain needs to be correctly modified to content m' (second content), each privileged node first needs to broadcast its corresponding trapdoor shard offline. It can be understood that the i-th privileged node P i The corresponding trapdoor shard is x i .

[0054] It should be noted that each privileged node privately generates a random number as its corresponding trapdoor shard in turn, and calculates the public key shard h according to the following formula:

[0055]

[0056] Where n is the number of privileged nodes.

[0057] Furthermore, to ensure that the trapdoor shard is not exposed, the specific process of generating the public key h is as follows: the first privileged node P1 publishes the first public key shard h1 on the smart contract:

[0058]

[0059] The second privileged node P2 calculates h2 based on the latest public key shard h1 on the smart contract:

[0060]

[0061] By analogy, the i-th privileged node is based on h i-1 To calculate the latest public key fragment h i , until all privileged nodes complete the synthesis operation of the public key h and the trapdoor private key x:

[0062]

[0063] x=x1·x2…x n .

[0064] In this step, the first content and the second content are the content before and after modification on the editable blockchain, respectively.

[0065] S102: Receive the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculate the trapdoor based on its own trapdoor shards and the received trapdoor shards;

[0066] In this step, after receiving the trapdoor slices from other privileged nodes, the privileged node performs four arithmetic operations based on all the trapdoor slices and determines that the results of the four arithmetic operations are trapdoors.

[0067] In this embodiment, the trapdoor x′ is synthesized offline according to the synthesis formula of the trapdoor private key x, that is,

[0068] S103: Verify the trapdoor. After verification, calculate a hash collision value based on the trapdoor, the first content, the second content, and the trapdoor fragment corresponding to the trapdoor, and complete the modification of the first content into the second content.

[0069] In this step, the correctness of the trapdoor is verified. The trapdoor verification process uses the homomorphic-chameleon hash function: all privileged nodes first vote to publish it on the smart contract. The smart contract then begins to calculate the value of the homomorphic-chameleon function f based on the previously generated public key shards.

[0070] The specific calculation method of the homomorphic-chameleon function f is as follows, and g is the previously published cardinality:

[0071] f(x)=g x mod q.

[0072] It is determined whether the trapdoor satisfies a preset calculation formula of a homomorphism-chameleon function, and if the trapdoor satisfies the calculation formula, it is determined that the trapdoor verification has passed.

[0073]

[0074] Furthermore, after verification, the privileged node calculates the hash collision value using the synthesized correct trapdoor x (i.e., the synthesized trapdoor x′), thereby modifying the content m (first content) on the editable blockchain to content m′ (second content). The basic principle is as follows:

[0075] H=g m ·h r =g m′ ·h r′ mod p;

[0076] According to the equation, the privileged node can calculate the collision value r′ of the chameleon hash:

[0077] r′=F′(m,m′,r)=(mm′+xr)x -1 mod q.

[0078] It should be noted that due to the difficulty of solving the discrete logarithm problem, the h, g, q, p obtained by ordinary nodes on the public network cannot be used to calculate the shard x of the trapdoor private key. i and trapdoor x, thus ensuring the confidentiality of the transaction system's secret keys. After the privileged node with the private key shard in the bank calculates the hash value H corresponding to the block content m and the random number r, according to the basic property of the hash function: without knowing the trapdoor x, any node cannot calculate the corresponding content m' and random number r', making the hash result equal to H, that is, satisfying the following formula:

[0079] F(g,h,m′,r′)=F(g,h,m,r).

[0080] At this point, the new hash collision and the target content can obtain the same block hash value, the content m of the corresponding block has been changed to content m', and the entire editing process is completed.

[0081] As can be seen from the above description, the block content modification method based on an editable blockchain provided by an embodiment of the present invention broadcasts its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; receives the corresponding trapdoor shard broadcast by each privileged node on the editable blockchain, calculates a trapdoor based on its own trapdoor shard and the received trapdoor shard; verifies the trapdoor, and after verification, calculates a hash collision value based on the trapdoor, the first content, the second content, and its corresponding trapdoor shard, thereby completing the modification of the first content to the second content; wherein the first content and the second content are the content before and after the modification on the editable blockchain, respectively. This can reduce various losses caused by the inability to revoke content on the transaction blockchain.

[0082] In one embodiment of the present invention, see Figure 3 After step S103, the block content modification method based on the editable blockchain specifically includes the following contents:

[0083] S104: Generate a random number and use the random number as the updated trapdoor fragment;

[0084] S105: Determine an updated public key shard based on the updated trapdoor shard and publish the updated public key shard.

[0085] In this embodiment, after the entire editing process is complete, the key needs to be regenerated. Each privileged node continues to generate a random number as a shard of the private key and simultaneously publishes the latest public key on the common chain. Simultaneously, the privileged node verifies the validity of the private key trapdoor using a homomorphic hash function on the smart contract, effectively passing identity authentication. A new round of block editing can then be performed.

[0086] As can be seen from the above description, this invention provides a fair, efficient, and decentralized blockchain editing method. It can address functional and regulatory issues caused by the inability to modify blockchain content, as well as mitigate various losses caused by the inability to reverse erroneous transfers.

[0087] The embodiment of the present invention provides a specific implementation of a block content modification device based on an editable blockchain that can implement all the contents of the block content modification method based on an editable blockchain, see Figure 4 The block content modification device based on the editable blockchain specifically includes the following contents:

[0088] A broadcast module 10 is configured to broadcast its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard;

[0089] The calculation module 20 is configured to receive the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculate the trapdoor based on its own trapdoor shards and the received trapdoor shards;

[0090] An editing module 30 is configured to verify the trapdoor and, upon successful verification, calculate a hash collision value based on the trapdoor, the first content, the second content, and its own corresponding trapdoor fragment, thereby completing the modification of the first content into the second content.

[0091] The first content and the second content are the content before and after modification on the editable blockchain, respectively.

[0092] Wherein, the calculation module includes:

[0093] The calculation unit is used to perform four arithmetic operations based on all the trapdoor slices;

[0094] A determining unit is used to determine whether the result of the four arithmetic operations is a trapdoor.

[0095] Wherein, the editing module includes:

[0096] a judging unit, configured to judge whether the trapdoor satisfies a preset calculation formula of a homomorphic-chameleon function;

[0097] A passing unit is configured to determine that the trapdoor verification has passed if the trapdoor satisfies the calculation formula.

[0098] In one embodiment of the present invention, see Figure 5 , specifically including the following contents:

[0099] An updating module 40 is configured to generate a random number and use the random number as an updated trapdoor fragment;

[0100] The publishing module 50 is configured to determine an updated public key segment based on the updated trapdoor segment and publish the updated public key segment.

[0101] The embodiment of the block content modification device based on the editable blockchain provided by the present invention can be specifically used to execute the processing flow of the embodiment of the block content modification method based on the editable blockchain in the above embodiment. Its functions are not repeated here, and reference can be made to the detailed description of the above method embodiment.

[0102] As can be seen from the above description, the block content modification device based on the editable blockchain provided by the embodiment of the present invention broadcasts its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; receives the corresponding trapdoor shard broadcast by each privileged node on the editable blockchain, calculates a trapdoor based on its own trapdoor shard and the received trapdoor shard; verifies the trapdoor, and after verification, calculates a hash collision value based on the trapdoor, the first content, the second content, and its corresponding trapdoor shard, thereby completing the modification of the first content to the second content; wherein the first content and the second content are the content before and after the modification on the editable blockchain, respectively. This can reduce various losses caused by the inability to revoke content on the transaction blockchain.

[0103] The present application provides an embodiment of an electronic device for implementing all or part of the content of the block content modification method based on an editable blockchain. The electronic device specifically includes the following content:

[0104] A processor, a memory, a communication interface, and a bus; wherein the processor, the memory, and the communication interface communicate with each other via the bus; the communication interface is used to implement information transmission between related devices; the electronic device can be a desktop computer, a tablet computer, a mobile terminal, etc., but this embodiment is not limited thereto. In this embodiment, the electronic device can be implemented with reference to the embodiment for implementing the block content modification method based on the editable blockchain and the embodiment for implementing the block content modification device based on the editable blockchain, the contents of which are incorporated herein and repeated parts are not repeated.

[0105] Figure 6 Schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Figure 6 As shown, the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It is worth noting that the Figure 6 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0106] In one embodiment, the block content modification function based on the editable blockchain can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:

[0107] Broadcast its corresponding trapdoor shard among all privileged nodes on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard;

[0108] Receive the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculate the trapdoor based on its own trapdoor shard and the received trapdoor shards;

[0109] Verifying the trapdoor, and after passing the verification, calculating a hash collision value based on the trapdoor, the first content, the second content, and the trapdoor fragment corresponding to the trapdoor, thereby completing the modification of the first content into the second content;

[0110] The first content and the second content are the content before and after modification on the editable blockchain, respectively.

[0111] As can be seen from the above description, the electronic device provided in the embodiment of the present application broadcasts its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; receives the corresponding trapdoor shard broadcast by each privileged node on the editable blockchain, calculates a trapdoor based on its own trapdoor shard and the received trapdoor shard; verifies the trapdoor, and after verification, calculates a hash collision value based on the trapdoor, the first content, the second content, and its corresponding trapdoor shard, thereby completing the modification of the first content to the second content; wherein the first content and the second content are the content before and after the modification on the editable blockchain, respectively. This can reduce various losses caused by the inability to revoke content on the transaction blockchain.

[0112] In another embodiment, the block content modification device based on the editable blockchain can be configured separately from the central processor 9100. For example, the block content modification device based on the editable blockchain can be configured as a chip connected to the central processor 9100, and the block content modification function based on the editable blockchain can be realized through the control of the central processor.

[0113] like Figure 6 As shown, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Figure 6 In addition, the electronic device 9600 may also include all components shown in Figure 6 For components not shown, reference may be made to the prior art.

[0114] like Figure 6As shown, the central processing unit 9100 is sometimes also referred to as a controller or operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0115] Memory 9140 can be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It can store the aforementioned failure-related information and also store programs that execute the relevant information. The CPU 9100 can execute the programs stored in memory 9140 to implement information storage or processing.

[0116] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 may be, for example, a keypad or touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.

[0117] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), or a SIM card. Alternatively, it may be a memory that retains information even when power is off, can be selectively erased, and is provided with more data. Examples of such memory are sometimes referred to as EPROMs. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 by the central processing unit 9100.

[0118] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various driver programs for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0119] The communication module 9110 is a transmitter / receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in a conventional mobile communication terminal.

[0120] Based on different communication technologies, multiple communication modules 9110 can be provided in the same electronic device, such as a cellular network module, a Bluetooth module, and / or a wireless local area network module. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing common telecommunication functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Furthermore, the audio processor 9130 is also coupled to the central processing unit 9100, enabling local recording via the microphone 9132 and playback of stored audio via the speaker 9131.

[0121] Embodiments of the present invention also provide a computer-readable storage medium capable of implementing all steps of the method for modifying block content based on an editable blockchain in the above-mentioned embodiment. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the computer program implements all steps of the method for modifying block content based on an editable blockchain in the above-mentioned embodiment. For example, when the processor executes the computer program, the following steps are implemented:

[0122] Broadcast its corresponding trapdoor shard among all privileged nodes on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard;

[0123] Receive the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, and calculate the trapdoor based on its own trapdoor shard and the received trapdoor shards;

[0124] Verifying the trapdoor, and after passing the verification, calculating a hash collision value based on the trapdoor, the first content, the second content, and the trapdoor fragment corresponding to the trapdoor, thereby completing the modification of the first content into the second content;

[0125] The first content and the second content are the content before and after modification on the editable blockchain, respectively.

[0126] As can be seen from the above description, the computer-readable storage medium provided in an embodiment of the present invention broadcasts its corresponding trapdoor shard among each privileged node on an editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; receives the corresponding trapdoor shards broadcast by each privileged node on the editable blockchain, calculates a trapdoor based on its own trapdoor shard and the received trapdoor shard; verifies the trapdoor, and after verification, calculates a hash collision value based on the trapdoor, the first content, the second content, and its corresponding trapdoor shard, thereby completing the modification of the first content to the second content; wherein the first content and the second content are the content before and after the modification on the editable blockchain, respectively. This can reduce various losses caused by the inability to rescind content on a transaction blockchain.

[0127] Although the present invention provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative work. The order of steps listed in the embodiments is only one way of executing the steps among many steps and does not represent the only execution order. When an actual device or client product is executed, the method can be executed sequentially or in parallel according to the embodiments or the accompanying drawings (for example, in a parallel processor or multi-threaded processing environment).

[0128] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, devices (systems), or computer program products. Thus, the embodiments of this specification may take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0129] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0130] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0132] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or permutation of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of the present invention can be used alone or in combination with one or more other aspects and / or embodiments thereof.

[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and description of the present invention.

Claims

1. A method for modifying block content based on an editable blockchain, characterized in that: include: Broadcasting its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; wherein the editable blockchain is connected to a common blockchain, the common blockchain is used to store immutable blockchain information, and includes a smart contract for generating public keys and verifying private keys. The privileged node performs key management and identity authentication through the common blockchain and edits the content of the editable blockchain; Receiving the trapdoor shards corresponding to the respective privileged nodes on the editable blockchain, and calculating a trapdoor based on the own trapdoor shards and the received trapdoor shards; calculating the trapdoor based on the own trapdoor shards and the received trapdoor shards includes: performing four arithmetic operations on all the trapdoor shards; and determining the results of the four arithmetic operations as the trapdoor; Verifying the trapdoor, and after passing the verification, calculating a hash collision value based on the trapdoor, the first content, the second content, and the trapdoor fragment corresponding to the trapdoor, thereby completing the modification of the first content into the second content; The first content and the second content are the content before and after modification on the editable blockchain, respectively.

2. The method for modifying block content based on an editable blockchain according to claim 1, characterized in that: After completing the modification of the first content into the second content, the method further includes: Generate a random number and use the random number as the updated trapdoor shard; An updated public key shard is determined based on the updated trapdoor shard and the updated public key shard is published.

3. The method for modifying block content based on an editable blockchain according to claim 1, characterized in that: The verifying the trapdoor includes: Determining whether the trapdoor satisfies a preset calculation formula of a homomorphic-chameleon function; If the trapdoor satisfies the calculation formula, it is determined that the trapdoor verification has passed.

4. A block content modification device based on an editable blockchain, characterized in that: include: a broadcast module, configured to broadcast its corresponding trapdoor shard among each privileged node on the editable blockchain, so that each privileged node on the editable blockchain broadcasts its corresponding trapdoor shard; wherein the editable blockchain is connected to a common blockchain, which is used to store tamper-proof blockchain information and includes smart contracts for generating public keys and verifying private keys. The privileged node performs key management and identity authentication through the common blockchain and edits the content of the editable blockchain; a calculation module, configured to receive the trapdoor shards corresponding to the respective privileged nodes on the editable blockchain, and calculate a trapdoor based on its own trapdoor shards and the received trapdoor shards; wherein the calculating the trapdoor based on its own trapdoor shards and the received trapdoor shards comprises: performing four arithmetic operations on all the trapdoor shards; and determining the results of the four arithmetic operations as the trapdoor; an editing module, configured to verify the trapdoor, and after verification, calculate a hash collision value based on the trapdoor, the first content, the second content, and its own corresponding trapdoor fragment, thereby completing the modification of the first content into the second content; The first content and the second content are the content before and after modification on the editable blockchain, respectively.

5. The block content modification device based on the editable blockchain according to claim 4 is characterized in that: Also includes: An update module, configured to generate a random number and use the random number as an updated trapdoor shard; The publishing module is used to determine the updated public key shard based on the updated trapdoor shard and publish the updated public key shard.

6. The block content modification device based on the editable blockchain according to claim 4 is characterized in that: The editing module includes: a judging unit, configured to judge whether the trapdoor satisfies a preset calculation formula of a homomorphic-chameleon function; A passing unit is configured to determine that the trapdoor verification has passed if the trapdoor satisfies the calculation formula.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the block content modification method based on the editable blockchain according to any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the block content modification method based on the editable blockchain according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Editable block chain system

    CN111460497A

  • File redaction database system

    US20200204358A1