CN111008900A - Data distribution method and device based on intelligent contract - Google Patents

Data distribution method and device based on intelligent contract Download PDF

Info

Publication number
CN111008900A
CN111008900A CN201911240354.2A CN201911240354A CN111008900A CN 111008900 A CN111008900 A CN 111008900A CN 201911240354 A CN201911240354 A CN 201911240354A CN 111008900 A CN111008900 A CN 111008900A
Authority
CN
China
Prior art keywords
distribution
data
allocation
transferred
account
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
CN201911240354.2A
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 CN201911240354.2A priority Critical patent/CN111008900A/en
Publication of CN111008900A publication Critical patent/CN111008900A/en
Pending legal-status Critical Current

Links

Images

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application provides a data distribution method and a device based on an intelligent contract, and the method comprises the following steps: acquiring a data volume to be transferred associated with a target work, and adding the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work; when the system time information is detected to meet the distribution time node in the intelligent contract, acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account; and acquiring a distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining a distribution data volume corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data volume to a target account of the copyright distribution object. By adopting the embodiment of the application, the data distribution efficiency can be improved.

Description

Data distribution method and device based on intelligent contract
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a data distribution method and apparatus based on an intelligent contract.
Background
The copyright income clearing refers to the process of transferring all the income of the copyright works to an account of a clearing object according to a preset clearing proportion.
In the existing copyright profit clearing process, profits of copyright works are counted at intervals, the profits obtained through counting are manually distributed according to a clearing agreement signed by a plurality of clearing objects at the beginning, profits corresponding to each clearing object are obtained, and then the profits are transferred to accounts of the clearing objects by personnel of relevant organizations. When the number of the liquidation objects corresponding to the copyright data is large or the statistical period of the copyright revenue is frequent, the manual operation is complicated, and the distribution efficiency of the copyright revenue is low.
Disclosure of Invention
The embodiment of the application provides a data distribution method and device based on an intelligent contract, and the data distribution efficiency can be improved.
An aspect of the present application provides a data distribution method based on an intelligent contract, including:
acquiring a data volume to be transferred associated with a target work, and adding the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
when the system time information is detected to meet the distribution time node in the intelligent contract, acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account;
and acquiring a distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining a distribution data volume corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data volume to a target account of the copyright distribution object.
Wherein, the method also comprises:
acquiring an uplink request carrying copyright allocation data associated with a target work, generating an allocation block according to the copyright allocation data, and adding the allocation block to an allocation block chain; the rights allocation data includes an allocation agreement between rights allocation objects associated with the target work;
and setting an allocation time period and an allocation proportion corresponding to the copyright allocation object in the intelligent contract according to the allocation protocol in the allocation block chain.
Wherein, the above-mentioned data volume to be shifted that obtains and is correlated with target work adds the data volume to be shifted to the trusteeship account, includes:
receiving transaction data associated with the target work, and performing transaction processing on the transaction data to obtain a transaction processing result corresponding to the transaction data;
and acquiring the data volume to be transferred associated with the target work according to the transaction processing result, and adding the data volume to be transferred to the escrow account.
Wherein, when it is detected that the system time information satisfies the allocation time node in the intelligent contract, acquiring the total amount of data to be transferred in the allocation time period to which the system time information belongs from the escrow account includes:
when detecting that the system time information meets the distribution time node, determining a distribution time period corresponding to the system time information as a target distribution period;
and acquiring all data volumes to be transferred in the target distribution period from the escrow account, and accumulating to obtain the total data volume to be transferred.
Wherein, the method also comprises:
when receiving a distribution verification request aiming at a copyright distribution object sent by a request terminal, determining a target work related to the copyright distribution object according to the distribution verification request, and acquiring a distribution block related to the target work from a distribution block chain;
and generating a data verification result corresponding to the copyright allocation object according to the allocation protocol contained in the allocation block and the allocation data volume carried by the allocation query request, and sending the data verification result to the request terminal.
The generating of the data verification result corresponding to the rights allocation object according to the allocation protocol included in the allocation block and the allocation data amount carried by the allocation query request includes:
acquiring a distribution protocol associated with the target work from the distribution block, and redistributing the total amount of data to be transferred corresponding to the target work to obtain the amount of data to be processed based on the distribution time period recorded in the distribution protocol and the distribution proportion corresponding to the copyright distribution object;
when the data volume to be processed is the same as the distribution data volume, determining the distribution data volume as a data valid state, and generating a data verification result of the copyright distribution object based on the data valid state;
and when the data volume to be processed is different from the distribution data volume, determining the distribution data volume as a data invalid state, and generating a data verification result of the copyright distribution object based on the data invalid state.
Wherein, the generating the distribution block according to the copyright distribution data and adding the distribution block to the distribution block chain includes:
determining a data sending object corresponding to the copyright allocation data, and checking the copyright allocation data based on a public key corresponding to the data sending object;
and packaging the copyright distribution data passing the verification into a distribution block, verifying the distribution block according to a consensus mechanism, and adding the distribution block passing the verification to a distribution block chain.
An aspect of an embodiment of the present application provides a data distribution apparatus based on an intelligent contract, including:
the acquisition module is used for acquiring the data volume to be transferred associated with the target work and adding the data volume to be transferred to the escrow account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
the detection module is used for acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account when the system time information is detected to meet the distribution time node in the intelligent contract;
and the transfer module is used for acquiring the distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining the distribution data volume corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data volume to the target account of the copyright distribution object.
Wherein, the device still includes:
the uplink module is used for acquiring an uplink request carrying copyright distribution data associated with a target work, generating a distribution block according to the copyright distribution data and adding the distribution block to a distribution block chain; the rights allocation data includes an allocation agreement between rights allocation objects associated with the target work;
and the setting module is used for setting a distribution time period and a distribution proportion corresponding to the copyright distribution object in the intelligent contract according to the distribution protocol in the distribution block chain.
Wherein, the acquisition module includes:
the data processing unit is used for receiving transaction data associated with the target work, and performing transaction processing on the transaction data to obtain a transaction processing result corresponding to the transaction data;
and the adding unit is used for acquiring the data volume to be transferred associated with the target work according to the transaction processing result and adding the data volume to be transferred to the escrow account.
Wherein, the detection module includes:
the system comprises a period determining unit, a time node allocating unit and a time node allocating unit, wherein the period determining unit is used for determining an allocation time period corresponding to system time information as a target allocation period when the system time information is detected to meet the allocation time node;
and the accumulation unit is used for acquiring all the data volume to be transferred in the target distribution period from the escrow account and accumulating the data volume to be transferred to obtain the total data volume to be transferred.
Wherein, the device still includes:
the verification request receiving module is used for determining a target work related to the copyright distribution object according to the distribution verification request and acquiring a distribution block related to the target work from a distribution block chain when the distribution verification request aiming at the copyright distribution object sent by the request terminal is received;
and the verification module is used for generating a data verification result corresponding to the copyright allocation object according to the allocation protocol contained in the allocation block and the allocation data volume carried by the allocation query request, and sending the data verification result to the request terminal.
Wherein, the verification module includes:
the distribution unit is used for acquiring a distribution protocol associated with the target work from the distribution block, and redistributing the total amount of data to be transferred corresponding to the target work to obtain the amount of data to be processed based on the distribution time period recorded in the distribution protocol and the distribution proportion corresponding to the copyright distribution object;
the judging unit is used for determining the distribution data volume as a data valid state when the data volume to be processed is the same as the distribution data volume, and generating a data verification result of the copyright distribution object based on the data valid state;
the judging unit is further configured to determine the allocation data amount as a data invalid state when the amount of the data to be processed is different from the allocation data amount, and generate a data verification result of the rights allocation object based on the data invalid state.
Wherein, the cochain module includes:
the signature verification unit is used for determining a data sending object corresponding to the copyright distribution data and verifying the signature of the copyright distribution data based on a public key corresponding to the data sending object;
and the consensus unit is used for packaging the copyright allocation data passing the verification into the allocation blocks, verifying the allocation blocks according to a consensus mechanism, and adding the verified allocation blocks into the allocation block chain.
An aspect of the embodiments of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the method in the aspect of the embodiments of the present application.
An aspect of the embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions that, when executed by a processor, perform the steps of the method as in an aspect of the embodiments of the present application.
According to the embodiment of the application, the data volume to be transferred associated with the target work is added to the hosting account, when the fact that the system time information meets the distribution time node in the intelligent contract is detected, the total data volume to be transferred in the distribution time period to which the system time belongs is obtained from the hosting account, the total data volume to be transferred is distributed according to the distribution proportion corresponding to the copyright distribution object in the intelligent contract, the distribution data volume corresponding to the copyright distribution object is obtained, and the distribution data volume is transferred to the target account of the copyright distribution object. Therefore, by setting the distribution time and the distribution proportion aiming at the copyright distribution object in the intelligent contract, when the distribution time is up, the digital assets in the hosting account can be distributed and the distributed assets are transferred to the account of the copyright distribution object based on the distribution proportion in the intelligent contract, the digital assets in the hosting account do not need to be artificially counted and distributed, and the distribution efficiency of data can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a block diagram of a data distribution system provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a data distribution scenario provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of a data distribution method based on intelligent contracts according to an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of another intelligent contract-based data distribution method provided in the embodiments of the present application;
FIG. 5 is a schematic diagram of a verification scenario for distributing data amount according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data distribution device based on an intelligent contract according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission (P2P transmission), a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized database; the blockchain can be composed of a plurality of serial transaction records (also called blocks) which are connected in series by cryptography and protect the contents, and the distributed accounts connected in series by the blockchain can effectively record the transaction by multiple parties and can permanently check the transaction (can not be tampered). The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
An intelligent contract may be understood as a computer program that runs on a distributed ledger (i.e., blockchain) that presets rules, has status, conditional responses, can encapsulate, validate, execute complex behaviors of distributed nodes, and performs information exchange, value transfer, and asset management. Based on a distributed architecture, a consensus algorithm and the like of a block chain, the intelligent contracts allow users who are not trusted to finish transactions without any trusted intermediary or authority of a third party, and meanwhile, the digital intelligent contracts can be flexibly embedded into various tangible or intangible assets, transactions and data, so that active or passive assets, information management and control are realized, and programmable intelligent assets, systems and the like are gradually constructed.
Fig. 1 is a block diagram of a data distribution system according to an embodiment of the present application. As shown in fig. 1, the data distribution system may include nodes for running a blockchain network, terminal devices 10a, 10b, and a hosting server 10 c. An intelligent contract can be deployed in the block chain node, the data volume (namely digital assets) corresponding to the copyright works is distributed based on the distribution proportion in the intelligent contract, the distribution data volume corresponding to each distribution object can be obtained, and the distribution data volume is transferred to the account corresponding to each distribution object; the blockchain node can submit the data distribution result to a shared account book (or called a distributed account book, a shared account book, etc.); the intelligent contract is provided with distribution time and distribution proportion corresponding to distribution objects. The terminal device 10a and the terminal device 10B refer to terminal devices corresponding to allocation objects (for example, the terminal device 10a is a terminal device corresponding to the allocation object a, and the terminal device 10B is a terminal device corresponding to the allocation object B), when the allocation object a disagrees with the allocation data amount transferred by the block link point, the terminal device 10a corresponding to the allocation object a may send an allocation verification request to the block link network, and the block link point may recalculate the allocation data amount corresponding to the allocation object a according to the allocation verification request, and return the calculated result to the terminal device 10a, and may submit the recalculated result to the shared account book. The hosting server 10c is configured to store a data amount corresponding to the copyrighted work, connect to a blockchain network, and provide a hosting account interface for the blockchain link point, so that the intelligent contract in the blockchain node obtains the data amount from the hosting account of the hosting server 10c based on the hosting account interface.
The terminal devices 10a and 10b may each include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart band, etc.), and the like.
Please refer to fig. 2, which is a schematic diagram of a data distribution scenario provided in the embodiment of the present application. The copyright revenue refers to all revenue (including fund, flow, virtual assets and the like) obtained by the copyright works, and the copyright revenue liquidation refers to dividing the revenue obtained by the copyright works according to a distribution proportion and transferring the divided revenue to accounts of copyright distribution objects respectively. Taking a film copyright profit clearing scene as an example, the data distribution scheme provided by the present application is specifically described, the copyright profit at this time refers to a general ticket house of the film, and the copyright distribution object corresponding to the film may include: the distribution method includes distributing objects 1 (such as a distributor), distributing objects 2 (such as a cinema), distributing objects 3 (such as a distributor) and the like, and a distribution agreement can be signed through negotiation among the copyright distributing objects, the distribution agreement can include information such as distribution proportion corresponding to each copyright distributing object and distribution time of copyright revenue, for example, the distribution proportion corresponding to the distributing object 1 is 38%, the distribution proportion corresponding to the distributing object 2 is 50%, the distribution proportion corresponding to the distributing object 3 is 7%, and the like, the distribution time can be distributed once every 10 days, namely, 10 days is a distribution time period, and when the copyright revenue is distributed once in the number 1 month, the next revenue distribution time is the number 1 month, 11. After each copyright allocation object signs an allocation protocol, the allocation protocol can be submitted to the blockchain network and be packed into blocks by the blockchain nodes for uplink. In the block chain, an intelligent contract may be deployed, in which the distribution time of the copyright revenue and the distribution ratio corresponding to each copyright allocation object may be set, and the distribution time and the distribution ratio set in the intelligent contract are determined according to the distribution protocol. As shown in fig. 2, the node 20a is a blockchain node in a blockchain network, and the node 20a may perform an intelligent contract to distribute copyright revenue. When the allocation time is not reached, the revenue of the movie may be temporarily stored in an escrow account, where the escrow account may refer to an account opened at a bank and managed by the escrow server 10c, when the revenue of the movie is transferred into the escrow account, the digital assets in the escrow account may change, and the escrow server 10c may record the revenue value of each transfer, and the transfer time point, for example, the status record table 20b of the escrow account includes: the escrow account transfers to a profit value of 1 at time point 1, a revenue value of 2 at time point 2, a profit value of 3 at time point 3, a profit value of 4 at time point 4, etc.
The node 20a may obtain the system time information in real time, and when the system time information meets the allocation time node, that is, the allocation time of the copyright revenue is reached, the node 20a may call a managed account interface in the intelligent contract, and obtain all revenue in the allocation time period to which the system time information belongs from the managed account, where if the allocation time period is 10 days and the current system time information is No. 10/1 in 2019, the allocation time period to which the current system time information belongs is 2019/21 in 2019 (that is, the last allocation time node) -2019/10/1 in 2019 (the current allocation time node). Summarizing income values of transfer time points in the hosting account, which belong to the distribution time period of the system time information, to obtain total income in the distribution time period of the system time information, if it is detected from the state record table 20b that the transfer time points corresponding to the income values 1 to 4 all belong to the distribution time period, accumulating the income values 1, 2, 3 and 4 to obtain the total income value in the distribution time period of the system time information, distributing the counted total income value according to the distribution example information 20c in the intelligent contract to obtain the distribution income value corresponding to each copyright distribution object, and transferring assets corresponding to the distribution income values from the hosting account to the accounts of the distribution objects. For example, if the total profit value in the distribution time period to which the system time information belongs is 100 yuan, it may be determined according to the distribution proportion information 20c that the distribution profit value corresponding to the distribution object 1 is 38 yuan, the distribution profit value corresponding to the distribution object 2 is 50 yuan, and the distribution profit value corresponding to the distribution object 3 is 7 yuan; furthermore, 38 yuan may be transferred from the managed account to the account 1 corresponding to the allocation object 1, 50 yuan may be transferred to the account 2 corresponding to the allocation object 2, and 7 yuan may be transferred to the account 3 corresponding to the allocation object 3.
Fig. 3 is a schematic flow chart of a data distribution method based on an intelligent contract according to an embodiment of the present application. As shown in fig. 3, the method may include:
step S101, acquiring a data volume to be transferred associated with a target work, and adding the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
specifically, after receiving transaction data for a target work submitted by a client, a blockchain node may process the transaction data, obtain a transfer data volume associated with the target work according to a transaction data processing result, and add the data volume to be transferred to a hosting account, where the hosting account may be used to store all data volumes to be transferred of the target work, the hosting account may be a hosting account of a bank, the data volume to be transferred may be obtained from the hosting account through a hosting account interface in an intelligent contract of a blockchain, and the data volume to be transferred may include digital assets, virtual assets, and the like, which is not specifically limited herein. Optionally, the escrow account may also be an on-chain virtual coin account, and the escrow account at this time may store a virtual coin with the value equal to the data to be transferred corresponding to the target work.
The target works can be multimedia copyright data, such as movie and television works, audio works, pictorial works and the like. Taking the target work as a movie, when the movie is shown in each large cinema, the user can purchase movie tickets at the cinema or ticket purchasing platform to go to the cinema to watch the movie; when a user purchases a movie ticket on the ticket purchasing platform, a client corresponding to the ticket purchasing platform may upload transaction data to the blockchain network, where the transaction data may be used to instruct the blockchain network to deduct an amount corresponding to a movie fare from an account of the user, and transfer the amount to an account specified by the ticket purchasing platform (e.g., a escrow account corresponding to the movie). After the transaction data is successfully processed, the block link points can add the amount corresponding to the movie fare to the escrow account. For example, the movie fare is 50 yuan, and the transaction data uploaded to the blockchain network by the client corresponding to the ticket buying platform may include: the account information of the user, the account information designated by the ticket buying platform, the purchased movie tickets and the transaction contents are transferred from the account of the user to the account designated by the ticket buying platform, and after the blockchain network receives the transaction data, the validity of the transaction data can be verified, for example, whether a submitter of the transaction data is a client corresponding to the ticket buying platform or not is detected, whether the balance in the account of the user is enough to complete the transaction or not is detected. When the transaction data is valid data, the block chain network can successfully complete the transaction, and the movie fare in the transaction data is the data volume to be transferred corresponding to the movie and can be stored in the escrow account corresponding to the movie; when the transaction data is invalid data, the transaction cannot be successfully completed, that is, in the transaction, the block link point cannot acquire the data volume to be transferred. It should be appreciated that the amount of movie tickets paid for each user to purchase the movie tickets may be added as a transfer-with-data amount to the corresponding escrow account for the movie.
Step S102, when the system time information is detected to meet the distribution time node in the intelligent contract, acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account;
specifically, before the block chain node performs step S102, it may acquire copyright allocation data associated with the target work, generate an allocation block according to the copyright allocation data, and add the allocation block to the allocation block chain, where the copyright allocation data includes an allocation protocol between copyright allocation objects associated with the target work, and set an allocation time period and an allocation ratio corresponding to the copyright allocation objects in the intelligent contract according to the allocation protocol stored in the allocation block chain. The distribution block chain is used for recording distribution data corresponding to all works respectively.
It should be understood that the copyright allocation object corresponding to the target work may be agreed upon and agreed upon to have a uniform opinion, and then a distribution agreement may be made, which may include: copyright information, copyright distribution object information, distribution proportion and distribution time and other information corresponding to the copyright distribution object respectively; after the copyright allocation object signs an allocation protocol, a requester (which may be a client corresponding to the copyright allocation object or a client corresponding to a work copyright holder) may create a key pair by using an asymmetric encryption algorithm; asymmetric encryption algorithms herein may include, but are not limited to: the Elgamal algorithm (an asymmetric encryption algorithm), the Rabin algorithm (an asymmetric encryption algorithm), the Diffie-Hellman algorithm (an asymmetric encryption algorithm), the ECC algorithm (elliptic curve encryption algorithm). The key pair may include a public key and a private key, and the private key is used for the requesting party to digitally sign the data uploaded to the blockchain network. After creating the key pair, the requestor may upload the public key of the key pair to the blockchain network, while the private key is kept by the requestor. It should be noted that the public keys in the blockchain network are unique, and one public key corresponds to one requester.
After the public key is uploaded to the blockchain network by the requester, the requester is indicated to finish identity registration in the blockchain network, and the requester has the qualification of data submission and information viewing in the blockchain network at the moment. Therefore, the requester can upload the distribution protocol as copyright distribution data of the target work to the blockchain network. After receiving the copyright allocation data uploaded by the requester, the block chain node can check and sign the copyright allocation data according to a public key corresponding to the requester, package the copyright allocation data passing the check and sign into an allocation block, verify the allocation block according to a consensus mechanism, and add the allocation block passing the verification into an allocation block chain.
The process of checking the copyright distribution data by the block link points specifically comprises the following steps: the block chain node can decrypt the digital signature carried by the copyright allocation data according to the public key corresponding to the requester to obtain first abstract information corresponding to the digital signature, and further perform hash operation on the received copyright allocation data according to a hash algorithm to generate second abstract information corresponding to the received copyright allocation data, if the first abstract information is detected to be the same as the second abstract information, the copyright allocation data passes verification, the uplink request is determined to be legal, the allocation block can be generated according to the copyright allocation data, and the agreed allocation block is added to the allocation block chain. If the digital signature carried in the copyright allocation data received by the block chain node is not the digital signature of the requester, that is, the digital signature in the copyright allocation data is generated by using a false private key, the block chain node directly displays that the decryption fails when decrypting by using a real public key. The first summary information is summary information of copyright allocation data obtained by a requester through Hash operation calculation, the second summary information is summary information of copyright allocation data actually received through block link points through Hash operation calculation, and Hash algorithms used by the requester and the block link nodes are the same. The hash algorithm can compress data or message into summary, not only can fix the format of data, but also can make the data smaller, and the hash algorithm can include but is not limited to SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512. Taking the SHA-256 algorithm as an example, the SHA-256 algorithm can generate a 256-bit hash value for any size of data, and can generate different hash values for different data.
The process of identifying the distribution block by the block link point specifically comprises the following steps: the block link node may broadcast the generated allocation block in the block chain network, that is, the allocation block is sent to the other nodes in the block chain network in a point-to-point transmission manner, after the other nodes verify the allocation block, the verification result may be broadcast in the block chain network, when a node exceeding a number threshold (the number threshold is associated with a common identification mechanism, and different common identification mechanisms may correspond to different number thresholds, such as 51%) in the block chain network passes through the allocation block, it indicates that the allocation block passes the common identification, and may add the allocation block to the allocation block chain for formal uplink. Wherein, the consensus algorithm includes but is not limited to: proof of Work (PoW), Proof of rights (PoS), Proof of Work and Proof of rights (PoW + PoS), Proof of equity authorization (Delegated Proof of stamp, DPoS), Practical bypath Fault-tolerant algorithm (PBFT), and Rayleigh Consensus Protocol (RCP).
The block chain node may set the allocation time period and the allocation proportion corresponding to the rights allocation object in the intelligent contract according to the allocation protocol stored in the allocation block chain. The intelligent contract refers to a computer program code written by a developer by using an intelligent contract high-level language, the intelligent contract written by the high-level language can be compiled into byte codes in an Ethernet workshop virtual machine of the block chain nodes through a compiler, and the Ethernet workshop virtual machine can be used for interpreting and executing the byte codes in the intelligent contract. The intelligent contract high-level languages include, but are not limited to, identity (an intelligent contract programming language), Serpent (an intelligent contract programming language), and LLL (an intelligent contract programming language), for example, a developer may write an intelligent contract using identity, and use a compiler to compile the intelligent contract written by identity into an ethernet virtual machine byte code, and then submit the compiled ethernet virtual machine byte code to a blockchain network along with transaction data and uplink the ethernet virtual machine byte code. A plurality of contract methods such as a method of setting distribution time, a method of setting distribution proportion, a method of setting distribution object, and the like may be included in the smart contract. The block chain node may obtain a public key corresponding to the rights allocation object in the allocation protocol (a client corresponding to the rights allocation object may create a key pair in advance and upload the public key in the key pair to the block chain network), and transmit the public key corresponding to the rights allocation object, the allocation time in the allocation protocol, and the allocation proportion corresponding to the rights allocation object as parameters into the intelligent contract, thereby completing the setting of the allocation time period and the allocation proportion in the intelligent contract.
After the allocation time period and the allocation proportion corresponding to the copyright allocation object are set in the intelligent contract, if the block link point detects that the system time information meets the allocation time node in the intelligent contract, the allocation time period corresponding to the system time information can be determined as a target allocation period, a hosting account interface in the intelligent contract is called, all data volumes to be transferred in the target allocation period are obtained from the hosting account and accumulated, and the total data volume to be transferred for the target work in the target allocation period is obtained. For example, if the distribution time period set in the intelligent contract is one month, 8:00 am # 1 of each month is a distribution time node, and when the system time information is 8:00 am # 1 of 10 months in 2019, the system time information satisfies the distribution time node in the intelligent contract, and the target distribution time period corresponding to the system time information is: the block link points can call a hosting account interface in an intelligent contract from 2019, 9/month, 1/day 8:00 to 2019, 10/month, 1/day 8:00, the data volume to be transferred within the time range from 2019, 9/month, 1/day 8:00 to 2019, 10/month, 1/day 8:00 is obtained from the hosting account, all the data volume to be transferred within the target distribution time period are accumulated, and the total data volume to be transferred for the target work within the target distribution time period can be obtained.
Step S103, acquiring a distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining a distribution data amount corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data amount to a target account of the copyright distribution object.
Specifically, the block link point may obtain a distribution ratio corresponding to the rights distribution object from the intelligent contract, multiply the total amount of data to be transferred by the distribution ratio corresponding to the rights distribution object to obtain a distribution data amount corresponding to the rights distribution object, and transfer the distribution data amount to a target account of the rights distribution object through the intelligent contract, where the target account may be a client corresponding to the rights distribution object in the intelligent contract. For example, the copyright allocation object corresponding to the target work includes: allocation object 1, allocation object 2; the distribution ratio corresponding to the distribution object 1 is 40%, and the distribution ratio corresponding to the distribution object 2 is 60%; when the total amount of data to be transferred in the target allocation period is a, the allocation data amount corresponding to the allocation object 1 is: a × 40%, the allocation data amount corresponding to the allocation object 2 is: a × 60%, and then a × 40% of the data amount may be transferred from the managed account to the account of allocation object 1, and a × 60% of the data amount may be transferred from the managed account to the account of allocation object 2.
According to the embodiment of the application, the data volume to be transferred associated with the target work is added to the hosting account, when the fact that the system time information meets the distribution time node in the intelligent contract is detected, the total data volume to be transferred in the distribution time period to which the system time belongs is obtained from the hosting account, the total data volume to be transferred is distributed according to the distribution proportion corresponding to the copyright distribution object in the intelligent contract, the distribution data volume corresponding to the copyright distribution object is obtained, and the distribution data volume is transferred to the target account of the copyright distribution object. Therefore, by setting the distribution time and the distribution proportion aiming at the copyright distribution object in the intelligent contract, when the distribution time is up, the digital assets in the hosting account can be distributed and the distributed assets are transferred to the account of the copyright distribution object based on the distribution proportion in the intelligent contract, the digital assets in the hosting account do not need to be artificially counted and distributed, and the distribution efficiency of data can be improved.
Fig. 4 is a schematic flow chart of another intelligent contract-based data distribution method according to an embodiment of the present application. As shown in fig. 4, the method may include:
step S201, acquiring a data volume to be transferred associated with a target work, and adding the data volume to be transferred to a managed account;
step S202, when detecting that the system time information meets the distribution time node in the intelligent contract, acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account;
step S203, acquiring a distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining a distribution data amount corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data amount to a target account of the copyright distribution object;
the specific implementation process of steps S201 to S203 may refer to steps S101 to S103 in the embodiment corresponding to fig. 3, which is not described herein again.
Step S204, when receiving a distribution verification request aiming at the copyright distribution object sent by a request terminal, determining a target work related to the copyright distribution object according to the distribution verification request, and acquiring a distribution block related to the target work from a distribution block chain;
specifically, after the block link point transfers the allocation data volume to the account of the copyright allocation object according to the intelligent contract, if the copyright allocation object disagrees with the allocation data volume transferred by the block link point, if the amount of the allocation data volume is deemed to be inaccurate, the copyright allocation object may send an allocation verification request for the target work to the block link network through the request terminal. After the block link node receives the distribution verification request sent by the request terminal, the copyright distribution object and the related information (such as the name of the work, the author information of the work, and the like) of the target work can be determined according to the distribution verification request, the related information of the target work is used as a parameter, and the distribution block associated with the target work is obtained from the distribution block chain.
Step S205, generating a data verification result corresponding to the rights assignment object according to the assignment protocol included in the assignment block and the assignment data amount carried in the assignment query request, and sending the data verification result to the requesting terminal.
Specifically, the block link point may obtain a distribution protocol stored in the distribution block, read a distribution time period in the distribution protocol and a distribution proportion corresponding to the copyright distribution object, determine a total amount of data to be transferred in a target distribution period from the escrow account, re-determine a data amount corresponding to the copyright distribution object according to the distribution proportion and the total amount of data to be transferred in the distribution protocol, and call the re-calculated data amount as a data amount to be processed; if the amount of data to be processed is the same as the amount of distribution data actually received by the rights distribution object, determining the amount of distribution data actually received by the rights distribution object as a valid data state, that is, the amount of distribution data is not in error, and generating a data verification result corresponding to the rights distribution object according to the valid data state, for example, the data verification result in the valid data state may be: the distribution data volume is verified, and no error occurs; if the data volume to be processed is different from the distributed data volume actually received by the rights distribution object, determining the distributed data volume actually received by the rights distribution object as a data invalid state, that is, the distributed data volume is wrong, and generating a data verification result corresponding to the rights distribution object according to the data invalid state, for example, the data verification result in the data invalid state may be: the allocation data amount is erroneous. When the amount of distribution data corresponding to the rights distribution object is incorrect, the blockchain may re-transfer the data in the account of the rights distribution object, for example, by re-calculating, it is determined that 10 more bits are transferred in the account of the rights distribution object a, and 10 less bits are transferred in the account of the rights distribution object B, so that the blockchain link point may transfer 10 bits from the account of the rights distribution object a to the account of the rights distribution object B. In other words, since the data in the block chain has non-tamper-resistance, when the copyright allocation object has dispute about the allocation data amount, it can be verified whether there is a problem in the allocation data amount corresponding to the copyright allocation object according to the allocation protocol stored in the allocation block chain.
Please refer to fig. 5, which is a schematic diagram of a verification scenario for allocating data amount according to an embodiment of the present application. When the copyright allocation object disagrees with the allocation data volume transferred in the account, the request terminal can send an allocation verification request to the blockchain network so as to apply verification of the authenticity of the allocation data to the blockchain network. As shown in fig. 5, the requesting terminal 30a may send an allocation verification request to the tile link point 30b, where the allocation verification request may carry information such as a rights allocation object (e.g., object c) initiating the verification request, an allocation data amount (e.g., the allocation data amount is M) transferred to an account, and a target work (e.g., work b), that is, the allocation verification request is an allocation verification request initiated by the object c for the work bb. After receiving the allocation verification request sent by the request terminal 30a, the blockchain node 30b may determine the total amount of transfer data corresponding to the work b from the escrow account 30c, and a system to which the escrow account 30c belongs may record each data amount transferred to the escrow account 30c and transfer time information corresponding to each data amount, for example, the data amount 1 is transferred to the escrow account 30c at time point 1, the data amount 2 is transferred to the escrow account 30c at time point 2, and the like; according to the data recorded by the system to which the managed account 30c belongs, the total amount of the transfer data corresponding to the work b can be determined to be N.
The block chain node 30b may further obtain, from the distribution block chain 30d, a distribution protocol 30e associated with the work b, and may determine, from the distribution protocol 30e, that the distribution proportion corresponding to the object c is 35%, multiply the total amount of transfer data N by the distribution proportion 35%, obtain again the data amount corresponding to the object c as K, and at this time, refer to the data amount obtained by recalculation as the data amount to be processed. When the data volume K to be processed is the same as the allocated data volume M actually transferred to the object c, it may be determined that the allocated data volume M is valid data, and "the allocated data volume M is valid data" is returned to the request terminal 30a as a verification result; when the data amount K to be processed is different from the allocated data amount M actually transferred to the object c, it may be determined that the allocated data amount M is invalid data, and "the allocated data amount M is invalid data" is returned to the request terminal 30a as a verification result.
According to the embodiment of the application, the data volume to be transferred associated with the target work is added to the hosting account, when the fact that the system time information meets the distribution time node in the intelligent contract is detected, the total data volume to be transferred in the distribution time period to which the system time belongs is obtained from the hosting account, the total data volume to be transferred is distributed according to the distribution proportion corresponding to the copyright distribution object in the intelligent contract, the distribution data volume corresponding to the copyright distribution object is obtained, and the distribution data volume is transferred to the target account of the copyright distribution object. Therefore, by setting the distribution time and the distribution proportion aiming at the copyright distribution object in the intelligent contract, when the distribution time is up, the digital assets in the hosting account can be distributed and the distributed assets are transferred to the account of the copyright distribution object based on the distribution proportion in the intelligent contract, the digital assets in the hosting account do not need to be artificially counted and distributed, and the distribution efficiency of data can be improved.
Fig. 6 is a schematic structural diagram of a data distribution device based on an intelligent contract according to an embodiment of the present application. As shown in fig. 6, the intelligent contract-based data distribution apparatus 1 may include: the system comprises an acquisition module 11, a detection module 12 and a transfer module 13;
the acquisition module 11 is configured to acquire a data volume to be transferred associated with a target work, and add the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
the detection module 12 is configured to, when it is detected that the system time information satisfies the allocation time node in the intelligent contract, obtain, from the escrow account, a total amount of data to be transferred within an allocation time period to which the system time information belongs;
the transfer module 13 is configured to obtain a distribution ratio corresponding to the rights distribution object from the intelligent contract, determine a distribution data amount corresponding to the rights distribution object according to the distribution ratio and the total amount of data to be transferred, and transfer the distribution data amount to a target account of the rights distribution object.
The specific functional implementation manners of the obtaining module 11, the detecting module 12, and the transferring module 13 may refer to steps S101 to S103 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 6 together, the intelligent contract-based data distribution apparatus 1 may further include: a chain winding module 14, a setting module 15, a verification request receiving module 16 and a verification module 17;
an uplink module 14, configured to obtain an uplink request carrying copyright allocation data associated with a target work, generate an allocation block according to the copyright allocation data, and add the allocation block to an allocation block chain; the rights allocation data includes an allocation agreement between rights allocation objects associated with the target work;
a setting module 15, configured to set, according to an allocation protocol in the allocation block chain, an allocation time period and an allocation proportion corresponding to the rights allocation object in the intelligent contract;
an authentication request receiving module 16, configured to, when receiving an allocation authentication request for a rights allocation object sent by a requesting terminal, determine a target work associated with the rights allocation object according to the allocation authentication request, and obtain an allocation block associated with the target work from an allocation block chain;
and the verification module 17 is configured to generate a data verification result corresponding to the rights allocation object according to the allocation protocol included in the allocation block and the allocation data amount carried in the allocation query request, and send the data verification result to the request terminal.
The specific functional implementation manners of the uplink module 14 and the setting module 15 may refer to step S102 in the embodiment corresponding to fig. 3, the verification request receiving module 16, and the verification module 17 may refer to step S204 to step S205 in the embodiment corresponding to fig. 4, which is not described herein again.
Referring to fig. 6, the obtaining module 11 may include: a data processing unit 111, an adding unit 112;
the data processing unit 111 is configured to receive transaction data associated with the target work, perform transaction processing on the transaction data, and obtain a transaction processing result corresponding to the transaction data;
and the adding unit 112 is used for acquiring the data volume to be transferred associated with the target work according to the transaction processing result, and adding the data volume to be transferred to the escrow account.
The specific functional implementation manners of the data processing unit 111 and the adding unit 112 may refer to step S101 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring also to fig. 6, the detection module 12 may include: a period determining unit 121, an accumulating unit 122;
a period determining unit 121, configured to determine, when it is detected that the system time information satisfies the allocation time node, an allocation time period corresponding to the system time information as a target allocation period;
and the accumulation unit 122 is configured to obtain all the data volumes to be transferred in the target allocation period from the escrow account and accumulate the data volumes to obtain a total data volume to be transferred.
The specific functional implementation manners of the period determining unit 121 and the accumulating unit 122 may refer to step S102 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring also to fig. 6, the uplink module 14 may include: a signature verification unit 141, a consensus unit 142;
the signature verification unit 141 is configured to determine a data transmission object corresponding to the rights allocation data, and verify the signature of the rights allocation data based on a public key corresponding to the data transmission object;
a consensus unit 142, configured to pack the checked and signed copyright allocation data into allocation blocks, verify the allocation blocks according to a consensus mechanism, and add the verified allocation blocks to the allocation block chain.
The specific functional implementation manners of the signature verification unit 141 and the consensus unit 142 may refer to step S102 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring also to fig. 6, the verification module 17 may include: a distribution unit 171, a judgment unit 172;
the allocating unit 171 is configured to obtain an allocation protocol associated with the target work from the allocation block, and redistribute the total amount of data to be transferred corresponding to the target work to obtain an amount of data to be processed based on the allocation time period recorded in the allocation protocol and the allocation proportion corresponding to the copyright allocation object;
a judging unit 172, configured to determine, when the amount of data to be processed is the same as the allocation data amount, the allocation data amount as a data valid state, and generate a data verification result of the rights allocation object based on the data valid state;
the aforementioned determining unit 172 is further configured to determine the allocation data amount as a data invalid state when the amount of data to be processed is different from the allocation data amount, and generate a data verification result of the rights allocation object based on the data invalid state.
The specific functional implementation manners of the allocating unit 171 and the determining unit 172 may refer to step S205 in the embodiment corresponding to fig. 4, which is not described herein again.
According to the embodiment of the application, the data volume to be transferred associated with the target work is added to the hosting account, when the fact that the system time information meets the distribution time node in the intelligent contract is detected, the total data volume to be transferred in the distribution time period to which the system time belongs is obtained from the hosting account, the total data volume to be transferred is distributed according to the distribution proportion corresponding to the copyright distribution object in the intelligent contract, the distribution data volume corresponding to the copyright distribution object is obtained, and the distribution data volume is transferred to the target account of the copyright distribution object. Therefore, by setting the distribution time and the distribution proportion aiming at the copyright distribution object in the intelligent contract, when the distribution time is up, the digital assets in the hosting account can be distributed and the distributed assets are transferred to the account of the copyright distribution object based on the distribution proportion in the intelligent contract, the digital assets in the hosting account do not need to be artificially counted and distributed, and the distribution efficiency of data can be improved.
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 7, the computer apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the computer apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 7, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 1000 shown in fig. 7, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring a data volume to be transferred associated with a target work, and adding the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
when the system time information is detected to meet the distribution time node in the intelligent contract, acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account;
and acquiring a distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining a distribution data volume corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data volume to a target account of the copyright distribution object.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the data distribution method based on the intelligent contract in the embodiment corresponding to any one of fig. 3 and fig. 4, and may also perform the description of the data distribution apparatus 1 based on the intelligent contract in the embodiment corresponding to fig. 6, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where the computer program executed by the aforementioned data distribution apparatus 1 based on an intelligent contract is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data distribution method based on the intelligent contract in any one of the embodiments corresponding to fig. 3 and fig. 4 can be performed, so that details are not described here again. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can include the processes of the embodiments of the methods described above when the computer program is executed. The readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A data distribution method based on intelligent contracts is characterized by comprising the following steps:
acquiring the data volume to be transferred associated with the target work, and adding the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
when detecting that the system time information meets the distribution time node in the intelligent contract, acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account;
and acquiring a distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining a distribution data volume corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data volume to a target account of the copyright distribution object.
2. The method of claim 1, further comprising:
acquiring an uplink request carrying copyright allocation data associated with the target work, generating an allocation block according to the copyright allocation data, and adding the allocation block to an allocation block chain; the rights allocation data includes an allocation agreement between rights allocation objects associated with the target work;
and setting a distribution time period and a distribution proportion corresponding to the copyright distribution object in the intelligent contract according to the distribution protocol in the distribution block chain.
3. The method of claim 1, wherein the obtaining the amount of data to be transferred associated with the target work, and adding the amount of data to be transferred to a managed account comprises:
receiving transaction data associated with the target work, and performing transaction processing on the transaction data to obtain a transaction processing result corresponding to the transaction data;
and acquiring the data volume to be transferred associated with the target work according to the transaction processing result, and adding the data volume to be transferred to the escrow account.
4. The method according to claim 1, wherein when it is detected that the system time information satisfies the allocation time node in the intelligent contract, the obtaining, from the escrow account, a total amount of data to be transferred in an allocation time period to which the system time information belongs includes:
when the system time information is detected to meet the distribution time node, determining a distribution time period corresponding to the system time information as a target distribution period;
and acquiring all data volumes to be transferred in the target distribution period from the hosting account, and accumulating to obtain the total data volume to be transferred.
5. The method of claim 2, further comprising:
when receiving a distribution verification request aiming at the copyright distribution object sent by a request terminal, determining the target work related to the copyright distribution object according to the distribution verification request, and acquiring the distribution blocks related to the target work from the distribution block chain;
and generating a data verification result corresponding to the copyright allocation object according to the allocation protocol contained in the allocation block and the allocation data volume carried by the allocation query request, and sending the data verification result to the request terminal.
6. The method according to claim 5, wherein the generating a data verification result corresponding to the rights allocation object according to the allocation protocol included in the allocation block and the allocation data amount carried in the allocation query request includes:
acquiring the distribution protocol associated with the target work from the distribution block, and redistributing the total amount of data to be transferred corresponding to the target work to obtain the amount of data to be processed based on the distribution time period recorded in the distribution protocol and the distribution proportion corresponding to the copyright distribution object;
when the data volume to be processed is the same as the distribution data volume, determining the distribution data volume as a data valid state, and generating a data verification result of the copyright distribution object based on the data valid state;
and when the data volume to be processed is different from the distribution data volume, determining the distribution data volume as a data invalid state, and generating a data verification result of the copyright distribution object based on the data invalid state.
7. The method of claim 2, wherein the generating allocation blocks according to the copyright allocation data, and adding the allocation blocks to a chain of allocation blocks comprises:
determining a data sending object corresponding to the copyright allocation data, and checking the copyright allocation data based on a public key corresponding to the data sending object;
and packaging the copyright distribution data passing the verification into a distribution block, verifying the distribution block according to a consensus mechanism, and adding the distribution block passing the verification to the distribution block chain.
8. An intelligent contract-based data distribution apparatus, comprising:
the acquisition module is used for acquiring the data volume to be transferred associated with the target work and adding the data volume to be transferred to a managed account; the hosting account is used for storing all data volumes to be transferred aiming at the target work;
the detection module is used for acquiring the total amount of data to be transferred in the distribution time period to which the system time information belongs from the escrow account when the system time information is detected to meet the distribution time node in the intelligent contract;
and the transfer module is used for acquiring the distribution proportion corresponding to the copyright distribution object from the intelligent contract, determining the distribution data volume corresponding to the copyright distribution object according to the distribution proportion and the total amount of the data to be transferred, and transferring the distribution data volume to the target account of the copyright distribution object.
9. A computer arrangement comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the steps of the method according to any one of claims 1 to 7.
CN201911240354.2A 2019-12-06 2019-12-06 Data distribution method and device based on intelligent contract Pending CN111008900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911240354.2A CN111008900A (en) 2019-12-06 2019-12-06 Data distribution method and device based on intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911240354.2A CN111008900A (en) 2019-12-06 2019-12-06 Data distribution method and device based on intelligent contract

