Blockchain Ledger Indexing via Service Attribute Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In a blockchain-type ledger, data records related to the same service attribute are often stored in a scattered and disordered manner, making it inconvenient to perform status statistics analysis and query on these records.

Innovation Solution

A method is introduced to create an index in a blockchain-type ledger by obtaining the service attribute and sequence number from data records, determining their location information, and establishing a mapping relationship between the service attribute, location information, and sequence number, using the service attribute as a primary key for an inverted index.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If data records are stored in a blockchain-type ledger using standard blockchain data structure, then data security and integrity are improved through hash value chaining, but data query efficiency deteriorates because records related to the same service attribute are stored in a scattered and disordered manner

Engineering Contradiction:
Improvedata securityVSAvoiddata query efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent creates an index structure in advance that maps service attributes to data record locations. This preliminary action enables efficient query operations without compromising the blockchain's security model, as the index is built using deterministic hash functions and follows the same cryptographic principles as the main ledger.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an index structure as an intermediary between the query interface and the underlying blockchain data. This index acts as a mediator that translates service attribute queries into efficient location lookups, while the actual data storage and security mechanisms remain in the blockchain ledger itself.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If data records are stored in a scattered and disordered manner in the blockchain ledger, then data security is maintained through cryptographic hashing, but the convenience of performing status statistics analysis and query deteriorates

Engineering Contradiction:
Improvedata securityVSAvoidquery convenience
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The system performs preliminary organization of data by creating an index that maps service attributes to record locations before query operations occur. This advance preparation maintains security through cryptographic methods while enabling convenient querying through structured access patterns.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies asymmetric organization where the index structure uses service attributes as primary keys for efficient querying, while the underlying blockchain data maintains its symmetric cryptographic structure for security. This asymmetric approach allows optimized query paths without compromising the security model.

Inventive Principle:
Principle #4Asymmetry

3Productivity

If an index structure is created to enable flexible data query by service attribute, then data query efficiency is improved, but the complexity of the ledger system increases

Engineering Contradiction:
Improvedata query efficiencyVSAvoidledger system complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent changes the organizational parameter of the ledger by introducing service attributes as index keys. This parameter change enables efficient querying by transforming the data access model from direct blockchain navigation to attribute-based index lookup, while the underlying blockchain structure remains unchanged.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent segments the ledger system into two functional parts: the immutable blockchain data structure for security and the index structure for query efficiency. This segmentation allows each component to optimize for its specific function without increasing overall system complexity, as the index is a logical layer rather than a structural modification.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11573944B2Creating index in blockchain-type ledger
Publication Date: 2023.02.07 ANTCHAIN TECHNOLOGY PTE LTD
  • US11573944B2 patent drawing
  • US11573944B2 patent drawing
  • US11573944B2 patent drawing

AI summary

A method and an apparatus for creating an index in a blockchain-type ledger, and a device are disclosed. According to one implementation, a method may include obtaining, by a centralized database server, a data record, wherein the data record is stored in a blockchain-type ledger, and wherein the data record comprises a service attribute and a sequence number; determining location information of the data record in the blockchain-type ledger, wherein the location information comprises a block height of a data block comprising the data record, and an offset of the data record in the data block; establishing a mapping relationship between the service attribute, the location information, and the sequence number; and based on the sequence number, writing the mapping relationship to an index.