# US 2026/0074911 A1 · Metadata generation method, verification method, and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0074911 A1
- Document ID: US20260074911A1
- Status: Published application
- Kind: A1
- Application number: 19/389,545
- Filed: 2025-11-14
- Published: 2026-03-12
- Earliest claimed: 2023-05-16
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Ziyuan Hu; Xin Kang; Haibo Zhou
- Web page: https://patentgrep.com/patent/US20260074911A1

## CPC

- G06F 16/48: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- H04L 9/3236: {using cryptographic hash functions}
- G06F 16/901: Indexing; Data structures therefor; Storage structures (for retrieval from the web G06F16/951)
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F 21/10: Protecting distributed programs or content, e.g. vending or licensing of copyrighted material (protection in video systems or pay television H04N7/16) {; Digital rights management [DRM]}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- H04L 9/3247: {involving digital signatures}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of this application provide a metadata generation method, a verification method, and an electronic device. The metadata generation method includes obtaining first media content, and then generating metadata of the first media content, where the metadata of the first media content includes initial information of the first media content, a first media hash value, and a first digital signature. The first media hash value may be used to verify whether metadata is the metadata of the first media content. The initial information may be used for initial identity certification of the first media content, and may serve as a one-dimension certificate of authenticity of the first media content. The first digital signature may be used to verify whether the initial information and the first media hash value are tampered with. In this way, the metadata may be used for source tracing of the first media content.

## Claims

### Claim 1

A metadata generation method, comprising:
obtaining first media content; and
generating metadata of the first media content, wherein the metadata of the first media content comprises initial information of the first media content, a first media hash value, and a first digital signature, the first media hash value is a hash value of the first media content, the first digital signature is a digital signature of first data, and the first data is data determined based on at least the initial information and the first media hash value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first data is data obtained by combining at least the first media hash value and the initial information of the first media content, or the first data is data obtained by combining at least a hash value of the initial information and a hash value of the first media hash value.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the first data is a hash value determined based on at least the initial information and the first media hash value.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the first data is a hash value determined based on at least a hash value of the first media hash value and a hash value of the initial information of the first media content, or the first data is a hash value of data obtained by combining at least the initial information and the first media hash value.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the metadata of the first media content further comprises the first data.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the metadata of the first media content further comprises a hash value of the first media hash value and a hash value of the initial information of the first media content.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the metadata of the first media content further comprises a first uniform resource locator (URL), and the first URL indicates a location of the initial information of the first media content or the first media hash value in the metadata of the first media content.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the first data is a hash value of data obtained by combining at least the hash value of the first media hash value, the hash value of the initial information of the first media content, and a uniform resource locator.

### Claim 9 (depends on 6)

The method according to claim 6, wherein generating the metadata of the first media content comprises:
obtaining the initial information of the first media content and the first media hash value;
encapsulating at least the initial information of the first media content and the first media hash value to obtain first encapsulated data;
performing a first hash calculation on the first media hash value to obtain the hash value of the first media hash value; and performing a second hash calculation on the initial information of the first media content to obtain the hash value of the initial information of the first media content;
encapsulating at least the hash value of the first media hash value and the hash value of the initial information of the first media content to obtain second encapsulated data;
digitally signing the first data, wherein the first data is data determined based on at least the hash value of the first media hash value and the hash value of the initial information of the first media content, to obtain the first digital signature;
encapsulating at least the first encapsulated data, the second encapsulated data, and the first digital signature to obtain a trust declaration; and
obtaining the metadata of the first media content based on at least the trust declaration.

### Claim 10 (depends on 1)

The method according to claim 1, wherein generating the metadata of the first media content comprises:
obtaining the initial information of the first media content and the first media hash value;
encapsulating at least the initial information of the first media content and the first media hash value to obtain first encapsulated data;
digitally signing the first data to obtain the first digital signature, wherein the first data is data determined based on at least the first media hash value and the initial information of the first media content;
encapsulating at least the first encapsulated data and a digital signature of a first combined hash value to obtain a trust declaration; and
obtaining the metadata of the first media content based on at least the trust declaration.

### Claim 11 (depends on 1)

The method according to claim 1, wherein
the initial information of the first media content comprises at least one of the following: generation time of the first media content, an author name of the first media content, a digital content identifier of the first media content, a generation location of the first media content, information about a device of generating the first media content, a resolution of the first media content, a size of the first media content, a media type of the first media content, copyright information of the first media content, or a generation manner of the first media content.

### Claim 12

A metadata generation method, comprising:
obtaining an (N+1)th piece of media content, wherein the (N+1)th piece of media content is obtained based on an Nth piece of media content; and
generating metadata of the (N+1)th piece of media content, wherein the metadata of the (N+1)th piece of media content comprises initial information of first media content and a digital signature of first data; and the metadata of the (N+1)th piece of media content further comprises N media hash values, wherein a first media hash value is a hash value of the first media content, an (N+1)th media hash value is a hash value of the (N+1)th piece of media content, the first data is data determined based on at least the initial information and the first media hash value, and N is a positive integer.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the first data is a hash value determined based on at least the initial information and the first media hash value.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the first data is a hash value determined based on at least a hash value of the first media hash value and a hash value of the initial information of the first media content, or the first data is a hash value of data obtained by combining at least the initial information and the first media hash value.

### Claim 15 (depends on 12)

The method according to claim 12, wherein metadata of the first media content further comprises the first data.

### Claim 16 (depends on 12)

The method according to claim 12, wherein metadata of the first media content further comprises a hash value of the first media hash value and a hash value of the initial information of the first media content.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the metadata of the first media content further comprises a first uniform resource locator (URL), and the first URL indicates a location of the initial information of the first media content or the first media hash value in the metadata of the first media content.

### Claim 18 (depends on 17)

The method according to claim 17, wherein the first data is a hash value of data obtained by combining at least the hash value of the first media hash value, the hash value of the initial information of the first media content, and the uniform resource locator.

### Claim 19 (depends on 12)

The method according to claim 12, wherein the metadata of the (N+1)th piece of media content further comprises an (N+1)th claim.

### Claim 20 (depends on 19)

The method according to claim 19, wherein the metadata of the (N+1)th piece of media content further comprises a hash value of the (N+1)th media hash value and a hash value of the (N+1)th claim.

### Claim 21 (depends on 19)

The method according to claim 19, wherein the metadata of the (N+1)th piece of media content further comprises N digital signatures, an (N+1)th digital signature is a digital signature of an (N+1)th piece of data, and the (N+1)th piece of data is data determined based on at least the (N+1)th claim and the (N+1)th media hash value.

### Claim 22 (depends on 21)

The method according to claim 21, wherein the (N+1)th piece of data is a hash value determined based on at least the (N+1)th claim and the (N+1)th media hash value.

### Claim 23 (depends on 22)

The method according to claim 22, wherein the (N+1)th piece of data is a hash value determined based on at least a hash value of the (N+1)th claim and a hash value of the (N+1)th media hash value, or the (N+1)th piece of data is a hash value of data obtained by combining at least the (N+1)th claim and the (N+1)th media hash value.

### Claim 24 (depends on 12)

The method according to claim 12, wherein the metadata of the (N+1)th piece of media content further comprises an (N+1)th uniform resource locator (URL), and the (N+1)th UL indicates a location of an (N+1)th claim and the (N+1)th media hash value in the metadata of the (N+1)th piece of media content.

### Claim 25 (depends on 24)

The method according to claim 24, wherein an (N+1)th piece of data is a hash value of data obtained by combining at least a hash value of the (N+1)th claim, a hash value of the (N+1)th media hash value, and the (N+1)th URL.

### Claim 26 (depends on 21)

The method according to claim 21, wherein the metadata of the (N+1)th piece of media content further comprises the (N+1)th piece of data, and the (N+1)th piece of data is data determined based on at least the (N+1)th claim and the (N+1)th media hash value.

### Claim 27

An electronic device, comprising:
a memory storing program instructions; and
a processor, coupled with the memory, configured to execute the program instructions, causing the electronic device to:
obtain first media content, and
generate metadata of the first media content, wherein the metadata of the first media content comprises initial information of the first media content, a first media hash value, and a first digital signature, the first media hash value is a hash value of the first media content, the first digital signature is a digital signature of first data, and the first data is data determined based on at least the initial information and the first media hash value; or
obtain an (N+1)th piece of media content, wherein the (N+1)th piece of media content is obtained based on an Nth piece of media content, and
generate metadata of the (N+1)th piece of media content, wherein the metadata of the (N+1)th piece of media content comprises initial information of first media content and a digital signature of first data; and the metadata of the (N+1)th piece of media content further comprises N media hash values, wherein a first media hash value is a hash value of the first media content, an (N+1)th media hash value is a hash value of the (N+1)th piece of media content, the first data is data determined based on at least the initial information and the first media hash value, and N is a positive integer.

### Claim 28

A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is run on a computer or a processor, the computer or the processor is caused to:
obtain first media content, and
generate metadata of the first media content, wherein the metadata of the first media content comprises initial information of the first media content, a first media hash value, and a first digital signature, the first media hash value is a hash value of the first media content, the first digital signature is a digital signature of first data, and the first data is data determined based on at least the initial information and the first media hash value; or
obtain an (N+1)th piece of media content, wherein the (N+1)th piece of media content is obtained based on an Nth piece of media content, and
generate metadata of the (N+1)th piece of media content, wherein the metadata of the (N+1)th piece of media content comprises initial information of first media content and a digital signature of first data; and the metadata of the (N+1)th piece of media content further comprises N media hash values, wherein a first media hash value is a hash value of the first media content, an (N+1)th media hash value is a hash value of the (N+1)th piece of media content, the first data is data determined based on at least the initial information and the first media hash value, and N is a positive integer.
