Metadata generation method, metadata verification method and electronic device
By generating metadata containing initial information, hash values and digital signatures, the problem of difficult to judge the authenticity in AI-generated content is solved, the traceability and authenticity verification of media content is realized, and the credibility of information is improved.
Patent Information
- Application Number
- PCT/CN2024/088596
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-12
- Filing Date
- 2024-04-18
- Publication Date
- 2024-11-21
AI Technical Summary
With the development of artificial intelligence technology, AI-generated content makes it difficult to judge the authenticity of media content, and users cannot effectively distinguish between real and false information.
By generating metadata containing initial information, hash values and digital signatures, it is used to trace media content and help users judge its authenticity.
It realizes verification of the authenticity of media content, improves users' ability to judge the authenticity of media content, and ensures the credibility of information.
Smart Images

Figure CN2024088596_21112024_PF_FP_ABST
Abstract
Description
Metadata generation method, verification method, and electronic device Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and in particular to a metadata generation method, a verification method, and an electronic device. Background Art
[0002] With the development of artificial intelligence (AI) technology, AI-generated content (AIGC) has exploded. AI can generate (or modify existing media content) novel, interesting, and diverse digital content (such as images, music, and natural language) to meet the preferences and scenarios of different users.
[0003] However, the modification of media content has exacerbated the spread of some false information and misinformation, making it difficult for users to judge the authenticity of media content; therefore, it is very important to help users judge the authenticity of media content.
[0004] Summary of the Invention
[0005] In order to solve the problem that users cannot determine the authenticity of media content, the present application provides a metadata generation method, verification method and electronic device; the metadata generated by this generation method can be used to trace the source of media content and can help users determine the authenticity of media content to a certain extent.
[0006] In a first aspect, an embodiment of the present application provides a method for generating metadata, the method comprising:
[0007] Obtaining first media content;
[0008] Generate metadata for the first media content, the metadata for the first media content including: 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.
[0009] Exemplarily, the method includes: first, obtaining first media content; then, generating metadata of the first media content, the metadata of the first media content including: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is determined based on the initial information and the first media hash value.
[0010] The first media hash value can be used to verify that the metadata is indeed metadata for the first media content; the initial information can be used to initially authenticate the first media content, serving as a proof of authenticity; and the first digital signature can be used to verify whether the initial information and the first media hash value have been tampered with. In this way, metadata can be used to trace the source of the first media content, further helping users determine the authenticity of the media content to a certain extent.
[0011] Exemplarily, the initial information of the first media content may refer to information generated when the first media content is generated. Exemplarily, the initial information of the first media content may include multiple types of information. It should be noted that the type of information contained in the initial information may be determined based on the scenario and media type, and the type of information contained in the initial information corresponding to different scenarios and different media types may be different, and this application does not impose any restrictions on this. In other words, the type of information contained in the initial information may be pre-agreed based on the scenario and media type; in this way, the readability of the metadata can be increased.
[0012] Exemplarily, the first data is data obtained by combining at least the first media hash value and 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.
[0013] Exemplarily, the first data is a hash value determined at least based on the initial information and the first media hash value.
[0014] Exemplarily, the first data is a hash value determined by at least a hash value of the first media hash value and a hash value of initial information of the first media content, or the first data is a hash value of data combined by at least the initial information and the first media hash value.
[0015] Exemplarily, the metadata of the first media content also includes the first data.
[0016] Exemplarily, the metadata of the first media content further includes a hash value of the first media hash value and a hash value of the initial information of the first media content.
[0017] Exemplarily, the metadata of the first media content further includes: a first uniform resource locator (URL), wherein the first URL indicates the initial information of the first media content or the location of the first media hash value in the metadata of the first media content.
[0018] Exemplarily, the first data is a hash value of data obtained by combining at least a hash value of the first media hash value, a hash value of the initial information of the first media content, and the uniform resource locator.
[0019] Exemplarily, generating metadata of the first media content includes:
[0020] Obtaining initial information of the first media content and the first media hash value;
[0021] Encapsulate at least the initial information of the first media content and the first media hash value to obtain first encapsulation data (Trust Indicators);
[0022] Performing a hash calculation on the first media hash value to obtain a hash value of the first media hash value; performing a hash calculation on the initial information of the first media content to obtain a hash value of the initial information of the first media content;
[0023] encapsulate at least a hash value of the first media hash value and a hash value of initial information of the first media content to obtain second encapsulation data (Declaration Hash);
[0024] Digitally signing the first data, where the first data is determined by at least a hash value of the first media hash value and a hash value of initial information of the first media content, to obtain the first digital signature;
[0025] encapsulating at least the first encapsulated data, the second encapsulated data, and the first digital signature to obtain a trust statement;
[0026] Metadata of the first media content is obtained based at least on the trust statement.
[0027] Exemplarily, generating metadata of the first media content includes:
[0028] Obtaining initial information of the first media content and the first media hash value;
[0029] Encapsulate at least the initial information of the first media content and the first media hash value to obtain first encapsulation data (Trust Indicators);
[0030] Digitally signing the first data to obtain the first digital signature, where the first data is data determined by at least the first media hash value and initial information of the first media content;
[0031] encapsulate at least the trust indicator and the digital signature of the first combined hash value to obtain a trust statement;
[0032] Metadata of the first media content is obtained based at least on the trust statement.
[0033] Exemplarily, metadata may include data describing media content; for example, metadata may include information describing properties of the media content. The metadata may be a trust profile (also known as a trust manifest). A trust profile can be used to record information related to the generation and evolution of media content and can be used to trace the source of the media content.
[0034] Exemplarily, the first media content may refer to media content without a Trust Profile, wherein the first media content includes but is not limited to images, graphics, audio, and video.
[0035] Exemplarily, the first media content may be media content generated by the first electronic device, or may be media content received by the first electronic device from another electronic device. For example, if the first media content is an image, then the first media content may be an image captured by the first electronic device, a screenshot, or an AI-generated image, etc. This application does not limit the manner in which the first electronic device generates the image; the first media content may also be an image received by the first electronic device from another electronic device, which is not limited in this application.
[0036] Illustratively, a hash algorithm may be used to perform hash calculation on the first media content to obtain a first media hash value; however, this application does not impose any limitation on the hash algorithm used to calculate the first media hash value.
[0037] For example, a hash algorithm can be used to perform a hash calculation on the combination of the first media content and the initial information to obtain a first combined hash value; that is, the first combined hash value is the hash value of the combination of the first media content and the initial information. This application does not limit the hash algorithm used to calculate the first combined hash value. For example, when the initial information includes multiple types of information, the various types of initial information can be combined first and then combined with the first media hash value.
[0038] Exemplarily, the first combined hash value can be digitally signed with the first private key to obtain the digital signature of the first combined hash value. Specifically, based on the digital signature algorithm, the first combined hash value can be digitally signed with the first private key to obtain the digital signature of the first combined hash value. It should be understood that this application does not limit the digital signature algorithm involved in calculating the digital signature of the first combined hash value. Among them, the method of the first aspect can be applied to a first electronic device, and the first private key can be the private key of the first electronic device, that is, the first private key corresponds to the first electronic device. In another way, the first private key can be the private key of the first user corresponding to the first electronic device, that is, the first private key corresponds to the first user.
[0039] In a second aspect, an embodiment of the present application provides a method for generating metadata, the method comprising: obtaining the N+1th media content, wherein the N+1th media content is obtained based on the Nth media content; generating metadata for the N+1th media content, wherein the metadata for the N+1th media content includes initial information of the first media content and a digital signature of the first data; the metadata for the N+1 media content also includes N media hash values, wherein the first media hash value is a hash value of the first media content, the N+1th media hash value is a hash value of the N+1th media content, and the first data is data determined at least based on the initial information and the first media hash value; and N is a positive integer.
[0040] Exemplarily, a method for generating metadata includes: first, obtaining the N+1th media content, where the N+1th media content is obtained based on the Nth media content; generating metadata for the N+1th media content, where the metadata for the N+1th media content includes initial information of the first media content, a first combined hash value, and a digital signature of the first combined hash value; the metadata for the N+1 media content also includes N+1 media hash values, where the N+1th media hash value is the hash value of the N+1th media content, the first combined hash value is determined based on the initial information and the first media hash value, and the first media hash value is the hash value of the first media content; and N is a positive integer.
[0041] The N+1th media content may include: media content obtained by editing the Nth media content, or media content obtained by modifying the metadata of the Nth media content, or the Nth media content to be forwarded (or shared). It should be understood that the Nth does not constitute a specific number limit, but is only for the purpose of distinction.
[0042] That is to say, after editing the Nth media content, or after modifying the metadata of the Nth media content, or in the process of forwarding the Nth media content, metadata for the N+1th media content can be generated based on the metadata of the Nth media content; in this way, the change process of the media content can be recorded in the metadata, thereby ensuring that the source of the media content can be traced through the verification of the metadata of the media content.
[0043] For example, the N+1th media hash value is the hash value of the N+1th media content, and so on, the Nth media hash value is the hash value of the Nth media content, and the N-1th media hash value is the hash value of the N-1th media content.
[0044] Exemplarily, a hash algorithm may be used to perform hash calculation on the N+1th media content to obtain the N+1th media hash value; wherein, this application does not impose any restriction on the hash algorithm used to calculate the N+1th media hash value.
[0045] According to a second aspect, the metadata for the (N+1)th media content also includes N combined hash values and digital signatures of the N combined hash values; wherein the (N+1)th combined hash value is determined based on the (N)th combined hash value and the (N+1)th media hash value. In this way, the (N)th combined hash value and the (N+1)th media hash value can be associated to prevent partial information in the metadata from being forged.
[0046] According to a second aspect, the metadata for the (N+1)th media content also includes N combined hash values and digital signatures of the N combined hash values; wherein the (N+1)th combined hash value is determined based on the (N)th combined hash value, the digital signature of the (N)th combined hash value, and the (N+1)th media hash value. This prevents partial information in the metadata from being forged.
[0047] According to the second aspect, or any implementation of the second aspect above, the metadata of the N+1th media content also includes one or more N+1th media declarations and one or more N+1th declaration hash values; wherein the N+1th media declaration is a declaration of the N+1th media content, and the N+1th declaration hash value is a hash value of the N+1th media declaration.
[0048] Exemplarily, the statement may include but is not limited to: copyright information, thumbnail, whether it can be modified, operation permission, usage permission, source of the N+1th media content, editing information, etc.
[0049] It should be understood that the N+1th media declaration and the N+1th declaration hash value are optional information, that is, in the process of generating metadata, the N+1th media content can be declared or not; in this way, the flexibility and backward compatibility of the metadata can be improved.
[0050] According to the second aspect, or any implementation of the second aspect above, the N+1th combined hash value is further determined based on one or more N+1th declared hash values. That is, the N+1th combined hash value can be determined based on the Nth combined hash value, the N+1th media hash value, and one or more N+1th declared hash values. In this way, the Nth combined hash value, the N+1th media hash value, and the one or more N+1th declared hash values can be associated to prevent partial information in the metadata from being forged.
[0051] According to the second aspect, or any implementation of the second aspect above, the Nth combined hash value, one or more N+1th declaration hash values, and one or more hash values of the N+1th media hash value are concatenated and hashed to obtain an intermediate hash value; wherein the intermediate hash value is used to determine the N+1th combined hash value.
[0052] When the intermediate hash value is obtained by hashing the concatenation of all hash values in the Nth combined hash value, one or more N+1th declared hash values, and the N+1th media hash value, the intermediate hash value can be used as the N+1th combined hash value.
[0053] When the intermediate hash value is obtained by hashing the Nth combined hash value, one or more N+1th declared hash values, and part of the hash value in the N+1th media hash value, the N+1th combined hash value can be obtained by hashing the intermediate hash value with the Nth combined hash value, one or more N+1th declared hash values, and another part of the hash value in the N+1th media hash value.
[0054] According to the second aspect, or any implementation of the second aspect above, the Nth combined hash value, the digital signature of the Nth combined hash value, one or more hash values of the N+1th declaration hash value, and the N+1th media hash value are connected and hashed to obtain an intermediate hash value; wherein the intermediate hash value is used to determine the N+1th combined hash value.
[0055] When the intermediate hash value is obtained by hashing the concatenation of all hash values in the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declaration hash values, and the N+1th media hash value, the intermediate hash value can be used as the N+1th combined hash value.
[0056] When the intermediate hash value is obtained by hashing the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declared hash values, and part of the hash value in the N+1th media hash value, the N+1th combined hash value can be obtained by hashing the intermediate hash value with the Nth combined hash value, one or more N+1th declared hash values, and another part of the hash value in the N+1th media hash value.
[0057] It should be understood that this application does not limit the hash algorithm used to calculate the N+1th combined hash value.
[0058] According to the second aspect, or any implementation of the second aspect above, the N+1th combined hash value is obtained by using a hash tree to perform hash calculation on the Nth combined hash value, the N+1th media hash value and one or more N+1th declaration hash values; the hash tree includes a root node and leaf nodes; the N+1th combined hash value is the value of the root node of the hash tree, and the Nth combined hash value, the N+1th media hash value and one or more N+1th declaration hash values are respectively the values of the leaf nodes of the hash tree.
[0059] According to the second aspect, or any implementation of the above second aspect, the N+1th combined hash value is obtained by using a hash tree to perform hash calculation on the Nth combined hash value, the digital signature of the Nth combined hash value, the N+1th media hash value and one or more N+1th declaration hash values; the hash tree includes a root node and leaf nodes; the N+1th combined hash value is the value of the root node of the hash tree, and the Nth combined hash value, the digital signature of the Nth combined hash value, the N+1th media hash value and one or more N+1th declaration hash values are respectively the values of the leaf nodes of the hash tree.
[0060] For example, a hash tree is a data structure.
[0061] According to the second aspect, or any implementation method of the above second aspect, the N+1th combined hash value is obtained by using a hash tree to hash the Nth combined hash value, the N+1th media hash value and one or more N+1th declaration hash values; the hash tree includes a left subtree and a right subtree; the N+1th combined hash value is the value of the root node of the hash tree, the Nth combined hash value is the value of the root node of the left subtree, and the N+1th media hash value and one or more N+1th declaration hash values are respectively the values of the leaf nodes of the right subtree.
[0062] According to the second aspect, or any implementation method of the above second aspect, the N+1th combined hash value is obtained by using a hash tree to perform hash calculation on the Nth combined hash value, the digital signature of the Nth combined hash value, the N+1th media hash value and the one or more N+1th declaration hash values; the hash tree includes a left subtree and a right subtree; the N+1th combined hash value is the value of the root node of the hash tree, the Nth combined hash value and the digital signature of the Nth combined hash value are respectively the values of the child nodes of the root node of the left subtree, and the N+1th media hash value and one or more N+1th declaration hash values are respectively the values of the leaf nodes of the right subtree.
[0063] According to the second aspect, or any implementation of the second aspect above, the hash tree is a Merkle Tree. Thus, when the amount of metadata data is large, the Merkle Tree can be pruned to reduce the memory occupied by the metadata.
[0064] It should be understood that the hash tree may also include but is not limited to a binary tree, a ternary tree, etc., and this application does not impose any restrictions on this.
[0065] According to the second aspect, or any implementation of the second aspect above, the digital signature of the N+1th combined hash value is obtained by digitally signing the N+1th combined hash value using the N+1th private key.
[0066] Exemplarily, the N+1th private key can be used to digitally sign the N+1th combined hash value to obtain the digital signature of the N+1th combined hash value. Specifically, based on the digital signature algorithm, the N+1th private key can be used to digitally sign the N+1th combined hash value to obtain the digital signature of the N+1th combined hash value. It should be understood that the present application does not limit the digital signature algorithm involved in calculating the digital signature of the N+1th combined hash value. Among them, the second aspect and any implementation method of the second aspect can be applied to the N+1th electronic device, and the N+1th private key can be the private key of the N+1th electronic device, that is, the N+1th private key corresponds to the N+1th electronic device. In another way, the N+1th private key can be the private key of the N+1th user corresponding to the N+1th electronic device, that is, the N+1th private key corresponds to the N+1th user.
[0067] Of course, the second aspect and any implementation of the second aspect can be applied to the first electronic device, and the N+1th private key can be the private key of the first electronic device, that is, the N+1th private key corresponds to the first electronic device. In another embodiment, the N+1th private key can be the private key of the first user corresponding to the first electronic device, that is, the N+1th private key corresponds to the first user.
[0068] It should be noted that any two of the N+1 private keys may be the same or different, which may be determined based on the user and electronic device that generate the metadata. This application does not impose any restrictions on this.
[0069] According to the second aspect, or any implementation of the second aspect above, the method further includes: obtaining a trust declaration based on the initial information, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value. This facilitates the management and storage of metadata and improves verification efficiency during subsequent verification processes.
[0070] Exemplarily, the initial information, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value may be encapsulated to obtain a Trust Declaration.
[0071] According to the second aspect, or any implementation of the second aspect above, a trust record is obtained based on the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value. This facilitates the management and storage of metadata and improves verification efficiency in subsequent verification processes.
[0072] Exemplarily, the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value are encapsulated to obtain a Trust Record.
[0073] According to the second aspect, or any implementation of the second aspect above, the method further includes: obtaining a trust profile of the (N+1)th media content according to the trust declaration and the trust record.
[0074] Exemplarily, the trust statement and the trust record may be encapsulated to obtain the Trust Profile of the N+1th media content.
[0075] According to the second aspect, or any implementation of the second aspect above, the initial information of the first media content includes at least one of the following: the generation time of the first media content, the author name of the first media content, the digital content identifier of the first media content, the generation location of the first media content, information of the generation device of the first media content, the resolution of the first media content, the size of the first media content, the media type of the first media content, or the generation method of the first media content.
[0076] It should be understood that the initial information may also include other information, which is not limited in this application.
[0077] According to the second aspect, the metadata of the N+1th media content further includes an N+1th declaration.
[0078] According to the second aspect, the metadata of the N+1th media content further includes a hash value of the N+1th media hash value and a hash value of the N+1th declaration.
[0079] According to the second aspect, the metadata of the N+1th media content also includes N digital signatures, the N+1th digital signature is the digital signature of the N+1th data, and the N+1th data is based on data determined at least based on the N+1 declaration and the N+1th media hash value.
[0080] According to the second aspect, the N+1th data is a hash value determined based on at least the N+1th declaration and the N+1th media hash value.
[0081] According to the second aspect, the N+1th data is a hash value determined by at least the hash value of the N+1th declaration and the hash value of the N+1th media hash value, or the N+1th data is a hash value of data combined by at least the N+1th declaration and the N+1th media hash value.
[0082] According to the second aspect, the metadata of the N+1th media content also includes: an N+1th uniform resource locator (URL), wherein the N+1th URL indicates the location of the N+1th declaration and the N+1th media hash value in the metadata of the N+1th media content.
[0083] According to the second aspect, the N+1th data is a hash value of data obtained by combining at least a hash value of the N+1th declaration, a hash value of the N+1th media hash value, and the N+1th URL.
[0084] In a third aspect, an embodiment of the present application provides a verification method, which includes: first, obtaining metadata of first media content; wherein the metadata includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is determined based on the initial information and the first media hash value; then, verifying the metadata of the first media content.
[0085] Exemplarily, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value can be verified separately; when at least one of the first media hash value, the first combined hash value, and the digital signature of the first combined hash value fails to be verified, the metadata of the first media content can be determined to be false; at this time, the user can further judge the authenticity of the first media content, or determine that the content in the first media content is false, and this application does not impose any restrictions on this. When the verification of the first media hash value, the first combined hash value, and the digital signature of the first combined hash value are all successful, it can be said that the metadata of the first media content is true. At this time, the user can further judge the authenticity of the first media content, or determine that the content in the first media content is true, and this application does not impose any restrictions on this.
[0086] In a fourth aspect, an embodiment of the present application provides a verification method, which includes: first, obtaining metadata of the N+1th media content; wherein the metadata of the N+1th media content includes initial information of the first media content, a first combined hash value, and a digital signature of the first combined hash value; the metadata of the N+1th media content also includes N+1 media hash values, wherein the N+1th media hash value is the hash value of the N+1th media content, the first combined hash value is determined based on the initial information and the first media hash value, and the first media hash value is the hash value of the first media content; N is a positive integer; then, verifying the metadata of the N+1th media content.
[0087] Exemplarily, the N+1 media hash values, the first combined hash value, and the digital signature of the first combined hash value can be verified separately; when at least one of the N+1 media hash values, the first combined hash value, and the digital signature of the first combined hash value fails to be verified, the metadata of the N+1th media content can be determined to be false; at this time, the user can further judge the authenticity of the N+1th media content, or determine that the content in the N+1th media content is false, and this application does not impose any restrictions on this. When the verification of the N+1 media hash values, the first combined hash value, and the digital signature of the first combined hash value are all successful, it can be said that the metadata of the N+1th media content is true. At this time, the user can further judge the authenticity of the N+1th media content, or determine that the content in the N+1th media content is true, and this application does not impose any restrictions on this.
[0088] In a fifth aspect, an embodiment of the present application provides a metadata generation device, the device comprising:
[0089] A first data acquisition module, configured to acquire first media content;
[0090] The first information generation module is used to generate metadata for the first media content. The metadata of the first media content includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is a hash value of the combination of the initial information and the first media hash value.
[0091] Exemplarily, the metadata generating device may further include:
[0092] The first hash calculation module is configured to perform a hash calculation on the first media content to obtain a first media hash value.
[0093] Exemplarily, the first hash calculation module is further configured to perform hash calculation based on a combination of the initial information and the first media hash value to obtain a first combined hash value.
[0094] Exemplarily, the metadata generating device may further include:
[0095] The first encapsulation module is configured to obtain a trust statement based on initial information of the first media content, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value.
[0096] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0097] In a sixth aspect, an embodiment of the present application provides a metadata generation device, the device comprising:
[0098] A second data acquisition module acquires the N+1th media content, where the N+1th media content is obtained based on the Nth media content;
[0099] The second information generation module is used to generate metadata for the N+1th media content, where the metadata for the N+1th media content includes initial information of the first media content, a first combined hash value, and a digital signature of the first combined hash value, where the first combined hash value is a hash value of the combination of the initial information and the first media hash value; the metadata for the N+1 media content also includes N+1 media hash values, where the N+1th media hash value is the hash value of the N+1th media content, and the first media hash value is the hash value of the first media content; and N is a positive integer.
[0100] Exemplarily, the metadata generating device may further include:
[0101] The second hash calculation module is used to perform hash calculation on the Nth combined hash value, one or more N+1th declaration hash values, and one or more hash values of the N+1th media hash value, to obtain an intermediate hash value; wherein the intermediate hash value is used to determine the N+1th combined hash value.
[0102] Exemplarily, the second hash calculation module is further configured to determine an N+1th combined hash value based on the intermediate hash value.
[0103] Exemplarily, the second hash calculation module is further configured to perform hash calculation on the (N+1)th media content to obtain the (N+1)th media hash value.
[0104] Exemplarily, the metadata generating device may further include:
[0105] The second encapsulation module is used to obtain a trust statement according to the initial information, the first media hash value, the first combined hash value and the digital signature of the first combined hash value.
[0106] Exemplarily, the second encapsulation module is further configured to obtain a trust record based on the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value.
[0107] Exemplarily, the second encapsulation module is further configured to obtain a trust profile of the (N+1)th media content according to the trust declaration and the trust record.
[0108] It should be understood that the metadata generation device of the sixth aspect can execute the steps in the second aspect and any implementation manner of the second aspect, and will not be repeated here.
[0109] The sixth aspect and any implementation of the sixth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.
[0110] It should be noted that when the metadata generation device of the fifth aspect and the metadata generation device of the sixth aspect belong to the same electronic device, the metadata generation device of the fifth aspect and the metadata generation device of the sixth aspect are the same device; at this time, the first data acquisition module and the second data acquisition module are the same module, the first information generation module and the second information generation module are the same module, the first hash calculation module and the second hash calculation module are the same module, and the first encapsulation module and the second encapsulation module are the same module.
[0111] When the metadata generation device of the fifth aspect and the metadata generation device of the sixth aspect belong to different electronic devices, the metadata generation device of the fifth aspect and the metadata generation device of the sixth aspect are two different devices; at this time, the first data acquisition module and the second data acquisition module are two different modules, the first information generation module and the second information generation module are two different modules, the first hash calculation module and the second hash calculation module are two different modules, and the first encapsulation module and the second encapsulation module are two different modules.
[0112] In a seventh aspect, an embodiment of the present application provides a verification device, the device comprising:
[0113] A first information acquisition module, configured to acquire metadata of first media content; wherein the metadata includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is a hash value of the combination of the initial information and the first media hash value;
[0114] The first verification module is configured to verify metadata of the first media content.
[0115] In an eighth aspect, an embodiment of the present application provides a meta-verification device, the device comprising:
[0116] A second information acquisition module is configured to acquire metadata of the (N+1)th media content; wherein the (N+1)th media content is obtained based on the (N)th media content, and the metadata of the (N+1)th media content includes initial information of the first media content, a first combined hash value, and a digital signature of the first combined hash value, where the first combined hash value is a hash value of the combination of the initial information and the first media hash value; the metadata of the (N+1)th media content also includes N+1 media hash values, wherein the (N+1)th media hash value is a hash value of the (N+1)th media content, and the first media hash value is a hash value of the first media content; and N is a positive integer.
[0117] The second verification module is used to verify the metadata of the (N+1)th media content.
[0118] It should be noted that when the verification device of the seventh aspect and the verification device of the eighth aspect belong to the same electronic device, then the verification device of the seventh aspect and the verification device of the eighth aspect are the same device; in this case, the first information acquisition module and the second information acquisition module are the same module, and the first verification module and the second verification module are the same module. When the verification device of the seventh aspect and the verification device of the eighth aspect belong to two different electronic devices, then the verification device of the seventh aspect and the verification device of the eighth aspect are two different devices; in this case, the first information acquisition module and the second information acquisition module are two different modules, and the first verification module and the second verification module are two different modules.
[0119] In the ninth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the metadata generation method in the first aspect or any possible implementation of the first aspect.
[0120] The ninth aspect and any implementation of the ninth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0121] In the tenth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the metadata generation method in the second aspect or any possible implementation of the second aspect.
[0122] The tenth aspect and any implementation of the tenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.
[0123] In the eleventh aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the verification method in the third aspect or any possible implementation of the third aspect.
[0124] The eleventh aspect and any implementation of the eleventh aspect correspond to the third aspect and any implementation of the third aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can be referred to the technical effects corresponding to the third aspect and any implementation of the third aspect, and will not be repeated here.
[0125] In the twelfth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the verification method in the fourth aspect or any possible implementation of the fourth aspect.
[0126] The twelfth aspect and any implementation of the twelfth aspect correspond to the fourth aspect and any implementation of the fourth aspect, respectively. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can be referred to the technical effects corresponding to the above-mentioned fourth aspect and any implementation of the fourth aspect, and will not be repeated here.
[0127] In the thirteenth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the metadata generation method in the first aspect or any possible implementation of the first aspect, or the electronic device executes the metadata generation method in the second aspect or any possible implementation of the second aspect, or the electronic device executes the verification method in the third aspect or any possible implementation of the third aspect; or the electronic device executes the verification method in the fourth aspect or any possible implementation of the fourth aspect.
[0128] The thirteenth aspect and any implementation of the thirteenth aspect respectively correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, or correspond to the third aspect and any implementation of the third aspect, or correspond to the fourth aspect and any implementation of the fourth aspect. The technical effects corresponding to the thirteenth aspect and any implementation of the thirteenth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, or refer to the technical effects corresponding to the second aspect and any implementation of the second aspect, or refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, or refer to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and no further details will be given here.
[0129] In a fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the electronic device executes the metadata generation method in the first aspect or any possible implementation of the first aspect, or the electronic device executes the metadata generation method in the second aspect or any possible implementation of the second aspect, or the electronic device executes the verification method in the third aspect or any possible implementation of the third aspect; or the electronic device executes the verification method in the fourth aspect or any possible implementation of the fourth aspect.
[0130] The fourteenth aspect and any implementation of the fourteenth aspect respectively correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, or correspond to the third aspect and any implementation of the third aspect, or correspond to the fourth aspect and any implementation of the fourth aspect. The technical effects corresponding to the fourteenth aspect and any implementation of the fourteenth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, or refer to the technical effects corresponding to the second aspect and any implementation of the second aspect, or refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, or refer to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and no further details will be given here.
[0131] In a fifteenth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the metadata generation method in the first aspect or any possible implementation of the first aspect, or the computer or the processor executes the metadata generation method in the second aspect or any possible implementation of the second aspect, or the computer or the processor executes the verification method in the third aspect or any possible implementation of the third aspect; or the computer or the processor executes the verification method in the fourth aspect or any possible implementation of the fourth aspect.
[0132] The fifteenth aspect and any implementation of the fifteenth aspect respectively correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, or correspond to the third aspect and any implementation of the third aspect, or correspond to the fourth aspect and any implementation of the fourth aspect. The technical effects corresponding to the fifteenth aspect and any implementation of the fifteenth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, or refer to the technical effects corresponding to the second aspect and any implementation of the second aspect, or refer to the technical effects corresponding to the third aspect and any implementation of the third aspect, or refer to the technical effects corresponding to the fourth aspect and any implementation of the fourth aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0133] FIG1 is a schematic diagram of an exemplary application scenario;
[0134] FIG2a is a schematic diagram illustrating an exemplary process of generating metadata;
[0135] FIG2 b is a schematic diagram of an exemplary Trust Profile;
[0136] FIG2c is a schematic diagram illustrating an exemplary metadata generation process;
[0137] FIG3 a is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0138] FIG3 b is a schematic diagram of an exemplary Trust Profile;
[0139] FIG3c is a schematic diagram of an exemplary Trust Profile;
[0140] FIG3 d is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0141] FIG3e is a schematic diagram of an exemplary Trust Profile;
[0142] FIG4a is a schematic diagram illustrating an exemplary process of generating metadata;
[0143] FIG4 b is a schematic diagram of an exemplary Trust Profile;
[0144] FIG4c is a schematic diagram illustrating an exemplary metadata generation process;
[0145] FIG5 a is a schematic diagram illustrating a Trust Profile generation process;
[0146] FIG5 b is a schematic diagram of an exemplary Trust Profile;
[0147] FIG5c is a schematic diagram of an exemplary Trust Profile;
[0148] FIG6 a is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0149] FIG6 b is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0150] FIG6 c is a schematic diagram illustrating an exemplary process of generating the N+1th combined hash value;
[0151] FIG6 d is a schematic diagram illustrating an exemplary process of generating the N+1th combined hash value;
[0152] FIG6e is a schematic diagram illustrating an exemplary process of generating the N+1th combined hash value;
[0153] FIG6f is a schematic diagram illustrating an exemplary process of generating the N+1th combined hash value;
[0154] FIG6g is a schematic diagram illustrating an exemplary process of generating the N+1th combined hash value;
[0155] FIG6h is a schematic diagram illustrating an exemplary process of generating the N+1th combined hash value;
[0156] FIG6i is a schematic diagram of an exemplary Trust Profile;
[0157] FIG6j is a schematic diagram of an exemplary Trust Profile;
[0158] FIG7 a is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0159] FIG7 b is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0160] FIG7 c is a schematic diagram of an exemplary Trust Profile;
[0161] FIG8 a is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0162] FIG8 b is a schematic diagram illustrating an exemplary Trust Profile generation process;
[0163] FIG8c is a schematic diagram of an exemplary Trust Profile;
[0164] FIG8 d is a schematic diagram of an exemplary Trust Profile;
[0165] FIG9a is a schematic diagram illustrating an exemplary verification process;
[0166] FIG9 b is a schematic diagram illustrating an exemplary verification process;
[0167] FIG10 a is a schematic diagram illustrating an exemplary verification process;
[0168] FIG10 b is a schematic diagram illustrating an exemplary verification process;
[0169] FIG10c is a schematic diagram illustrating an exemplary verification process;
[0170] FIG10d is a schematic diagram illustrating an exemplary verification process;
[0171] FIG10e is a schematic diagram illustrating an exemplary verification process;
[0172] FIG11 is a schematic diagram of an exemplary apparatus for generating metadata;
[0173] FIG12 is a schematic diagram of an exemplary apparatus for generating metadata;
[0174] FIG13 is a schematic diagram of an exemplary verification device;
[0175] FIG14 is a schematic diagram of an exemplary verification device;
[0176] FIG15 is a schematic structural diagram of an exemplary device. DETAILED DESCRIPTION
[0177] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0178] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0179] In the description and claims of the embodiments of this application, the terms "Nth" and "N+1th" are used to distinguish different objects, rather than to describe a specific order of objects. N can be a positive integer such as one, two, three, four, etc. For example, the first target object and the second target object are used to distinguish different target objects, rather than to describe a specific order of target objects.
[0180] In the embodiments of the present application, words such as "exemplary," "exemplarily," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "exemplarily," or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary," "exemplarily," or "for example" is intended to present the relevant concepts in a concrete manner.
[0181] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.
[0182] To facilitate understanding, some of the professional terms mentioned in the embodiments of this application are first introduced.
[0183] 1. Media Asset
[0184] Media assets may include media content and metadata of the media content. The metadata of the media content is bound to the media content, or in other words, the metadata of the media content is associated with the media content.
[0185] Retrieving media content usually means retrieving the media assets of the media content; correspondingly, the metadata of the media content is also retrieved. For example, retrieving an image can retrieve the image and its metadata.
[0186] It should be noted that in some scenarios, media assets are also called media files or digital assets (Media Asset). Media assets can be images, audio, video or text.
[0187] 2. Media Content
[0188] Media content, also known as digital content, can be part of a media asset and represents the actual content of the media. Digital content is text, images, sound, and other content types that exist in digital form. It can be stored on digital media such as CDs and hard drives and distributed through the Internet. Digital content is the overall product or service that integrates images, text, audio, and other content through digital technology. It is the product of the combination of digital media technology and cultural creativity. For example, media content can be the pixel data of an image, as well as any additional technical metadata required to understand or present the content (for example, color profiles or encoding parameters).
[0189] Digital technology is a science and technology that has grown alongside computers. It uses specialized equipment to convert various types of information, including images, text, sound, and video, into binary digits (0s and 1s) that computers can interpret, allowing for computation, processing, storage, transmission, dissemination, and restoration. Because computers are used to encode, compress, and decode information during computation and storage, digital technology is also known as digital technology or computer digital technology. It is also called digital control technology.
[0190] 3. Metadata
[0191] Metadata can include data describing media content; for example, metadata can include information describing properties of the media content. Exemplarily, the metadata can include a trust profile (or trust manifest). Exemplarily, the metadata can include the creation location, creator, annotations, or IP address information of the media content.
[0192] 4. Trust Profile
[0193] The Trust Profile of media content can be a type of metadata for the media content. The Trust Profile records information related to the generation and changes of the media content and can be used to trace the source of the media content.
[0194] 5. Digital Content Identification
[0195] Digital content identifiers can refer to digital object identifiers (DOIs). A DOI is a string of numbers, letters, or other symbols used to identify digital content resources. It can be assigned to any digital entity using the internet. As a digital object identifier, a DOI is unique and remains unchanged once generated, regardless of changes to the copyright owner or storage location of the digital object it identifies. Traditional physical publications, such as books, periodicals, tapes, and CDs, are identified by international standard identifiers such as the ISBN (International Standard Book Number), ISSN (International Standard Serial Number), and ISRC (International Standard Recording Code). These identifiers are affixed to the physical cover in the form of barcodes as unique identifiers. These identifiers enable efficient and convenient management of publications, facilitating their discovery and use at all levels. However, once an online document changes its URL (Uniform Resource Locator), it disappears without a trace, leaving it untraceable. Adding a Digital Object Identifier (DOI) to digital information is like attaching a barcode to the publication, ensuring its traceability no matter where it is found. Therefore, the DOI is also known as the "barcode" of digital resources.
[0196] FIG1 is a schematic diagram showing an exemplary application scenario.
[0197] When the user needs to trace the source of the media content or needs to judge the authenticity of the media content (wherein, tracing the source of the media content can help to judge the authenticity of the media content to a certain extent), the user can open the media tracing platform client (such as an application, mini-program, web page, etc.) in the terminal device to query.
[0198] For example, after user A's mobile phone A receives media content sent by user B's mobile phone B, if user A needs to use the media content (such as forwarding), the media content can be traced first. After confirming the authenticity of the media content, it is determined whether to use the media content.
[0199] It should be understood that mobile phone A may also be other electronic devices with strong computing capabilities, such as a personal computer, a computer workstation, a tablet computer, etc., and this application does not impose any restrictions on this.
[0200] For example, when a user needs to determine the authenticity of media content in a smartwatch, the user can send the media content in the smartwatch to a mobile phone, which then traces the source of the media content and sends the traceability result to the smartwatch.
[0201] It should be understood that a smartwatch may also be other electronic devices with relatively low computing power, such as media consumption devices, wearable devices, set-top boxes, game consoles, etc., and this application does not limit this. A mobile phone may also be other electronic devices with relatively high computing power, such as personal computers, computer workstations, tablet computers, etc., and this application does not limit this.
[0202] 1 (1), the main interface 101 of the media tracing platform may include one or more controls, including but not limited to: an input box, a tracing button, etc., which is not limited in this application.
[0203] For example, a user can click on an input box, and the media provenance platform can respond to the user's operation by displaying a file selection interface. Then, after selecting the corresponding media content in the file selection interface, the user can click on the provenance button in the main interface 101. In response to the user's operation, the media provenance platform can obtain the Trust Profile of the media content and then verify the Trust Profile.
[0204] For example, after completing the Trust Profile verification, the media traceability platform can display the verification results and some information in the Trust Profile. The verification results include traceability verification success and traceability verification failure.
[0205] Referring to Figure 1(2), the verification result shown in Figure 1(2) indicates that the traceability verification is successful. The information in the displayed Trust Profile may include the generation time of the media content, the generation location of the media content, the name of the device that generated the media content, and whether it was generated by AI.
[0206] Referring to Figure 1(3), the verification result shown in Figure 1(3) indicates that the traceability verification failed. When the traceability verification fails, the information indicating that the traceability verification failed and the information indicating that the traceability verification succeeded can be displayed separately in the Trust Profile. As shown in Figure 1(3), the information indicating that the verification succeeded in the Trust Profile may include the time when the media content was generated, the location where the media content was generated, the name of the device that generated the media content, and whether it was generated by AI. The information indicating that the verification failed in the Trust Profile may be a digital signature.
[0207] In one possible approach, the authenticity of the media content may be identified by a client of the media tracing platform. For example, when the authenticity of the media content to be identified is one, the client of the media tracing platform may perform the identification locally.
[0208] In one possible approach, the media tracing platform's server can verify the authenticity of the media content. For example, when there are multiple media contents to be verified, the media tracing platform's client can send the multiple media contents to the media tracing platform's server. The server will verify the authenticity of the media contents and return the verification results to the media tracing platform's client.
[0209] It should be noted that in this application, whether the authenticity of the media content is identified by the client of the media tracing platform or by the server of the media tracing platform is not limited by the number of media content to be identified.
[0210] The following describes the Trust Profile generation and verification process.
[0211] First, the Trust Profile generation process is described, with reference to the embodiments of FIG. 2 a to FIG. 8 a .
[0212] FIG2a is a schematic diagram illustrating an exemplary process of generating a Trust Profile, wherein the steps in the embodiment of FIG2a are performed by a first electronic device.
[0213] S201: Acquire first media content.
[0214] Exemplarily, the first media content may refer to media content without a Trust Profile, wherein the first media content may be content of different content types such as text, images, sounds, etc. in digital form. For example, the first media content may be pixel data of an image, as well as any additional technical metadata required to understand or present the content (for example, a color profile or encoding parameters).
[0215] Exemplarily, the first media content may be media content generated by the first electronic device, or may be media content received by the first electronic device from another electronic device. For example, if the first media content is an image, then the first media content may be an image captured by the first electronic device, a screenshot, or an AI-generated image, and this application does not limit the manner in which the first electronic device generates the image. Alternatively, the first media content may be an image received by the first electronic device from another electronic device, and this application does not limit this.
[0216] Exemplarily, as shown in FIG2c , S202 generates metadata for the first media content. The metadata for 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 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. It should be noted that the first data is data that can be optionally recorded in the metadata of the first media content. If the metadata of the first media content includes the first data, the hash and signature can be easily verified. If the metadata of the first media content does not include the first data, space can be saved.
[0217] Exemplarily, the first data is data obtained by combining at least the first media hash value and initial information of the first media content, or the first data is data obtained by combining at least the hash value of the initial information and the hash value of the first media hash value.
[0218] Exemplarily, the first data may also be a first combined hash value, which includes a hash value obtained by combining the initial information of the first media content and the first media hash value. Exemplarily, the first combined hash value includes a hash value obtained by combining the initial information of the first media content, the first media hash value, and other descriptive information. The other descriptive information may not be other descriptive information in the initial information, for example, information about a tool for generating a Trust Profile or other information describing the initial information of the first media content. This application does not impose any restrictions on this.
[0219] Exemplarily, the first data may also be a first combined hash value, which may include a hash value of the hash value of the initial information of the first media content and a hash value of the first media hash value (Media Hash 0.Hash). Exemplarily, the first combined hash value is a hash value of the hash value of the initial information of the first media content, the hash value of the first media hash value, and the hash value of other metadata information. Here, in the case where the initial information of the first media content includes at least two, the hash value of the initial information of the first media content may include the hash value of each of the initial information of the first media content, or the hash value of the initial information of the first media content may include the hash value of all the initial information of the first media content.
[0220] Exemplarily, the metadata of the first media content also includes the above-mentioned first data.
[0221] Exemplarily, as shown in FIG2a , at S202 , metadata for the first media content is generated. The metadata for the first media content includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is generated based on the initial information and the first media hash value. Exemplarily, the metadata for the first media content generated at S202 may refer to a Trust Profile for the first media content.
[0222] For example, metadata of the first media content may be obtained at the same time as the first media content is obtained. The metadata of the first media content obtained at this time may include initial information of the first media content, but does not include the Trust Profile of the first media content. The present application may execute S202 to generate a Trust Profile of the first media content, and use the Trust Profile of the first media content as a type of metadata of the first media content.
[0223] Among them, the initial information of the first media content may refer to the information generated when the first media content is generated. Exemplarily, the initial information of the first media content includes at least one of the following: the generation time of the first media content, the name of the author of the first media content, the digital content identifier of the first media content, the generation location of the first media content, the information of the generation device of the first media content, the resolution of the first media content, the size of the first media content, the media type of the first media content, or the generation method of the first media content. For example, the information of the generation device of the first media content may include the model of the device, the parameters of the camera, etc. The parameters of the camera may include the focal length, sensitivity, exposure, etc. when the camera takes pictures. It should be understood that the initial information of the first media content may also include other information such as copyright information and other information used to describe the first media content, and this application does not impose any restrictions on this.
[0224] Exemplarily, media types may include, but are not limited to, images, videos, audios, and graphics. Generation methods may include AI generation methods and non-AI generation methods. In one possible method, the generation method in the initial information may be replaced by an AIGC identifier; for example, when the first media content is generated by AI, the value of the AIGC identifier is 1; when the first media content is not generated by AI, the value of the AIGC identifier is 0. The author name of the first media content may be the name of the creator of the first media content or the name of the shooting device of the first media content, and this application does not impose any restrictions on this.
[0225] Exemplarily, when the first media content is media content generated by a first electronic device, the initial information of the first media content can be input by a custom user or automatically generated by the first electronic device (without the need for input by the first user). Exemplarily, a first media hash value can be generated based on the first media content; then, a first combined hash value can be generated based on at least the first media hash value and the initial information; thereafter, a digital signature of the first combined hash value can be generated; and then, the initial information, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value can be used to generate a Trust Profile for the first media content. Figure 2b is an exemplary diagram of a Trust Profile.
[0226] Exemplarily, as shown in FIG2b , the metadata of the first media content may include the initial information of the first media content, the first media hash value, and the digital signature of the first combined hash value. The initial information of the first media content may include Content ID (i.e., a digital content identifier of the first media content), AIGC (i.e., an AIGC identifier, indicating a method of generating the first media content), and Creation Info (i.e., Creation Information, which may include the time when the first media content was generated, the name of the author of the first media content, the location where the first media content was generated, etc.).
[0227] In Figure 2b, the Trust Profile of the first media content includes: Content ID (i.e., the digital content identifier of the first media content), AIGC (i.e., the AIGC identifier), Creation Info (i.e., Creation Information, which may include the generation time of the first media content, the author name of the first media content, the generation location of the first media content, etc.), Media Hash 0 (i.e., the first media hash value), Hash (TD) (i.e., the first combined hash value) and Signaturesk0 (i.e., the digital signature of the first combined hash value).
[0228] It should be understood that FIG2b is only an example of the Trust Profile of the first media content of the present application. The position or arrangement order of each information in the Trust Profile of the first media content can be set as required, and the present application does not impose any restrictions on this.
[0229] It should be noted that the first media hash value can be used to verify whether the Trust Profile is the Trust Profile for the first media content; the initial information can be used to initially authenticate the first media content, serving as a proof of authenticity; and the first combined hash value and the digital signature of the first combined hash value can be used to verify whether the initial information and the first media hash value have been tampered with. In this way, the Trust Profile can be used to trace the source of the first media content.
[0230] It should be noted that the type of information included in the initial information can be determined based on the scenario and media type. Different scenarios and different media types may contain different types of information in the initial information, and this application does not impose any restrictions on this. In other words, the type of information included in the initial information can be pre-agreed based on the scenario and media type; this can increase the readability of the Trust Profile.
[0231] FIG3 c is a schematic diagram of an exemplary Trust Profile.
[0232] Exemplarily, as shown in Figure 3c, the metadata of the first media content may also include a hash value of the initial information of the first media content and a hash value of the first media hash value. For example, the hash value of the initial information of the first media content may include: a hash value of the media type of the first media content (Media Type.Hash), a hash value of the generation method of the first media content (for example, the hash value AIGC.Hash of the AIGC generation method). Figures 3a and 3d are schematic diagrams of the generation process of the Trust Profile shown as examples. Figure 3a specifically illustrates the generation process of the Trust Profile based on Figure 2a. Figure 3d specifically illustrates the generation process of the Trust Profile based on Figure 3c. It should be understood that this application does not limit the hash algorithm used for hash calculation.
[0233] S301: Acquire first media content.
[0234] For example, S301 may refer to the description of S201 above, which will not be repeated here.
[0235] S302: Perform a hash calculation on the first media content to obtain a first media hash value.
[0236] For example, a hash algorithm may be used to perform hash calculation on the first media content to obtain the first media hash value. It should be understood that the present application does not limit the hash algorithm used in S302.
[0237] 3d, the initial information of the first media content and the first media hash value may be encapsulated together to obtain trust indicators. Trust indicators may be information related to the first media content itself and may be used to verify the authenticity of the first media content.
[0238] S303: Perform a hash calculation based on at least the initial information of the first media content and the first media hash value to obtain a first combined hash value.
[0239] Exemplarily, in S303 , a hash calculation is performed according to the initial information of the first media content and the first media hash value to obtain a first combined hash value.
[0240] For example, the initial information of the first media content and the first media hash value may be combined (also called concatenated or cascaded); a hash algorithm may be used to perform a hash calculation on the combined initial information of the first media content and the first media hash value to obtain a first combined hash value. In other words, the first combined hash value is a hash value of the combination of the initial information of the first media content and the first media hash value.
[0241] Exemplarily, as shown in Figure 3d, a hash algorithm can be used to perform hash calculations on the initial information of the first media content and the first media content respectively to obtain the hash value of the first media content and the hash value of the first media hash value (Media Hash 0.Hash), and then a first combined hash value is obtained based on at least the combination of the hash value of the initial information of the first media content and the hash value of the first media hash value (Media Hash 0.Hash).
[0242] Exemplarily, when the initial information includes multiple types of information, the various types of initial information may be combined first and then combined with the first media hash value.
[0243] It should be understood that this application does not limit the hash algorithm used in S303.
[0244] S304: Use the first private key to digitally sign the first combined hash value to obtain a digital signature of the first combined hash value.
[0245] In one possible manner, the first private key may be the private key of the first user, that is, the first private key corresponds to the first user.
[0246] In one possible manner, the first private key may be a private key of the first electronic device, that is, the first private key corresponds to the first electronic device.
[0247] For example, the first combined hash value may be digitally signed using the first private key based on a digital signature algorithm to obtain a digital signature of the first combined hash value. It should be understood that this application does not limit the digital signature algorithm used in S304.
[0248] S305 , encapsulate at least the initial information of the first media content, the first media hash value, and the digital signature of the first combined hash value to obtain a trust declaration.
[0249] Exemplarily, as shown in FIG3 a , at least the initial information of the first media content, the first media hash value, and the first combined hash value may be digitally signed to obtain a trust declaration.
[0250] Exemplarily, as shown in FIG3 d , at least the Trust Indicators, the hash value of the initial information of the first media content, the hash value of the first media hash value, and the digital signature of the first combined hash value may be encapsulated together to obtain a Trust Declaration.
[0251] Exemplarily, as shown in FIG3 a , at least the initial information of the first media content, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value may be encapsulated together to obtain a Trust Declaration.
[0252] Exemplarily, as shown in FIG3 d , at least the Trust Indicators, the hash value of the initial information of the first media content, the hash value of the first media hash value, the first combined hash value, and the digital signature of the first combined hash value may be encapsulated together to obtain a Trust Declaration.
[0253] S306: Encapsulate at least the Trust Declaration to obtain a Trust Profile of the first media content. The Trust Profile may also include other modification information, such as a Trust Record (Trust Record or Trust Manifest).
[0254] FIG3 b is a schematic diagram of an exemplary Trust Profile.
[0255] In Figure 3b, the Trust Profile of the first media content may include a Trust Declaration, which may include initial information (including Content ID, AIGC, Creation Info), Media Hash 0, Hash (TD), and Signature sk0. It should be noted that Hash (TD) in the Trust Profile of the first media content is optional data. In other words, the Trust Profile of the first media content may include a Trust Declaration, which may include initial information (including Content ID, AIGC, Creation Info), Media Hash 0, and Signature sk0.
[0256] In Figure 3b, various initial information and Media Hash 0 may be packaged together. It should be understood that in some possible approaches, only various initial information are packaged together.
[0257] It should be understood that Figure 3b is only an example of this application. The position or arrangement order of the initial information (Content ID, AIGC, Creation Info), Media Hash 0, Hash (TD) and Signaturesk0 in the Trust Declaration can be set as required, and this application does not impose any restrictions on this.
[0258] FIG3 c is a schematic diagram of an exemplary Trust Profile.
[0259] In Figure 3c, the Trust Declaration may include Trust Indicators, a hash value of initial information of the first media content (e.g., Media Type.Hash, AIGC.Hash), a hash value of the first media hash value, and Signaturesk0. Trust Indicators may include initial information (e.g., Content ID, Media Type, AIGC, Creation Info) and Media Hash 0. By way of example, the Trust Declaration may also include Hash(TD).
[0260] Exemplarily, the hash value of the initial information of the first media content and the hash value of the first media hash value may be encapsulated together.
[0261] FIG3e is a schematic diagram of an exemplary Trust Profile.
[0262] 3e, the Trust Declaration may include Trust Indicators, a hash value of initial information of the first media content (e.g., Media Type.Hash, AIGC.Hash), a hash value of the first media hash value, and Signaturesk0. For example, the Trust Declaration may also include a first combined hash value Hash(TD).
[0263] For example, in FIG3e , the metadata of the first media content may further include a first uniform resource locator (URL), where the first URL indicates initial information of the first media content or the location of the first media hash value in the metadata of the first media content. For example, URL1 indicates the location of the first media hash value in the metadata of the first media content, URL2 indicates the location of the media type in the metadata of the first media content, and URL3 indicates the location of the AIGC in the metadata of the first media content.
[0264] Exemplarily, the hash value of the first media hash value, the hash value of the initial information of the first media content, and the first URL may be encapsulated together.
[0265] Exemplarily, the metadata of the first media content may further include other information, which may be information not used to verify the authenticity of the first media content, such as the file name and the name of the hash algorithm used to calculate the hash value mentioned in the above embodiment.
[0266] Exemplarily, the first combined hash value may be a hash value of the initial information of the first media content, a hash value of the first media hash value, and a hash value of the first URL. Exemplarily, the first combined hash value may be a hash value of the initial information of the first media content, a hash value of the first media hash value, a hash value of the first URL, and other information.
[0267] In one possible scenario, after the first electronic device generates a Trust Profile for the first media content, the first user can perform an editing operation on the first media content in the first electronic device, or instead of performing an editing operation on the first media content, modify the metadata of the first media content (such as adding information to the Trust Profile of the first media content).
[0268] In one possible scenario, after a first electronic device generates a Trust Profile for first media content, it sends the first media content and the Trust Profile to a second electronic device. This allows the second user to edit the first media content on the second electronic device, or to modify the metadata of the first media content (e.g., add information to the Trust Profile of the first media content) instead of editing the first media content.
[0269] For example, the media content obtained by editing the first media content according to the editing operation, or the media content obtained by modifying the metadata of the first media content, or the first media content to be forwarded (or shared) can be referred to as the second media content. Then, the Trust Profile of the second media content can be generated based on the Trust Profile of the first media content.
[0270] Similarly, after the second electronic device generates the Trust Profile of the second media content, the second user can perform editing operations on the second media content in the second electronic device, or instead of performing editing operations on the second media content, modify the metadata of the second media content (such as adding information to the Trust Profile of the second media content).
[0271] In one possible scenario, after the second electronic device generates a Trust Profile for the second media content, it sends the second media content and the Trust Profile of the second media content to a third electronic device. This allows the third user to edit the second media content on the third electronic device, or to modify the metadata of the second media content (e.g., add information to the Trust Profile of the second media content) instead of editing the second media content.
[0272] For example, the media content obtained by editing the second media content, or the media content obtained by modifying the metadata of the second media content, or the second media content to be forwarded (or shared) can be referred to as the third media content. A trust profile for the third media content can then be generated based on the trust profile of the second media content.
[0273] By analogy, the media content obtained after editing the Nth media content, or the media content obtained by modifying the metadata of the Nth media content, or the Nth media content to be forwarded (or shared) can be referred to as the N+1th media content. Then, based on the Trust Profile of the Nth media content, a Trust Profile for the N+1th media content can be generated; see the description of the embodiments shown in Figures 4a to 8a below.
[0274] It should be noted that, in the embodiments of FIG. 4a to FIG. 8a , when N=1, the first media content may refer to the first media content in the embodiment of FIG. 2a or the embodiment of FIG. 3a .
[0275] It should be understood that the Nth number does not constitute a limit to a specific number, but is only for the convenience of distinction. In some possible cases, the Nth media content and the N+1th media content can be media content generated in chronological order; for example, when N=2, the third media content is generated after the second media content. In other words, in some possible cases, the Nth and N+1th can be used to represent the order. Figure 4a is a schematic diagram of the Trust Profile generation process.
[0276] S401: Acquire the N+1th media content, where the N+1th media content is obtained based on the Nth media content.
[0277] In one possible approach, when the Nth user desires to add information to the Trust Profile of the Nth media content, the Nth user can enter the Trust Profile adding interface corresponding to the Nth media content in the Nth electronic device. At this time, the Nth electronic device can obtain the Nth media content as the N+1th media content (i.e., the N+1th media content is the Nth media content), and then execute S402.
[0278] In one possible approach, after the Nth user performs a forwarding operation on the Nth media content, the Nth electronic device may obtain the Nth media content as the N+1th media content and then execute S402; after generating a trust profile for the N+1th media content, the N+1th media content and the trust profile for the N+1th media content are forwarded.
[0279] In one possible approach, when the N+1th user desires to edit the Nth media content, they can access the editing interface corresponding to the Nth media content on the N+1th electronic device and then perform an editing operation. Correspondingly, the N+1th electronic device can edit the Nth media content in response to the editing operation. After the N+1th user completes editing the Nth media content, the N+1th electronic device obtains the N+1th media content; that is, the N+1th media content is the media content obtained by editing the Nth media content.
[0280] Among them, when the Nth media content is an image / video, the editing process may include but is not limited to: cropping, rotating, color adjustment, adding text, deleting text / target objects, etc., and this application does not impose any restrictions on this. When the Nth media content is audio, the editing process may include but is not limited to: cropping, acceleration, deceleration, pitch increase, pitch decrease, etc., and this application does not impose any restrictions on this. When the Nth media content is a graphic, the editing process may include but is not limited to: cropping, rotating, color adjustment, adding lines, etc., and this application does not impose any restrictions on this. When the Nth media content is text, the editing process may include but is not limited to: adding text, deleting text, changing the order of text, font size, etc., and this application does not impose any restrictions on this.
[0281] As shown in Figure 4c, metadata of the N+1th media content is generated, and the metadata of the N+1th media content includes the initial information of the first media content and the digital signature of the first data; the metadata of the N+1 media content also includes N media hash values, wherein the first media hash value is the hash value of the first media content, the N+1th media hash value is the hash value of the N+1th media content, and the first data is data determined based on at least the initial information and the first media hash value; N is a positive integer.
[0282] Exemplarily, S402 generates metadata for the N+1th media content, where the metadata for the N+1th media content includes the initial information of the first media content and the digital signature of the first combined hash value; the metadata for the N+1 media content also includes N+1 media hash values, where the first media hash value is the hash value of the first media content, the N+1th media hash value is the hash value of the N+1th media content, the first combined hash value is determined based on the initial information and the first media hash value, and N is a positive integer.
[0283] Exemplarily, the metadata of the (N+1)th media content generated in S402 may refer to the Trust Profile of the (N+1)th media content.
[0284] Exemplarily, the Trust Profile of the N+1th media content may be generated by the N+1th electronic device / the Nth electronic device.
[0285] For example, a hash calculation can be performed on the N+1th media content to obtain the N+1th media hash value. Since the N+1th electronic device can obtain the Trust Profile of the Nth media content while obtaining the N+1th media content, the N+1th electronic device can generate a Trust Profile for the N+1th media content based on the Trust Profile of the Nth media content and the N+1th media hash value.
[0286] It should be noted that no matter whether the Nth user performs the information adding operation in the Trust Profile adding interface corresponding to the Nth media content, the N+1th electronic device will execute S402.
[0287] It should be understood that when N=1, according to the description of the embodiments in Figures 2a and 3a, the obtained Trust Profile for the first media content includes one media hash value, namely the first media hash value. After executing S402, the obtained Trust Profile for the second media content may include two media hash values: the first media hash value and the second media hash value.
[0288] When N=2, the obtained Trust Profile of the second media content includes two media hash values: a first media hash value and a second media hash value. After executing S402, the obtained Trust Profile of the third media content may include three media hash values: a first media hash value, a second media hash value, and a third media hash value.
[0289] That is, the obtained Trust Profile of the Nth media content may include N media hash values, and the generated Trust Profile of the N+1th media content may include N+1 media hash values, where the N+1th media hash value is the hash value of the N+1th media content.
[0290] It should be understood that when the (N+1)th media content is the (N)th media content, the (N+1)th media hash value is the same as the (N)th media hash value.
[0291] FIG4 b is a schematic diagram of an exemplary Trust Profile.
[0292] Exemplarily, in FIG4b , the Trust Profile of the N+1th media content may include: Content ID (i.e., the digital content identifier of the first media content), AIGC (i.e., the AIGC identifier), Creation Info (i.e., Creation Information, which may include the time when the first media content was generated, the name of the author of the first media content, the location where the first media content was generated, etc.), Media Hash 0 (i.e., the first media hash value), Signaturesk0 (i.e., the digital signature of the first combined hash value), Media Hash 1 (i.e., the second media hash value), Media Hash 2 (i.e., the third media hash value), ..., Media Hash N (i.e., the N+1th media hash value). Exemplarily, the Trust Profile of the N+1th media content may also include Hash(TD) (i.e., the first combined hash value).
[0293] It should be understood that FIG4b is only an example of the present application, and the position or arrangement order of various information in the Trust Profile can be set as required, and the present application does not impose any limitation on this.
[0294] For example, in the process of generating the Trust Profile of the N+1th media content, the Nth combined hash value and the N+1th media hash value may be associated and digitally signed to prevent some information in the Trust Profile from being forged; for details, please refer to the description in the embodiment of Figure 5a.
[0295] FIG. 5 a or 5 b is a schematic diagram illustrating an exemplary process of generating a Trust Profile.
[0296] S501: Acquire the N+1th media content, where the N+1th media content is obtained based on the Nth media content.
[0297] S502: Perform hash calculation on the (N+1)th media content to obtain the (N+1)th media hash value.
[0298] For example, a hash algorithm may be used to perform hash calculation on the N+1th media content to obtain the N+1th media hash value. It should be understood that the present application does not limit the hash algorithm used in S502.
[0299] As shown in Figure 5a, at S503, the N+1th combined hash value is determined based on the Nth combined hash value and the N+1th media hash value. For example, the Nth combined hash value and the N+1th media hash value can be combined, and then a hash operation is performed on the combined Nth combined hash value and the N+1th media hash value to obtain the N+1th combined hash value. That is, at S503, the N+1th combined hash value is the hash value of the combination of the Nth combined hash value and the N+1th media hash value.
[0300] As shown in Figure 5b, S503 determines the N+1th combined hash value based on the Nth combined hash value, the digital signature of the Nth combined hash value, and the N+1th media hash value. For example, the Nth combined hash value, the digital signature of the Nth combined hash value, and the N+1th media hash value can be combined, and then a hash calculation is performed on the combined Nth combined hash value, the digital signature of the Nth combined hash value, and the N+1th media hash value to obtain the N+1th combined hash value. That is, in S503, the N+1th combined hash value is the hash value of the combination of the Nth combined hash value, the digital signature of the Nth combined hash value, and the N+1th media hash value.
[0301] It should be understood that this application does not limit the hash algorithm used in S503.
[0302] S504: Use the N+1th private key to digitally sign the N+1th combined hash value to obtain the digital signature of the N+1th combined hash value.
[0303] In one possible manner, the N+1th private key may be the private key of the N+1th user, that is, the N+1th private key corresponds to the N+1th user.
[0304] In one possible manner, the N+1th private key may be the private key of the N+1th electronic device, that is, the N+1th private key corresponds to the N+1th electronic device.
[0305] It should be noted that any two of the N+1 private keys may be the same or different, which may be determined based on the user and electronic device that generate the Trust Profile. This application does not impose any restrictions on this.
[0306] For example, the present application may digitally sign the N+1th combined hash value using the N+1th private key based on a digital signature algorithm to obtain a digital signature of the N+1th combined hash value. It should be understood that the present application does not limit the digital signature algorithm involved in S504.
[0307] S505: Add at least the digital signatures of the N+1th media hash value and the N+1th combined hash value to the Trust Profile of the Nth media content to obtain the Trust Profile of the N+1th media content. For example, the N+1th combined hash value may also be added to the Trust Profile of the Nth media content to obtain the Trust Profile of the N+1th media content.
[0308] It should be understood that when N=1, according to the description of the embodiments of Figures 2a and 3a, the Trust Profile of the first media content obtained includes 1 media hash value (i.e., the first media hash value), 1 combined hash value (i.e., the first combined hash value), and a digital signature of the combined hash value (i.e., the digital signature of the first combined hash value). After executing S502 to 505, the Trust Profile of the second media content obtained may include 2 media hash values (including the first media hash value and the second media hash value), 2 combined hash values (including the first combined hash value and the second combined hash value), and the digital signatures of the two combined hash values (i.e., the digital signature of the first combined hash value and the digital signature of the second combined hash value).
[0309] When N=2, the Trust Profile of the second media content obtained includes 2 media hash values, 2 combined hash values, and digital signatures of the 2 combined hash values. After executing S502-505, the Trust Profile of the third media content obtained may include 3 media hash values (including the first media hash value, the second media hash value, and the third media hash value), 3 combined hash values (including the first combined hash value, the second combined hash value, and the third combined hash value), and the digital signatures of the 3 combined hash values (i.e., the digital signature of the first combined hash value, the digital signature of the second combined hash value, and the digital signature of the third combined hash value).
[0310] That is to say, the Trust Profile of the Nth media content obtained may include N media hash values, N combined hash values, and digital signatures of the N combined hash values, and the Trust Profile of the N+1th media content generated may include N+1 media hash values, N+1 combined hash values, and digital signatures of the N+1 combined hash values.
[0311] It should be noted that no matter whether the Nth user performs the information adding operation in the Trust Profile adding interface corresponding to the Nth media content, the (N+1)th electronic device will execute S502 to S505.
[0312] FIG5c is a schematic diagram of an exemplary Trust Profile.
[0313] In Figure 5c, the Trust Profile of the N+1th media content may include: Content ID (i.e., the digital content identifier of the first media content), AIGC (i.e., the AIGC identifier), Creation Info (i.e., Creation Information, which may include the generation time of the first media content, the author name of the first media content, the generation location of the first media content, etc.), Media Hash 0 (i.e., the first media hash value), Hash (TD) (i.e., the first combined hash value), Signaturesk0 (i.e., the digital signature of the first combined hash value), Media Hash 1 (i.e., the second media hash value), MTR1 (i.e., the second combined hash value) and Signaturesk1(MTR1) (i.e., the digital signature of the second combined hash value), ..., Media Hash N (i.e., the N+1th media hash value), MTR N (i.e., the N+1th combined hash value) and SignatureskN(MTR N) (i.e., the digital signature of the N+1th combined hash value).
[0314] It should be understood that FIG5c is only an example of the present application, and the position or arrangement order of various information in the Trust Profile can be set as required, and the present application does not impose any limitation on this.
[0315] For example, a hash value of the claim for the N+1th media content and the claim for the second media content may be generated, and the hash value of the claim for the N+1th media content and the claim for the second media content may be used as part of the Trust Profile for the N+1th media content. For details, see the description of the embodiment in FIG6a.
[0316] FIG. 6 a or FIG. 6 b is a schematic diagram illustrating an exemplary Trust Profile generation process.
[0317] S601: Acquire the N+1th media content, where the N+1th media content is obtained based on the Nth media content.
[0318] S602: Obtain one or more (N+1)th media statements and one or more (N+1)th statement hash values.
[0319] In one possible approach, after the Nth user performs a declaration addition operation for the N+1th media content in the Trust Profile addition interface corresponding to the Nth media content, the Nth electronic device can obtain one or more declarations for the N+1th media content (hereinafter referred to as the N+1th media declaration). The N+1th media declaration may include copyright information, a thumbnail, whether it can be modified, operating permissions, usage permissions, the source of the N+1th media content, etc., and this application does not impose any restrictions on this.
[0320] For example, assuming that the N+1th media content is an image, one or more N+1th media declarations for the N+1th media content may include: a declaration of an unchangeable area in the N+1th media content, a declaration of an unchangeable object in the N+1th media content, a declaration of the operating permissions of the N+1th media content, an explanation of the usage permissions of the N+1th media content, etc.
[0321] In one possible approach, after the Nth user forwards the Nth media content, the Nth user can also access the Trust Profile addition interface corresponding to the Nth media content and perform a declaration addition operation for the N+1th media content. In this way, the N+1th electronic device can obtain one or more N+1th media declarations for the N+1th media content. The N+1th media declaration may include copyright information, a thumbnail, whether it can be modified, operating permissions, usage permissions, the source of the N+1th media content, etc. This application does not impose any restrictions on this.
[0322] In one possible approach, when the (N+1)th media content is obtained by editing the (N)th media content, the (N+1)th electronic device may record editing parameters during the editing process of the (N+1)th media content in response to the (N+1)th user's editing operation on the (N)th media content. After acquiring the (N+1)th media content, one or more (N+1)th media declarations may be generated for the (N+1)th media content based on the recorded editing parameters.
[0323] The N+1th media declaration may include editing information. For example, assuming that the N+1th media content is an image, one or more N+1th media declarations for the N+1th media content may include rotation parameters, cropping parameters, and the like.
[0324] It should be understood that when the N+1th media content is obtained by editing the Nth media content, the N+1th user, after completing the editing operation on the Nth media content, can also enter the Trust Profile addition interface corresponding to the N+1th media content on the N+1th electronic device and perform the declaration addition operation for the N+1th media content; in this way, the N+1th electronic device can obtain one or more N+1th media declarations for the N+1th media content. At this time, the N+1th media declaration may include copyright information, thumbnails, whether it can be modified, operating permissions, usage permissions, the source of the N+1th media content, etc., and this application does not impose any restrictions on this.
[0325] For example, for each N+1th media statement, a hash algorithm may be used to perform a hash calculation on the N+1th media statement to obtain the N+1th statement hash value of the N+1th media statement. It should be understood that this application does not limit the hash algorithm used in S602.
[0326] It should be understood that S602 is an optional step, that is, during the process of generating the Trust Profile, the N+1th media content may be declared, or the N+1th media content may not be declared; this can increase the flexibility and backward compatibility of the Trust Profile.
[0327] S603: Perform hash calculation on the (N+1)th media content to obtain the (N+1)th media hash value.
[0328] As shown in FIG6 a , at S604 , an N+1th combined hash value is determined according to the Nth combined hash value, the N+1th media hash value, and one or more N+1th declaration hash values.
[0329] Exemplarily, the Nth combined hash value, one or more N+1th declaration hash values, and one or more hash values of the N+1th media hash value may be concatenated and then hashed to obtain an intermediate hash value.
[0330] When the intermediate hash value is obtained by hashing the concatenation of all hash values in the Nth combined hash value, one or more N+1th declared hash values, and the N+1th media hash value, the intermediate hash value can be used as the N+1th combined hash value.
[0331] As shown in FIG6 b , at S604 , the N+1th combined hash value is determined according to the Nth combined hash value, the digital signature of the Nth combined hash value, the N+1th media hash value, and one or more N+1th declaration hash values.
[0332] Exemplarily, the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declaration hash values, and one or more hash values of the N+1th media hash value may be concatenated and hashed to obtain an intermediate hash value.
[0333] When the intermediate hash value is obtained by hashing the concatenation of all hash values in the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declaration hash values, and the N+1th media hash value, the intermediate hash value can be used as the N+1th combined hash value.
[0334] Figure 6c or Figure 6d is a schematic diagram illustrating the process of generating the N+1th combined hash value. In Figure 6c or 6d, N=1, the number of second claim hash values is 3, and the three second claim hash values are: Claim Hash 21, Claim Hash 22, and Claim Hash 23.
[0335] Assume that the first combined hash value is Hash(TD), the digital signature of the first combined hash value is Signature sk0, and the second media hash is Media Hash 1. In Figure 6c, Hash(TD), Media Hash 1, and Claim Hash 21, Claim Hash 22, and Claim Hash 23 can be concatenated and hashed to obtain a second combined hash value MTR1. In Figure 6d, Hash(TD), Signature sk0, Media Hash 1, and Claim Hash 21, Claim Hash 22, and Claim Hash 23 can be concatenated and hashed to obtain a second combined hash value MTR1. It should be understood that this application does not limit the concatenation order of Claim Hash 21, Claim Hash 22, Claim Hash 23, Signature sk0, Hash(TD), and Media Hash 1.
[0336] As shown in Figure 6c, when the intermediate hash value is obtained by concatenating the Nth combined hash value, one or more N+1th declared hash values, and a portion of the N+1th media hash value and performing a hash calculation, the N+1th combined hash value can be obtained by performing a hash calculation based on the intermediate hash value, the Nth combined hash value, one or more N+1th declared hash values, and another portion of the N+1th media hash value. For example, a hash tree can be used to perform a hash calculation on the Nth combined hash value, the N+1th media hash value, and one or more N+1th declared hash values to obtain the N+1th combined hash value.
[0337] As shown in Figure 6d, when the intermediate hash value is obtained by concatenating the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declared hash values, and a portion of the hash values in the N+1th media hash value and performing a hash calculation, the N+1th combined hash value can be obtained by performing a hash calculation based on the intermediate hash value, the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declared hash values, and another portion of the hash values in the N+1th media hash value. For example, a hash tree can be used to perform a hash calculation on the Nth combined hash value, the digital signature of the Nth combined hash value, the N+1th media hash value, and one or more N+1th declared hash values to obtain the N+1th combined hash value.
[0338] Among them, the hash tree is a data structure, and the hash tree may include but is not limited to a binary tree, a ternary tree, a Merkle tree, etc., and this application does not impose any restrictions on this.
[0339] In one possible approach, the N+1th combined hash value is the value of the root node of the hash tree, and the Nth combined hash value, the N+1th media hash value, and one or more N+1th declaration hash values are respectively the values of the leaf nodes of the hash tree.
[0340] 6e and 6f are schematic diagrams illustrating an exemplary process of generating the N+1th combined hash value.
[0341] In Figure 6e, the hash tree is a Merkle Tree, the N+1th combined hash value (MTR N) is the value of the Merkle Tree Root (MTR), and the Nth combined hash value (MTR N-1), the N+1th media hash value (Media Hash N), and the two N+1th claim hash values (Claim Hash N1 and Claim Hash N2) are the values of the leaf nodes of the Merkle Tree.
[0342] 6e , illustratively, the concatenated MTR N-1 and Media Hash N can be hashed to obtain Hash X1 (i.e., the intermediate hash value), and the concatenated Claim Hash N1 and Claim Hash N2 can be hashed to obtain Hash X2 (i.e., the intermediate hash value). Subsequently, the concatenated Hash X1 and Hash X2 are hashed to obtain MTR N.
[0343] In Figure 6f, the N+1th combined hash value (MTR N) is the value of the root node (Merkle Tree Root, MTR) of the Merkle Tree, and the Nth combined hash value (MTR N-1), the digital signature of the Nth combined hash value (Signature skN-1), the N+1th media hash value (Media Hash N), and the two N+1th claim hash values (Claim Hash N1 and Claim Hash N2) are the values of the leaf nodes of the Merkle Tree.
[0344] 6f , illustratively, the concatenated MTR N-1 and Signature skN-1 can be hashed to obtain Hash X3 (i.e., an intermediate hash value). The concatenated Claim Hash N1 and Media Hash N can be hashed to obtain Hash X4 (i.e., an intermediate hash value). The concatenated Claim Hash N2 and Claim Hash N3 can be hashed to obtain Hash X5 (i.e., an intermediate hash value). Subsequently, the concatenated Hash X3 and Hash X4 can be hashed to obtain Hash X6. The concatenated Hash X5 can be hashed to obtain Hash X7. Subsequently, the concatenated Hash X6 and Hash X7 can be hashed to obtain MTR N.
[0345] When N is equal to 1, MTR 0 refers to the first combined hash value, that is, the above-mentioned Hash (TD).
[0346] It should be understood that Figure 6e or 6f is only an example of a Merkle Tree, and the Merkle Tree of this application can be other data structures, and this application does not limit this.
[0347] It should be understood that the present application does not restrict which leaf node of the Merkle Tree the Nth combined hash value, the N+1th media hash value, and one or more N+1th declaration hash values correspond to.
[0348] In one possible approach, the N+1th combined hash value is the value of the root node of the hash tree, the Nth combined hash value is the value of the root node of the left subtree of the hash tree, and the N+1th media hash value and one or more N+1th declaration hash values are respectively the values of the leaf nodes of the right subtree of the hash tree.
[0349] FIG6g or FIG6h is a schematic diagram showing an exemplary process of generating the N+1th combined hash value.
[0350] In Figure 6g, the hash tree is a Merkle Tree, the N+1th combined hash value (MTR N) is the value of the root node of the Merkle Tree, the Nth combined hash value (MTR N-1) is the value of the root node of the left subtree of the Merkle Tree, the N+1th media hash value (Media Hash N) and the two N+1th claim hash values (Claim Hash N1 and Claim Hash N2) are respectively the values of the leaf nodes of the right subtree of the Merkle Tree. Referring to Figure 6g, for example, the concatenated Claim Hash N1 and Media Hash N can be hashed to obtain Hash X8 (that is, the intermediate hash value), and the Claim Hash N2 can be hashed to obtain Hash X9 (that is, the intermediate hash value). Thereafter, the concatenated Hash X8 and Hash X9 are hashed to obtain Hash X10. Subsequently, the concatenated Hash X10 and MTR N-1 are hashed to obtain MTR N.
[0351] In Figure 6h, the hash tree is a Merkle Tree, the N+1th combined hash value (MTR N) is the value of the root node of the Merkle Tree, Hash X14 is the value of the root node of the left subtree of the Merkle Tree, the Nth combined hash value (MTR N-1) and the digital signature of the Nth combined hash value (Signature skN-1) are the values of the child nodes of the root node of the left subtree, and the N+1th media hash value (Media Hash N) and the two N+1th claim hash values (Claim Hash N1 and Claim Hash N2) are the values of the leaf nodes of the right subtree of the Merkle Tree. Referring to Figure 6h, illustratively, the concatenated Claim Hash N1 and Media Hash N can be hashed to obtain Hash X11 (i.e., the intermediate hash value), and the Claim Hash N2 can be hashed to obtain Hash X12 (i.e., the intermediate hash value). The concatenated MTR N-1 and Signature skN-1 can be hashed to obtain Hash X14 (i.e., the intermediate hash value). Subsequently, the concatenated Hash X11 and Hash X12 are hashed to obtain Hash X13. Subsequently, the concatenated Hash X3 and Hash X14 are hashed to obtain MTR N.
[0352] When N is equal to 1, MTR 0 refers to the first combined hash value, that is, the above-mentioned Hash (TD).
[0353] It should be understood that the present application does not restrict which leaf node of the Merkle Tree the N+1th media hash value and one or more N+1th declaration hash values correspond to.
[0354] Exemplarily, when the hash tree is a Merkle Tree, the Merkle Tree can also be pruned to reduce the memory occupied by the Trust Profile. Specifically, some or all of the N+1th media declarations and the corresponding N+1th declaration hash values in one or more N+1th media declarations can be deleted, and only the hash value of the parent node of the deleted N+1th declaration hash value can be retained. In addition, the deleted N+1th media declaration can be declared (which can be called the N+1th media deletion declaration), and the hash value of the parent node of the deleted N+1th declaration hash value can be used as the hash value of the N+1th media deletion declaration (which can be called the N+1th declaration deletion hash value).
[0355] For example, referring to FIG6e , Claim Hash N1 and Claim Hash N2 in FIG6e may be deleted, and Hash X2 may be retained.
[0356] S605 , digitally sign the N+1th combined hash value using the N+1th private key to obtain the digital signature of the N+1th combined hash value.
[0357] For example, it should be understood that the present application does not limit the digital signature algorithm used in S605.
[0358] S606: Add one or more (N+1)th media declarations, one or more (N+1)th declaration hash values, (N+1)th media hash value, (N+1)th combined hash value, and the digital signature of (N+1)th combined hash value to the Trust Profile of the (N)th media content to obtain the Trust Profile of the (N+1)th media content.
[0359] It should be understood that the Trust Profile of the first media content does not include the media declaration and the declaration hash value.
[0360] In the embodiment of Figure 6a or 6b, the Trust Profile of the N+1th media content may include: initial information of the first media content, N+1 media hash values and N+1 combined hash values, a digital signature of the N+1 combined hash value, one or more N+1th media declarations and one or more N+1th declaration hash values.
[0361] It should be understood that when the Trust Profile of the Nth media content includes one or more Nth media declarations and one or more Nth declaration hash values, the Trust Profile of the N+1th media content may also include one or more Nth media declarations and one or more Nth declaration hash values. When the Trust Profile of the N-1th media content includes one or more N-1th media declarations and one or more N-1th declaration hash values, the Trust Profile of the N+1th media content may also include one or more N-1th media declarations and one or more N-1th declaration hash values; and so on, and this application does not impose any restrictions on this.
[0362] FIG6i is a schematic diagram of an exemplary Trust Profile.
[0363] In Figure 6i, the Trust Profile of the (N+1)th media content may include: Content ID (i.e., the digital content identifier of the first media content), AIGC (i.e., the AIGC identifier), Creation Info (i.e., Creation Information, which may include the generation time of the first media content, the author name of the first media content, the generation location of the first media content, etc.), Media Hash 0 (i.e., the first media hash value), Hash(TD) (i.e., the first combined hash value), Signaturesk0 (i.e., the digital signature of the first combined hash value), Media Hash 1 (i.e., the second media hash value), MTR1 (i.e., the second combined hash value) and Signaturesk1(MTR1) (i.e., the digital signature of the second combined hash value), Claim 21 (i.e., the second media claim) and Claim Hash 21 (i.e., the second claim hash value), Claim 22 (i.e., the second media claim) and Claim Hash 22 (i.e., the second claim hash value), Claim 23 (i.e., the second media claim) and Claim Hash 23 (i.e., the second claim hash value), ..., Media Hash N (i.e., the N+1th media hash value), MTR N (i.e., the N+1th combined hash value) and SignatureskN(MTR N) (i.e., the digital signature of the N+1th combined hash value), Claim N1 (i.e., the N+1th media claim) and Claim Hash N1 (i.e., the N+1th claim hash value).
[0364] FIG6j is a schematic diagram of an exemplary Trust Profile.
[0365] For example, Figure 6j is a Trust Profile diagram that removes all second media claims and second claim hash values from Figure 6i and adds a second media deletion claim (Claim D) and a second claim deletion hash value (Claim Hash D). For other information in Figure 6j, refer to the description in Figure 6i and are not repeated here.
[0366] It should be understood that FIG. 6i and FIG. 6j are merely examples of the present application, and the position or arrangement order of various information in the Trust Profile can be set as required, and the present application does not impose any limitation thereto.
[0367] Exemplarily, the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value may be encapsulated to obtain the Trust Profile of the N+1th media content.
[0368] Figure 7a or 7b is a schematic diagram of an exemplary Trust Profile generation process. Figure 7a is an explanation based on Figure 5a, and Figure 7b is an explanation based on Figure 5b.
[0369] S701: Acquire the N+1th media content, where the N+1th media content is obtained based on the Nth media content.
[0370] S702 , performing hash calculation on the (N+1)th media content to obtain the (N+1)th media hash value.
[0371] S703 : Determine the N+1th combined hash value according to the Nth combined hash value and the N+1th media hash value.
[0372] S704 , digitally sign the N+1th combined hash value using the N+1th private key to obtain the digital signature of the N+1th combined hash value.
[0373] S705 , encapsulate the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value to obtain a trust record (Trust Record or Trust Manifest) of the N+1th media content.
[0374] The trust record of the (N+1)th media content may be represented by Trust Record N. For example, when N is equal to 1, the Trust Record of the second media content may be represented by Trust Record 1.
[0375] Exemplarily, the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value may be encapsulated together to obtain Trust Record N.
[0376] S706: Add Trust Record N to the Trust Profile of the Nth media content to obtain the Trust Profile of the (N+1)th media content.
[0377] It should be understood that if the information in the Trust Profile of the Nth media content is not encapsulated as a Trust Declaration, Trust Record 1, ..., and Trust Record N-1, then before S706, the information in the Trust Profile of the Nth media content can be encapsulated as a Trust Declaration, Trust Record 1, ..., and Trust Record N-1; then, the Trust Declaration, Trust Record 1, ..., and Trust Record N-1 can be encapsulated to form the Trust Profile of the Nth media content. Thereafter, Trust Record N can be added to the Trust Profile of the Nth media content to obtain the Trust Profile of the N+1th media content. It should be noted that adding Trust Record N to the Trust Profile of the Nth media content can be understood as encapsulating Trust Record N with the Trust Declaration, Trust Record 1, ..., and Trust Record N-1 to obtain the Trust Profile of the N+1th media content.
[0378] The process of packaging the information in the Trust Profile of the Nth media content into a Trust Declaration can be described in the above embodiment. The process of packaging the information in the Trust Profile of the Nth media content into Trust Record 1, ..., Trust Record N-1 can be described in S705 and will not be repeated here.
[0379] FIG7 c is a schematic diagram of an exemplary Trust Profile.
[0380] In Figure 7c, the Trust Profile for the (N+1)th media content may include a Trust Declaration, Trust Record 1, ..., and Trust Record N. Trust Record 1 may include: a second media hash value (Media Hash 1), a second combined hash value (MTR1), and a digital signature of the second combined hash value (Signaturesk1(MTR1)). Trust Record N may include: Media Hash N (i.e., the (N+1)th media hash value), MTR N (i.e., the (N+1)th combined hash value), and SignatureskN(MTR N) (i.e., the digital signature of the (N+1)th combined hash value).
[0381] It should be understood that FIG. 7 c is merely an example of the present application, and the position or arrangement order of various information in the Trust Profile can be set as required, and the present application does not impose any limitation thereto.
[0382] Exemplarily, the N+1th media hash value and the N+1th combined hash value, the digital signature of the N+1th combined hash value, one or more N+1th media declarations and one or more N+1th declaration hash values can be encapsulated to obtain the Trust Profile of the N+1th media content.
[0383] Figure 8a or 8b is a schematic diagram of an exemplary Trust Profile generation process. Figure 8a is an explanation based on Figure 6a, and Figure 8b is an explanation based on Figure 6b.
[0384] S801: Acquire the N+1th media content, where the N+1th media content is obtained based on the Nth media content.
[0385] S802: Obtain one or more (N+1)th media statements and one or more (N+1)th statement hash values.
[0386] S803 , performing hash calculation on the (N+1)th media content to obtain the (N+1)th media hash value.
[0387] S804 : Determine an N+1th combined hash value according to the Nth combined hash value, the N+1th media hash value, and one or more N+1th declaration hash values.
[0388] S805 , digitally sign the N+1th combined hash value using the N+1th private key to obtain the digital signature of the N+1th combined hash value.
[0389] S806 , encapsulate the N+1th media hash value, the N+1th combined hash value, the digital signature of the N+1th combined hash value, one or more N+1th media declarations, and one or more N+1th declaration hash values to obtain Trust Record N.
[0390] S807: Add Trust Record N to the Trust Profile of the Nth media content to obtain the Trust Profile of the N+1th media content.
[0391] It should be understood that if the information in the Trust Profile of the Nth media content is not encapsulated as a Trust Declaration, Trust Record 1, ..., Trust Record N-1, then before S807, the information in the Trust Profile of the Nth media content can be encapsulated as a Trust Declaration, Trust Record 1, ..., Trust Record N-1; and then Trust Record N is added to the Trust Profile of the Nth media content to obtain the Trust Profile of the N+1th media content.
[0392] The process of packaging the information in the Trust Profile of the Nth media content into a Trust Declaration can be described in the above embodiment. The process of packaging the information in the Trust Profile of the Nth media content into Trust Record 1, ..., and Trust Record N-1 can be described in S806 and will not be repeated here.
[0393] FIG8c is a schematic diagram of an exemplary Trust Profile.
[0394] In Figure 8c, the Trust Profile of the (N+1)th media content may include Trust Declaration, Trust Record 1, ..., Trust Record N. Among them, Trust Record 1 may include: Media Hash 1 (i.e., the second media hash value), MTR1 (i.e., the second combined hash value) and Signaturesk1(MTR1) (i.e., the digital signature of the second combined hash value), Claim 21 (i.e., the second media declaration) and Claim Hash 21 (i.e., the second declaration hash value), Claim 22 (i.e., the second media declaration) and Claim Hash 22 (i.e., the second declaration hash value), Claim 23 (i.e., the second media declaration) and Claim Hash 23 (i.e., the second declaration hash value). Trust Record N may include: Media Hash N (i.e., the N+1th media hash value), MTR N (i.e., the N+1th combined hash value) and SignatureskN(MTR N) (i.e., the digital signature of the N+1th combined hash value), Claim N1 (i.e., the N+1th media claim) and Claim Hash N1 (i.e., the N+1th claim hash value).
[0395] It should be understood that FIG8c is only an example of the present application, and the position or arrangement order of various information in the Trust Profile can be set as required, and the present application does not impose any limitation on this.
[0396] FIG8 d is a schematic diagram of an exemplary Trust Profile.
[0397] In Figure 8d, the Trust Profile may include a Trust Manifest and a second digital signature, the second digital signature being a digital signature of the second data. The Trust Manifest may include modification declarations (Assertions), the Assertions may include the (N+1)th media hash value and the (N+1)th declaration, and the second data may be data determined based on at least the (N+1)th media hash value and the (N+1)th declaration. For example, at least the (N+1)th media hash value and the (N+1)th declaration may be encapsulated to form Assertions.
[0398] Exemplarily, the second data is data composed of at least the N+1th media hash value and the N+1th declaration, or the first data is data composed of at least the hash value of the N+1th declaration and the hash value of the N+1th media hash value.
[0399] Exemplarily, the second data may also be the N+1th combined hash value, where the N+1th combined hash value includes the hash value of the N+1th declaration and the N+1th media hash value combined. Exemplarily, the N+1th combined hash value includes the hash value of the N+1th declaration, the hash value of the N+1th media hash value combined, and the hash value of other descriptive information combined. The other descriptive information may not be other descriptive information in the N+1th declaration, for example, information about a tool for generating a Trust Manifest or other information describing the N+1th declaration, and this application does not impose any restrictions on this.
[0400] Exemplarily, the second data may also be the N+1th combined hash value, which may include a hash value of the combination of the N+1th declared hash value and the N+1th media hash value (e.g., the second media hash value Media Hash 1.Hash). Exemplarily, the second combined hash value is a hash value of the combination of the N+1th declared hash value, the N+1th media hash value, and the hash value of other metadata information.
[0401] Exemplarily, in FIG8d , the metadata of the N+1th media content may also include the hash value of the N+1th media hash value and the hash value of the N+1th claim. Exemplarily, the hash value of the N+1th media hash value (Media Hash N.Hash) and the hash value of the N+1th claim (Claim Hash N1) may be encapsulated together. For example, the hash value of the second media hash value and the hash value of the second claim may be encapsulated together, which are not listed one by one here. Exemplarily, there may be multiple Trust Manifests, and there may be one or more second claims. For example, the number of Trust Manifests is similar to that of Trust Records, which are not described in detail here.
[0402] Exemplarily, in FIG8 d , the metadata of the second media content may further include an N+1th Uniform Resource Locator (URL), where the N+1th URL indicates the location of the N+1th declaration or the N+1th media hash value in the N+1th metadata. For example, URL4 is the location of the second media hash value in the metadata of the second media content, URL5 is the location of the N+1th declaration in the metadata of the second media content, URLi is the location of the N+1th media hash value in the metadata of the N+1th media content, and URLi+1 is the location of the N+1th declaration in the metadata of the N+1th media content, where i depends on the specific environment and is a positive integer.
[0403] Exemplarily, the hash value of the N+1th media hash value, the hash value of the N+1th declaration, and the corresponding URL may be encapsulated together.
[0404] Exemplarily, the metadata of the (N+1)th media content may also include other information that is not used to verify the authenticity of the (N+1)th media content, such as the file name and the name of the hash algorithm used to calculate the hash value mentioned in the above embodiment.
[0405] For example, the N+1th combined hash value can be the hash value of the data combined from the hash value of the N+1th declaration, the hash value of the N+1th media hash value, and the N+1th URL. For example, the N+1th combined hash value can be the hash value of the data combined from the hash value of the N+1th declaration, the hash value of the N+1th media hash value, the N+1th URL, and other information. The following describes the Trust Profile verification process.
[0406] Figure 9a is a schematic diagram illustrating an exemplary verification process. In the embodiment of Figure 9a, the Trust Profile of the first media content in the embodiment of Figure 2a or Figure 3a is verified. It should be understood that the electronic device that verifies the Trust Profile of the first media content can be the first electronic device or another electronic device, and this application does not impose any restrictions on this.
[0407] S901, obtain metadata of first media content; wherein the metadata includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is determined based on the initial information and the first media hash value.
[0408] For example, when it is necessary to trace the source of the first media content or determine the authenticity of the first media content, the Trust Profile of the first media content may be obtained from the metadata of the first media content; and then S902 is executed.
[0409] For example, when the Trust Profile of the first media content is as shown in the embodiment of FIG3a , the Trust Profile of the first media content can be decapsulated to obtain a Trust Declaration. Subsequently, the Trust Declaration is decapsulated to obtain the initial information of the first media content, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value.
[0410] S902: Verify metadata of the first media content.
[0411] Exemplarily, S902 may be verifying the Trust Profile of the first media content.
[0412] FIG9 b is a schematic diagram of an exemplary verification process. Referring to FIG9 b , illustratively, S902 may include the following S9021 to S9026:
[0413] S9021: Perform a hash calculation on the first media content to obtain a first predicted media hash value.
[0414] For example, a hash algorithm may be used to perform hash calculation on the first media content to obtain a first predicted media hash value. It should be understood that the hash algorithm used in S9021 is the same as the hash algorithm used in S302 in the embodiment of FIG. 3a .
[0415] S9022: Determine whether the first predicted media hash value is the same as the first media hash value in the Trust Profile of the first media content.
[0416] For example, when the first predicted media hash value is the same as the first media hash value in the Trust Profile of the first media content, it indicates that the Trust Profile is the Trust Profile of the first media content, or that the first media hash value has not been tampered with. In this case, S9023 can be executed to continue verifying other information in the Trust Profile of the first media content. When the first predicted media hash value is different from the first media hash value in the Trust Profile of the first media content, it indicates that the Trust Profile is not the Trust Profile of the first media content, or that the first media hash value has been tampered with. In this case, it can be determined that the verification of the Trust Profile of the first media content has failed.
[0417] S9023: When the first media predicted hash value is the same as the first media hash value in the first Trust Profile, determine a first predicted combined hash value according to the initial information of the first media content and the first predicted media hash value.
[0418] Exemplarily, when the first media predicted hash value is the same as the first media hash value in the Trust Profile of the first media content, the initial information of the first media content and the first predicted media hash value can be combined (also called connected or cascaded); a hash algorithm is used to perform a hash calculation on the combination of the initial information of the first media content and the first predicted media hash value to obtain a first predicted combined hash value.
[0419] It should be understood that the hash algorithm used in S9023 is the same as the hash algorithm used in S303 in the embodiment of FIG. 3 a .
[0420] S9024: Determine whether the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content.
[0421] For example, when the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content, it indicates that the first combined hash value in the Trust Profile of the first media content has not been tampered with, and the initial information of the first media content has not been tampered with, and S9025 can be executed to continue verifying other information in the Trust Profile of the first media content. When the first predicted combined hash value is different from the first combined hash value in the Trust Profile of the first media content, it indicates that the first combined hash value in the Trust Profile of the first media content has been tampered with, or the initial information of the first media content has been tampered with, and in this case, it can be determined that the verification of the Trust Profile of the first media content has failed.
[0422] S9025: When the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content, perform a first signature verification based on the first public key, the first combined hash value, and the digital signature of the first predicted combined hash value.
[0423] Exemplarily, the first public key and the first private key are a key pair. It should be understood that the digital signature algorithm involved in the first signature verification process in S9025 is the same as the digital signature algorithm involved in the above S304.
[0424] S9026: Determine whether the first signature verification is successful.
[0425] Exemplarily, when the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content, the digital signature of the first combined hash value can be decrypted using the first public key to obtain a decrypted hash value; and it is determined whether the decrypted hash value is the same as the first predicted combined hash value.
[0426] When the decrypted hash value is different from the first predicted combined hash value, it indicates that the first signature verification fails. In this case, it can be determined that the verification of the Trust Profile of the first media content fails, that is, the Trust Profile of the first media content is false.
[0427] If the decrypted hash value is identical to the first predicted combined hash value, the first signature verification is successful. At this point, the Trust Profile of the first media content can be verified successfully, meaning the Trust Profile of the first media content is true. For example, if the Trust Profile of the first media content is true, the user can further determine the authenticity of the first media content, or determine that the content in the first media content is authentic. This application does not impose any restrictions on this.
[0428] Figure 10a is a schematic diagram illustrating an exemplary verification process. In the embodiment of Figure 10a, the Trust Profile of the N+1th media content in the embodiment of Figure 6a or Figure 8a is verified. It should be understood that the electronic device that verifies the Trust Profile of the N+1th media content can be the N+1th electronic device or another electronic device, and this application does not impose any limitation on this.
[0429] S1001, obtain metadata of the N+1th media content, the metadata of the N+1th media content includes initial information of the first media content, N+1 media hash values, N+1 combined hash values, a digital signature of the N+1 combined hash values, one or more N+1th media declarations, and one or more N+1th declaration hash values.
[0430] For example, when it is necessary to trace the source of the N+1th media content or determine the authenticity of the N+1th media content, the Trust Profile of the N+1th media content can be obtained from the metadata of the N+1th media content; and then S1002 is executed.
[0431] For example, when the obtained Trust Profile for the N+1th media content is the Trust Profile for the N+1th media content generated in FIG8a , the Trust Profile for the N+1th media content can be decapsulated to obtain a Trust Declaration, Trust Record 1, ..., and Trust Record N. Subsequently, the Trust Declaration and Trust Record 1, ..., and Trust Record N can be decapsulated separately to obtain initial information of the first media content, N+1 media hash values, N+1 combined hash values, a digital signature of the N+1 combined hash values, one or more N+1th media declarations, and one or more N+1th declaration hash values.
[0432] S1002: Verify metadata of the (N+1)th media content.
[0433] Exemplarily, S1002 may be verifying the Trust Profile of the (N+1)th media content.
[0434] 10b and 10c are schematic diagrams illustrating exemplary verification processes. Referring to FIG10b and FIG10c, S1002 may include the following S10021 to S100224: In the embodiments of FIG10b and 10c, the Trust Profile of the N+1th media content in the embodiment of FIG6a or FIG8a is verified.
[0435] S10021: Determine a first predicted combined hash value based on initial information of the first media content and the first media hash.
[0436] S10022: Determine whether the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content.
[0437] For example, when the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content, S10023 may be executed. When the first predicted combined hash value is different from the first combined hash value in the Trust Profile of the first media content, it may be determined that verification of the Trust Profile of the (N+1)th media content has failed.
[0438] S10023: When the first predicted combined hash value is the same as the first combined hash value in the Trust Profile of the first media content, perform a first signature verification based on the first public key, the first combined hash value, and the digital signature of the first predicted combined hash value.
[0439] For example, S10021 to S10023 may refer to the description of S9023 to S9025 above, which will not be repeated here.
[0440] S10024: Determine whether the first signature verification is successful.
[0441] Exemplarily, when the first signature verification succeeds, S10025 is executed; when the first signature verification fails, it can be determined that the verification of the Trust Profile of the (N+1)th media content has failed.
[0442] S10025. When the first signature verification succeeds, a hash calculation is performed on the i-th media statement to obtain the i-th predicted statement hash value, where the initial value of i is 2 and i is an integer less than N.
[0443] For example, a hash algorithm may be used to perform a hash calculation on the i-th media statement to obtain the i-th predicted statement hash value. It should be understood that the hash algorithm used in S10025 is the same as the hash algorithm used in S602.
[0444] Exemplarily, when the i-th media statement includes multiple ones, a hash calculation may be performed on each i-th media statement respectively to obtain an i-th predicted statement hash value corresponding to each i-th media statement.
[0445] S10026 , determining whether the i-th predicted declared hash value is the same as the i-th declared hash value in the Trust Profile of the (N+1)-th media content.
[0446] For example, when the i-th media statement includes multiple statements, it can be determined in turn whether the i-th predicted statement hash value corresponding to each i-th media statement is the same as the i-th statement hash value. When the i-th predicted statement hash value corresponding to all i-th media statements is the same as the i-th statement hash value, S10027 can be executed. When the i-th predicted statement hash value corresponding to at least one i-th media statement is different from the i-th statement hash value, it can be determined that the Trust Profile verification of the (N+1)-th media content has failed.
[0447] S10027: When the i-th predicted declared hash value and the i-th declared hash value in the Trust Profile of the N+1-th media content are equal, determine whether i is less than N-1.
[0448] Exemplarily, if i is less than N-1, execute S10028; if k is equal to N-1, execute S10029.
[0449] S10028, increment i by 1, and return to execute S10025.
[0450] It should be understood that S10025 to S10028 are optional steps, depending on whether the Trust Profile of the (N+1)th media content includes the i-th media declaration and the i-th declaration hash value.
[0451] S10029, determine the k+1th predicted combined hash value based on the kth combined hash value, the k+1th media hash value and the k+1th group declaration hash value, where the initial value of k is 1 and k is an integer less than N.
[0452] S100210 , determining whether the k+1th predicted combined hash value is the same as the k+1th combined hash value in the Trust Profile of the N+1th media content.
[0453] Exemplarily, when the k+1th predicted combined hash value is the same as the k+1th combined hash value in the Trust Profile of the N+1th media content, S100211 can be executed; when the k+1th predicted combined hash value is different from the k+1th combined hash value in the Trust Profile of the N+1th media content, it can be determined that the Trust Profile verification of the N+1th media content has failed.
[0454] S100211: When the k+1th predicted combined hash value is the same as the k+1th combined hash value in the Trust Profile of the N+1th media content, determine whether k is less than N-2.
[0455] Illustratively, if k is less than N-1, execute S100212; if k is equal to N-1, execute S100213.
[0456] S100212, add 1 to k and return to execute S10029.
[0457] S100213, perform the jth signature verification based on the jth public key, the jth combined hash value and the digital signature of the jth combined hash value, where the initial value of j is 1 and j is an integer less than N.
[0458] Exemplarily, the jth public key and the jth private key are a key pair. It should be understood that the digital signature algorithm involved in the jth signature verification process in S100213 is the same as the digital signature algorithm involved in the digital signature using the jth private key in the Trust Profile generation process.
[0459] S100214, determine whether the j-th signature verification is successful.
[0460] Exemplarily, if the j-th signature verification succeeds, S100215 is executed; if the j-th signature verification is recognized, it means that the Trust Profile verification of the (N+1)-th media content has failed.
[0461] S100215, determine whether j is less than N.
[0462] Exemplarily, if j is less than N, execute S100216; if j is equal to N, execute S100217.
[0463] S100216, add 1 to j and return to execute S100213.
[0464] It should be understood that S10029 to S100216 are optional steps, depending on whether the Trust Profile of the (N+1)th media content includes the kth combined hash value and the digital signature of the kth combined hash value.
[0465] S100217, perform hash calculation on the N+1th media content to obtain the N+1th predicted media hash value.
[0466] S100218: Determine whether the N+1th predicted media hash value is the same as the N+1th media hash value in the Trust Profile of the N+1th media content.
[0467] Exemplarily, when the N+1 predicted media hash value is the same as the N+1 media hash value in the Trust Profile of the N+1 media content, S100219 is executed. When the N+1 predicted media hash value is different from the N+1 media hash value in the Trust Profile of the N+1 media content, it indicates that the Trust Profile verification of the N+1 media content has failed.
[0468] S100219: When the N+1th predicted media hash value is the same as the N+1th media hash value in the Trust Profile of the N+1th media content, a hash calculation is performed on the N+1th declaration to obtain the N+1th predicted declaration hash value.
[0469] S100220: Determine whether the N+1th predicted declaration hash value is the same as the N+1th declaration hash value in the Trust Profile of the N+1th media content.
[0470] Exemplarily, when the N+1th predicted declaration hash value is the same as the N+1th declared hash value in the Trust Profile of the N+1th media content, S100221 is executed. When the N+1th predicted declaration hash value is different from the N+1th declared hash value in the Trust Profile of the N+1th media content, it indicates that the Trust Profile verification of the N+1th media content has failed.
[0471] It should be understood that S100219 to S100220 are optional steps, depending on whether the Trust Profile of the N+1th media content includes the N+1th media declaration and the N+1th declaration hash value.
[0472] S100221, when the N+1th predicted declaration hash value is the same as the N+1th declared hash value in the Trust Profile of the N+1th media content, determine the N+1th predicted combined hash value based on the Nth combined hash value, the N+1th predicted declaration hash value, and the N+1th predicted declaration hash value.
[0473] S100222: Determine whether the N+1th predicted combined hash value is the same as the N+1th combined hash value in the Trust Profile of the N+1th media content.
[0474] Exemplarily, when the N+1th predicted combined hash value is the same as the N+1th combined hash value in the Trust Profile of the N+1th media content, S100223 is executed. When the N+1th predicted combined hash value is different from the N+1th combined hash value in the Trust Profile of the N+1th media content, it indicates that the Trust Profile verification of the N+1th media content has failed.
[0475] S100223, when the N+1th predicted combined hash value and the N+1th combined hash value in the Trust Profile of the N+1th media content, perform the N+1th signature verification based on the N+1th public key, the N+1th predicted combined hash value and the digital signature of the N+1th combined hash value.
[0476] Exemplarily, the N+1th public key and the N+1th private key form a key pair. It should be understood that the digital signature algorithm involved in the N+1th signature verification process in S100223 is the same as the digital signature algorithm involved in the digital signature using the N+1th private key during the Trust Profile generation process.
[0477] S100224, determine whether the N+1th signature verification is successful.
[0478] For example, when the N+1th signature verification fails, it can be determined that the verification of the Trust Profile of the N+1th media content has failed. When the N+1th signature verification succeeds, it can be determined that the verification of the Trust Profile of the N+1th media content has succeeded. For example, when the Trust Profile is true, the user can further judge the authenticity of the N+1th media content, or consider the content in the N+1th media content to be true, which is not limited in this application.
[0479] It should be understood that S100221 to S100224 are optional steps, depending on whether the Trust Profile of the N+1th media content includes the N+1th combined hash value and the digital signature of the N+1th combined hash value.
[0480] In the embodiments of FIG. 10 d and FIG. 10 e , the Trust Profile of the N+1th media content in the embodiment of FIG. 6 b or FIG. 8 b is verified.
[0481] The difference between the verification method in Figures 10d and 10e and the verification method in Figures 10b and 10c lies in steps S10023 and S100221. The difference in step S10023 is that the k+1th predicted combined hash value is determined based on the kth combined hash value, the digital signature of the kth combined hash value, the k+1th media hash value and the k+1th group declaration hash value, where the initial value of k is 1 and k is an integer less than N; the difference in step S100221 is that the N+1th predicted combined hash value is determined based on the Nth combined hash value, the digital signature of the Nth combined hash value, the N+1th predicted declaration hash value and the N+1th predicted declaration hash value.
[0482] Figure 11 is a schematic diagram of an exemplary metadata generation device. The metadata generation device can be used to execute the method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0483] 11 , illustratively, the metadata generation device may include:
[0484] A first data acquisition module 1101 is configured to acquire first media content;
[0485] The first information generation module 1102 is used to generate metadata for the first media content. The metadata for the first media content includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is a hash value of the combination of the initial information and the first media hash value.
[0486] Exemplarily, the metadata generating device may further include:
[0487] The first hash calculation module is configured to perform a hash calculation on the first media content to obtain a first media hash value.
[0488] Exemplarily, the first hash calculation module is further configured to perform hash calculation based on a combination of the initial information and the first media hash value to obtain a first combined hash value.
[0489] Exemplarily, the metadata generating device may further include:
[0490] The first encapsulation module is configured to obtain a trust statement based on initial information of the first media content, the first media hash value, the first combined hash value, and the digital signature of the first combined hash value.
[0491] Figure 12 is a schematic diagram of an exemplary metadata generation device. The metadata generation device can be used to execute the method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0492] 12 , illustratively, the metadata generation device may include:
[0493] The second data acquisition module 1201 acquires the N+1th media content, where the N+1th media content is obtained based on the Nth media content;
[0494] The second information generation module 1202 is used to generate metadata for the N+1th media content. The metadata for the N+1th media content includes the initial information of the first media content, the first combined hash value, and the digital signature of the first combined hash value. The first combined hash value is a hash value of the combination of the initial information and the first media hash value. The metadata for the N+1 media content also includes N+1 media hash values, where the N+1th media hash value is the hash value of the N+1th media content, and the first media hash value is the hash value of the first media content. N is a positive integer.
[0495] Exemplarily, the metadata generating device may further include:
[0496] The second hash calculation module is used to perform hash calculation on the Nth combined hash value, one or more N+1th declaration hash values, and one or more hash values of the N+1th media hash value, to obtain an intermediate hash value; wherein the intermediate hash value is used to determine the N+1th combined hash value.
[0497] Exemplarily, the second hash calculation module is further used to connect the Nth combined hash value, the digital signature of the Nth combined hash value, one or more N+1th declaration hash values and one or more hash values of the N+1th media hash value, and then perform hash calculation to obtain an intermediate hash value.
[0498] Exemplarily, the second hash calculation module is further configured to determine an N+1th combined hash value based on the intermediate hash value.
[0499] Exemplarily, the second hash calculation module is further configured to perform hash calculation on the (N+1)th media content to obtain the (N+1)th media hash value.
[0500] Exemplarily, the metadata generating device may further include:
[0501] The second encapsulation module is used to obtain a trust statement according to the initial information, the first media hash value, the first combined hash value and the digital signature of the first combined hash value.
[0502] Exemplarily, the second encapsulation module is further configured to obtain a trust record based on the N+1th media hash value, the N+1th combined hash value, and the digital signature of the N+1th combined hash value.
[0503] Exemplarily, the second encapsulation module is further configured to obtain a trust profile of the (N+1)th media content according to the trust declaration and the trust record.
[0504] It should be noted that, when the metadata generation device in the embodiment of Figure 11 and the metadata generation device in the embodiment of Figure 12 belong to the same electronic device, the metadata generation device in the embodiment of Figure 11 and the metadata generation device in the embodiment of Figure 12 are the same device; at this time, the first data acquisition module 1101 and the second data acquisition module 1201 are the same module, the first information generation module 1102 and the second information generation module 1202 are the same module, the first hash calculation module and the second hash calculation module are the same module, and the first encapsulation module and the second encapsulation module are the same module.
[0505] When the metadata generation device in the embodiment of Figure 11 and the metadata generation device in the embodiment of Figure 12 belong to different electronic devices, the metadata generation device in the embodiment of Figure 11 and the metadata generation device in the embodiment of Figure 12 are two different devices; at this time, the first data acquisition module 1101 and the second data acquisition module 1201 are two different modules, the first information generation module 1102 and the second information generation module 1202 are two different modules, the first hash calculation module and the second hash calculation module are two different modules, and the first encapsulation module and the second encapsulation module are two different modules.
[0506] Figure 13 is a schematic diagram of an exemplary verification device. The verification device can be used to execute the method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0507] 13 , illustratively, the verification device may include:
[0508] A first information acquisition module 1301 is configured to acquire metadata of first media content; wherein the metadata includes: initial information of the first media content, a first media hash value, a first combined hash value, and a digital signature of the first combined hash value; the first media hash value is a hash value of the first media content, and the first combined hash value is a hash value of the combination of the initial information and the first media hash value;
[0509] The first verification module 1302 is configured to verify metadata of the first media content.
[0510] Figure 14 is a schematic diagram of an exemplary verification device. The verification device can be used to execute the method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0511] 14 , illustratively, the verification device may include:
[0512] The second information acquisition module 1401 is configured to acquire metadata of the N+1th media content; wherein the N+1th media content is obtained based on the Nth media content, and the metadata of the N+1th media content includes initial information of the first media content, a first combined hash value, and a digital signature of the first combined hash value, where the first combined hash value is a hash value of the initial information and the first media hash value; the metadata of the N+1th media content also includes N+1 media hash values, wherein the N+1th media hash value is a hash value of the N+1th media content, and the first media hash value is a hash value of the first media content; and N is a positive integer.
[0513] The second verification module 1402 is configured to verify metadata of the (N+1)th media content.
[0514] It should be noted that when the verification device in the embodiment of Figure 13 and the verification device in the embodiment of Figure 14 belong to the same electronic device, the verification device in the embodiment of Figure 13 and the verification device in the embodiment of Figure 14 are the same device; at this time, the first information acquisition module 1301 and the second information acquisition module 1401 are the same module, and the first verification module 1302 and the second verification module 1402 are the same module.
[0515] When the verification device in the embodiment of Figure 13 and the verification device in the embodiment of Figure 14 belong to two different electronic devices, the verification device in the embodiment of Figure 13 and the verification device in the embodiment of Figure 14 are two different devices; at this time, the first information acquisition module 1301 and the second information acquisition module 1401 are two different modules, and the first verification module 1302 and the second verification module 1402 are two different modules.
[0516] In an example, FIG15 shows a schematic block diagram of a device 1500 according to an embodiment of the present application. The device 1500 may include: a processor 1501 and a transceiver / transceiver pin 1502 , and optionally, a memory 1503 .
[0517] The various components of the device 1500 are coupled together via a bus 1504, wherein the bus 1504 includes not only a data bus but also a power bus, a control bus, and a status signal bus. However, for the sake of clarity, all buses are referred to as bus 1504 in the figure.
[0518] Optionally, the memory 1503 may be used to store instructions in the aforementioned method embodiment. The processor 1501 may be used to execute the instructions in the memory 1503 and control the receiving pin to receive a signal and control the transmitting pin to send a signal.
[0519] The apparatus 1500 may be the electronic device or a chip of the electronic device in the above method embodiment.
[0520] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0521] The present application also provides a chip comprising one or more interface circuits and one or more processors. The one or more processors receive or send data via the one or more interface circuits. When the one or more processors execute computer instructions, the electronic device implements the aforementioned method steps in the aforementioned embodiment. The interface circuit is transceiver / transceiver pin 1502.
[0522] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0523] This embodiment further provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer executes the above-mentioned related steps to implement the method in the above-mentioned embodiment.
[0524] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the methods in the above-mentioned method embodiments.
[0525] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0526] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0527] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0528] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0529] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0530] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.
[0531] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0532] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0533] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0534] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0535] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for generating metadata, characterized in that: The method comprises: Obtaining first media content; Generate metadata for the first media content, the metadata for the first media content including: 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 at least based on the initial information and the first media hash value.
2. The method according to claim 1, characterized in that The first data is data obtained by combining at least the first media hash value and 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.
3. The method according to claim 1, characterized in that The first data is a hash value determined at least according to the initial information and the first media hash value.
4. The method according to claim 3, characterized in that The first data is a hash value determined by at least a hash value of the first media hash value and a hash value of 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.
5. The method according to any one of claims 1 to 4, characterized in that: The metadata of the first media content also includes the first data.
6. The method according to claim 1, characterized in that The metadata of the first media content also includes a hash value of the first media hash value and a hash value of initial information of the first media content.
7. The method according to claim 6, characterized in that The metadata of the first media content further includes: a first uniform resource locator (URL), wherein the first URL indicates the initial information of the first media content or the location of the first media hash value in the metadata of the first media content.
8. The method according to claim 6, characterized in that The first data is a hash value of data obtained by combining at least a hash value of the first media hash value, a hash value of initial information of the first media content, and the uniform resource locator.
9. The method according to any one of claims 6 to 8, characterized in that: Generating metadata of the first media content includes: Obtaining initial information of the first media content and the first media hash value; Encapsulate at least the initial information of the first media content and the first media hash value to obtain first encapsulation data (Trust Indicators); Performing a hash calculation on the first media hash value to obtain a hash value of the first media hash value; performing a hash calculation on the initial information of the first media content to obtain a hash value of the initial information of the first media content; encapsulate 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 encapsulation data (Declaration Hash); Digitally signing the first data, where the first data is data determined by at least a hash value of the first media hash value and a hash value of initial information of the first media content, to obtain the first digital signature; encapsulate at least the first encapsulated data, the second encapsulated data and the first digital signature to obtain a trust statement; The metadata of the first media content is obtained based at least on the trust statement.
10. The method according to claim 1, characterized in that Generating metadata of the first media content includes: Obtaining initial information of the first media content and the first media hash value; Encapsulate at least the initial information of the first media content and the first media hash value to obtain first encapsulation data (Trust Indicators); Digitally sign the first data to obtain the first digital signature, wherein the first data is at least the first media hash value. and data determined by initial information of said first media content; encapsulate at least the trust indicator and the digital signature of the first combined hash value to obtain a trust statement; The metadata of the first media content is obtained based at least on the trust statement.
11. The method according to any one of claims 1 to 10, characterized in that: The initial information of the first media content includes at least one of the following: generation time of the first media content, name of the author of the first media content, digital content identifier of the first media content, generation location of the first media content, information of a device for generating the first media content, resolution of the first media content, size of the first media content, media type of the first media content, copyright information of the first media content, or generation method of the first media content.
12. A method for generating metadata, characterized in that: The method comprises: Acquire an N+1th media content, where the N+1th media content is obtained based on the Nth media content; Generate metadata for the N+1th media content, wherein the metadata for the N+1th media content includes initial information of the first media content and a digital signature of the first data; the metadata for the N+1th media content also includes N media hash values, wherein the first media hash value is a hash value of the first media content, the N+1th media hash value is a hash value of the N+1th media content, and the first data is data determined at least based on the initial information and the first media hash value; and N is a positive integer.
13. The method according to claim 12, characterized in that The first data is a hash value determined at least according to the initial information and the first media hash value.
14. The method according to claim 13, characterized in that The first data is a hash value determined by at least a hash value of the first media hash value and a hash value of 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.
15. The method according to any one of claims 12 to 14, characterized in that The metadata of the first media content also includes the first data.
16. The method according to claim 12, characterized in that The metadata of the first media content also includes a hash value of the first media hash value and a hash value of initial information of the first media content.
17. The method according to claim 16, characterized in that The metadata of the first media content further includes: a first uniform resource locator (URL), wherein the first URL indicates the initial information of the first media content or the location of the first media hash value in the metadata of the first media content.
18. The method according to claim 17, characterized in that The first data is a hash value of data obtained by combining at least a hash value of the first media hash value, a hash value of initial information of the first media content, and the uniform resource locator.
19. The method according to claim 12, characterized in that The metadata of the N+1th media content also includes an N+1th declaration.
20. The method according to claim 19, characterized in that The metadata of the N+1th media content also includes a hash value of the N+1th media hash value and a hash value of the N+1th declaration.
21. The method according to claim 19, characterized in that The metadata of the N+1th media content also includes N digital signatures, and the N+1th digital signature is a digital signature of the N+1th data, and the N+1th data is based on data determined at least according to the N+1 declaration and the N+1th media hash value.
22. The method according to claim 21, characterized in that The N+1th data is a hash value determined based on at least the N+1th declaration and the N+1th media hash value.
23. The method according to claim 22, characterized in that The N+1th data is a hash value determined by at least the hash value of the N+1th declaration and the hash value of the N+1th media hash value, or the N+1th data is a hash value of data combined by at least the N+1th declaration and the N+1th media hash value.
24. The method according to claim 12, characterized in that The metadata of the N+1th media content also includes an N+1th uniform resource locator (URL), and the N+1th URL indicates the location of the N+1th declaration and the N+1th media hash value in the metadata of the N+1th media content.
25. The method according to claim 24, characterized in that The N+1th data is a hash value of data obtained by combining at least the hash value of the N+1th declaration, the hash value of the N+1th media hash value, and the N+1th URL.
26. The method according to claim 21, characterized in that The metadata of the N+1th media content also includes N+1th data, and the N+1th data is based on data determined at least according to the N+1th declaration and the N+1th media hash value.
27. A verification method, characterized in that: The method comprises: Obtain metadata of first media content; wherein the metadata includes: 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 at least based on the initial information and the first media hash value; The metadata of the first media content is verified.
28. A verification method, characterized in that: The method comprises: Obtain metadata of the N+1th media content; wherein the metadata of the N+1th media content includes initial information of the first media content and a digital signature of the first data; the metadata of the N+1th media content also includes N media hash values, wherein the N+1th media hash value is a hash value of the N+1th media content, and the first data is data determined at least based on the initial information and the first media hash value; N is a positive integer; The metadata of the N+1th media content is verified.
29. A metadata generation device, characterized in that: The device comprises: A first data acquisition module, used to acquire first media content; A first information generation module is used to generate metadata of the first media content, and 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 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 at least based on the initial information and the first media hash value.
30. A metadata generation device, characterized in that: The device comprises: A second data acquisition module acquires an N+1th media content, where the N+1th media content is obtained based on the Nth media content; The second information generation module is used to generate metadata of the N+1th media content, wherein the metadata of the N+1th media content includes initial information of the first media content and a digital signature of the first data; the metadata of the N+1th media content also includes N media hash values, wherein the N+1th media hash value is a hash value of the N+1th media content, and the first data is data determined at least based on the initial information and the first media hash value; and N is a positive integer.
31. A verification device, characterized in that: The device comprises: A first information acquisition module, configured to acquire metadata of first media content; wherein the metadata includes: 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 at least based on the initial information and the first media hash value; The first verification module is used to verify the metadata of the first media content.
32. A verification device, characterized in that: The device comprises: A second information acquisition module is used to acquire metadata of the N+1th media content; wherein the metadata of the N+1th media content includes initial information of the first media content and a digital signature of the first data; the metadata of the N+1th media content also includes N media hash values, wherein the N+1th media hash value is a hash value of the N+1th media content, and the first data is data determined at least based on the initial information and the first media hash value; N is a positive integer; The second verification module is used to verify the metadata of the N+1th media content.
33. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 11.
34. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method according to any one of claims 12 to 26.
35. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method according to claim 27 or claim 28.
36. A chip, characterized in that: It includes one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the method as described in any one of claims 1 to claim 26.
37. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the method according to any one of claims 1 to 26.
38. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed by a computer or a processor, the steps of the method according to any one of claims 1 to 26 are performed.
Citation Information
Patent Citations
Verification method, system and device for validity of multimedia contents
CN101296148A
Multimedia data tampering detection method
CN113536956A
Media file processing method, device, storage medium and program product
CN113901243A
Multimedia file digital signature and verification method, equipment and storage medium
CN115934648A
Method and apparatus for preventing forgery of multimedia data using timestamp
KR1020130126815A