Publications (1)

Publication Number Publication Date
CN111008900A true CN111008900A (en) 2020-04-14

Family

ID=70114061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911240354.2A Pending CN111008900A (en) 2019-12-06 2019-12-06 Data distribution method and device based on intelligent contract

Country Status (1)

Country Link
CN (1) CN111008900A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102079A (en) * 2020-08-07 2020-12-18 柳州市蓝海数链科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112365353A (en) * 2020-12-23 2021-02-12 支付宝(杭州)信息技术有限公司 Block chain-based content propagation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102079A (en) * 2020-08-07 2020-12-18 柳州市蓝海数链科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112102079B (en) * 2020-08-07 2024-05-17 柳州市蓝海数链科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112365353A (en) * 2020-12-23 2021-02-12 支付宝(杭州)信息技术有限公司 Block chain-based content propagation method and device

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
US11468046B2 (en) Blockchain methods, nodes, systems and products
CN111445333B (en) Block generation method, device, computer equipment and storage medium
CN108734576B (en) Block chain-based educational resource sharing method and system
US20200272619A1 (en) Method and system for audit and payment clearing of electronic trading systems using blockchain database
CN109829824B (en) Commodity transaction information sharing method based on block chain technology
CN111027028A (en) Copyright data processing method and device based on intelligent contract
CN111427957B (en) Block chain voting information verification method, device, equipment and storage medium
WO2021184826A1 (en) Blockchain-based resource transfer method and apparatus, and node device and storage medium
CN109409122A (en) File memory method and its electronic equipment, storage medium
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
US20150356523A1 (en) Decentralized identity verification systems and methods
CN109472164A (en) The verification method and its network and electronic equipment of contract dataset
CN107145768A (en) Copyright managing method and system
US20190114707A1 (en) Distribution of Blockchain Tokens
CN111899001A (en) Remittance method and device based on block chain
CN112001713B (en) Block chain system and request processing method and device
CN109491965A (en) The storage method and its network and electronic equipment of purchase sale of electricity contract
CN111008366A (en) Copyright authorization method and device based on block chain
CN111884807A (en) Article reservation method, apparatus, device and medium based on block chain
CN110796449A (en) Transaction processing method, system, medium and computing device
CN111416709B (en) Voting method, device, equipment and storage medium based on block chain system
CN110544134A (en) resource processing method and device and computer storage medium
CN107852333A (en) System and method for the mandate of sharable content object
CN112418851A (en) Digital copyright registration, transaction and protection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination