Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a media information processing method of a blockchain according to an embodiment of the present invention, where the embodiment is applicable to a case of processing media information, for example, a case of processing a target media information generation record, or a case of processing a media content acquisition request of a receiver. The method can be executed by a media information processing device or equipment of a blockchain arranged in a business application service node, the device can be realized in a hardware and/or software mode and can be integrated in an electronic equipment bearing the blockchain node, and the business application service node can be a server node with a function of processing media information. The service application service node may or may not be a blockchain node, but may interact with the blockchain node through an interface provided by the blockchain link node to participate in the blockchain network.
Specifically, as shown in fig. 1, the method specifically includes the following steps:
s101, medium information is acquired.
The medium may be a tool for storing and transmitting information by using a medium, for example, may be physical media such as books, photos, optical discs, and virtual media such as advertisements, news, and electronic books. The media information may refer to data required when the media propagates the information. May include a producer provided target media information generation record, or a recipient's media content acquisition request; wherein the target medium information generation record may be information recording the entire process of generating the target medium by the producer, which may include at least one of creator information, creation time, and category label of the target medium, and the target medium content; for example, the target media information may generate a record of target media information provided by a producer, and the target media information generating record may include: at least one of the creator information of the media information (e.g., company name of the media information, name of staff member who proposed the creative of the media information, etc.), time of completion of creation of the media information, and type of media information (e.g., life class, clothing class, or electronic product class, etc.), and specific text, picture, and video content of the media information. The media content acquisition request may be a request initiated to the service application server when the recipient side wants to acquire target media information from the pusher side, and may include target media digest information to be received, recipient information, and pusher information. Alternatively, the recipient may refer to the party receiving the target media content and the presenter may refer to the party presenting the target media content to the recipient. For example, if the target media information is a media information acquisition request, the media information acquisition request may include: the media information may include, for example, recipient information (e.g., user identification of a user who received the media information) intended to obtain the media information content, summary information of the media information (e.g., a profile, keywords, etc., which may include the media information), and information of a pusher (e.g., a microblog, a web page, a letter, etc.) pushing the media information to the recipient.
Alternatively, in the embodiment of the present invention, there are many ways to obtain the media information, which may be obtained through the internet or a database, for example, the media information generating record may be obtained from a website of the media information producer; or from a media website or media information database. The media information acquisition may also be that the service application service node acquires media information submitted by a user through the service application service client, for example, a media information producer actively submits the generated record information of the media information through the service application service client; or when the user wants to know a certain medium information, the service client actively sends a target medium acquisition request containing the medium changing abstract information, the micro signal of the receiver and the micro signal of the pusher through the business application. Other ways of obtaining the media information may also be used, and embodiments of the present invention are not limited thereto.
Optionally, in the embodiment of the present invention, when the media information is acquired, the media information may be detected and acquired in real time; or triggering and acquiring all media information in a preset time interval every preset time interval (such as one hour); and detecting whether a receiver, a producer or a pusher which interacts with the business application service node exists, and detecting and acquiring the medium information in real time in the interaction process.
S102, processing is performed according to the media information.
Optionally, in the embodiment of the present invention, when processing the media information, the media information may be processed according to a media intelligence contract acquired from a blockchain or locally, where the media intelligence contract may be a program set for implementing a media information processing service, and an interactive interface may be provided in the media intelligence contract, so that a service application service node provides the media information, thereby executing related processing on the media information.
Alternatively, when processing is performed based on the media information, the processing operation performed by different media information is also different. Specifically, when the media information is a target media information generation record provided by a producer, the final purpose of processing the target media information generation record is mainly to ensure the uniqueness and security of the target media information generation record stored in the blockchain. The processing operation for the target medium information at this time may be: generating a ul storage request including the target media content; sending the uplink storage request to a blockchain network, and detecting whether the target media content is included in the historical media content stored in the blockchain by a node in the blockchain network; and if the target media content is not included in the history media content, carrying out digital signature on the target media content to generate target media abstract information.
When the media information is a media content acquisition request of a receiver, the final purpose of processing the target media content acquisition request is to accurately find the target media content corresponding to the target media content acquisition request and send the target media content to the receiver. The processing operation for the target media content acquisition request at this time may be: determining a propagation protocol of a receiver according to the receiver information; matching the target media summary information and/or pusher information with the propagation protocol; if the matching is successful, inquiring target media content from a blockchain according to the target media abstract information; and sending the inquired target media content to a receiver. In order to ensure the traceability of the searching process, the processing process may further include obtaining the record information corresponding to the searching process, or may further include obtaining the operation information of the receiver after receiving the target media content.
The specific processing procedure for generating the recording and media content acquisition request for the target media information will be described in detail in the following embodiments.
S103, generating an on-chain transaction request according to the medium information and/or the processing result, and sending the on-chain transaction request to the blockchain network.
Optionally, after the medium information is processed according to the intelligent contract, in order to ensure transparency, fairness and traceability of the medium information processing, an on-chain transaction processing request containing the medium information and/or the processing result can be generated according to the medium information and/or the processing result and sent to the blockchain network, so that a node in the blockchain network receives and responds to the on-chain transaction processing request, and the medium information and/or the processing result contained in the on-chain transaction processing request is obtained and written into the blockchain as transaction data. Optionally, after receiving the transaction request on the chain, the blockchain node may also execute other processing operations (such as verification, query, modification, deletion, etc. of the media information) according to the media information and/or the processing result, and write the processing result into the blockchain, which is not limited in the embodiment of the present invention. Optionally, after the service application service node generates the on-chain transaction data processing request and sends the on-chain transaction data processing request to the blockchain network, in order to facilitate the inquiry and management of the media information, after receiving and processing the on-chain transaction data request, the blockchain node may construct a blockchain dedicated to each target media, where the blockchain only stores the data associated with the target media information.
Specifically, in the embodiment of the present invention, when the on-link transaction request is generated according to the media information and/or the processing result, the on-link transaction request may be generated by providing the media information and/or the processing result in the interactive interface provided by the media intelligent contract, where the media intelligent contract is acquired from the blockchain or locally by the service application service node, and then the on-link transaction request is generated by operating the media intelligent contract.
Alternatively, in the embodiment of the present invention, when the on-chain transaction request is generated, the on-chain transaction request may be generated according to the media information, for example, the on-chain transaction request may be generated according to the target media information generation record, and sent to the blockchain, and the on-chain transaction request is received and processed by the blockchain link point (for example, whether the target media information generation record has been recorded, the target media summary information is generated, etc.), and the processing result is stored in the blockchain as the transaction data; the on-chain transaction request for the current media transmission record can also be generated according to the processing result, for example, the processing result of the media content acquisition request can be generated; or may be generated based on the media information and the processing result, for example, generating the on-chain transaction request based on the target media content and the target media digest information in the target media information generation record. The embodiment of the present invention is not limited thereto.
According to the medium information processing method of the blockchain, provided by the embodiment, the medium information is acquired and processed, and the on-chain transaction processing request is generated according to the medium information and/or the processing result and is sent to the blockchain network, so that nodes in the blockchain network execute the on-chain transaction request. By utilizing the characteristic of strong public trust of the blockchain, the blockchain technology is applied to the media information pushing process, the problem that various unsafe conditions exist in the media information processing process of the centralized server is solved, and the safety and accuracy of the media information are improved.
Example two
Fig. 2 is a flowchart of a media information processing method based on a blockchain according to a second embodiment of the present invention, which is based on the foregoing embodiment, specifically describing a specific case of processing a target media information generation record provided by a producer when the target media information generation record is processed by the media information. As shown in fig. 2, the method includes:
s201, acquiring target medium information generation records.
Optionally, the target media information generation record may be obtained by accessing a website or a link associated with the media information in the internet, or may be obtained by accessing a media database, or may be obtained by obtaining media information actively submitted by a user through a service application service client. Wherein the target medium information generation record includes at least one of creator information, creation time, and category label of the target medium, and target medium content.
For example, when a new piece of media information is created by a media information producer, recording a generation record of the media information (including at least one of creator information of the media information, time of completing creation, category label of the media information, and specific content of the media information) on a website of the media information producer, so that a service application service node obtains the generation record of the media information as a generation record of target media information through the website of the producer; the producer can also directly provide the record of the medium information to the business application service node through the client of the business application service, so that the business application service node obtains the record of the medium information as the record of the target medium information.
S202, generating a uplink storage request comprising target media content.
Optionally, the service application service node obtains specific media content of the target media information from the obtained target media information generation record, and then generates the uplink storage request containing the target media content based on the media intelligent contract. Specifically, the service application service node obtains the media intelligent contract from the blockchain or locally, then provides the obtained target media content in the interactive interface provided by the media intelligent contract, and runs the media intelligent contract, so as to generate the on-chain storage request containing the target media content.
It should be noted that, the function of the uplink storage request generated in S202 does not instruct the blockchain link point to directly store the target media content included in the uplink storage request in the blockchain, but instructs the blockchain node to determine whether the target media content is already stored in the blockchain, so as to ensure the uniqueness and accuracy of the target media content stored in the blockchain.
S203, a uplink storage request is sent to the blockchain network, and nodes in the blockchain network detect whether the historical media content stored in the blockchain contains target media content or not.
The historical media content can be media content stored in a blockchain, wherein each historical media content is unique and no duplicate media content exists.
Optionally, after the service application service node generates the uplink storage request, the generated uplink storage request is sent to the blockchain network, and because the uplink storage request is a request of the blockchain node to determine whether the target media content is already stored in the blockchain, at this time, after receiving the uplink storage request sent by the service application service node, the blockchain node will acquire the target media content from the uplink storage request, and then traverse the historical media content stored in each block in the blockchain to detect whether the historical media content which is the same as the target media content exists in the stored historical media content, and feed back the detection result to the service application service node.
Optionally, if the historical media content is stored in a media information blockchain, traversing each block of the media blockchain, and detecting whether the stored historical media content in the media blockchain includes the target media content; if each media has a specific blockchain, and the first block of each blockchain records the media content of the media, the first block of each blockchain can be traversed to detect whether the stored media content is the target media content. After the blockchain node completes the detection of whether the historical media content stored in the blockchain includes the target media content, the detection result is fed back to the business application service node.
Optionally, if the service application service node receives the feedback of the blockchain node and the historical media content stored in the blockchain does not include the target media content, it indicates that the target media content is not stored in the blockchain for the first time, so that the target media content can be continuously processed and stored in the blockchain; if the result of the feedback of the blockchain node is that the historical media content stored in the blockchain includes the target media content, the target media content is indicated to be stored in the blockchain before, that is, the target media information generation record to which the target media content belongs is processed before, so that the acquired target media information generation record is ignored, and the target media content is not processed later.
S204, if the history media content does not comprise the target media content, the target media content is digitally signed, and target media abstract information is generated.
Optionally, the service application service node analyzes the feedback result of the received blockchain, if the detection result is that the historical media content does not include the target media content, the target media content needs to be stored in the blockchain, but in order to ensure the security of the target media content stored in the blockchain, the service application service node may digitally sign the target media content to generate the unique target media summary information of the target media content. The target media abstract information can prevent the target media content from being tampered, and ensures the safety of the target media content. Alternatively, there are many ways to digitally sign the target media content, and embodiments of the present invention are not limited thereto. For example, the target media content may be uniquely signed by using an algorithm such as SHA256 (Secure Hash Algorithm ), md5sum, a random number, a public key or a private key of a creator, and the encrypted result after the signature is used as target media digest information corresponding to the target media content.
S205, generating a uplink storage request comprising target media content and target media summary information, sending the uplink storage request to the blockchain network, processing the on-chain storage request by a node in the blockchain network, and writing the target media content and the target media summary information into the blockchain as transaction data.
Optionally, the service application service node generates a uplink storage request including the target media content and the target media abstract information according to the media intelligent contract at this time, and sends the uplink storage request to the blockchain network, and after receiving the uplink storage request, the blockchain network node processes the uplink storage request to acquire the target media content and the target media abstract information as transaction data, and writes the transaction data into the blockchain. Alternatively, the blockchain node may write the target media content and the target media digest information into the blockchain in the block of the target media content writing area, write the target media digest information into the block header of the block, and then link the block into the blockchain. It should be noted that, the uplink storage request generated by the service application service node in S205 is different from the uplink storage request generated in S202, and the uplink storage request in S205 is used to instruct the blockchain link to write the target media content and the target media summary information contained therein as transaction data into the blockchain.
Alternatively, the service application service node may generate the on-link storage request including at least one of the creator information, the creation time, and the category label of the target medium, and the target medium content and the target medium summary information according to at least one of the creator information, the creation time, and the category label of the target medium when generating the uplink storage request.
Optionally, in order to prevent some nodes from impersonating the service application service node to upload false target media content and target media summary information to the blockchain network, after receiving the uplink storage request including the target media content and the target media summary information, the blockchain node may verify the authority of the service application service node that sends the uplink storage request first, and if it is verified that the service application service node that sends the uplink storage request is an authorized node of the blockchain network, then process the uplink storage request, and acquire the target media content and the target media summary information as transaction data to write into the blockchain.
Optionally, when the blockchain link writes the target media content and the target media summary information as transaction data into the blockchain, the target media content and the target media summary information may be written into the total media blockchain as transaction data; or a new blockchain is specially constructed for the target medium, the content of the target medium and the summary information of the target medium are used as transaction data to be written into the newly constructed blockchain, the blockchain is used as a exclusive blockchain of the target medium, and only the data related to the target medium are stored later.
In the embodiment of the present invention, S204 to S205 may be executed by the blockchain link point, and specifically, the service application service node may send an uplink storage request to the blockchain network, where a node in the blockchain network detects whether the historical media content stored in the blockchain includes the target media content, if the detection result is that the historical media content does not include the target media content, the blockchain node continues to execute digital signature on the target media content to generate target media summary information, and then the blockchain node regenerates an uplink storage request including the target media content and the target media summary information, sends the uplink storage request to the blockchain network, processes the on-chain storage request by a blockchain generation node in the blockchain network, and writes the target media content and the target media summary information into the blockchain as transaction data.
Optionally, after the blockchain link writes the target media content and the target media summary information into the blockchain as transaction data, the blockchain node immediately initiates the whole network broadcasting, broadcasts the blockchain with the target media content and the target media summary information into the blockchain network, and after other nodes of the blockchain network receive the block, the target media content and the target media summary information in the block need to be verified, if yes, whether the historical media content stored in the local blockchain includes the target media content is firstly judged, if not, the target media summary information is recalculated according to the same preset algorithm according to the target media content, and compared with the received target media summary information, if yes, the verification is successful, otherwise, the verification is unsuccessful. After the other nodes verify the target media content and the target media summary information in the received block, the other nodes can receive the data in the block and link the block in the local block chain. Thereby guaranteeing the uniqueness and security of the target media content stored in the blockchain.
According to the media information processing method based on the blockchain, after the business application service node obtains the target media information generation record, a uplink storage request is generated and sent to the blockchain network to indicate the blockchain link point to detect whether the target media content exists in the blockchain, if not, target media abstract information is generated in a mode of signing the target media content, and the uplink storage request comprising the target media content and the target media abstract information is generated to indicate the blockchain link point to write the target media content and the target media abstract information into the blockchain. According to the scheme, the target medium information generation record is stored through the blockchain, so that the safety of the target medium information generation record is guaranteed, when the target medium information generation record is stored, the target medium information generation record is required to be guaranteed to be not stored in the blockchain, the uniqueness of the target medium information generation record in the blockchain is guaranteed, the target medium abstract information of the target medium content is generated, the target medium abstract information is stored together with the target medium information generation record, the target medium information generation record is further prevented from being tampered through the target medium abstract information, and the safety and the reliability of the target medium information generation record are further guaranteed.
Example III
Fig. 3 is a flowchart of a media information processing method based on a blockchain according to a third embodiment of the present invention, which is based on the foregoing embodiment, specifically describing a specific case of processing a media content acquisition request when media information is a media content acquisition request of a receiver. As shown in fig. 3, the method includes:
s301, acquiring a media content acquisition request of a receiver.
Optionally, the media content obtaining request of the receiver may be an obtaining request sent to the service application service node by the service application service client when the receiver wants to obtain a certain media content, where the service application service node may pass through the server and each client, so as to obtain the media content obtaining request of the receiver, where the media content obtaining request includes target media summary information to be received, receiver information and pusher information.
For example, if the user a wants to obtain certain media information as the receiver, the service client may input the target media summary information to be obtained (such as the profile of the required target media, the keyword, etc.), the micro signal XX of the user a, push Fang Shiwei information, and the client may generate a media content obtaining request according to the input of the user a and send the media content obtaining request to the service node, where the service application service node may obtain the media content obtaining request of the user a.
S302, determining a propagation protocol of the receiver according to the receiver information.
The propagation protocol may be a rule related to propagation of the media information, which is signed in advance between the receiver and the presenter, for example, the propagation protocol may specify receiver information of the media information, presenter information, candidate media summary information, a type of the propagated media, and an incentive rule of the propagated media information. The propagation protocol may be stored locally at the service application service node or in a blockchain.
Optionally, after receiving the media content obtaining request, the service application service node does not directly search for the target media content corresponding to the media content obtaining request, but first verifies the validity of the media content obtaining request, specifically, may extract the receiver information (such as the account number, name, contact way, etc. of the receiver) from the media content obtaining request, search for the propagation protocol corresponding to the receiver information from all the propagation protocols stored in the local or blockchain, and determine whether to further search for the target media content corresponding to the media content obtaining request based on the determined propagation protocol. Alternatively, the determined propagation protocol of the receiver may be one or more.
For example, after receiving the media content acquisition request, the service application service node extracts the micro signal XX of the user a from the media content acquisition request as the receiver information, and then searches the propagation protocol of which the receiver information is the micro signal XX of the user a from the propagation protocols stored in the local or blockchain, as the determined propagation protocol of the receiver.
S303, matching the target media abstract information and/or the pusher information with the propagation protocol.
Optionally, the receiver information, the pusher information and the candidate media abstract information are recorded in the propagation protocol. The media content obtaining request of the receiver also comprises target media abstract information to be received, receiver information and pusher information, and the determined propagation protocol in S302 is determined by the receiver information, so that the target media content can be queried from the blockchain according to the target media abstract information if the matching is successful by matching the target media abstract information and/or the pusher information in the media content obtaining request with the candidate media abstract information and/or the pusher information in the determined propagation protocol in S302; if the matching fails, the media content acquisition request of the receiver is invalid, and the inquiry of the target media content is not carried out.
Optionally, in the embodiment of the present invention, the specific process of matching the target media summary information and/or the pusher information with the propagation protocol may include the following:
A. and determining the target medium category according to the target medium abstract information.
The media category may be a category included in a preset target media, and different media categories may be set for different media, for example, if the media is media information, the media information category may be preset to include clothing, food, electronic product, etc.; if the medium is a book or the like. The target media category may be a category of the target media corresponding to the target media summary information.
The method includes the steps that firstly, a target medium category is determined according to target medium abstract information contained in a medium content acquisition request, specifically, the target medium abstract information contains a medium category, and the target medium category can be extracted and determined as the target medium category only by analyzing the target medium abstract information; the method can also be that keywords corresponding to each media category are preset, keywords of the target media abstract information are extracted, the keywords are compared with the keywords corresponding to each media category, and the media category with the largest matching number of the keywords is used as the target media category.
B. Matching the target media category and/or the pusher information with candidate media categories and/or candidate pusher information in the propagation protocol.
The candidate medium categories may be medium categories permitted by the protocol recorded in the propagation protocol, and the number of the candidate medium categories is at least one. The candidate pusher information may be each pusher information permitted by the protocol recorded in the propagation protocol, and the number of the candidate pusher information is at least one.
Specifically, the pusher information included in the target media category and/or media content acquisition request determined in a above is matched with each candidate media category and/or candidate pusher information recorded in the propagation protocol determined in S302. Optionally, in the matching process, at least one of the target media summary information (or the target media category of the target media summary information) or the pusher information is successfully matched, which indicates that the matching with the propagation protocol is successful; or the matching of the target media digest information (or the target media category of the target media digest information) and the pusher information is successful, and the successful matching with the propagation protocol is indicated.
For example, assuming that the target media summary information is a brief introduction of a certain media, the pusher information is WeChat, and the candidate media categories in the propagation protocol are clothing, food and mobile phone; candidate pusher information is WeChat and microblog. After analyzing the target medium abstract information, the service application node determines that the target medium class is a mobile phone class; and then matching the target media category (i.e. mobile phone class) and/or the pusher information (i.e. WeChat) corresponding to the media content acquisition request with each candidate media category (i.e. clothing class, food class and mobile phone class) and/or each candidate pusher information (i.e. WeChat and microblog) in the propagation protocol, wherein the candidate media category comprises the target media category, and the candidate pusher information comprises the pusher information in the media content acquisition request, so that the matching result of the candidate media category and the propagation protocol is successful.
S304, if the matching is successful, inquiring target media content from the blockchain according to target media abstract information;
alternatively, if the matching of S303 with the propagation protocol is successful, indicating that the media content acquisition request of the receiver is valid, the target media content acquisition request may be executed to find the target media content from the blockchain. Specifically, when the service application service node queries the target media content from the blockchain, the service application service node may generate an on-chain data query request containing the target media summary information based on the media intelligent contract according to the target media summary information, send the on-chain data query request to the blockchain network, and after receiving the on-chain data query request, the blockchain link point searches and acquires the target media content corresponding to the target media summary information from the blockchain, and feeds back the target media content to the service application service node. Wherein the target media content is at least one.
And S305, sending the inquired target media content to the receiver.
Optionally, after receiving the target media content fed back by the block link point, the service application service node sends the target media content to a receiver in the media content acquisition request through a pushing party in the media content acquisition request. For example, after receiving the target media content 1 fed back by the block link point, the service application service node sends the target media content 1 to the micro signal XX of the user a through the pusher WeChat.
S306, generating a target medium propagation record according to the receiver information, the pusher information and the target medium content sent to the receiver.
Alternatively, the business application service node may be a media smart contract obtained from a blockchain or locally, and then provide the recipient information, the pusher information, and the target media content sent to the recipient in an interactive interface provided by the media smart contract, and run the media smart contract, thereby generating the target media propagation record. The target media travel record has recorded therein the entire process from receiving the media content acquisition request to transmitting the target media content, which may include recipient information, pusher information, target media content. Optionally, the identification of the business application service node, the identification of the blockchain node querying the target media content, and the like can also be included.
Illustratively, the business application service node is configured to: micro signal XX of user a, pusher information: weChat, target media content 1 sent to recipient, based on the media smart contract, the target media propagation record generated may be: the media content acquisition request initiated by the micro signal XX of the user A inquires the target media content 1 and sends the micro signal XX of the user A through micro communication.
Optionally, if the propagation protocol further specifies an incentive rule, after the query and the sending of the target media content are performed, a certain incentive element may be deducted from the recipient account to at least one of the producer account, the pusher account, and the business application service node account of the target media content based on the incentive rule. And generating a target media-motivational element change record.
S307, generating a uplink transaction request comprising the target medium propagation record.
Optionally, the service application service node generates a uplink transaction request including the target medium propagation record according to the generated target medium propagation record based on the medium intelligent contract, and sends the uplink transaction request to the blockchain network to instruct the blockchain link point to receive and process the uplink transaction request, and acquire the target medium propagation record and store the target medium propagation record in the blockchain. If the target media-excited element change record is also generated in S306, S307 may further include generating a uplink transaction request including the target media-excited change record, and the specific generating method is similar to the method for generating the uplink transaction request including the target media-propagated record, which will not be described in detail.
Alternatively, if there is a blockchain dedicated to each media information and the blockchain stores only the data associated with the media information, then the blockchain link point may first query the blockchain of the target media corresponding to the target media propagation record and/or the target media excitation change record and then write the target media propagation record and/or the target media excitation change record into the blockchain of the target media when storing the target media propagation record and/or the target media excitation change record.
S308, obtaining display state information of the target medium content by the receiver.
The display status information of the target media content may refer to reading status information of the target media after the receiver receives the target media content sent by the service application service node, for example, the target media content may be read or unread; it is also possible to link the details (including text, pictures, or video, etc.) of the reading target medium by pushing text abbreviated reading target medium content only through WeChat or clicking push message.
Optionally, after the service application service node feeds back the target media content to the receiver, the service application service client of the receiver detects display status information of the receiver on the target media content, and feeds back the display status information to the service application service node. For example, after the service application service node sends the target media content 1 to the micro signal XX of the user a, the service client on the intelligent terminal of the user a accesses the micro signal program on the intelligent terminal, detects the display state information of the user a on the target media content 1, and feeds back the detected result to the service application service node.
S309, generating a uplink transaction request including the presentation state information of the target media content.
Optionally, the service application service node generates an uplink transaction request including the display status information of the target media content based on the media intelligent contract according to the acquired display status information of the target media content by the receiver, and sends the uplink transaction request to the blockchain network to instruct the blockchain link point to receive and process the uplink transaction request, so as to acquire the display status information of the target media content and store the display status information in the blockchain. Optionally, if each piece of media information has a special blockchain, and the blockchain stores only the data associated with the media information, then the blockchain link point may first query the blockchain of the target media corresponding to the display status information of the target media content when storing the display status information of the target media content, and then write the display status information of the target media content into the blockchain of the target media.
It should be noted that, in the embodiment of the present invention, S306-S307 are processes of generating a target media propagation record after sending the queried target media content to the receiver, and storing the target media propagation record in the blockchain; and S308-S309 are processes of acquiring the presentation status information of the target media content by the receiver and storing it in the blockchain after transmitting the queried target media content to the receiver. The two processes are not sequentially separated, and the steps of executing the steps of S306-S307 and then executing the steps of S308-S309, the steps of executing the steps of S308-S309 and then executing the steps of S306-S307, and the steps of executing the steps of S306-S307 and S308-S309 can be executed simultaneously. This embodiment is not limited.
According to the media information processing method based on the blockchain, provided by the embodiment of the invention, the media content acquisition request of the receiver is acquired, the propagation protocol of the receiver in the media content acquisition request is determined, if the target media abstract information and/or the pusher information are successfully matched with the propagation protocol, the target media content is searched from the blockchain and fed back to the receiver, the validity of the media content acquisition request is verified through the propagation protocol, then the query of the target media content is performed, and the leakage of the target media content caused by the malicious media content acquisition request is avoided. In addition, the embodiment also generates a target medium propagation record, acquires the display state information of the target medium content by the receiver, and stores the target medium content in the blockchain by generating an on-chain transaction request; the propagation record and the preview record have traceability, and the publicity of the propagation record and the preview record is improved.
Example IV
Fig. 4 is a block diagram of a block chain-based media information processing device according to a fourth embodiment of the present invention, where the device may be configured in a service node of a service application. The service application service node may be a server node having a function of processing the media information. The service application service node may or may not be a blockchain node, but may interact with the blockchain node through an interface provided by the blockchain link node to participate in the blockchain network. The device can execute any media information processing method based on the blockchain, and has the corresponding functional modules and beneficial effects of the execution method. As shown in fig. 4, the apparatus may include:
A media information acquisition module 401 for acquiring media information;
a media information processing module 402, configured to perform processing according to the media information;
a request generation and transmission module 403, configured to generate an on-chain transaction request according to the media information and/or the processing result, and transmit the on-chain transaction request to a blockchain network.
The medium information processing device of the blockchain provided by the embodiment processes the medium information by acquiring the medium information, generates an on-chain transaction processing request according to the medium information and/or a processing result, and sends the on-chain transaction processing request to the blockchain network so as to enable nodes in the blockchain network to execute the on-chain transaction request. By utilizing the characteristic of strong public trust of the blockchain, the blockchain technology is applied to the media information pushing process, the problem that various unsafe conditions exist in the media information processing process of the centralized server is solved, and the safety and accuracy of the media information are improved.
Further, the above-mentioned media information includes a target media information generation record provided by the producer, or a media content acquisition request of the receiver;
the target medium information generation record includes at least one of creator information, creation time, and category label of the target medium, and target medium content;
The media content acquisition request includes target media digest information to be received, receiver information, and presenter information.
Further, if the media information is a target media information generation record, the media information processing module 402 is specifically configured to:
generating a ul storage request including the target media content;
sending the uplink storage request to a blockchain network, and detecting whether the target media content is included in the historical media content stored in the blockchain by a node in the blockchain network;
and if the target media content is not included in the history media content, carrying out digital signature on the target media content to generate target media abstract information.
Further, the request generation and transmission module 403 is specifically configured to:
generating a uplink storage request comprising the target media content and the target media summary information, sending the uplink storage request to a blockchain network, processing the on-chain storage request by a node in the blockchain network, and writing the target media content and the target media summary information into the blockchain as transaction data.
Further, if the media information is a media content acquisition request, the media information processing module 402 includes:
A protocol determining unit, configured to determine a propagation protocol of a receiver according to the receiver information;
a protocol matching unit, configured to match the target media summary information and/or pusher information with the propagation protocol;
the media content inquiry unit inquires target media content from the blockchain according to the target media abstract information if matching is successful;
and the medium content transmitting unit is used for transmitting the inquired target medium content to the receiver.
Further, the protocol matching unit is specifically configured to:
determining a target medium category according to the target medium abstract information;
and matching the target medium category and/or the pusher information with the candidate medium category and/or the candidate pusher information in the propagation protocol.
Further, the request generation and transmission module 403 is specifically configured to:
generating a target media propagation record according to the receiver information, the pusher information and the target media content sent to the receiver;
a request for a uplink transaction is generated that includes the target medium propagation record.
Further, the device further comprises:
and the display information acquisition module is used for acquiring display state information of the target medium content by the receiver.
Accordingly, the request generation and transmission module 403 is further configured to generate a uplink transaction request including the presentation status information of the target media content.
Example five
Fig. 5 is a schematic structural diagram of a device according to a fifth embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary device 50 suitable for use in implementing embodiments of the present invention. The device 50 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention. As shown in fig. 5, the device 50 is in the form of a general purpose computing device. The components of the device 50 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that connects the various system components (including the system memory 502 and processing units 501).
Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 50 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 50 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 502 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 504 and/or cache memory 505. The device 50 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 503 through one or more data medium interfaces. The system memory 502 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 508 having a set (at least one) of program modules 507 may be stored in, for example, system memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 507 typically perform the functions and/or methods of the described embodiments of the invention.
The device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the device, and/or any device (e.g., network card, modem, etc.) that enables the device 50 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 511. Also, the device 50 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 512. As shown in fig. 5, the network adapter 512 communicates with other modules of the device 50 via the bus 503. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with device 50, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like. For example, if the device 50 is configured in a service application service node device, the blockchain-based media information processing method provided in the above embodiments of the present invention is implemented.
Example six
The sixth embodiment of the present invention also provides a computer readable storage medium having stored thereon a computer program (or called computer executable instructions) which when executed by a processor is operable to perform any of the above-described blockchain-based media information processing methods.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the embodiments of the present invention have been described in connection with the above embodiments, the embodiments of the present invention are not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.