Smart Contract Execution via Master-Slave Node Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current blockchain platforms face challenges in data security and low execution efficiency, particularly in decentralized networks where data owners lose control over their data, and smart contract execution is hindered by synchronization mechanisms, leading to inefficiencies in large-scale data exchange and transactions.

Innovation Solution

A self-adaptive execution method is introduced, where a master node in a P2P network starts a smart contract, randomly selects slave nodes, generates and stores public and private keys, and ensures synchronization of contract states, execution sequences, and data, using a Practical Byzantine Fault Tolerance algorithm to improve throughput and concurrency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a whole-network consensus synchronization mechanism is used in traditional blockchain, then data security and trustworthiness are improved, but smart contract execution efficiency deteriorates

Engineering Contradiction:
Improvedata securityVSAvoidsmart contract execution efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent divides the blockchain network into a master node and multiple slave nodes, segmenting the consensus and execution processes. The master node manages the ledger and coordinates execution, while slave nodes perform computational tasks independently, reducing the synchronization burden on the entire network and improving execution efficiency while maintaining security through distributed verification.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a master node as an intermediary between the client and slave nodes. The master node receives contract execution requests, coordinates with slave nodes, and manages the synchronization process. This intermediary role allows for more efficient communication and coordination, reducing the overhead of whole-network consensus while ensuring data security through centralized coordination.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If a master node and slave nodes execute smart contracts synchronously, then data trustworthiness is improved through verification, but execution time increases

Engineering Contradiction:
Improvedata trustworthinessVSAvoidexecution time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs preliminary actions by having slave nodes execute contract computations independently before final verification. The master node prepares the execution environment and coordinates tasks in advance, while slave nodes perform computational work parallelly. This preliminary execution reduces the overall time needed for synchronized verification while maintaining trustworthiness through subsequent validation.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies partial action by having slave nodes perform only the necessary computational tasks required for contract execution, rather than requiring all nodes to perform complete verification. The master node handles coordination and verification, while slave nodes execute specific computations, reducing total execution time while maintaining sufficient trustworthiness through selective verification.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11042524B1Self-adaptive execution method of smart contract for realizing data trustworthiness
Publication Date: 2021.06.22 PEKING UNIV
  • US11042524B1 patent drawing
  • US11042524B1 patent drawing
  • US11042524B1 patent drawing

AI summary

A self-adaptive execution method for realizing data trustworthiness includes: starting a smart contract, executing the smart contract and verifying an execution result of the smart contract. A random execution mode based on redundant calculation is employed, and multiple nodes in a network are randomly selected to jointly execute a data analysis logic, thereby realizing trusted computing of an execution result in a relatively distrusted environment and improving an execution efficiency of the smart contract. Meanwhile, by recording the execution of the contract in a process of synchronously calling the multiple nodes, a needed execution record of contract calling is acquired from the node in a latest state and replayed locally when synchronization is needed, so that the random multiple nodes can be quickly recovered when states of the random multiple nodes are not synchronized, realizing high availability of data and satisfying a data analysis scenario with low response time.