Two-Dimensional Code Verification via Scenario Data Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional technologies fail to securely verify two-dimensional codes, leading to malicious replacements that can result in property theft, as they lack effective mechanisms to ensure the authenticity and integrity of the codes during generation and scanning processes.

Innovation Solution

A method and device that involve obtaining and comparing scenario information from both electronic devices involved in two-dimensional code interaction, using a rich execution environment and a trusted execution environment to verify the authenticity of the code, ensuring that the code is generated by a trusted device and not maliciously altered.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If scenario information verification is added to two-dimensional code processing, then security against malicious replacement is improved, but device complexity increases

Engineering Contradiction:
ImprovesecurityVSAvoidcomplexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The verification system is segmented into independent components: a scenario information acquisition module that collects device identifiers and environmental data, a verification module that compares scenario information against stored references, and a code processing module that executes based on verification results. This segmentation allows security functionality to be added without fundamentally redesigning the entire system.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Scenario information (device identifiers, location data, time stamps) is collected and stored in advance during the code generation phase. When code scanning occurs, this pre-collected information is quickly verified against the scanning device's current scenario data, enabling rapid security verification without adding significant processing time.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If scenario information is obtained and verified for each code interaction, then code authenticity is improved, but processing time increases

Engineering Contradiction:
ImproveauthenticityVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

Scenario information including device identifiers, location coordinates, and time stamps is collected and prepared during the code generation phase. This pre-preparation means that during scanning, the verification process only needs to compare pre-formatted data rather than gathering information in real-time, significantly reducing processing time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The scenario information is copied from the generation device's stored data and compared against the scanning device's current scenario. This copying approach avoids redundant data collection and processing, enabling rapid verification by simply comparing data copies rather than重新 gathering information.

Inventive Principle:
Principle #26Copying

3Adaptability or versatility

If scenario information is embedded in two-dimensional code, then verification capability is improved, but code complexity increases

Engineering Contradiction:
Improveverification capabilityVSAvoidcode complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The two-dimensional code maintains its universal compatibility with standard scanning devices while embedding additional scenario verification data. The code structure uses standard encoding formats that existing scanners can read, with verification information embedded in designated fields that do not interfere with the core code functionality, allowing one code to serve multiple purposes.

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

Solution Approach 2:

Scenario verification information is embedded as intermediary data within the two-dimensional code structure, acting as a mediator between the code's primary payment/transaction function and the security verification function. This intermediary layer allows verification data to be transmitted without disrupting the code's primary purpose or requiring specialized scanning hardware.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11989618B2Two-dimensional code processing method and device
Publication Date: 2024.05.21 HUAWEI TECH CO LTD
  • US11989618B2 patent drawing
  • US11989618B2 patent drawing
  • US11989618B2 patent drawing

AI summary

A two-dimensional code processing method and a device. The method includes: obtaining, by a first electronic device, two-dimensional code information displayed by a second electronic device; obtaining first scenario information, where the first scenario information is scenario information related to the first electronic device; determining two-dimensional code data and second scenario information based on the two-dimensional code information, where the second scenario information is scenario information related to the second electronic device; and when determining that the first scenario information and the second scenario information meet a preset condition, performing, by the first electronic device, preset processing on the two-dimensional code data. The scenario information of the two electronic devices that need to perform two-dimensional code interaction is compared, and further, two-dimensional code verification is completed.