Blockchain Consensus Node Hash Verification Mechanism

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing blockchain consensus methods often lead to inconsistencies in distributed ledgers due to differences in results from executing transaction tasks by various consensus nodes.

Innovation Solution

A consensus method for a blockchain that involves calculating a first hash value for a transaction task by a consensus node, determining a second hash value based on the first hash value and the transaction task, and generating a block containing the first hash value only when the second hash value matches at least half of the third hash values broadcasted by other consensus nodes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If each consensus node independently executes transaction tasks and packages results into blocks, then processing speed and autonomy are improved, but consistency of distributed ledgers deteriorates due to different execution results

Engineering Contradiction:
Improvetransaction processing speedVSAvoidconsistency of distributed ledgers
Core Design Contradiction:
ProductivityVSStability of the object's composition

Solution Approach 1:

The patent applies preliminary action by requiring consensus nodes to pre-calculate hash values of transaction task execution results before packaging blocks. Each node calculates a first hash value from its execution result, then determines a second hash value that includes this first hash value. This preliminary hashing allows nodes to verify consistency of execution results across the network before finalizing blocks, preventing divergence of distributed ledgers while maintaining independent processing capability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback by having consensus nodes broadcast their second hash values to other nodes and compare them. Each node receives third hash values from other nodes and verifies whether its own second hash value matches at least half of the received hash values. This feedback mechanism ensures that only blocks with consistent execution results across the majority of nodes are added to the blockchain, thereby maintaining ledger consistency while allowing parallel processing.

Inventive Principle:
Principle #23Feedback

2Stability of the object's composition

If hash value comparison is performed to ensure consensus, then ledger consistency is improved, but communication overhead and time consumption increase

Engineering Contradiction:
Improveledger consistencyVSAvoidconsensus time
Core Design Contradiction:
Stability of the object's compositionVSLoss of time

Solution Approach 1:

The patent applies parameter changes by transforming the execution results into hash values for comparison. Instead of comparing actual transaction execution results directly (which would be data-intensive and time-consuming), nodes compare compact hash values that represent these results. The system calculates a first hash value from execution results, then a second hash value that incorporates this first hash value along with transaction task information. This parameter transformation enables efficient consensus verification while maintaining ledger consistency.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If all consensus nodes execute and verify every transaction task, then security and consistency are improved, but system complexity and computational overhead increase

Engineering Contradiction:
Improveconsensus reliabilityVSAvoidconsensus mechanism complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies the extraction principle by separating the verification process into distinct hash value comparisons rather than requiring full transaction result verification. Each node extracts the essential consistency information into hash values (first hash value from execution results, second hash value including first hash value and transaction tasks). Nodes only need to compare these extracted hash values with others' hash values to verify consensus, rather than examining and re-executing all transaction details, thus reducing computational overhead while maintaining reliability.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS12284295B2Consensus method for blockchain, consensus node, electronic device, and storage medium
Publication Date: 2025.04.22 JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
  • US12284295B2 patent drawing
  • US12284295B2 patent drawing
  • US12284295B2 patent drawing

AI summary

The present application provides a consensus method for a blockchain, a consensus node, an electronic device, and a storage medium. The method includes: receiving a transaction request sent by an object, calculating a first hash value of executing the at least one transaction task by a consensus node, determining a second hash value according to the first hash value and the at least one transaction task, receiving third hash values broadcasted by other consensus nodes, and generating and adding to the blockchain a block containing the first hash value in response to the second hash value being the same as at least half of the third hash values.