Smart Contract BASE64 Instructions for Blockchain VM Encoding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The Ethereum virtual machine does not support BASE64 encoding/decoding operations by default, limiting the functionality of smart contracts in blockchain networks.

Innovation Solution

Incorporate BASE64 encoding/decoding instructions and logic into the blockchain virtual machine and smart contract compiler, enabling nodes to invoke pre-deployed smart contracts for encoding/decoding operations using memory-based parameter passing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional centralized storage and transmission methods are used for encrypted data, then data security is compromised, but distributed storage increases security; however, distributed storage increases system complexity and management difficulty

Engineering Contradiction:
Improvedata securityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent divides encrypted data into multiple code blocks and distributes them across different storage nodes in the blockchain network. This segmentation approach enhances security by preventing any single node from accessing the complete data, while the modular structure simplifies management compared to centralized storage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces smart contracts as intermediaries to manage the distributed storage and retrieval processes. These automated contracts handle data encoding, distribution, and recovery operations, reducing the complexity of managing distributed storage by automating previously manual processes.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If manual data encoding and decoding processes are used, then operational control is maintained, but labor intensity and processing time increase; automated processes reduce time but increase implementation complexity

Engineering Contradiction:
Improveprocessing speedVSAvoidprocess complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements self-service automation through smart contracts that automatically perform data encoding, segmentation, distribution, and retrieval operations without manual intervention. The system encodes data automatically when stored and decodes it automatically when retrieved, significantly improving processing speed while the automated nature reduces long-term operational complexity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent performs data encoding and segmentation in advance during the storage phase, so that when data retrieval is needed, the decoding process is already prepared and can execute rapidly. This preliminary processing action reduces the time required for actual data access operations.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If data is stored in a centralized location, then access control is simple, but security vulnerabilities increase; distributed storage enhances security but makes access control more difficult

Engineering Contradiction:
Improvedata securityVSAvoidaccess control
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent creates a universal access control mechanism through smart contracts that can be applied across all distributed storage nodes uniformly. The same contract logic governs access permissions, encoding, and decoding operations across the entire network, simplifying access control management despite the distributed architecture by providing a consistent, multi-functional solution.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentEP3813297B1Blockchain smart contract-based coding and decoding method and system
Publication Date: 2026.05.20 ANTCHAIN TECHNOLOGY PTE LTD
  • EP3813297B1 patent drawingFigure 1
  • EP3813297B1 patent drawingFigure 2
  • EP3813297B1 patent drawingFigure 3

AI summary

A blockchain smart contract-based encoding/decoding method and system are disclosed. In embodiments of the present specification, in one aspect, a BASE64 encoding instruction and a BASE64 decoding instruction are defined and added to an instruction set of a blockchain virtual machine. In addition, BASE64 encoding logic corresponding to the BASE64 encoding instruction and BASE64 decoding logic corresponding to the BASE64 decoding instruction are deployed in the blockchain virtual machine. In another aspect, the defined BASE64 encoding instruction and BASE64 decoding instruction further need to be added to an instruction set of a smart contract compiler, so a service smart contract compiled by using the smart contract compiler includes at least one of the BASE64 encoding instruction or the BASE64 decoding instruction. As such, if the service smart contract is deployed in a blockchain network, when constructing a service initiation transaction, a user can specify to invoke the service smart contract to execute the service initiation transaction.