Smart Contract Bytecode Sharding for Block-Size-Limited Deployment

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing smart contract deployment methods on blockchain networks face limitations in applicability and efficiency due to block size constraints and manual installation errors.

Innovation Solution

Implement sharding processing on intermediate smart contract code to generate multiple byte arrays, which are transmitted as program shards to blockchain nodes for assembly into a complete code, allowing decentralized deployment without manual installation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If the block size is limited to ensure security and reach consensus quickly, then the consensus speed and security are improved, but the smart contract deployment applicability deteriorates

Engineering Contradiction:
Improveconsensus speedVSAvoidsmart contract deployment applicability
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The patent divides the smart contract code into multiple bytecode arrays (shards) that can be independently packaged and transmitted. Each shard is a segment of the overall contract, allowing the contract to be deployed in parts rather than as a single large unit, thus overcoming the block size limitation while maintaining security and consensus speed

Inventive Principle:
Principle #1Segmentation

2Manufacturing precision

If manual verification of program packages is performed, then the installation accuracy is improved, but the installation efficiency and reliability deteriorate due to manual errors

Engineering Contradiction:
Improveinstallation accuracyVSAvoidinstallation efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent implements automatic verification where the blockchain node automatically verifies the validity of the program package without manual intervention. The system uses cryptographic signatures and predefined verification mechanisms to automatically confirm the authenticity and correctness of the smart contract code, eliminating manual errors while maintaining high accuracy and improving efficiency

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20260012367A1Blockchain-based data processing method, device, and readable storage medium
Publication Date: 2026.01.08 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US20260012367A1 patent drawing
  • US20260012367A1 patent drawing
  • US20260012367A1 patent drawing

AI summary

A blockchain-based data processing method includes: performing sharding processing on an intermediate code corresponding to a smart contract to obtain A byte arrays, A being a positive integer greater than 1; generating A program shards according to indices of the byte arrays, a total quantity of shards, and the byte arrays, the total quantity being A, and each byte array corresponding to one program shard; and transmitting the A program shards to a blockchain network, the A program shards being added to a blockchain by a blockchain node in the blockchain network to obtain A on-chain program shards, and the A on-chain program shards being configured to be assembled to generate the complete intermediate code of the smart contract.