CN117436876A - Data processing method, device, equipment, medium and program product - Google Patents

Data processing method, device, equipment, medium and program product Download PDF

Info

Publication number
CN117436876A
CN117436876A CN202311387567.4A CN202311387567A CN117436876A CN 117436876 A CN117436876 A CN 117436876A CN 202311387567 A CN202311387567 A CN 202311387567A CN 117436876 A CN117436876 A CN 117436876A
Authority
CN
China
Prior art keywords
interaction data
content interaction
application
transaction
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311387567.4A
Other languages
Chinese (zh)
Inventor
黄桂鸿
蓝虎
张慧
陈自民
秦波
梁作栋
莫洋
卢江玮
高聪
范滔
佘仕好
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202311387567.4A priority Critical patent/CN117436876A/en
Publication of CN117436876A publication Critical patent/CN117436876A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the application provides a data processing method, a device, equipment, a medium and a program product; the method comprises the following steps: acquiring content interaction data from the intelligent contract, and outputting the acquired content interaction data; receiving a digital signature issued by a browsing object aiming at content interaction data; generating a transaction associated with the content interaction data, and submitting the transaction to a blockchain network for uplink processing; and after the transaction is successfully uplink, acquiring release resources based on the transaction in the blockchain network. By adopting the embodiment of the application, the technical blank of content recommendation on the blockchain can be filled, and the reliability of content recommendation on the blockchain is ensured.

Description

Data processing method, device, equipment, medium and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, apparatus, device, medium, and program product based on a blockchain network.
Background
Blockchain technology is considered as an integrated application of decentralization, distributed storage, consensus mechanisms, and encryption algorithms, as a subversion of the computer model following the internet.
Practice finds that no content recommendation is introduced into the existing blockchain network; with the development of the blockchain technology, the introduction of content recommendation in the blockchain network can provide richer services for nodes using the blockchain network. Therefore, how to fill the technical gap of content recommendation on blockchain becomes a research hotspot.
Disclosure of Invention
The embodiment of the application provides a data processing method, device, equipment, medium and program product based on a blockchain network, which can fill the technical blank of content recommendation on a blockchain and ensure the reliability of the content recommendation on the blockchain.
On the one hand, the embodiment of the application provides a data processing method based on a blockchain network, wherein an intelligent contract is deployed in the blockchain network, and the intelligent contract comprises content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the method is applied to a decentralization application, and comprises the following steps:
acquiring content interaction data from the intelligent contract, and outputting the acquired content interaction data;
receiving a digital signature issued by a browsing object aiming at the content interaction data, wherein the digital signature is issued by the browsing object after confirming that the browsing object browses the output content interaction data;
Generating a transaction associated with the content interaction data, and submitting the transaction to a blockchain network for uplink processing; carrying a digital signature in the transaction; the method comprises the steps of,
after the transaction is successfully uplink, acquiring a released resource based on the transaction on the blockchain; the released resources are obtained by carrying out resource allocation on released resource pools corresponding to the content interaction data based on transactions.
On the other hand, the embodiment of the application provides a data processing method based on a blockchain network, wherein an intelligent contract is deployed in the blockchain network, and the intelligent contract comprises content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the method is applied to intelligent contracts, and comprises the following steps:
receiving a data acquisition request sent by a decentralizing application;
returning the content interaction data to the decentralization application in response to the data acquisition request, so that the decentralization application outputs the content interaction data and generates a transaction based on the digital signature issued by the browsing object for the content interaction data;
receiving a transaction submitted by the decentralization application, and verifying the transaction to obtain a target verification result; the method comprises the steps of,
And when a resource application sent by the decentralizing application is received, performing resource allocation on a released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In yet another aspect, an embodiment of the present application provides a data processing apparatus based on a blockchain network, where an intelligent contract is deployed in the blockchain network, where the intelligent contract includes content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the device is carried on an off-centering application, the device comprising:
the acquisition unit is used for acquiring content interaction data from the intelligent contract and outputting the acquired content interaction data;
the processing unit is used for receiving a digital signature issued by the browsing object aiming at the content interaction data, wherein the digital signature is issued by the browsing object after confirming that the browsed and output content interaction data;
the processing unit is also used for generating a transaction associated with the content interaction data and submitting the transaction to a blockchain network for uplink processing; carrying a digital signature in the transaction; the method comprises the steps of,
the processing unit is also used for acquiring release resources based on the transaction on the blockchain after the transaction is successfully uplink; the released resources are obtained by carrying out resource allocation on released resource pools corresponding to the content interaction data based on transactions.
In one implementation, the obtaining unit is configured to, when obtaining content interaction data from the smart contract, specifically:
if the using operation of the browsing object for the application function in the decentralizing application is detected, a data acquisition request is generated in response to the using operation; the data acquisition request is for: acquiring content interaction data corresponding to a white list to which the decentralised application belongs;
receiving content interaction data returned by the intelligent contract in response to the data acquisition request;
the white list to which the decentralised application belongs is stored in the intelligent contract; the whitelist includes application identifications of one or more off-centered applications having access to the content interaction data.
In one implementation, the processing unit is further configured to:
the browse object is opened with a use right regarding the application function.
In one implementation, the processing unit is configured to, when receiving a digital signature issued by a browsing object for content interaction data, specifically:
outputting confirmation prompt information in a playing interface of the content interaction data, wherein the confirmation prompt information is used for prompting a browsing object to judge whether the output content interaction data is browsed or not;
and if the signature operation of the browsing object aiming at the confirmation prompt information is detected in the playing interface, receiving the digital signature issued by the browsing object aiming at the content interaction data.
In one implementation, the processing unit is configured to, when generating a transaction associated with the content interaction data, specifically:
acquiring N digital signatures to be packaged; the N digital signatures to be packaged comprise digital signatures issued by browsing objects aiming at the content interaction data, and the content interaction data corresponding to the N digital signatures to be packaged are the same or different; n is an integer greater than 1;
detecting whether N digital signatures to be packaged meet transaction generation conditions or not; the transaction generation conditions include any of the following: the number N of the digital signatures to be packaged reaches a number threshold, or the time interval of the time of receiving the digital signature of the browsing object from the latest packaging time is a time period;
and if the transaction generation condition is met, generating the transaction based on the N digital signatures to be packaged.
In one implementation, the processing unit is configured to, after the transaction is successfully uplink, obtain the release resource based on the transaction on the blockchain, specifically configured to:
sending a resource application to the intelligent contract, enabling the intelligent contract to respond to the resource application, calculating a released resource obtained by playing the content interaction data for the decentralized application based on the transaction on the blockchain, and distributing the resource to a released resource pool corresponding to the content interaction data based on the released resource;
And receiving the released resources returned by the intelligent contract.
In yet another aspect, an embodiment of the present application provides a data processing apparatus based on a blockchain network, where an intelligent contract is deployed in the blockchain network, where the intelligent contract includes content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the device is loaded with an off-centering application, and comprises:
the receiving unit is used for receiving a data acquisition request sent by the decentralizing application;
the processing unit is used for responding to the data acquisition request and returning the content interaction data to the decentralizing application, so that the decentralizing application outputs the content interaction data and generates a transaction based on the digital signature issued by the browsing object for the content interaction data;
the processing unit is also used for receiving the transaction submitted by the decentralization application and verifying the transaction to obtain a target verification result; the method comprises the steps of,
and the processing unit is also used for carrying out resource allocation on the released resource pool corresponding to the content interaction data according to the target verification result and the transaction when the resource application sent by the decentralization application is received.
In one implementation, the transaction carries a digital signature issued by the browsing object for the content interaction data; the processing unit is used for verifying the transaction, and when a target verification result is obtained, the processing unit is specifically used for:
Performing signature verification processing on the digital signature of the browsing object in the transaction to obtain a first verification result; the method comprises the steps of,
performing identity verification processing on the browsed object to obtain a second verification result;
generating a target verification result of the browsing object based on the first verification result and the second verification result of the browsing object;
if the first verification result indicates that the digital signature verification fails or the second verification result indicates that the identity verification of the browsing object fails, the target verification result is verification failure; if the first verification result indicates that the digital signature verification is successful and the second verification result indicates that the identity verification of the browsing object is successful, the target verification result is verification success.
In one implementation manner, the processing unit is configured to, when performing authentication processing on the browsing object, obtain a second authentication result, specifically configured to:
acquiring digital assets of the browsing object in the blockchain network, and generating a second verification result according to the digital assets of the browsing object in the blockchain network; or,
and obtaining the address of the resource client of the browsing object in the blockchain network, and generating a second verification result according to the address of the resource client of the browsing object in the blockchain network.
In one implementation, the smart contract includes a monovalent resource amount of the content interaction data; the processing unit is used for distributing resources of the released resource pool corresponding to the content interaction data according to the target verification result and the transaction, and is specifically used for:
acquiring unit price resource quantity of the content interaction data;
acquiring one or more transactions which are to be subjected to resource allocation and are associated with content interaction data in a blockchain network; and counting the number of digital signatures included in one or more transactions;
calculating a release resource related to the content interaction data according to the unit price resource quantity and the signature number of the content interaction data;
and transferring the released resources of the content interaction data from the released resource pool corresponding to the content interaction data to the resource pool of the decentralizing application.
In one implementation, the content interaction data pertains to a provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
acquiring a verification rule about the application of decentralization; the check rule is set by the provisioning object for the decentralised application;
identity verification is carried out on the decentralised application by adopting a verification rule, so that a verification result is obtained;
And if the verification result is successful, triggering and executing the step of distributing resources to the released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the smart contract further includes one or more members belonging to a verification organization; the content interaction data belongs to the provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
issuing an identity check request for requesting one or more members to perform identity verification on the de-centralized application;
and if the verification result of the identity verification of the decentralised application by one or more members is that the verification is successful, triggering and executing the step of distributing resources to the release resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the content interaction data pertains to a provisioning object; the processing unit is further used for:
receiving an information viewing request of a supply object for content interaction data;
returning relevant information about the content interaction data to the provisioning object in response to the information viewing request;
wherein the related information about the content interaction data includes one or more of: total play amount of the content interaction data in the plurality of decentralised applications; the playing amount of the content interaction data in different decentralizing applications respectively; and signature proportions of the content interaction data in different decentralizing applications respectively.
In another aspect, embodiments of the present application provide a computer device, the device comprising:
a processor for loading and executing the computer program;
a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the blockchain network-based data processing method described above.
In another aspect, embodiments of the present application provide a computer readable storage medium storing a computer program adapted to be loaded by a processor and to perform the above-described blockchain network-based data processing method.
In another aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, which when executed by the processor, implement the blockchain network-based data processing method described above.
In the embodiment of the application, the content interaction data to be released and a release resource pool corresponding to the content interaction data can be stored in an intelligent contract in a blockchain network; when the decentralizing application in the blockchain network has the playing requirement of the content interaction data, the decentralizing application can acquire the content interaction data from the intelligent contract and output the acquired content interaction data. After the browsing object at the decentralizing application side browses the content interaction data, the decentralizing application can acquire a digital signature issued by the browsing object aiming at the content interaction data; in this way, the de-centralizing application may generate transactions associated with the content interaction data, the transactions carrying digital signatures therein. Further, after the transaction is successfully uplink, the decentralizing application can apply for obtaining the release resources from the intelligent contract, and at the moment, the intelligent contract can allocate the release resources corresponding to the content interaction data based on the transaction on the blockchain, so that the benefit obtained by playing the content interaction data is paid for the decentralizing application. Therefore, the data processing scheme provided by the embodiment of the application can fill the blank of the delivering and charging technology of the content interaction data in the blockchain network, endow the blockchain network with richer service content, and expand the application field of content recommendation (namely recommendation of the content interaction data) to a certain extent; in addition, the reliability of delivery and charging of content interaction data on the blockchain is effectively ensured by relying on the advantages of the blockchain technology, such as decentralization, non-falsification and the like.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an architecture of a data processing system provided in one exemplary embodiment of the present application;
FIG. 2 is a flow chart of a data processing method based on a blockchain network according to an exemplary embodiment of the present application;
FIG. 3 is a flow diagram of a decentralizing application obtaining content interaction data from a smart contract in accordance with one exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of a browsing object digitally signing content interaction data according to an exemplary embodiment of the present application;
FIG. 5 is a flowchart of another data processing method based on a blockchain network provided in an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of intelligent syndication de-centralization application selection content interaction data according to an exemplary embodiment of the present application;
FIG. 7 is a schematic diagram of an intelligent contract validation transaction provided by an exemplary embodiment of the present application;
FIG. 8 is a flowchart of yet another data processing method based on a blockchain network provided in an exemplary embodiment of the present application;
FIG. 9 is a block chain network based data processing apparatus according to one exemplary embodiment of the present application;
FIG. 10 is a schematic diagram of another block chain network based data processing apparatus according to one exemplary embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In order to fill the technical blank of content recommendation on a blockchain, an embodiment of the present application provides a data processing system, as shown in fig. 1, which supports the implementation of content recommendation on the blockchain, and in particular, provides functions of delivering and charging content interaction data. Specifically, the embodiment of the application provides a target intelligent contract, through which the delivery and charging of the content interaction data between the supply object and the decentralizing application on the blockchain can be realized, the supply object can be ensured to check whether the decentralizing application is bad, and the delivery and charging of the content interaction data on the blockchain are ensured to be real and reliable.
Wherein: (1) blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. Essentially, the data base is a decentralised database, which is a series of data blocks generated by correlation using a cryptography method, and each data block contains information of a batch of network transactions, and is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may be maintained and managed by blockchain nodes in a blockchain network. The blockchain network is a public infrastructure network and aims to provide a public infrastructure network which can be developed, deployed, operated, intercommunicated and supervised by a alliance chain application at low cost;
(2) an off-centralised application (decentralized application, DAPP), which is a distributed application built on the underlying blockchain development platform and consensus mechanism; so that the user and the developer of the distributed application are directly linked together, without control of the centralized company or operator. That is, the decentralizing application is an decentralizing application deployed in the blockchain network such that the blockchain network may be accessed through the decentralizing application, i.e., an off-chain user or device may access the blockchain network through the decentralizing application. The application of the decentralization has the following characteristics: 1. fully open source and autonomous, and without entities controlling most of the digital assets of the application; 2. the system must be capable of upgrading according to feedback and technical requirements of users, and the application upgrading must be performed after consensus is achieved by most users; 3. after the data in the application is encrypted, the data is stored on the public blockchain; 4. the generation of the application digital asset must be in accordance with a standard encryption algorithm according to which the node of value can obtain the application digital asset benefit. DAPP may be used for decentralized financial applications (e.g., decentralized exchanges, decentralized lending platforms, decentralized insurance platforms, etc.), as well as decentralized social applications, decentralized gaming applications, etc.
In addition, the user's resource client can be logged into the decentralized application, so that the user can access and use the application functions of the decentralized application by means of the resource client. The resource client can be used for realizing the resource management service function and realizing communication connection with the decentralised application client based on the resource management service function. In other words, the resource client is a tool for managing and storing user digital resources; for example, digital resources may be transferred to other accounts based on the resource client; as another example, digital resources transferred to other accounts may be received based on the resource client. Formally, the resource client may be a hardware device or a software program. It will be appreciated that as various types of decentralized applications are widely deployed on the blockchain, the activities of users on the blockchain increase, and a typical user may log in using a blockchain key (or key) management tool when using the decentralized application, where the address in the blockchain key management tool corresponds to a user on the blockchain, the decentralized application may obtain the user address from the key management tool through some interfaces, and in order to solve the problem that the background of the decentralized application cannot trust the user address used when logging in the decentralized application.
(3) Content recommendation refers to recommending content interaction data for a user and achieving the goal of providing objects of the content interaction data as much as possible; the more shallow conversion behaviors or deep conversion behaviors generated by the content interaction data are received, the more the benefit of the content interaction data to supply objects is. The embodiments of the present application do not limit the content type of the provisioning object and the content interaction data of the provisioning object. The content interaction data of the provisioning object may include, but is not limited to: advertisement data provided by advertisers, information data provided by informatizers, or audio-video data provided by audio-video objects, etc. For convenience of explanation, the following embodiments will be described by taking a supply object as an advertiser and content interaction data as advertisement data as examples in the exemplary description, and this is described herein; wherein, the advertisement can be a propaganda mode for introducing information such as business, service industry or literary program to the user through the Internet; for example, an advertisement about the commodity may be displayed in the web interface, specifically, an advertisement image may be displayed, where the advertisement image includes information about the commodity to be promoted, and may be used to introduce relevant information about the commodity (such as a style, a price, and parameters of the commodity) to the user.
Referring to FIG. 1, a data processing system is shown, which mainly includes: a browsing object 101a, a terminal 101b used by the browsing object 101a, a provisioning object 102a, a terminal 102b used by the provisioning object 102a, and a server 103 in a service server cluster. Wherein: the supply object 102a is an object that needs to provide content interaction data in the blockchain network, for example, the supply object 102a is an advertiser, or a provider of audio and video, etc.; the provisioning object 102a is provided with content interaction data that may be recommended via the terminal 102 b. The browsing object 101a is a general user who has a receiving demand of content interaction data; the terminal 101b used by the browsing object 101a is deployed with an anti-centering application, so that the browsing object 101a can log in the anti-centering application by using its own resource client, and the anti-centering application obtains content interaction data required to be pushed to the browsing object 101a from the blockchain network. The service server cluster may refer to a distributed network formed by blockchain nodes in a blockchain network, where servers 103 in the service server cluster are blockchain nodes, and target intelligent contracts customized by the embodiments of the present application are deployed in the blockchain nodes, where the target intelligent contracts are contracts written by the embodiments of the present application for implementing content recommendation on the blockchain. It should be noted that the terminal 101b used by the browsing object 101a and the terminal 102b used by the provisioning object 102a may also belong to a business service cluster, which is not limited thereto.
Referring to fig. 1, the flow of the data processing scheme provided in the embodiment of the present application may generally include:
(1) The writing and deployment of smart contracts for content recommendations.
The writing of intelligent contracts about content recommendations mainly refers to: an intelligent contract is written to manage access and billing of content interaction data, an off-center application to access content interaction data, and the like. For example, smart contracts written in embodiments of the present application may be referred to as interactive smart contracts, etc., in accordance with contract functionality; the smart contracts include, but are not limited to: the method comprises the steps of providing content interaction data to be released provided by an object, a white list corresponding to the content interaction data (the white list comprises application identifiers of one or more decentralized applications capable of accessing the content interaction data), charging rules of the content interaction data (such as unit price resource amount of the content interaction data, namely resource amount required to be paid by the object when playing a piece of the content interaction data), releasing resource pools corresponding to the content interaction data (the releasing resource pools define the preset resource amount of the object for playing the content interaction data, such as 100 ten thousand of programs are used for releasing the content interaction data, and the resource amount in the releasing resource pools set for the content interaction data can be fixed or dynamically changed). It should be appreciated that the required data, including but not limited to the exemplary data described above, may be written into the smart contract at the time the smart contract is written according to the content recommended solution requirements, as described herein.
Deployment of smart contracts for content recommendation mainly refers to: and deploying the compiled intelligent contract to the blockchain nodes in the blockchain network, so that the blockchain nodes run the intelligent contract when receiving the condition capable of triggering the execution of the intelligent contract. The method comprises the steps of deploying the written mud-handling contracts in the blockchain network, particularly deploying the written intelligent contracts to all or part of servers in a business server cluster in the system shown in fig. 1, wherein the servers can run the intelligent contracts to execute contract contents.
The smart contract mentioned above is a contract written in a code form, which can be automatically executed on a blockchain; various functions are implemented such as transferring accounts, verifying identities, creating digital identities, etc. The smart contract is in fact a piece of program made up of computer code, and the process of writing and deploying the smart contract described above can be summarized as: in the first step, after two or more users participating in the contract agree, the common consensus is formulated into an intelligent contract, namely, a code segment for realizing tasks or providing services is written. The second step, compiling into byte codes through a virtual machine and storing the byte codes in a block chain platform, so that the intelligent contract also has a unique address on the block chain; and the smart contract is broadcast and stored over the blockchain network to fulcrums of the global individual blockchains. And thirdly, triggering an intelligent contract code when a blockchain node in the blockchain network sends a transaction to an address where the intelligent contract is located or certain conditions are met, wherein the intelligent contract is automatically and independently executed on each node in the network in a specified mode, and the functions of storing data in the blockchain or changing certain states, changing account balance and the like are completed.
(2) Playing the content interaction data. The data processing scheme provided by the embodiment of the application can be jointly executed by the decentralizing application and the intelligent contract; specifically by the computer device deploying the decentralized application and the computer device deploying the smart contract. The computer device for deploying the decentralized application may be the terminal 101b in the system shown in fig. 1, and the computer device for deploying the smart contract may be any server 103 (i.e., any blockchain node in the blockchain network) in the service server cluster in the system shown in fig. 1.
In an actual application, after the browsing object 101a logs in the application with its own resource client to be used for decentralizing running in the terminal 101b, the browsing object 101a may perform a use operation with respect to an application function provided by the decentralizing application, which indicates that the browsing object 101a has a need to use the application function; at this time, the de-centralizing application may generate a data acquisition request through the terminal 101b and transmit the data acquisition request to the server 103, so that the server 103 runs the smart contract to return the content interaction data to the browsing object 101a after receiving the data acquisition request. Thus, after receiving the content interaction data, the decentralizing application may output the content interaction data in a display screen (or simply referred to as a display screen, a terminal screen, etc.) of the terminal 101 b; and, after the content interaction data is played, a confirmation prompt information about the content interaction data is output in the display screen, so that the browsing object 101a can perform a signature operation in response to the confirmation prompt information. In this way, the decentralizing application obtains the digital signature issued by the browsing object 101a about the content interaction data, and further generates a transaction associated with the content interaction data according to the digital signature, and submits the transaction to the blockchain network for uplink processing.
Further, when the decentralizing application has a need to obtain revenue from the provisioning object 102a regarding the content interaction data, the decentralizing application may send a resource application to the smart contract. At this time, after receiving the resource application, the intelligent contract can calculate, for the decentralized application, the released resources that are supposed to play the content interaction data according to the charging rules deployed in the intelligent contract. Then, the intelligent contract can deduct the released resources from the released resource pool corresponding to the content interaction data, and increase the released resources from the resource pool of the decentralised application, so as to realize charging and resource transfer of the content interaction data.
Therefore, the data processing scheme provided by the embodiment of the application can fill the blank of the delivering and charging technology of the content interaction data in the blockchain network, endow the blockchain network with richer service content, and expand the application field of content recommendation (namely recommendation of the content interaction data) to a certain extent; in addition, the reliability of delivery and charging of content interaction data on the blockchain is effectively ensured by relying on the advantages of the blockchain technology, such as decentralization, non-falsification and the like.
It should be noted that, in the embodiment of the present application, the relevant data collection process should strictly obtain the personal information according to the requirements of the relevant laws and regulations, so that the personal information needs to be informed or agreed (or has the legal basis of information acquisition), and the subsequent data use and processing actions are performed within the authorized scope of the laws and regulations and the personal information body. For example, when the embodiments of the present application are applied to specific products or technologies, such as when obtaining content interaction data of a provisioning object, permission or consent of the provisioning object needs to be obtained, and collection, use and processing of relevant data (such as collection and release of a bullet screen issued by the object) needs to comply with relevant laws and regulations and standards of relevant regions.
Based on the above-described data processing scheme based on the blockchain network, the embodiments of the present application propose a more detailed data processing method based on the blockchain network; from the foregoing description, it can be seen that the data processing method provided by the embodiments of the present application may be performed by both the decentralized application and the smart contract. The following describes the specific implementation of the method embodiment on the decentralization side and the method embodiment on the smart contract side, respectively, in conjunction with the different figures.
FIG. 2 illustrates a flow diagram of a data processing method based on a blockchain network according to an exemplary embodiment of the present application; the data processing method may be performed by a computer device running a de-centralizing application, which may be a terminal used for provisioning the object. The data processing method may include, but is not limited to, steps S201-S204:
s201: and acquiring content interaction data from the intelligent contract, and outputting the acquired content interaction data.
As described above, the content interaction data may be advertisement data provided by an advertiser, and the type of the content interaction data is not limited in the embodiments of the present application. As also described above, the de-centralized application is similar to an application running on a terminal (e.g., a client that needs to install a package, a web application running on a browser, or the like; the de-centralized application is capable of providing application services to a browsing object; depending on the application type of the de-centralized application, the application services provided by the de-centralized application are not the same, and the specific service type of the application services is not limited in this embodiment.
In the specific implementation, firstly, after a browsing object logs in a decentralizing application by using a resource client, the browsing object can use an application service provided by the decentralizing application according to service requirements. Second, if the decentralizing application detects a use operation of the browsing object for an application function in the decentralizing application, the decentralizing application may generate a data acquisition request in response to the use operation, the data acquisition request being used for: and acquiring content interaction data corresponding to the white list to which the decentralised application belongs. The de-centralized application then issues the data acquisition request in the blockchain network, and then the intelligent contract in the blockchain node in the blockchain network may receive the data acquisition request. Finally, the intelligent contract returns content interaction data to the decentralizing application in response to the data acquisition request, at which time the decentralizing application can receive the content interaction data returned by the intelligent contract in response to the data acquisition request.
The whitelist to which the decentralised application described in the above process belongs is stored in the smart contract. That is, a whitelist corresponding to the content interaction data of the provisioning object is deployed in the smart contract, wherein the whitelist comprises application identifications of one or more decentralised applications capable of accessing the content interaction data; in other words, only the application identification in the whitelist corresponds to the de-centralized application having a need to access content interaction data from the smart contract. It should be noted that, alternatively, the same provisioning object may correspond to a whitelist, where the application identifier in the whitelist corresponds to a de-centralized application that may access one or more content interaction data provided by the same provisioning object in the smart contract; optionally, each content interaction data in different content interaction data provided by the same provisioning object may correspond to a respective whitelist, and then the application identifier in any whitelist corresponds to the application identifier, and the application identifier may only access the content interaction data corresponding to the whitelist. The whitelist in the smart contract may be provided by the provisioning object. Therefore, the supply object and the decentralization application are bound in the form of the white list, so that the content interaction data provided by the supply object can be effectively ensured to be accessed only by the decentralization application allowed by the supply object, the requirement of the supply object for autonomously selecting the decentralization application can be met, and the safety of the content interaction data of the supply object is ensured to a certain extent.
To facilitate an understanding of the above-described process of acquiring content interaction data, an exemplary flow of acquiring content interaction data is described below in conjunction with fig. 3. As shown in fig. 3, a terminal used by a browsing object has an application for decentralizing running therein, and the application for decentralizing provides a service interface for a document; if the browsing object has a modification operation to the document title 301 of the document in the service interface, the browsing object may perform an editing operation (i.e., the aforementioned use operation may include a click operation or a double click operation on the document title 301, etc.) on the document title 301 in the service interface, at which time the de-centering application determines that the browsing object has a need to edit the document title 301. The de-centralized application may generate a data acquisition request in response to the editing operation and issue the data acquisition request to the blockchain network, so that the intelligence deployed in the blockchain network may be approximately after receiving the data acquisition request, and a white list including an application identifier 1 of the de-centralized application may be screened, where the white list corresponding to the content interaction data 1 provided by the provisioning object includes the application identifier 1 of the de-centralized application, and the white list corresponding to the content interaction data 2 provided by the provisioning object also includes the application identifier 1 of the de-centralized application. Then, the intelligent contract can return the content interaction data corresponding to any white list to which the application identifier 1 of the decentralizing application belongs to the decentralizing application; returning the content interaction data 2 to the de-centralised application as shown in fig. 3; thus, the de-centering application can output the content interaction data 2 in the display screen, and if the content interaction data 2 is advertisement data, then the advertisement corresponding to the advertisement data is output in the display screen according to the advertisement data.
S202: a digital signature issued by the browsing object for the content interaction data is received.
After the decentralizing application acquires the content interaction data from the intelligent contract, the decentralizing application needs to output the content interaction data in a display screen; for example, the content interaction data is advertisement data, and the de-centralizing application can play corresponding advertisements in the display screen according to the advertisement data. Further, after the playing of the content interaction data in the display screen is finished, if the playing time length reaches the display time length of the content interaction data, the de-centering application can further output confirmation prompt information in the playing interface of the content interaction data, where the confirmation prompt information is used for prompting the browsing object to judge whether the output content interaction data is browsed or not. If the signature operation of the browsing object on the confirmation prompt information is detected in the playing interface, the browsing object confirms the browsed content interaction data, the browsing object can conduct the signature operation on the confirmation prompt information, and at the moment, the fact that the decentralization application receives the digital signature issued by the browsing object on the content interaction data is determined.
It should be noted that, in the embodiment of the present application, a specific operation procedure of the signature operation performed by the browsing object for confirming the prompt information is not limited. As shown in the first diagram of fig. 4, it is assumed that the confirmation prompt includes a confirmation option 401 and a cancel option 402; then when the browse object clicks on the confirm option 401, it is indicated that the browse object confirms the browsed content interaction data. As shown in the second diagram of fig. 4, it is assumed that the confirmation prompt includes an input area 403, and if the browsing object inputs its own signature in the input area 403, it indicates that the browsing object confirms the browsed content interactive data. After the browsing object executes the signature operation on the confirmation prompt information, the resource client of the browsing object logging in the decentralizing application is defaulted to use the secret key to execute the signature operation on the confirmation prompt information, and the decentralizing application acquires the digital signature of the browsing object.
Further, after receiving the digital signature issued by the browsing object for the content interaction data, the decentralizing application determines that the browsing object has watched the content interaction data, and then the decentralizing application may open the usage rights of the application functions provided by the decentralizing application to the browsing object. In other words, the embodiment of the application realizes the introduction of the content recommendation technology in the blockchain network by putting the content interaction data into the browsing object before developing the use authority about the application function for the browsing object.
S203: and generating a transaction associated with the content interaction data, and submitting the transaction to a blockchain network for uplink processing.
The embodiment of the application supports the batch packing of the digital signatures by the decentralizing application to generate the transaction, and compared with the case that each digital signature is packed into the transaction, the cost of the decentralizing application uplink transaction can be greatly saved.
In a specific implementation, after receiving a digital signature issued by a browsing object for content interaction data, the decentralized application may acquire N digital signatures to be packaged, where the N digital signatures to be packaged include digital signatures issued by the browsing object for content interaction data recommended by the current content, and N is an integer greater than 1. The de-centralizing application may then detect whether the N digital signatures to be packaged satisfy the transaction generation criteria. Wherein the transaction generation condition may include any one of: whether the number N of digital signatures to be packaged reaches a number threshold or not; if so, determining that the N digital signatures to be packaged meet the transaction generation conditions, otherwise, determining that the N digital signatures to be packaged do not meet the transaction generation conditions. Or detecting whether the time interval of the time of receiving the digital signature of the browsing object from the latest packing time is a time period (namely, timing packing); if yes, determining that the N digital signatures to be packaged meet the transaction generation conditions, otherwise, determining that the N digital signatures to be packaged do not meet the transaction generation conditions. And secondly, if the N digital signatures to be packaged are detected to meet the transaction generation conditions, generating a transaction based on the N digital signatures to be packaged, and specifically compressing the N digital signatures to be packaged into the same data packet to generate one transaction. Finally, the decentralization application issues the packaged transaction to the blockchain network for uplink processing, specifically, the blockchain node in the blockchain network carries out consensus processing on the transaction, and after the consensus is passed, the transaction is packaged into blocks and stored on the blockchains in the blockchain network.
It should be noted that, after receiving the digital signature issued by the browsing object for the content interaction data, the de-centering application obtains N digital signatures to be packaged, where the N digital signatures to be packaged are digital signatures issued by one or more browsing objects cached by the de-centering application in the historical time period for the same or different content interaction data. That is, the content interaction data corresponding to the N digital signatures to be packaged are the same or different. In detail, the N digital signatures to be packaged may be digital signatures issued by the same browsing object for different content interaction data, or digital signatures issued by the same browsing object for the same content interaction data at different times; the N digital signatures to be packaged may be digital signatures issued by different browsing objects to the same content interaction data, or digital signatures issued by different browsing objects to different content interaction data, or the like. In the embodiment of the application, the content interaction data corresponding to the N digital signatures to be packaged and the sources of the digital signatures are not limited.
For example, an off-centered application deployed in a terminal used to browse objects communicates directly with a blockchain network; in this implementation, the N digital signatures to be packaged that the decentralized application caches during the historical time period may only include digital signatures that are signed by the resource client (i.e., the same browsing object) that logged into the decentralized application for different or the same content interaction data during the historical time period. For another example, the decentralised application deployed in the terminal used by the browsing object corresponds to a server, and the server is used for providing technical services for the decentralised application; in this implementation manner, the server corresponding to the decentralized application may cache the digital signatures sent by the decentralized applications deployed in different terminals, and package and link the N digital signatures sent by different decentralized applications at regular time, where the N digital signatures may be signed by different browsing objects for different or the same content interaction data.
S204: and after the transaction is successfully uplink, acquiring release resources based on the transaction in the blockchain network.
The embodiment of the application supports the decentralizing application to apply for the benefits of throwing the content interaction data to the supply object after the transaction carrying the digital signature is successfully uplink to the blockchain as a throwing platform for helping the supply object to throw the content interaction data to the browsing object, so as to realize throwing and charging of the content interaction data in the blockchain network.
In a specific implementation, when the decentralizing application has a rendering demand, the decentralizing application may send a resource application to the smart contract for requesting a provisioning object to pay for rendering resources required to render one or more content interaction data to the smart contract. After receiving the resource application, the intelligent contract can calculate the released resources obtained by playing the content interaction data for the decentralised application based on the transaction on the blockchain, and allocate the resources to the released resource pool corresponding to the content interaction data based on the released resources. In this way, the decentralized application may receive the delivered resources returned by the smart contract.
In summary, the embodiment of the present application supports the decentralized application in the blockchain network to obtain the content interaction data to be put in from the intelligent contract, and after the content interaction data is displayed, receives the digital signature issued by the browsing object for the content interaction data, so as to indicate that the browsing object views the content interaction data. In this way, the de-centralized application may apply for resources to the smart contract so that the smart contract calculates the released resources available to the de-centralized application to expose the content interaction data in response to the resource application. As can be seen, the embodiment of the application realizes the recommendation of the content on the chain through the decentralization application, and fills the gap of the recommendation of the content on the blockchain. In addition, the embodiment of the application supports the batch packing of digital signatures by the decentralizing application as transactions, and compared with the fact that the decentralizing application DAPP submits the digital signature generation transaction of a single browsing object to the blockchain at a time, the cost of the uplink can be saved.
The embodiment shown in fig. 2 mainly describes the data processing method provided by the embodiment of the present application from the role of the decentralizing application, and the data processing method provided by the embodiment of the present application is described below from the perspective of the smart contract with reference to fig. 5. FIG. 5 illustrates a flow diagram of a data processing method based on a blockchain network according to an exemplary embodiment of the present application; the data processing method may be performed by a computer device running a smart contract, which may be a blockchain node in a blockchain network.
The data processing method may include, but is not limited to, steps S501-S503:
s501: and receiving a data acquisition request sent by the decentralization application.
The data acquisition request sent by the decentralizing application is used for requesting the intelligent contract to return the content interaction data to the decentralizing application. Thus, the intelligence may return content interaction data to the de-centralized application in response to the data acquisition request, approximately after receiving the data acquisition request.
In particular, as can be seen from the foregoing related description, a whitelist corresponding to each of the one or more provisioning objects (or a whitelist corresponding to each of the one or more content interaction data) is recorded in the smart contract. Then, the intelligent contract responds to the data acquisition request of the decentralizing application, firstly, a white list which stores the application identifier of the decentralizing application which initiates the data acquisition request is screened out from a plurality of white lists, and the decentralizing application is indicated to have the authority to access the content interaction data corresponding to the white list. Then, considering that the number of the content interaction data with the access right of the decentralizing application may be multiple, in this case, one content interaction data may be selected from the multiple content interaction data according to the data filtering rule and sent to the decentralizing application.
Among other things, data screening rules may include, but are not limited to: randomly selecting the priority of the content interaction data, the historical delivery times of the content interaction data, the matching degree between the content interaction data and the decentralised application and the like. Optionally, the screening rule is a random selection; in this case, one content interaction data may be randomly selected from a plurality of content interaction data having access rights of the decentralizing application as the content interaction data issued to the decentralizing application. Optionally, the screening rule is a priority of the content interaction data; specifically, the priorities of different content interaction data are different, and the probability that the content interaction data with higher priority is selected is higher, for example, the content interaction data with the highest priority is selected from a plurality of content interaction data to be sent to the decentralization application; wherein the priority of the content interaction data may be determined according to the amount of monovalent resources of the content interaction data (e.g., the higher the amount of monovalent resources, the higher the priority of the content interaction data), or specified by the contract creator when composing the smart contract, etc. Optionally, the screening rule is historical delivery times of the content interaction data; the historical delivery times of the content interaction data refer to the times that the content interaction data is successfully selected and delivered within a certain time period (such as 24 hours); the higher the historical putting times of the content interaction data are, the smaller the probability that the content interaction data are selected is, so that the frequency of putting a plurality of content interaction data is ensured to be the same as much as possible, and the situation that certain content interaction data are not put or the putting times are very small is avoided. Optionally, the screening rule is a degree of matching between the content interaction data and the de-centralized application; specifically, the selection of the content interaction data can be realized according to the matching degree between the type or the field to which the content interaction data belongs and the application type or the field of the decentralization application; the higher the matching degree between the type of the content interaction data and the application type of the decentralised application, the easier the content interaction data is selected.
For example, a schematic flow diagram of a smart contract selecting content interaction data for a de-centralized application in response to a data acquisition request may be seen in FIG. 6. As shown in fig. 6, taking as an example that each content interaction data in the smart contract corresponds to a white list (and possibly the same provisioning object corresponds to a white list), it is assumed that: the intelligent contract is recorded with a white list 1 corresponding to the content interaction data 1, and the white list 1 comprises an application identifier 1 and an application identifier 2; the intelligent contract is recorded with a white list 2 corresponding to the content interaction data 2, and the white list 2 comprises an application identifier 2 and an application identifier 4; the intelligent contract is recorded with a white list 3 corresponding to the content interaction data 3, and the white list 3 comprises an application identifier 1 and an application identifier 3; etc. Assume that an application identifier of a decentralised application that initiates a data acquisition request is an application identifier 1; then, after the intelligent integrated application receives the data acquisition request sent by the decentralizing application, it is determined that the application identifier 1 of the decentralizing application is included in the white list 1 and the white list 3, and then it is determined that the content interaction data 1 corresponding to the white list 1 and the content interaction data 3 corresponding to the white list 3 are both content interaction data with access rights of the decentralizing application. Further, the smart contract may select one content interaction data (e.g., the content interaction data 3 corresponding to the white list 3) from the content interaction data 1 and the content interaction data 3 according to the aforementioned data filtering rules, and issue the selected content interaction data to the decentralized application.
If the time required by the decentralizing application to start the use authority about the application function for the browsing object is longer than the display time of the single content interaction data, the intelligent contract can issue the content interaction data to the decentralizing application in batches, namely, issue at least two content interaction data to the decentralizing application at one time, so that the decentralizing application is ensured to have enough time to prepare for starting the application function. For example, assuming that after the decentralizing application detects the use operation of the browsing object for the application function, the decentralizing application estimates that the duration required for starting the application function is 30 seconds, if the display duration of the content interaction data 1 is 10 seconds and the display duration of the content interaction data 3 is 20 seconds, the smart contract may issue both the content interaction data 1 and the content interaction data 3 to the decentralizing application at the same time. It should be noted that, in the implementation process, the required time length for the application to start the use authority about the application function is carried by the application to be decentered in the initiated data acquisition request; thus, the smart contract can select the content interaction data according to the duration.
S502: and receiving the transaction submitted by the decentralization application, and verifying the transaction to obtain a target verification result.
After the intelligent contract returns the content interaction data to the decentralizing application based on step S501, the decentralizing application may output the content interaction data, receive a digital signature issued by the browsing object for the content interaction data, and generate a transaction and link the transaction based on the digital signature. Thus, the intelligent contract can synchronously de-centralize the application uplink transaction from the blockchain and verify the transaction to obtain a target verification result.
As shown in fig. 7, an exemplary implementation of a smart contract to verify a transaction after receiving the transaction may include: the digital signature issued by the browsing object aiming at the content interaction data is carried in the transaction. Firstly, on one hand, the intelligent contract can carry out signature verification processing on a digital signature of a browsing object carried in a transaction to obtain a first verification result; wherein, the signature verification process for the digital signature of the browsing object can roughly comprise: obtaining a public key and a document (namely a signed document) corresponding to a private key of a browsing object, and decrypting a digital signature of the browsing object by using the public key of the browsing object to obtain a decrypted document abstract; then, the intelligent contract generates a document digest of the document by using a hash algorithm and compares whether the generated document digest and the decrypted document digest are identical; if the digital signature verification results are the same, the digital signature verification for the browsing object is successful, and if the digital signature verification for the browsing object is failed, the digital signature verification for the browsing object is failed.
Then, on the other hand, the smart contract may perform authentication processing on the browsing object to obtain a second authentication result. Wherein the authentication for browsing objects aims at: and verifying whether the identity of the browsing object signing the content interaction data in the decentralizing application is a true identity or not, so that the decentralizing application is prevented from utilizing some false users to attempt to acquire benefits from the supplied object. On the basis of the above-mentioned main object of identity verification, the embodiment of the present application does not limit the specific verification process of identity verification for a browsing object.
Optionally, authentication is achieved by browsing the digital assets of the object in the blockchain network. Specifically, the smart contract may obtain digital assets of the browsing object in the blockchain network from the blockchain and generate a second verification result based on the digital assets of the browsing object in the blockchain network. For example, the digital asset of the browsing object in the blockchain network is greater than a resource threshold (e.g., 0 or a preset value), then the second verification result indicates that the authentication for the browsing object was successful; conversely, the digital asset of the browsing object in the blockchain network is less than or equal to the resource threshold, then the second verification result indicates that the authentication for the browsing object failed.
Optionally, the authentication is implemented by browsing the address of the resource client of the object. Specifically, the smart contract may obtain an address of a resource client of the browsing object in the blockchain network, and generate a second verification result according to the address of the resource client of the browsing object in the blockchain network. For example, detecting an address of a resource client with a browsing object linked in the blockchain network, indicating that the address of the resource client with the browsing object is real, and then the second verification result indicates that the identity verification for the browsing object is successful; otherwise, if the address of the resource client of the browsing object is not stored in the blockchain network, the second verification result indicates that the identity verification for the browsing object fails.
And finally, generating a target verification result of the browsing object based on the first verification result and the second verification result of the browsing object obtained through verification. If the first verification result indicates that the digital signature verification for the browsing object fails, or the second verification result indicates that the identity verification for the browsing object fails, the target verification result is verification failure. Otherwise, if the first verification result indicates that the digital signature verification is successful and the second verification result indicates that the identity verification of the browsing object is successful, the target verification result is verification success.
As can be seen from the above description, the embodiment of the present application supports the verification of the transaction submitted by the decentralized application by the intelligent contract, which not only verifies the digital signature of the browsing object to ensure the reliability of the content recommendation, but also verifies the identity of the browsing object as the true identity, thereby preventing the decentralized application from creating a blank false user to cheat the resource of the provisioning object.
S503: and when a resource application sent by the decentralizing application is received, performing resource allocation on a released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
After the decentralizing application puts the content interaction data to the browsing object for the supply object, the decentralizing application can pay the rewards for putting the content interaction data to the intelligent contract application for the decentralizing application, so that the content interaction data on the blockchain are put and charged.
In a specific implementation, the decentralizing application can send a resource application to the intelligent contract, wherein the resource application can carry one or more content interaction data presented by the application; that is, the de-centralization application may apply for revenues regarding one or more content interaction data during a single rendering application. It should be noted that the calculation process of the smart contract for the release resources of each content interaction data (i.e. the amount of resources that should be paid to the de-centralized application calculated according to the release amount of the content interaction data (determined by the number of digital signatures)) is the same, but the release resources of each content interaction data need to be added when the content interaction data are multiple, and the addition result is the total release resources that should be obtained by the de-centralized application.
Based on this, the following description will be made taking a resource application for applying for presentation of interaction data for a single content as an example. In a specific implementation, the resource application carries a data identifier of the content interaction data, and the data identifier of the content interaction data can be used for uniquely identifying the content interaction data; in this way, the smart contract obtains a monovalent resource amount of the content interaction data (recorded in the smart contract) in response to the resource application, and obtains one or more transactions in the blockchain network for which resource allocation is to be performed and associated with the content interaction data, i.e., the content interaction data included in each of the one or more transactions has not yet been paid for by the decentralized application. The smart contract may then count the number of digitally signed signatures included in the one or more transactions based on the one or more transactions. Thus, the smart contract can calculate the released resources related to the content interaction data according to the unit price resource amount of the content interaction data and the signature number related to the content interaction data; for example, the unit price resource amount of the content interaction data is 10 yuan, which means that the content interaction data can be obtained by the decentralizing application every time, the signature number of the content interaction data is 100, and the number of times of the decentralizing application delivering the content interaction data is 100, so that the delivering resource of the content interaction data is calculated to be 10 yuan x 100 times = 1000 yuan. And finally, the intelligent contract transfers the release resource of the content interaction data from the release resource pool corresponding to the content interaction data to the resource pool of the decentralizing application so as to pay the consideration of releasing the content interaction data to the decentralizing application.
Notably, are: (1) the above-described specific process of transferring the intelligent contract statistical resource to the decentralizing application may be performed after receiving the resource application of the decentralizing application, or may be performed after the intelligent contract receives the transaction, and the embodiment of the present application does not limit the occurrence time of the specific process. (2) The drop resource pool corresponding to the content interaction data stored in the smart contract may refer to an address of a resource pool of the provisioning object, and the resource pool of the provisioning object may refer to a resource client storing a digital asset (or referred to as a resource amount) of the provisioning object; thus, the smart contract may transfer the amount of the provisioning object's resources to the resource pool of the decentralized application based on the provisioning object's resource pool's address, while the decentralized application's resource pool may refer to a resource package for storing the decentralized application's digital assets. Or, the release resource pool corresponding to the content interaction data stored in the intelligent contract may also refer to a resource package pre-stored with a certain amount of resource, where the pre-stored amount of resource in the resource package is the amount of resource that the supply object pays in advance for the content interaction data (such as one or more content interaction data), and if the pre-stored amount of resource is 10 ten thousand yuan, it means that the supply object is expected to use 10 ten thousand yuan to realize release of the content interaction data; and then, each time of resource application about the content interaction data, deducting the resource amount from 10 ten thousand yuan prestored in the resource package to the decentralised application, so as to realize the charging of the content interaction data. (3) The embodiment of the application also supports the decentralization application to divide the benefits into benefits, for example, the browsing object for signing the content interaction data can also divide partial resource quantity, so that the browsing object can be stimulated to watch the content interaction data.
In summary, the embodiment of the application supports writing of the intelligent contract capable of supporting the release and charging of the content interaction data, and the intelligent contract is deployed on the blockchain network, so that the release and charging of the content interaction data are automatically achieved by triggering the intelligent contract through interaction between the decentralizing application and the blockchain network, the technical defect that the blockchain network does not support content recommendation is overcome, and the safety of the content interaction data is effectively protected depending on the characteristics of the blockchain network, such as non-falsification and decentralization. In addition, the embodiment of the application also supports the intelligent contract to verify the transaction submitted by the decentralizing application after receiving the transaction, so as to verify the digital signature of the browsing object, and verify the authenticity of the identity of the browsing object, thereby avoiding that the decentralizing application utilizes some false users to attempt to acquire benefits from the supply object, namely preventing the decentralizing application from creating blank false users to cheat the resources of the supply object.
Based on the above-mentioned angle of the application of fig. 2 from the decentralization and the angle of the intelligent contract of fig. 5, the description of the data processing method provided by the embodiment of the application is respectively presented; a specific implementation procedure of the data processing method provided in the embodiment of the present application is provided below in conjunction with the application of decentralization and the smart contract. FIG. 8 is a flow chart of a method for processing data based on a blockchain network according to an exemplary embodiment of the present application; the data processing method may be performed jointly by a computer device running a smart contract and a computer device deployed with an off-centralised application. The data processing method may include, but is not limited to, steps S801 to S807:
S801: the provisioning object may send content interaction data and whitelist information to the contract creator of the smart contract such that the contract creator composes and deploys the smart contract in the blockchain network based on the information.
It should be noted that, step S801 mainly illustrates preset actions of writing and deploying the intelligent contract; the specific implementation process of the preset action may be referred to the foregoing description about the data processing scheme provided in the embodiment of the present application, which is not described herein.
S802: when the browsing object executes a use operation for an application function in the decentralizing application, the decentralizing application transmits a data acquisition request to the intelligent contract in response to the use operation, so that the intelligent contract returns content interaction data to the decentralizing application in response to the data acquisition request.
S803: the decentralizing application receives the content interaction data returned by the intelligent contract and outputs the acquired content interaction data.
S804: the method comprises the steps that a decentralizing application receives a digital signature issued by a browsing object aiming at content interaction data; the digital signature is issued by the browsing object after confirming that the outputted content interaction data has been browsed.
S805: the de-centralizing application generates a transaction associated with the content interaction data and submits the transaction to the blockchain network for uplink processing.
S806: the intelligent contract receives the transaction submitted by the decentralizing application and verifies the transaction to obtain a target verification result.
It should be noted that the specific implementation process shown in steps S802-S806 mainly describes a process in which the decentralized application obtains the content interaction data from the smart contract (i.e., a process of delivering the content interaction data), a process in which the decentralized application outputs and generates and links a transaction based on the digital signature issued for the content interaction data, and a process in which the smart contract verifies the transaction provided by the decentralized application. The specific implementation procedures shown in steps S802-S806 can be referred to in steps S201-S203 in the embodiment shown in fig. 2, and the description of the specific implementation procedures shown in steps S501-S502 in the embodiment shown in fig. 5 is omitted here.
S807: the intelligent contract receives a resource application sent by the decentralization application, and allocates resources to the put resource pool corresponding to the content interaction data according to the target verification result and the transaction.
It should be noted that, the implementation process shown in step S807 may refer to the related description of the implementation process shown in step S503 in the embodiment shown in fig. 5, which is not described herein.
Notably, the provisioning object can also detect a resource application sent by the decentralizing application to the intelligent contract, and before the intelligent contract responds to the resource application to allocate resources to a release resource pool corresponding to the content interaction data, the embodiment of the application also supports the provisioning object to carry out identity check on the decentralizing application release platform according to own requirements so as to check whether false acts exist in the decentralizing application; and triggering the intelligent contract to respond to the resource application to allocate resources to the released resource pool corresponding to the content interaction data only if the identity check of the supply object to the decentralizing application is successful. By means of the double checking mode of the supply object and the intelligent contract for the decentralizing application, the dislike of the decentralizing application can be effectively avoided, and the decentralizing application is prevented from cheating the resource of the supply object by creating false users.
Illustratively, when the provisioning object detects that the decentralized application sends a resource application to the smart contract, the validation process for the decentralized application by the provisioning object may include: the provisioning object obtains a verification rule for the decentralised application, which may be personalized by the provisioning object for the decentralised application; that is, the provisioning object may customize a personalized verification rule according to its own verification requirement to verify the decentralizing application, thereby not only satisfying the personalized verification requirement of the provisioning object, but also further improving the reliability of the digital signature provided by the decentralizing application. And then, the supply object adopts a verification rule to carry out identity verification on the decentralised application, and a verification result is obtained. Finally, if the verification result is successful, the fact that the supplied object confirms that the decentralised application is not disliked is indicated, and the intelligent contract is triggered to be executed to allocate resources to the released resource pool corresponding to the content interaction data according to the target verification result and the transaction; otherwise, if the verification result is successful, the result indicates that the provisioning object considers the decentralizing application as a disuse application, and at the moment, the provisioning object can refuse to pay benefits to the decentralizing application, and the intelligent contract is allowed to deduct the digital asset (such as deposit) of the decentralizing application, so as to achieve the purpose of punishing the disuse behavior of the decentralizing application.
Further, the smart contract may also include one or more members belonging to a verification organization; in this implementation, the validation process of the provisioning object for the decentralised application may further comprise: the provisioning object issues an identity check request requesting that one or more members belonging to a verification organization identity verify the de-centralized application. And if the verification result of the identity verification of the decentralised application by one or more members is that the verification is successful, triggering and executing the intelligent contract to allocate resources to the released resource pool corresponding to the content interaction data according to the target verification result and the transaction. Wherein: (1) the verification organization mentioned above, or referred to as dao organization, may be understood as a neutral third party organization, which contains members that are pre-configured in a smart contract and have verification capabilities. That is, when the provisioning object checks whether the decentralised application has false effects or not, in order to ensure the validity and fairness of the check, the provisioning object may apply for a verification organization to perform identity check on the browsing object on which the decentralised application is linked together, specifically, performing voting proof on the browsing object by a plurality of members; only after the verifying organization agrees that the decentralised application has a disliked behavior, the provisioning object may blacken the decentralised application and refuse to deliver revenue. (2) The process that the supply object requests the verification organization to perform identity check can occur after the supply object detects that the decentralizing application sends a resource application to the intelligent contract, or after the supply object fails to verify the decentralizing application by adopting a verification rule; the embodiments of the present application are not limited in this regard.
Therefore, the embodiment of the application supports the provisioning object to carry out identity verification on the decentralizing application, and the double checking mode (namely the provisioning object and the intelligent contract) can effectively avoid the dislike of the decentralizing application and prevent the decentralizing application from cheating the resources of the provisioning object by creating false users.
In addition, the embodiment of the application also supports the supply object to apply for viewing related information about the content interaction data to the intelligent contract at any moment, so that the supply object can grasp the dynamics about the content interaction data according to the requirement. In particular, when the provisioning object has a need to view related information about content interaction data, the provisioning object may generate an information viewing request about the content interaction data using a terminal held by the provisioning object and send the information viewing request to the smart contract. The intelligent contract receives an information viewing request of a provisioning object for the content interaction data, and returns relevant information about the content interaction data to the provisioning object after querying the wanted information of the content interaction data from the chain in response to the information viewing request. The embodiment of the application does not limit the type of the related information about the content interaction data that the provisioning object wants to view; alternatively, the provisioning object may specify one or more relevant information, alternatively, the provisioning object may view all relevant information about the content interaction data by default. Wherein, the related information about the content interaction data may include one or more of the following: total play amount of the content interaction data in the plurality of decentralised applications; the playing amount of the content interaction data in different decentralizing applications respectively; and the signature proportion of the content interaction data in different decentralizing applications respectively (for example, the signature proportion of the content interaction data in the decentralizing application 1 is 60%, which means that the content interaction data is played 100 times in the decentralizing application and 60 times receive the digital signature of the browsing object).
In an embodiment of the present application, on the one hand, a decentralized application in a support blockchain network obtains content interaction data to be put in from an intelligent contract, and after the content interaction data is displayed, receives a digital signature issued by a browsing object for the content interaction data, so as to indicate that the browsing object views the content interaction data. In this way, the de-centralized application may apply for resources to the smart contract so that the smart contract calculates the released resources available to the de-centralized application to expose the content interaction data in response to the resource application. On the other hand, intelligent contracts which can support the throwing and charging of the content interaction data are supported to be compiled, and the intelligent contracts are deployed on the blockchain network, so that the intelligent contracts are triggered to automatically realize the throwing and charging of the content interaction data through interaction between the decentralizing application and the blockchain network. Therefore, the intelligent contract and the interaction between the intelligent contract and the decentralization application are designed, the blank of the content interaction data throwing and charging technology in the blockchain network can be filled, the blockchain network is endowed with richer business content, the application field of content recommendation (i.e. recommendation about the content interaction data) is expanded to a certain extent, and the safety of the content interaction data is effectively protected depending on the characteristics of incapability of tampering, decentralization and the like of the blockchain network. In addition, the embodiment of the application also supports the intelligent contract to verify the transaction submitted by the decentralizing application after receiving the transaction, so as to verify the digital signature of the browsing object, and verify the authenticity of the identity of the browsing object, thereby avoiding that the decentralizing application utilizes some false users to attempt to acquire benefits from the supply object, namely preventing the decentralizing application from creating blank false users to cheat the resources of the supply object. In addition, the decentralized application packages the digital signature in batches as a transaction, which can save the cost of the uplink compared to submitting the digital signature generation transaction of a single browsing object to the blockchain each time by the decentralized application DA PP.
The foregoing details of the rendering processing method according to the embodiment of the present application, in order to facilitate better implementation of the foregoing solutions according to the embodiment of the present application, correspondingly, the following provides an apparatus according to the embodiment of the present application.
FIG. 9 illustrates a block chain network based data processing apparatus according to one exemplary embodiment of the present application; the data processing means may be a computer program (including program code) running in a computer device such as a terminal used for browsing objects; the data processing device may be used to perform some or all of the steps in the method embodiments shown in fig. 2 or 8. Referring to fig. 9, an intelligent contract is deployed in the blockchain network, where the intelligent contract includes content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the device is carried on an off-centering application, the device comprising:
an acquiring unit 901, configured to acquire content interaction data from an intelligent contract, and output the acquired content interaction data;
a processing unit 902, configured to receive a digital signature issued by a browsing object for content interaction data, where the digital signature is issued by the browsing object after confirming that the browsed and outputted content interaction data has been browsed;
The processing unit 902 is further configured to generate a transaction associated with the content interaction data, and submit the transaction to the blockchain network for uplink processing; carrying a digital signature in the transaction; the method comprises the steps of,
the processing unit 902 is further configured to obtain a release resource based on the transaction on the blockchain after the transaction is successfully uplink; the released resources are obtained by carrying out resource allocation on released resource pools corresponding to the content interaction data based on transactions.
In one implementation, the obtaining unit 901 is configured to, when obtaining content interaction data from an intelligent contract, specifically:
if the using operation of the browsing object for the application function in the decentralizing application is detected, a data acquisition request is generated in response to the using operation; the data acquisition request is for: acquiring content interaction data corresponding to a white list to which the decentralised application belongs;
receiving content interaction data returned by the intelligent contract in response to the data acquisition request;
the white list to which the decentralised application belongs is stored in the intelligent contract; the whitelist includes application identifications of one or more off-centered applications having access to the content interaction data.
In one implementation, the processing unit 902 is further configured to:
The browse object is opened with a use right regarding the application function.
In one implementation, the processing unit 902 is configured to, when receiving a digital signature issued by a browsing object for content interaction data, specifically:
outputting confirmation prompt information in a playing interface of the content interaction data, wherein the confirmation prompt information is used for prompting a browsing object to judge whether the output content interaction data is browsed or not;
and if the signature operation of the browsing object aiming at the confirmation prompt information is detected in the playing interface, receiving the digital signature issued by the browsing object aiming at the content interaction data.
In one implementation, the processing unit 902 is configured to, when generating a transaction associated with content interaction data, specifically:
acquiring N digital signatures to be packaged; the N digital signatures to be packaged comprise digital signatures issued by browsing objects aiming at the content interaction data, and the content interaction data corresponding to the N digital signatures to be packaged are the same or different; n is an integer greater than 1;
detecting whether N digital signatures to be packaged meet transaction generation conditions or not; the transaction generation conditions include any of the following: the number N of the digital signatures to be packaged reaches a number threshold, or the time interval of the time of receiving the digital signature of the browsing object from the latest packaging time is a time period;
And if the transaction generation condition is met, generating the transaction based on the N digital signatures to be packaged.
In one implementation, the processing unit 902 is configured to, after the transaction is successfully uplink, obtain the release resource based on the transaction on the blockchain, specifically:
sending a resource application to the intelligent contract, enabling the intelligent contract to respond to the resource application, calculating a released resource obtained by playing the content interaction data for the decentralized application based on the transaction on the blockchain, and distributing the resource to a released resource pool corresponding to the content interaction data based on the released resource;
and receiving the released resources returned by the intelligent contract.
According to one embodiment of the present application, each unit in the data processing apparatus shown in fig. 9 may be separately or completely combined into one or several additional units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present application. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present application, the data processing apparatus may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of a plurality of units. According to another embodiment of the present application, a rendering processing apparatus as shown in fig. 9 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 2 or 8 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the data processing method of the embodiments of the present application may be implemented. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and run in the above-described computing device through the computer-readable recording medium.
In the embodiment of the application, a decentralizing application in a support blockchain network acquires content interaction data to be put in from an intelligent contract, and receives a digital signature issued by a browsing object aiming at the content interaction data after the content interaction data is displayed, so as to indicate that the browsing object watches the content interaction data. In this way, the de-centralized application may apply for resources to the smart contract so that the smart contract calculates the released resources available to the de-centralized application to expose the content interaction data in response to the resource application. As can be seen, the embodiment of the application realizes the recommendation of the content on the chain through the decentralization application, and fills the gap of the recommendation of the content on the blockchain. In addition, the embodiment of the application supports the batch packing of digital signatures by the decentralizing application as transactions, and compared with the fact that the decentralizing application DAPP submits the digital signature generation transaction of a single browsing object to the blockchain at a time, the cost of the uplink can be saved.
FIG. 10 depicts a block chain network based data processing apparatus according to an exemplary embodiment of the present application; the data processing means may be a computer program (including program code) running in a computer device such as a terminal used for browsing objects; the data processing device may be used to perform some or all of the steps in the method embodiments shown in fig. 5 or 8. Referring to fig. 10, an intelligent contract is deployed in the blockchain network, where the intelligent contract includes content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the device is carried on an off-centering application, the device comprising:
A receiving unit 1001, configured to receive a data acquisition request sent by a decentralizing application;
a processing unit 1002, configured to return content interaction data to the decentralizing application in response to the data acquisition request, so that the decentralizing application outputs the content interaction data and generates a transaction based on a digital signature issued by the browsing object for the content interaction data;
the processing unit 1002 is further configured to receive a transaction submitted by the decentralizing application, and verify the transaction to obtain a target verification result; the method comprises the steps of,
the processing unit 1002 is further configured to perform resource allocation on a released resource pool corresponding to the content interaction data according to the target verification result and the transaction when the resource application sent by the decentralizing application is received.
In one implementation, the transaction carries a digital signature issued by the browsing object for the content interaction data; the processing unit 1002 is configured to verify a transaction, and when a target verification result is obtained, the processing unit is specifically configured to:
performing signature verification processing on the digital signature of the browsing object in the transaction to obtain a first verification result; the method comprises the steps of,
performing identity verification processing on the browsed object to obtain a second verification result;
generating a target verification result of the browsing object based on the first verification result and the second verification result of the browsing object;
If the first verification result indicates that the digital signature verification fails or the second verification result indicates that the identity verification of the browsing object fails, the target verification result is verification failure; if the first verification result indicates that the digital signature verification is successful and the second verification result indicates that the identity verification of the browsing object is successful, the target verification result is verification success.
In one implementation manner, the processing unit 1002 is configured to, when performing authentication processing on the browsing object, obtain a second authentication result, specifically be configured to:
acquiring digital assets of the browsing object in the blockchain network, and generating a second verification result according to the digital assets of the browsing object in the blockchain network; or,
and obtaining the address of the resource client of the browsing object in the blockchain network, and generating a second verification result according to the address of the resource client of the browsing object in the blockchain network.
In one implementation, the smart contract includes a monovalent resource amount of the content interaction data; the processing unit 1002 is configured to, when performing resource allocation on the released resource pool corresponding to the content interaction data according to the target verification result and the transaction, specifically:
acquiring unit price resource quantity of the content interaction data;
Acquiring one or more transactions which are to be subjected to resource allocation and are associated with content interaction data in a blockchain network; and counting the number of digital signatures included in one or more transactions;
calculating a release resource related to the content interaction data according to the unit price resource quantity and the signature number of the content interaction data;
and transferring the released resources of the content interaction data from the released resource pool corresponding to the content interaction data to the resource pool of the decentralizing application.
In one implementation, the content interaction data pertains to a provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
acquiring a verification rule about the application of decentralization; the check rule is set by the provisioning object for the decentralised application;
identity verification is carried out on the decentralised application by adopting a verification rule, so that a verification result is obtained;
and if the verification result is successful, triggering and executing the step of distributing resources to the released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the smart contract further includes one or more members belonging to a verification organization; the content interaction data belongs to the provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
Issuing an identity check request for requesting one or more members to perform identity verification on the de-centralized application;
and if the verification result of the identity verification of the decentralised application by one or more members is that the verification is successful, triggering and executing the step of distributing resources to the release resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the content interaction data pertains to a provisioning object; the processing unit 1002 is further configured to:
receiving an information viewing request of a supply object for content interaction data;
returning relevant information about the content interaction data to the provisioning object in response to the information viewing request;
wherein the related information about the content interaction data includes one or more of: total play amount of the content interaction data in the plurality of decentralised applications; the playing amount of the content interaction data in different decentralizing applications respectively; and signature proportions of the content interaction data in different decentralizing applications respectively.
According to one embodiment of the present application, each unit in the data processing apparatus shown in fig. 10 may be separately or completely combined into one or several additional units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present application. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present application, the data processing apparatus may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of a plurality of units. According to another embodiment of the present application, a rendering processing apparatus as shown in fig. 10 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 5 or 8 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the data processing method of the embodiments of the present application may be implemented. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and run in the above-described computing device through the computer-readable recording medium.
According to the embodiment of the application, the intelligent contract which can support the release and charging of the content interaction data is supported to be compiled, the intelligent contract is deployed in the blockchain network, so that the release and charging of the content interaction data are automatically achieved by triggering the intelligent contract through interaction between the decentralizing application and the blockchain network, the technical defect that the blockchain network does not support content recommendation is overcome, and the safety of the content interaction data is effectively protected depending on the characteristics of the blockchain network, such as non-falsification and decentralization. In addition, the embodiment of the application also supports the intelligent contract to verify the transaction submitted by the decentralizing application after receiving the transaction, so as to verify the digital signature of the browsing object, and verify the authenticity of the identity of the browsing object, thereby avoiding that the decentralizing application utilizes some false users to attempt to acquire benefits from the supply object, namely preventing the decentralizing application from creating blank false users to cheat the resources of the supply object.
Fig. 11 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application. Referring to fig. 11, the computer device includes a processor 1101, a communication interface 1102, and a computer readable storage medium 1103. Wherein the processor 1101, the communication interface 1102, and the computer-readable storage medium 1103 may be connected by a bus or other means. Wherein the communication interface 1102 is used to receive and transmit data. The computer readable storage medium 1103 may be stored in a memory of a computer device, the computer readable storage medium 1103 being for storing a computer program comprising program instructions, the processor 1101 being for executing the program instructions stored by the computer readable storage medium 1103. The processor 1101 (or CPU (Central Processing Unit, central processing unit)) is a computing core and a control core of a computer device adapted to implement one or more instructions, in particular adapted to load and execute one or more instructions to implement a corresponding method flow or a corresponding function.
The embodiments of the present application also provide a computer-readable storage medium (Memory), which is a Memory device in a computer device, for storing programs and data. It is understood that the computer readable storage medium herein may include both built-in storage media in a computer device and extended storage media supported by the computer device. The computer readable storage medium provides storage space that stores a processing system of a computer device. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor 1101. Note that the computer readable storage medium can be either a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory; alternatively, it may be at least one computer-readable storage medium located remotely from the aforementioned processor.
In one embodiment, the computer device may be a terminal used by the browsing object mentioned in the previous embodiment; the computer-readable storage medium having one or more instructions stored therein; loading and executing, by the processor 1101, one or more instructions stored in a computer-readable storage medium to implement the respective steps in the above-described rendering processing method embodiments; in a specific implementation, an intelligent contract is deployed in the blockchain network, wherein the intelligent contract comprises content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the apparatus is loaded on the decentralization application, and one or more instructions in the computer-readable storage media are loaded by the processor 1101 and perform the following steps:
Acquiring content interaction data from the intelligent contract, and outputting the acquired content interaction data;
receiving a digital signature issued by a browsing object aiming at the content interaction data, wherein the digital signature is issued by the browsing object after confirming that the browsing object browses the output content interaction data;
generating a transaction associated with the content interaction data, and submitting the transaction to a blockchain network for uplink processing; carrying a digital signature in the transaction; the method comprises the steps of,
after the transaction is successfully uplink, acquiring a released resource based on the transaction on the blockchain; the released resources are obtained by carrying out resource allocation on released resource pools corresponding to the content interaction data based on transactions.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and when executed to obtain content interaction data from a smart contract, specifically perform the steps of:
if the using operation of the browsing object for the application function in the decentralizing application is detected, a data acquisition request is generated in response to the using operation; the data acquisition request is for: acquiring content interaction data corresponding to a white list to which the decentralised application belongs;
receiving content interaction data returned by the intelligent contract in response to the data acquisition request;
The white list to which the decentralised application belongs is stored in the intelligent contract; the whitelist includes application identifications of one or more off-centered applications having access to the content interaction data.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and further perform the steps of:
the browse object is opened with a use right regarding the application function.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and, when executed, perform the steps of:
outputting confirmation prompt information in a playing interface of the content interaction data, wherein the confirmation prompt information is used for prompting a browsing object to judge whether the output content interaction data is browsed or not;
and if the signature operation of the browsing object aiming at the confirmation prompt information is detected in the playing interface, receiving the digital signature issued by the browsing object aiming at the content interaction data.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and, when executed, perform the steps of:
Acquiring N digital signatures to be packaged; the N digital signatures to be packaged comprise digital signatures issued by browsing objects aiming at the content interaction data, and the content interaction data corresponding to the N digital signatures to be packaged are the same or different; n is an integer greater than 1;
detecting whether N digital signatures to be packaged meet transaction generation conditions or not; the transaction generation conditions include any of the following: the number N of the digital signatures to be packaged reaches a number threshold, or the time interval of the time of receiving the digital signature of the browsing object from the latest packaging time is a time period;
and if the transaction generation condition is met, generating the transaction based on the N digital signatures to be packaged.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and upon successful execution of the uplink on the transaction, the following steps are specifically performed:
sending a resource application to the intelligent contract, enabling the intelligent contract to respond to the resource application, calculating a released resource obtained by playing the content interaction data for the decentralized application based on the transaction on the blockchain, and distributing the resource to a released resource pool corresponding to the content interaction data based on the released resource;
And receiving the released resources returned by the intelligent contract.
In another embodiment, the computer device may be a terminal used by the browsing object mentioned in the previous embodiment; the computer-readable storage medium having one or more instructions stored therein; loading and executing, by the processor 1101, one or more instructions stored in a computer-readable storage medium to implement the respective steps in the above-described rendering processing method embodiments; in a specific implementation, an intelligent contract is deployed in the blockchain network, wherein the intelligent contract comprises content interaction data to be released and a release resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the apparatus is loaded on the decentralization application, and one or more instructions in the computer-readable storage media are loaded by the processor 1101 and perform the following steps:
receiving a data acquisition request sent by a decentralizing application;
returning the content interaction data to the decentralization application in response to the data acquisition request, so that the decentralization application outputs the content interaction data and generates a transaction based on the digital signature issued by the browsing object for the content interaction data;
receiving a transaction submitted by the decentralization application, and verifying the transaction to obtain a target verification result; the method comprises the steps of,
And when a resource application sent by the decentralizing application is received, performing resource allocation on a released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the transaction carries a digital signature issued by the browsing object for the content interaction data; one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and when executed to verify a transaction, result in a target verification, specifically perform the steps of:
performing signature verification processing on the digital signature of the browsing object in the transaction to obtain a first verification result; the method comprises the steps of,
performing identity verification processing on the browsed object to obtain a second verification result;
generating a target verification result of the browsing object based on the first verification result and the second verification result of the browsing object;
if the first verification result indicates that the digital signature verification fails or the second verification result indicates that the identity verification of the browsing object fails, the target verification result is verification failure; if the first verification result indicates that the digital signature verification is successful and the second verification result indicates that the identity verification of the browsing object is successful, the target verification result is verification success.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and when performing an authentication process on a browsing object, a second authentication result is obtained, specifically performing the following steps:
acquiring digital assets of the browsing object in the blockchain network, and generating a second verification result according to the digital assets of the browsing object in the blockchain network; or,
and obtaining the address of the resource client of the browsing object in the blockchain network, and generating a second verification result according to the address of the resource client of the browsing object in the blockchain network.
In one implementation, the smart contract includes a monovalent resource amount of the content interaction data; one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and when executing resource allocation for a drop resource pool corresponding to content interaction data according to the target verification result and the transaction, specifically perform the following steps:
acquiring unit price resource quantity of the content interaction data;
acquiring one or more transactions which are to be subjected to resource allocation and are associated with content interaction data in a blockchain network; and counting the number of digital signatures included in one or more transactions;
Calculating a release resource related to the content interaction data according to the unit price resource quantity and the signature number of the content interaction data;
and transferring the released resources of the content interaction data from the released resource pool corresponding to the content interaction data to the resource pool of the decentralizing application.
In one implementation, the content interaction data pertains to a provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
acquiring a verification rule about the application of decentralization; the check rule is set by the provisioning object for the decentralised application;
identity verification is carried out on the decentralised application by adopting a verification rule, so that a verification result is obtained;
and if the verification result is successful, triggering and executing the step of distributing resources to the released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the smart contract further includes one or more members belonging to a verification organization; the content interaction data belongs to the provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
Issuing an identity check request for requesting one or more members to perform identity verification on the de-centralized application;
and if the verification result of the identity verification of the decentralised application by one or more members is that the verification is successful, triggering and executing the step of distributing resources to the release resource pool corresponding to the content interaction data according to the target verification result and the transaction.
In one implementation, the content interaction data pertains to a provisioning object; one or more instructions in the computer-readable storage medium are loaded by the processor 1101 and further perform the steps of:
receiving an information viewing request of a supply object for content interaction data;
returning relevant information about the content interaction data to the provisioning object in response to the information viewing request;
wherein the related information about the content interaction data includes one or more of: total play amount of the content interaction data in the plurality of decentralised applications; the playing amount of the content interaction data in different decentralizing applications respectively; and signature proportions of the content interaction data in different decentralizing applications respectively.
The data processing scheme provided by the embodiment of the application can fill the blank of the content interaction data throwing and charging technology in the blockchain network, endow the blockchain network with richer service content, and expand the application field of content recommendation (i.e. recommendation about the content interaction data) to a certain extent; in addition, the reliability of delivery and charging of content interaction data on the blockchain is effectively ensured by relying on the advantages of the blockchain technology, such as decentralization, non-falsification and the like.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-described data processing method.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A data processing method based on a blockchain network is characterized in that an intelligent contract is deployed in the blockchain network, wherein the intelligent contract comprises content interaction data to be put in and a put-in resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the method is applied to the decentralizing application, the method comprising:
acquiring the content interaction data from the intelligent contract, and outputting the acquired content interaction data;
receiving a digital signature issued by a browsing object aiming at the content interaction data, wherein the digital signature is issued by the browsing object after confirming that the browsed and output content interaction data;
generating a transaction associated with the content interaction data, and submitting the transaction to the blockchain network for uplink processing; carrying the digital signature in the transaction; the method comprises the steps of,
After the transaction is successfully uplink, acquiring a release resource based on the transaction in the blockchain network; the release resources are obtained by carrying out resource allocation on a release resource pool corresponding to the content interaction data based on the transaction.
2. The method of claim 1, wherein the obtaining the content interaction data from the smart contract comprises:
if a using operation of a browsing object for an application function in the decentralizing application is detected, a data acquisition request is generated in response to the using operation; the data acquisition request is for: acquiring content interaction data corresponding to a white list to which the decentralised application belongs;
receiving the content interaction data returned by the intelligent contract in response to the data acquisition request;
wherein the whitelist to which the decentralised application belongs is stored in the smart contract; the whitelist includes application identifications of one or more de-centralized applications having access to the content interaction data.
3. The method of claim 2, wherein after receiving the digital signature issued by the browsing object for the content interaction data, further comprising:
And opening the use permission about the application function to the browse object.
4. The method of claim 1, wherein receiving a digital signature issued by a browsing object for the content interaction data comprises:
outputting confirmation prompt information in a playing interface of the content interaction data, wherein the confirmation prompt information is used for prompting the browsing object to judge whether the output content interaction data is browsed or not;
and if the signature operation of the browsing object aiming at the confirmation prompt information is detected in the playing interface, receiving a digital signature issued by the browsing object aiming at the content interaction data.
5. The method of claim 1, wherein the generating a transaction associated with the content interaction data comprises:
acquiring N digital signatures to be packaged; the N digital signatures to be packaged comprise digital signatures issued by the browsing objects aiming at the content interaction data, and the content interaction data corresponding to the N digital signatures to be packaged are the same or different; n is an integer greater than 1;
detecting whether the N digital signatures to be packaged meet transaction generation conditions or not; the transaction generation conditions include any one of the following: the number N of the digital signatures to be packaged reaches a number threshold, or the time interval of the time of receiving the digital signature of the browsing object from the latest packaging time is a time period;
And if the transaction generating conditions are met, generating a transaction based on the N digital signatures to be packaged.
6. The method of claim 1, wherein said obtaining a drop resource based on said transaction on said blockchain after said transaction is successful includes:
sending a resource application to the intelligent contract, enabling the intelligent contract to respond to the resource application, calculating a released resource obtained by playing the content interaction data for the decentralised application based on the transaction on the blockchain, and distributing resources to a released resource pool corresponding to the content interaction data based on the released resource;
and receiving the released resources returned by the intelligent contract.
7. A data processing method based on a blockchain network is characterized in that an intelligent contract is deployed in the blockchain network, wherein the intelligent contract comprises content interaction data to be put in and a put-in resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the method is applied to the smart contract, the method comprising:
receiving a data acquisition request sent by the decentralizing application, and responding to the data acquisition request to return content interaction data to the decentralizing application, so that the decentralizing application outputs the content interaction data and generates a transaction based on a digital signature issued by a browsing object for the content interaction data;
Receiving the transaction submitted by the decentralization application, and verifying the transaction to obtain a target verification result; the method comprises the steps of,
and when a resource application sent by the decentralization application is received, performing resource allocation on a released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
8. The method of claim 7, wherein the transaction carries a digital signature issued by the browsing object for the content interaction data; the verifying the transaction to obtain a target verification result comprises the following steps:
performing signature verification processing on the digital signature of the browsing object in the transaction to obtain a first verification result; the method comprises the steps of,
performing identity verification processing on the browsed object to obtain a second verification result;
generating a target verification result of the browsing object based on the first verification result and the second verification result of the browsing object;
if the first verification result indicates that the digital signature verification fails or the second verification result indicates that the identity verification of the browsing object fails, the target verification result is verification failure; if the first verification result indicates that the digital signature verification is successful and the second verification result indicates that the identity verification of the browsing object is successful, the target verification result is verification success.
9. The method of claim 8, wherein the performing an authentication process on the browsed object to obtain a second authentication result comprises:
acquiring digital assets of the browsing object in the blockchain network, and generating a second verification result according to the digital assets of the browsing object in the blockchain network; or,
and obtaining the address of the resource client of the browsing object in the blockchain network, and generating a second verification result according to the address of the resource client of the browsing object in the blockchain network.
10. The method of claim 7, wherein the smart contract includes a monovalent resource amount of the content interaction data; the resource allocation of the released resource pool corresponding to the content interaction data according to the target verification result and the transaction comprises the following steps:
acquiring the unit price resource amount of the content interaction data;
acquiring one or more transactions which are to be subjected to resource allocation in the blockchain network and are associated with the content interaction data; and counting the number of digital signatures included in the one or more transactions;
calculating a put resource related to the content interaction data according to the unit price resource amount of the content interaction data and the signature number;
And transferring the released resources of the content interaction data from the released resource pool corresponding to the content interaction data to the resource pool of the decentralizing application.
11. The method of claim 7 or 10, wherein the content interaction data pertains to a provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
acquiring a verification rule about the decentralised application; the check rule is set by the provisioning object for the decentralised application;
identity verification is carried out on the decentralised application by adopting the verification rule, and a verification result is obtained;
and if the verification result is successful, triggering and executing the step of distributing resources to the released resource pool corresponding to the content interaction data according to the target verification result and the transaction.
12. The method of claim 7 or 11, wherein the smart contract further comprises one or more members belonging to a verification organization; the content interaction data belongs to a provisioning object; when the provisioning object detects that the decentralizing application sends a resource application to the intelligent contract, the verification process of the provisioning object for the decentralizing application comprises the following steps:
Issuing an identity check request for requesting the one or more members to perform identity verification on the de-centralized application;
and if the verification result of the identity verification of the decentralized application by the one or more members is that the verification is successful, triggering and executing the step of distributing resources to the release resource pool corresponding to the content interaction data according to the target verification result and the transaction.
13. The method of claim 7, wherein the content interaction data pertains to a provisioning object; the method further comprises the steps of:
receiving an information viewing request of the provisioning object for the content interaction data;
returning relevant information about the content interaction data to the provisioning object in response to the information viewing request;
wherein the related information about the content interaction data includes one or more of: the total play amount of the content interaction data in a plurality of decentralised applications; the playing amount of the content interaction data in different decentralization applications respectively; and signature proportions of the content interaction data in different decentralizing applications respectively.
14. The data processing device based on the blockchain network is characterized in that an intelligent contract is deployed in the blockchain network, wherein the intelligent contract comprises content interaction data to be put in and a put-in resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the apparatus is carried on the decentralizing application, the apparatus comprising:
the acquisition unit is used for acquiring the content interaction data from the intelligent contract and outputting the acquired content interaction data;
the processing unit is used for receiving a digital signature issued by a browsing object aiming at the content interaction data, wherein the digital signature is issued by the browsing object after confirming that the browsed and output content interaction data is browsed;
the processing unit is further used for generating a transaction associated with the content interaction data and submitting the transaction to the blockchain network for uplink processing; carrying the digital signature in the transaction; the method comprises the steps of,
the processing unit is further used for acquiring release resources based on the transaction on the blockchain after the transaction is successfully uplink; the release resources are obtained by carrying out resource allocation on a release resource pool corresponding to the content interaction data based on the transaction.
15. The data processing device based on the blockchain network is characterized in that an intelligent contract is deployed in the blockchain network, wherein the intelligent contract comprises content interaction data to be put in and a put-in resource pool corresponding to the content interaction data; the blockchain network is accessed through a decentralized application; the device is equipped with the smart contract, and the device comprises:
the receiving unit is used for receiving a data acquisition request sent by the decentralizing application;
the processing unit is used for responding to the data acquisition request and returning content interaction data to the decentralizing application, so that the decentralizing application outputs the content interaction data and generates a transaction based on a digital signature issued by a browsing object for the content interaction data;
the processing unit is further used for receiving the transaction submitted by the decentralization application and verifying the transaction to obtain a target verification result; the method comprises the steps of,
and the processing unit is further used for distributing resources to a released resource pool corresponding to the content interaction data according to the target verification result and the transaction when the resource application sent by the decentralization application is received.
16. A computer device, comprising:
a processor adapted to execute a computer program;
a computer readable storage medium having a computer program stored therein, which when executed by the processor, implements the method of any of claims 1-6 or implements the method of any of claims 7-13.
17. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor and to perform the method according to any of claims 1-6 or to perform the method according to any of claims 7-13.
18. A computer program product comprising computer instructions which, when executed by a processor, implement the method of any one of claims 1-6 or the method of any one of claims 7-13.
CN202311387567.4A 2023-10-24 2023-10-24 Data processing method, device, equipment, medium and program product Pending CN117436876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311387567.4A CN117436876A (en) 2023-10-24 2023-10-24 Data processing method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311387567.4A CN117436876A (en) 2023-10-24 2023-10-24 Data processing method, device, equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN117436876A true CN117436876A (en) 2024-01-23

Family

ID=89547446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311387567.4A Pending CN117436876A (en) 2023-10-24 2023-10-24 Data processing method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN117436876A (en)

Similar Documents

Publication Publication Date Title
US11599901B2 (en) Methods and system for serving targeted advertisements to a consumer device
US11676142B2 (en) Blockchain architecture, system, method and device for automated cybersecurity and data privacy law compliance with proprietary off-chain storage mechanism
JP6940212B1 (en) Application linkage method, computer program and application linkage system
CN110599181B (en) Data processing method, device and equipment based on block chain and storage medium
US9710794B2 (en) Application of dynamic tokens
KR101250871B1 (en) Distributing premium content with advertising sponsorship
WO2019127532A1 (en) Blockchain-based crowdfunding information processing method and device, storage medium and electronic device
CN110557403B (en) Resource allocation method and device based on block chain, storage medium and node equipment
CN110796449B (en) Transaction processing method, system, medium and computing device
WO2016184298A1 (en) Application promotion method, server, terminal and storage medium
CN111884807B (en) Article reservation method, apparatus, device and medium based on block chain
CN110675149A (en) Data processing method, device and equipment based on block chain and storage medium
WO2007127064A2 (en) Service providing an electronic market for the distribution of promotional material using software installation packages
US20220391887A1 (en) Systems and Methods for Maintenance of NFT Assets
US11468437B2 (en) Method and system for license server synchronization
CN112001713B (en) Block chain system and request processing method and device
CN117010894A (en) Resource management method and device based on block chain and electronic equipment
US20080312943A1 (en) Method And System For Data Product License-Modification Coupons
US20230043223A1 (en) Methods for Securely Adding Data to a Blockchain Using Dynamic Time Quanta and Version Authentication
CN117436876A (en) Data processing method, device, equipment, medium and program product
TW201945989A (en) System of smart ticket, method for issuing ticket and computer-readable storage device
WO2021125107A1 (en) Control method, device, and program
CN115250354A (en) Resource allocation method, device, equipment and storage medium based on block chain network
CN111738861A (en) Method and device for carrying out rights and interests accumulation through block chain
CN102934135A (en) Method and apparatus for providing a service in accordance with the viewing of an advertisement using drm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication