WO2020224248A1 - 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质 - Google Patents

基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质 Download PDF

Info

Publication number
WO2020224248A1
WO2020224248A1 PCT/CN2019/121827 CN2019121827W WO2020224248A1 WO 2020224248 A1 WO2020224248 A1 WO 2020224248A1 CN 2019121827 W CN2019121827 W CN 2019121827W WO 2020224248 A1 WO2020224248 A1 WO 2020224248A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
node device
contract operation
preset time
time period
Prior art date
Application number
PCT/CN2019/121827
Other languages
English (en)
French (fr)
Inventor
陈璐伟
郭鸿程
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020224248A1 publication Critical patent/WO2020224248A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1053Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers
    • H04L67/1057Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers involving pre-assessment of levels of reputation of peers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Definitions

  • This application relates to the field of blockchain technology, and in particular to a method for distributing virtual certificate value based on blockchain, a contract operation device and a storage medium.
  • the main purpose is to integrate different Internet platforms into a blockchain system to achieve mutual benefit of traffic.
  • the blockchain is non-tamperable and prevents the large platform from encroaching on the interests of the small platform.
  • this application provides a blockchain-based contract operation device, which is suitable for a blockchain system.
  • the contract operation device includes a memory and a processor, and the memory is stored on the processor.
  • the contract running readable instructions running on the CPU implement the following steps when the contract running readable instructions are executed by the processor:
  • the contract operation device starts the virtual credential value distribution calculation for the predetermined target node device of the blockchain system in real time or regularly, or, when a user issues a target device based on a node device of the blockchain system After the virtual credential value allocation calculation request of the target node device, the contract operation device starts the virtual credential value allocation calculation for the target node device;
  • the contract operation device calculates the contribution value of the target node device in a preset time period according to a preset calculation rule, and calculates the block The total contribution value of all node devices in the chain system within the preset time period;
  • the contract operation device obtains the total amount of virtual credential values to be allocated by the blockchain system within the preset time period;
  • the contract operation device calculates the value of the target node device within the preset time period based on the preset distribution rules, the contribution value, the total contribution value, and the total amount of virtual credential values to be distributed.
  • the virtual credential value to be allocated is the value of the target node device within the preset time period based on the preset distribution rules, the contribution value, the total contribution value, and the total amount of virtual credential values to be distributed.
  • this application also provides a blockchain-based virtual credential value distribution method, which is suitable for a blockchain system, and the method includes:
  • the contract operation device of the blockchain system starts the virtual credential value distribution calculation for the predetermined target node equipment of the blockchain system in real time or at regular intervals, or, in a user based on a node of the blockchain system After the device sends a virtual credential value allocation calculation request for the target node device, the contract operation device starts the virtual credential value allocation calculation request for the target node device;
  • the contract operation device After starting the virtual credential value distribution calculation for the target node device, the contract operation device calculates the contribution value of the target node device in a preset time period according to a preset calculation rule, and calculates the blockchain system The total contribution value of all node devices in the preset time period;
  • the contract operation device calculates the amount of the target node device to be allocated in the preset time period based on the preset allocation rule, the contribution value, the total contribution value, and the total amount of the virtual credential value to be allocated Virtual credential value.
  • the present application also provides one or more readable storage media storing computer readable instructions, the computer readable storage medium storing computer readable instructions, and the computer readable instructions are When executed by one or more processors, the one or more processors are caused to perform the following steps:
  • the contract operation device starts the virtual credential value distribution calculation for the predetermined target node device of the blockchain system in real time or regularly, or, when a user issues a target device based on a node device of the blockchain system After the virtual credential value allocation calculation request of the target node device, the contract operation device starts the virtual credential value allocation calculation for the target node device;
  • the contract operation device calculates the contribution value of the target node device in a preset time period according to a preset calculation rule, and calculates the block The total contribution value of all node devices in the chain system within the preset time period;
  • the contract operation device obtains the total amount of virtual credential values to be allocated by the blockchain system within the preset time period;
  • the contract operation device calculates the value of the target node device within the preset time period based on the preset distribution rules, the contribution value, the total contribution value, and the total amount of virtual credential values to be distributed.
  • the virtual credential value to be allocated is the value of the target node device within the preset time period based on the preset distribution rules, the contribution value, the total contribution value, and the total amount of virtual credential values to be distributed.
  • FIG. 1 is a system architecture diagram of an embodiment of a blockchain system for realizing virtual credential value allocation in this application.
  • Fig. 2 is a hardware structure diagram of an embodiment of the contract operation device 2 in Fig. 1.
  • FIG. 3 is a functional module diagram of an embodiment of the contract execution readable instruction 20 in FIG. 2.
  • FIG. 4 is a flowchart of an embodiment of a method for allocating virtual credential values based on blockchain in this application.
  • the blockchain system 1 includes multiple node devices 3 and a contract operation device 2 communicating with the node devices 3.
  • the node device 3 may be a cloud service smart device, such as a server, a smart phone, a tablet computer, a personal computer, a portable computer, and other electronic devices with computing functions.
  • the contract operation device 2 may be a server, a smart phone, a tablet computer, a personal computer, a portable computer, and other electronic devices with arithmetic functions.
  • the contract operation device 2 is used to run a smart contract.
  • the contract operation device 2 is used to:
  • Real-time or regular start of the virtual credential value distribution calculation for the predetermined target node device 3 of the blockchain system 1, or a user based on a node device 3 of the blockchain system 1 sends out a target for the target After the virtual credential value allocation calculation request of the node device 3, start the virtual credential value allocation calculation for the target node device 3;
  • the virtual credential value to be allocated for the target node device 3 in the preset time period is calculated.
  • the aforementioned node device 3 may be an Internet platform server that composes the blockchain system 1, for example, a small and medium bank platform server, an SME platform server, etc.
  • the user can register or log in to a user account on a different Internet platform server, for example, the user is By registering on the server of Internet platform A, users can not only access the server of Internet platform A, but also the servers of other Internet platforms B and C in the same blockchain system 1, so as to realize the mutual benefit of traffic between different Internet platform servers.
  • Each node device 3 can store its own “ledger”, that is, its own virtual certificate value proof of rights in the blockchain system 1.
  • the blockchain system 1 will periodically start the virtual credential value allocation calculation, that is, the virtual credential value will be allocated every other virtual credential value allocation cycle.
  • the virtual voucher value distribution cycle can be adjusted according to demand, for example, it can be one day, one week, one month, etc.
  • the contribution value is related to the amount of users and traffic of the node device 3, and the amount of users and traffic of the node device 3 in the preset time period are stored in its own "blockchain ledger account”.
  • the total amount of virtual certificate values to be allocated is determined based on the total traffic of the blockchain system 1 in a preset time period converted into virtual certificate values, and the calculation rule is to count all the traffic of the blockchain system 1 in the preset time period The sum of converted virtual document values.
  • the virtual credential value to be allocated for the target node device 3 within the preset time period can be calculated.
  • the contract operation device 2 is also used for:
  • the calculated virtual credential value to be allocated is added to the virtual credential value account corresponding to the target node device 3.
  • the contract operation device 2 is also used for:
  • Each node device 3 is rated every preset time, and the virtual credential value distribution weight corresponding to each node device 3 is determined and updated according to the rating level corresponding to the node device 3, and the final corresponding virtual credential value distribution weight of the target node device 3 is calculated.
  • the credential value is calculated.
  • ⁇ i is the virtual credential value allocation weight corresponding to the target node device 3
  • E i is the virtual credential value to be allocated by the target node device 3 in the preset time period. For example, according to a certain time interval (such as the previous month or the previous quarter) each Internet platform's preset indicators (such as the number of active users) are sorted:
  • the virtual credential value allocation weight ⁇ i corresponding to the target node device 3 is 100%, and the final virtual credential value E oi corresponding to the target node device 3 is: virtual credential to be allocated Voucher value E i *100%;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 95%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *95% to be allocated;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 90%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *90% to be allocated;
  • the preset index may also be the performance score of the node device 3, such as computing power score, bandwidth score, and storage score.
  • the performance score of each node device 3 is comprehensively calculated, and the performance score is adjusted and combined. Update the virtual credential value distribution weight.
  • the calculation of the contribution value of the target node device 3 by the contract operation device 2 according to a preset calculation rule includes:
  • the contract operation device 2 determines the index value corresponding to the user amount and the flow according to the preset mapping relationship between the actual value of the user amount and the flow and the corresponding index value;
  • the contract operation device 2 performs a weighted summary on the amount of users, traffic, and their respective preset weights, and calculates the contribution value of the target node device 3.
  • the calculation formula is:
  • D i is the contribution value of the i-th node device 3
  • U i is the index value corresponding to the number of users of the i-th node device 3 in the preset time period
  • F i is the i-th node device 3
  • the index value corresponding to the index of traffic a is the weight corresponding to the index of the predetermined amount of users
  • b is the weight corresponding to the index of the predetermined traffic
  • the sum of a and b is 1.
  • the index value of the number of users can be determined in the following ways:
  • n and n are positive integers, and m is less than n.
  • the index value of the flow rate can be determined in the following ways:
  • p and q are positive integers, and p is less than q.
  • the calculation of the total contribution value of all node devices 3 in the blockchain system 1 within a preset time period includes:
  • the contract operation device 2 separately calculates the contribution value of each node device 3 in the blockchain system 1 within the preset time period according to the preset calculation rule;
  • the contract operation device 2 sums the contribution values of all the node devices 3 in the blockchain system 1 in the preset time period to calculate the total contribution value, and the calculation formula is:
  • D t is the total contribution value of all node devices 3 in the blockchain system 1 in the preset time period
  • D i is the contribution value of the i-th node device 3 in the preset time period
  • s is the area
  • the total number of node devices 3 in the blockchain system 1 s is a positive integer, i is greater than 0 and less than or equal to s.
  • the preset allocation rule includes:
  • the contract operation device 2 calculates the target based on the percentage ⁇ i of the contribution value of the target node device 3 in the preset time point to the total contribution value and the total virtual certificate value E t to be allocated
  • the contract running device 2 includes a memory 21 and a processor 22.
  • the memory 21 stores a contract running readable instruction 20, and the contract running readable instruction 20 can be executed by the processor 22.
  • the memory 21 includes a memory and at least one type of readable storage medium.
  • the memory provides a cache for the operation of the contract operation device 2;
  • the readable storage medium can be, for example, flash memory, hard disk, multimedia card, card type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks and other non-volatile storage media.
  • the readable storage medium may be an internal storage unit of the contract operation device 2, for example, the hard disk of the contract operation device 2; in other embodiments, the non-volatile storage medium may also be a contract operation device 2 external storage devices, such as plug-in hard disks, Smart Media Card (SMC), Secure Digital (SD) cards, Flash Cards, etc. equipped on the contract running device 2.
  • the readable storage medium of the memory 21 is generally used to store application programs and various data installed in the contract running device 2, for example, to store the code of the contract running readable instruction 20 in an embodiment of the present application.
  • the memory 21 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 22 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments.
  • the processor 22 is generally used to control the overall operation of the contract operation device 2, for example, to perform data interaction or communication-related control and processing with other devices.
  • the processor 22 is used to run the program code or process data stored in the memory 21, for example, run the contract run readable instruction 20 and so on.
  • the contract operation device 2 may also include a user interface.
  • the user interface may include a display (Display) and an input unit such as a keyboard (Keyboard).
  • the optional user interface may also include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc.
  • the display can also be called a display screen or a display unit as appropriate, and is used to display the information processed in the contract operation device 2 and to display a visual user interface.
  • Figure 2 only shows the contract operating device 2 with components 21-22 and contract operating readable instructions 20. Those skilled in the art will understand that the structure shown in Figure 2 does not constitute a limitation on the contract operating device 2. It may include fewer or more components than shown, or a combination of certain components, or a different component arrangement.
  • the contract operation device 2 starts the virtual credential value distribution calculation for the predetermined target node device 3 of the blockchain system 1 in real time or regularly, or, in a user based on one of the blockchain system 1 After the node device 3 sends a virtual credential value allocation calculation request for the target node device 3, the contract operation device 2 starts the virtual credential value allocation calculation for the target node device 3;
  • the aforementioned node device 3 may be an Internet platform server that composes the blockchain system 1, for example, a small and medium bank platform server, an SME platform server, etc.
  • the user can register or log in to a user account on a different Internet platform server, for example, the user is By registering on the server of Internet platform A, users can not only access the server of Internet platform A, but also the servers of other Internet platforms B and C in the same blockchain system 1, so as to realize the mutual benefit of traffic between different Internet platform servers.
  • Each node device 3 can store its own “ledger”, that is, its own virtual certificate value proof of rights in the blockchain system 1.
  • the blockchain system 1 will periodically start the virtual credential value allocation calculation, that is, the virtual credential value will be allocated every other virtual credential value allocation cycle.
  • the virtual voucher value distribution cycle can be adjusted according to demand, for example, it can be one day, one week, one month, etc.
  • the contract operation device 2 calculates the contribution value of the target node device 3 in a preset time period according to a preset calculation rule, and calculates The total contribution value of all node devices 3 in the blockchain system 1 in the preset time period;
  • the contribution value is related to the amount of users and traffic of the node device 3, and the amount of users and traffic of the node device 3 in the preset time period are stored in its own "blockchain ledger account”.
  • the contract operation device 2 obtains the total amount of virtual credential values to be allocated by the blockchain system 1 within the preset time period;
  • the total amount of virtual certificate values to be allocated is determined based on the total traffic of the blockchain system 1 in a preset time period converted into virtual certificate values, and the calculation rule is to count all the traffic of the blockchain system 1 in the preset time period The sum of converted virtual document values.
  • the contract operation device 2 calculates that the target node device 3 is in the preset time period based on the preset distribution rule, the contribution value, the total contribution value, and the total amount of the virtual credential value to be distributed The value of the virtual credential to be allocated within.
  • steps S12 and S13 can be executed simultaneously or sequentially.
  • the contract operation device 2 adds the calculated virtual credential value to be allocated to the virtual credential value account corresponding to the target node device 3.
  • the contract operation device 2 grades each node device 3 every preset time, determines and updates the virtual credential value distribution weight corresponding to each node device 3 according to the rating level corresponding to each node device 3, and calculates the target node device 3 The final corresponding virtual credential value to be allocated.
  • ⁇ i is the virtual credential value allocation weight corresponding to the target node device 3
  • E i is the virtual credential value to be allocated by the target node device 3 in the preset time period. For example, according to a certain time interval (such as the previous month or the previous quarter) each Internet platform's preset indicators (such as the number of active users) are sorted:
  • the virtual credential value allocation weight ⁇ i corresponding to the target node device 3 is 100%, and the final virtual credential value E oi corresponding to the target node device 3 is: virtual credential to be allocated Voucher value E i *100%;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 95%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *95% to be allocated;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 90%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *90% to be allocated;
  • the preset index may also be the performance score of the node device 3, such as computing power score, bandwidth score, and storage score.
  • the performance score of each node device 3 is comprehensively calculated, and the performance score is adjusted and combined. Update the virtual credential value distribution weight.
  • the calculation of the contribution value of the target node device 3 by the contract operation device 2 according to a preset calculation rule includes:
  • the contract operation device 2 determines the index value corresponding to the user amount and the flow according to the preset mapping relationship between the actual value of the user amount and the flow and the corresponding index value;
  • the contract operation device 2 performs a weighted summary on the amount of users, traffic, and their respective preset weights, and calculates the contribution value of the target node device 3.
  • the calculation formula is:
  • D i is the contribution value of the i-th node device 3
  • U i is the index value corresponding to the number of users of the i-th node device 3 in the preset time period
  • F i is the i-th node device 3
  • the index value corresponding to the index of traffic a is the weight corresponding to the index of the predetermined amount of users
  • b is the weight corresponding to the index of the predetermined traffic
  • the sum of a and b is 1.
  • the index value of the number of users can be determined in the following ways:
  • n and n are positive integers, and m is less than n.
  • the index value of the flow rate can be determined in the following ways:
  • p and q are positive integers, and p is less than q.
  • the calculation of the total contribution value of all node devices 3 in the blockchain system 1 within a preset time period includes:
  • the contract operation device 2 separately calculates the contribution value of each node device 3 in the blockchain system 1 within the preset time period according to the preset calculation rule;
  • the contract operation device 2 sums the contribution values of all the node devices 3 in the blockchain system 1 in the preset time period to calculate the total contribution value, and the calculation formula is:
  • D t is the total contribution value of all node devices 3 in the blockchain system 1 in the preset time period
  • D i is the contribution value of the i-th node device 3 in the preset time period
  • s is the area
  • the total number of node devices 3 in the blockchain system 1 s is a positive integer, i is greater than 0 and less than or equal to s.
  • the preset allocation rule includes:
  • the contract operation device 2 calculates the target based on the percentage ⁇ i of the contribution value of the target node device 3 in the preset time point to the total contribution value and the total virtual certificate value E t to be allocated
  • the contract execution readable instruction 20 includes a calculation module 210 and an execution module 220.
  • the calculation module 210 is configured to start the virtual credential value distribution calculation for the predetermined target node device 3 of the blockchain system 1 in real time or at regular intervals, or, in a user based on one of the blockchain system 1
  • the node device 3 sends a virtual credential value allocation calculation request for the target node device 3, it starts the virtual credential value allocation calculation for the target node device 3; after starting the virtual credential value allocation calculation for the target node device 3
  • the aforementioned node device 3 may be an Internet platform server that composes the blockchain system 1, for example, a small and medium bank platform server, an SME platform server, etc.
  • the user can register or log in to a user account on a different Internet platform server, for example, the user is By registering on the server of Internet platform A, users can not only access the server of Internet platform A, but also the servers of other Internet platforms B and C in the same blockchain system 1, so as to realize the mutual benefit of traffic between different Internet platform servers.
  • Each node device 3 can store its own “ledger”, that is, its own virtual certificate value proof of rights in the blockchain system 1.
  • the blockchain system 1 will periodically initiate a virtual credential value distribution calculation, that is, a virtual credential value will be allocated every other virtual credential value distribution cycle.
  • the virtual voucher value distribution cycle can be adjusted according to demand, for example, it can be one day, one week, one month, etc.
  • the contribution value is related to the amount of users and traffic of the node device 3, and the amount of users and traffic of the node device 3 in the preset time period are stored in its own "blockchain ledger account”.
  • the total amount of virtual certificate values to be allocated is determined based on the total traffic of the blockchain system 1 in a preset time period converted into virtual certificate values, and the calculation rule is to count all the traffic of the blockchain system 1 in the preset time period The sum of converted virtual document values.
  • the execution module 220 is configured to calculate that the target node device 3 is in the preset time period based on the preset allocation rule, the contribution value, the total contribution value, and the total amount of virtual credential values to be allocated The value of the virtual credential to be allocated within.
  • the execution module 220 is further configured to add the calculated virtual credential value to be allocated in the virtual credential value account corresponding to the target node device 3.
  • the execution module 220 is further configured to rate each node device 3 every preset time, and determine and update the virtual credential value distribution weight corresponding to each node device 3 according to the rating level corresponding to each node device 3 , And calculate the final virtual credential value to be allocated corresponding to the target node device 3.
  • ⁇ i is the virtual credential value allocation weight corresponding to the target node device 3
  • E i is the virtual credential value to be allocated by the target node device 3 in the preset time period. For example, according to a certain time interval (such as the previous month or the previous quarter) each Internet platform's preset indicators (such as the number of active users) are sorted:
  • the virtual credential value allocation weight ⁇ i corresponding to the target node device 3 is 100%, and the final virtual credential value E oi corresponding to the target node device 3 is: virtual credential to be allocated Voucher value E i *100%;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 95%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *95% to be allocated;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 90%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *90% to be allocated;
  • the preset index may also be the performance score of the node device 3, such as computing power score, bandwidth score, and storage score.
  • the performance score of each node device 3 is comprehensively calculated, and the performance score is adjusted and combined. Update the virtual credential value distribution weight.
  • the calculation module 210 calculating the contribution value of the target node device 3 according to a preset calculation rule includes:
  • the user volume, traffic, and the corresponding preset weights are weighted and summarized to calculate the contribution value of the target node device 3.
  • the calculation formula is:
  • D i is the contribution value of the i-th node device 3
  • U i is the index value corresponding to the number of users of the i-th node device 3 in the preset time period
  • F i is the i-th node device 3
  • the index value corresponding to the index of traffic a is the weight corresponding to the index of the predetermined amount of users
  • b is the weight corresponding to the index of the predetermined traffic
  • the sum of a and b is 1.
  • the index value of the number of users can be determined in the following ways:
  • n and n are positive integers, and m is less than n.
  • the index value of the flow rate can be determined in the following ways:
  • p and q are positive integers, and p is less than q.
  • the calculation by the calculation module 210 of the total contribution value of all the node devices 3 in the blockchain system 1 within a preset time period includes:
  • the contribution values of all node devices 3 in the blockchain system 1 in the preset time period are summed to calculate the total contribution value, and the calculation formula is:
  • D t is the total contribution value of all node devices 3 in the blockchain system 1 in the preset time period
  • D i is the contribution value of the i-th node device 3 in the preset time period
  • s is the area
  • the total number of node devices 3 in the blockchain system 1 s is a positive integer, i is greater than 0 and less than or equal to s.
  • the preset allocation rule includes:
  • the execution module 220 calculates the target node device 3 based on the percentage ⁇ i of the contribution value of the target node device 3 in the preset time point to the total contribution value and the total amount of virtual credential values to be allocated E t
  • FIG. 4 it is a flowchart of an embodiment of a method for allocating virtual credential values based on blockchain in this application.
  • the contract operation device 2 of the blockchain system 1 starts the virtual credential value distribution calculation for the predetermined target node device 3 of the blockchain system 1 in real time or regularly, or, in a user based on the blockchain After a node device 3 of the system 1 sends a virtual credential value allocation calculation request for the target node device 3, the contract operation device 2 starts the virtual credential value allocation calculation for the target node device 3;
  • the aforementioned node device 3 may be an Internet platform server that composes the blockchain system 1, for example, a small and medium bank platform server, an SME platform server, etc.
  • the user can register or log in to a user account on a different Internet platform server, for example, the user is By registering on the server of Internet platform A, users can not only access the server of Internet platform A, but also the servers of other Internet platforms B and C in the same blockchain system 1, so as to realize the mutual benefit of traffic between different Internet platforms.
  • Each node device 3 can store its own “ledger”, that is, its own virtual certificate value proof of rights in the blockchain system 1.
  • the blockchain system 1 will periodically start the virtual credential value allocation calculation, that is, the virtual credential value will be allocated every other virtual credential value allocation cycle.
  • the virtual voucher value distribution cycle can be adjusted according to demand, for example, it can be one day, one week, one month, etc.
  • the contract operation device 2 calculates the contribution value of the target node device 3 in a preset time period according to a preset calculation rule, and calculates The total contribution value of all node devices 3 in the blockchain system 1 in the preset time period;
  • the contribution value is related to the amount of users and traffic of the node device 3, and the amount of users and traffic of the node device 3 in the preset time period are stored in its own "blockchain ledger account”.
  • the contract operation device 2 obtains the total amount of virtual credential values to be allocated by the blockchain system 1 within the preset time period;
  • the total amount of virtual voucher value to be allocated is determined based on the conversion of the total traffic of the blockchain system 1 in a preset time period to the virtual voucher value.
  • the calculation rule is to count all the traffic conversions of the blockchain system 1 in the preset time period. The sum of virtual credential values.
  • the contract operation device 2 calculates that the target node device 3 is in the preset time period based on the preset distribution rule, the contribution value, the total contribution value, and the total amount of the virtual credential value to be distributed The value of the virtual credential to be allocated within.
  • steps S12 and S13 can be executed simultaneously or sequentially.
  • block chain-based virtual credential value distribution method further includes the following steps:
  • the contract operation device 2 adds the calculated virtual credential value to be allocated to the virtual credential value account corresponding to the target node device 3.
  • block chain-based virtual credential value distribution method further includes the following steps:
  • the contract operation device 2 grades each node device 3 every preset time, determines and updates the virtual credential value distribution weight corresponding to each node device 3 according to the rating level corresponding to each node device 3, and calculates the target node device 3 The final corresponding virtual credential value to be allocated.
  • ⁇ i is the virtual credential value allocation weight corresponding to the target node device 3
  • E i is the virtual credential value to be allocated by the target node device 3 in the preset time period. For example, according to a certain time interval (such as the previous month or the previous quarter) each Internet platform's preset indicators (such as the number of active users) are sorted:
  • the virtual credential value allocation weight ⁇ i corresponding to the target node device 3 is 100%, and the final virtual credential value E oi corresponding to the target node device 3 is: virtual credential to be allocated Voucher value E i *100%;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 95%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *95% to be allocated;
  • the virtual credential value distribution weight ⁇ i corresponding to the target node device 3 is 90%, and the final virtual credential value to be allocated E oi corresponding to the target node device 3 As: the virtual certificate value E i *90% to be allocated;
  • the preset index may also be the performance score of the node device 3, such as computing power score, bandwidth score, and storage score.
  • the performance score of each node device 3 is comprehensively calculated, and the performance score is adjusted and combined. Update the virtual credential value distribution weight.
  • the calculation of the contribution value of the target node device 3 by the contract operation device 2 according to a preset calculation rule in step S12 includes:
  • the contract operation device 2 determines the index value corresponding to the user amount and the flow according to the preset mapping relationship between the actual value of the user amount and the flow and the corresponding index value;
  • the contract operation device 2 performs a weighted summary on the amount of users, traffic, and their respective preset weights, and calculates the contribution value of the target node device 3.
  • the calculation formula is:
  • D i is the contribution value of the i-th node device 3
  • U i is the index value corresponding to the number of users of the i-th node device 3 in the preset time period
  • F i is the i-th node device 3
  • the index value corresponding to the index of traffic a is the weight corresponding to the index of the predetermined amount of users
  • b is the weight corresponding to the index of the predetermined traffic
  • the sum of a and b is 1.
  • the index value of the number of users can be determined in the following ways:
  • n and n are positive integers, and m is less than n.
  • the index value of the flow rate can be determined in the following ways:
  • p and q are positive integers, and p is less than q.
  • step S12 the calculation of the total contribution value of all node devices 3 in the blockchain system 1 within a preset time period in step S12 includes:
  • the contract operation device 2 separately calculates the contribution value of each node device 3 in the blockchain system 1 within the preset time period according to the preset calculation rule;
  • the contract operation device 2 sums the contribution values of all the node devices 3 in the blockchain system 1 in the preset time period to calculate the total contribution value, and the calculation formula is:
  • D t is the total contribution value of all node devices 3 in the blockchain system 1 in the preset time period
  • D i is the contribution value of the i-th node device 3 in the preset time period
  • s is the area
  • the total number of node devices 3 in the blockchain system 1 s is a positive integer, i is greater than 0 and less than or equal to s.
  • the preset allocation rule in step S14 includes:
  • the contract operation device 2 calculates the target based on the percentage ⁇ i of the contribution value of the target node device 3 in the preset time point to the total contribution value and the total virtual certificate value E t to be allocated

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请涉及区块链技术领域,揭露了一种基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质。该方法包括:在一个节点设备发出虚拟凭证值分配计算请求后,启动针对目标节点设备的虚拟凭证值分配计算;根据预设计算规则计算目标节点设备在预设时间段内的贡献值,并计算区块链系统中所有节点设备在预设时间段内的总贡献值;获取区块链系统在预设时间段内的待分配虚拟凭证值总量;基于预设分配规则、目标节点设备的贡献值、总贡献值及待分配虚拟凭证值总量,确定目标节点设备在预设时间段内的待分配虚拟凭证值。通过将不同的互联网平台集成在一个区块链系统中,实现流量互利,由于区块链具备不可篡改性,避免了大平台侵占小平台利益。

Description

基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质
本申请以2019年5月6日提交的申请号为201910371195.3,名称为“基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质”的中国发明申请为基础,并要求其优先权。
技术领域
本申请涉及区块链技术领域,尤其涉及一种基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质。
背景技术
随着互联网行业的发展,涌现了越来越多的互联网平台,其中一些行业的互联网平台流量单一,但是类似的互联网平台数量众多,导致了这类互联网平台流量量级不够大、相互之间流量不能互利,且传统的互联网平台是中心化的,大平台会侵占小平台的利益。
发明内容
鉴于以上内容,有必要提供一种基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质,其主要目的在于将不同的互联网平台集成在一个区块链系统中,实现流量互利,由于区块链具备不可篡改性,避免了大平台侵占小平台利益的情况发生。
为实现上述目的,本申请提供一种基于区块链的合约运行装置,适用于一区块链系统,所述合约运行装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的合约运行可读指令,所述合约运行可读指令被所述处理器执行时实现如下步骤:
S11、所述合约运行装置实时或者定时启动针对所述区块链系统的预先确定的目标节点设备的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统的一个节点设备发出针对所述目标节点设备的虚拟凭证值分配计算请求后,所述合约运行装置启动针对所述目标节点设备的虚拟凭证值分配计算;
S12、在启动针对所述目标节点设备的虚拟凭证值分配计算后,所述合约运行装置根据预设计算规则计算所述目标节点设备在预设时间段内的贡献值,并计算所述区块链系统中所有节点设备在所述预设时间段内的总贡献值;
S13、所述合约运行装置获取所述区块链系统在所述预设时间段内的待分配虚拟凭证值总量;
S14、所述合约运行装置基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备在所述预设时间段内的待分配虚拟凭证值。
此外,为实现上述目的,本申请还提供一种基于区块链的虚拟凭证值分配方法,适用于一区块链系统,该方法包括:
所述区块链系统的合约运行装置实时或者定时启动针对所述区块链系统的预先确定的目标节点设备的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统的一个节点设备发出针对所述目标节点设备的虚拟凭证值分配计算请求后,所述合约运行装置启动针对所述目标节点设备的虚拟凭证值分配计算;
在启动针对所述目标节点设备的虚拟凭证值分配计算后,所述合约运行装置根据预设计算规则计算所述目标节点设备在预设时间段内的贡献值,并计算所述区块链系统中所有节点设备在所述预设时间段内的总贡献值;
所述合约运行装置获取所述区块链系统在所述预设时间段内的待分配虚拟凭证值总量;
所述合约运行装置基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备在所述预设时间段内的待分配虚拟凭证值。
进一步的,为实现上述目的,本申请还提供一个或多个存储有计算机可读指令的可读存 储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:
S11、所述合约运行装置实时或者定时启动针对所述区块链系统的预先确定的目标节点设备的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统的一个节点设备发出针对所述目标节点设备的虚拟凭证值分配计算请求后,所述合约运行装置启动针对所述目标节点设备的虚拟凭证值分配计算;
S12、在启动针对所述目标节点设备的虚拟凭证值分配计算后,所述合约运行装置根据预设计算规则计算所述目标节点设备在预设时间段内的贡献值,并计算所述区块链系统中所有节点设备在所述预设时间段内的总贡献值;
S13、所述合约运行装置获取所述区块链系统在所述预设时间段内的待分配虚拟凭证值总量;
S14、所述合约运行装置基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备在所述预设时间段内的待分配虚拟凭证值。
本申请的一个或多个实施例的细节在下面的附图及描述中提出。本申请的其他特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。
图1为本申请实现虚拟凭证值分配的区块链系统一实施例的系统架构图。
图2为图1中的合约运行装置2一实施例的硬件结构图。
图3为图2中合约运行可读指令20一实施例的功能模块图。
图4为本申请基于区块链的虚拟凭证值分配方法一实施例的流程图。
本申请目的的实现、功能特点及优点将结合实施例,参考附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
如图1所示,为本申请实现虚拟凭证值分配的区块链系统一实施例的系统架构图。在本实施例中,该区块链系统1包括多个节点设备3,及与节点设备3通信的合约运行装置2。节点设备3可以是云服务智能设备,例如服务器、智能手机、平板电脑、个人电脑、便携计算机以及其他具有运算功能的电子设备。合约运行装置2可以是服务器、智能手机、平板电脑、个人电脑、便携计算机以及其他具有运算功能的电子设备,所述合约运行装置2用于运行智能合约。
在本申请的一个实施例中,合约运行装置2用于:
实时或者定时启动针对所述区块链系统1的预先确定的目标节点设备3的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统1的一个节点设备3发出针对所述目标节点设备3的虚拟凭证值分配计算请求后,启动针对所述目标节点设备3的虚拟凭证值分配计算;
在启动针对所述目标节点设备3的虚拟凭证值分配计算后,根据预设计算规则计算所述目标节点设备3在预设时间段内的贡献值,并计算所述区块链系统1中所有节点设备3在所述预设时间段内的总贡献值;
获取所述区块链系统1在所述预设时间段内的待分配虚拟凭证值总量;
基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备3在所述预设时间段内的待分配虚拟凭证值。
上述节点设备3可以是组成所述区块链系统1的互联网平台服务器,例如,中小银行平台服务器、中小企业平台服务器等,用户可在不同的互联网平台服务器注册或登录用户账户,例如,用户在互联网平台A的服务器注册,用户不仅可以访问互联网平台A的服务器,还可 访问处于同一区块链系统1中的其他互联网平台B、C的服务器,以实现不同互联网平台服务器间的流量互利。
每个节点设备3可保存自己的那份“账本”,即自己在该区块链系统1中的虚拟凭证值权益证明。
区块链系统1会定时启动虚拟凭证值分配计算,即每隔一个虚拟凭证值分配周期会分配虚拟凭证值。虚拟凭证值分配周期可根据需求进行调整,例如,可以是一天、一周、一个月等。可选的,也可实时侦测并接收用户基于所述区块链系统1中的一个节点设备3发出的虚拟凭证值分配请求,并响应所述虚拟凭证值分配请求。
所述贡献值跟节点设备3的用户量及流量相关,节点设备3在预设时间段内的用户量及流量入链保存在自己的那份“区块链账本账户”中。
所述待分配虚拟凭证值总量是根据区块链系统1在预设时间段内的总流量转换为虚拟凭证值确定的,计算规则为统计区块链系统1在预设时间段的所有流量转换的虚拟凭证值的总和。
基于上述贡献值、总贡献值、待分配虚拟凭证值总量及预设分配规则,即可计算出目标节点设备3在预设时间段内的待分配虚拟凭证值。
可选的,该合约运行装置2还用于:
在所述目标节点设备3对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
可选的,该合约运行装置2还用于:
每隔预设时间对各节点设备3进行评级,根据节点设备3对应的评定的级别确定并更新各节点设备3对应的虚拟凭证值分配权重,并计算出目标节点设备3最终对应的待分配虚拟凭证值。
目标节点设备3最终对应的待分配虚拟凭证值E oi的计算公式为E 0i=γ i×E i。式中,γ i为目标节点设备3对应的虚拟凭证值分配权重,E i为目标节点设备3在所述预设时间段内的待分配虚拟凭证值。例如,根据一定的时间间隔(比如前一个月或前一个季度)各互联网平台的预设指标(比如,活跃用户量)对各互联网平台进行排序:
活跃用户量超过第一阈值时,为一级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为100%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*100%;
活跃用户量小于第一阈值、大于第二阈值时,为二级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为95%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*95%;
活跃用户量小于第二阈值、大于第三阈值时,为三级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为90%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*90%;
以此类推。
在另一个实施例中,所述预设指标还可以是节点设备3的性能得分,例如,算力分数、带宽分数及存储分数等,综合计算各节点设备3的性能得分,根据性能得分调整并更新虚拟凭证值分配权重。
需要说明的是,当某互联网平台为最近新增的平台时,没有该互联网平台对应的虚拟凭证值分配权重,取一个默认值γ 0作为该互联网平台对应的虚拟凭证值分配权重。
可选的,所述合约运行装置2根据预设计算规则计算所述目标节点设备3的贡献值包括:
所述合约运行装置2根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
所述合约运行装置2对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备3的贡献值,该计算公式为:
D i=a×U i+b×F i
式中,D i为第i个节点设备3的贡献值,U i为第i个节点设备3在预设时间段内用户量 这一指标对应的指标值,F i为第i个节点设备3在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和为1。
例如,用户量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000001
式中,m、n为正整数,m小于n。
流量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000002
式中,p、q为正整数,p小于q。
可选的,所述计算所述区块链系统1中所有节点设备3在预设时间段内的总贡献值包括:
所述合约运行装置2根据所述预设计算规则分别计算所述区块链系统1中每个节点设备3在所述预设时间段内的贡献值;
所述合约运行装置2对所述区块链系统1中所有节点设备3在所述预设时间段内的贡献值进行求和,计算得到所述总贡献值,该计算公式为:
Figure PCTCN2019121827-appb-000003
式中,D t为该区块链系统1中所有节点设备3在预设时间段内的总贡献值,D i为第i个节点设备3在预设时间段内的贡献值,s为区块链系统1中节点设备3的总数,s为正整数,i大于0且小于或等于s。
可选的,所述预设分配规则包括:
所述合约运行装置2计算所述目标节点设备3在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
所述合约运行装置2基于所述目标节点设备3在预设时间点内的贡献值占所述总贡献值的百分比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备3对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
如图2所示,为本申请图1中的合约运行装置2一实施例的硬件结构图。在本实施例中,该合约运行装置2包括存储器21及处理器22,该存储器21中存储有合约运行可读指令20,所述合约运行可读指令20可被所述处理器22执行。
存储器21包括内存及至少一种类型的可读存储介质。内存为该合约运行装置2的运行提供缓存;可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等的非易失性存储介质。在一些实施例中,可读存储介质可以是合约运行装置2的内部存储单元,例如该合约运行装置2的硬盘;在另一些实施例中,该非易失性存储介质也可以是合约运行装置2的外部存储设备,例如该合约运行装置2上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。本实施例中,存储器21的可读存储介质通常用于存储安装于合约运行装置2的应用程序和各类数据,例如存储本申请一实施例中的合约运行可读指令20的代码等。此外,存储器21还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器22在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器22通常用于控制所述合约运行装置2的总体操作,例如执行与其他设备进行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器22用于运行所述存储器21中存储的程序代码或者处理数据,例如运行合 约运行可读指令20等。
可选的,该合约运行装置2还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选的,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在合约运行装置2中处理的信息以及用于显示可视化的用户界面。
图2仅示出了具有组件21-22以及合约运行可读指令20的合约运行装置2,本领域技术人员可以理解的是,图2示出的结构并不构成对合约运行装置2的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。
在本申请的一个实施例中,所述合约运行可读指令20被所述处理器22执行时实现如下步骤:
S11、所述合约运行装置2实时或者定时启动针对所述区块链系统1的预先确定的目标节点设备3的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统1的一个节点设备3发出针对所述目标节点设备3的虚拟凭证值分配计算请求后,所述合约运行装置2启动针对所述目标节点设备3的虚拟凭证值分配计算;
上述节点设备3可以是组成所述区块链系统1的互联网平台服务器,例如,中小银行平台服务器、中小企业平台服务器等,用户可在不同的互联网平台服务器注册或登录用户账户,例如,用户在互联网平台A的服务器注册,用户不仅可以访问互联网平台A的服务器,还可访问处于同一区块链系统1中的其他互联网平台B、C的服务器,以实现不同互联网平台服务器间的流量互利。
每个节点设备3可保存自己的那份“账本”,即自己在该区块链系统1中的虚拟凭证值权益证明。
区块链系统1会定时启动虚拟凭证值分配计算,即每隔一个虚拟凭证值分配周期会分配虚拟凭证值。虚拟凭证值分配周期可根据需求进行调整,例如,可以是一天、一周、一个月等。可选的,也可实时侦测并接收用户基于所述区块链系统1中的一个节点设备3发出的虚拟凭证值分配请求,并响应所述虚拟凭证值分配请求。
S12、在启动针对所述目标节点设备3的虚拟凭证值分配计算后,所述合约运行装置2根据预设计算规则计算所述目标节点设备3在预设时间段内的贡献值,并计算所述区块链系统1中所有节点设备3在所述预设时间段内的总贡献值;
所述贡献值跟节点设备3的用户量及流量相关,节点设备3在预设时间段内的用户量及流量入链保存在自己的那份“区块链账本账户”中。
S13、所述合约运行装置2获取所述区块链系统1在所述预设时间段内的待分配虚拟凭证值总量;
所述待分配虚拟凭证值总量是根据区块链系统1在预设时间段内的总流量转换为虚拟凭证值确定的,计算规则为统计区块链系统1在预设时间段的所有流量转换的虚拟凭证值的总和。
S14、所述合约运行装置2基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备3在所述预设时间段内的待分配虚拟凭证值。
需要说明的是,步骤S12与S13可以同时执行,也可以分先后顺序执行。
可选的,所述合约运行可读指令20被所述处理器22执行时还实现如下步骤:
所述合约运行装置2在所述目标节点设备3对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
可选的,所述合约运行可读指令20被所述处理器22执行时还实现如下步骤:
所述合约运行装置2每隔预设时间对各节点设备3进行评级,根据各节点设备3对应的评定的级别确定并更新各节点设备3对应的虚拟凭证值分配权重,并计算出目标节点设备3 最终对应的待分配虚拟凭证值。
目标节点设备3最终对应的待分配虚拟凭证值E oi的计算公式为E 0i=γ i×E i。式中,γ i为目标节点设备3对应的虚拟凭证值分配权重,E i为目标节点设备3在所述预设时间段内的待分配虚拟凭证值。例如,根据一定的时间间隔(比如前一个月或前一个季度)各互联网平台的预设指标(比如,活跃用户量)对各互联网平台进行排序:
活跃用户量超过第一阈值时,为一级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为100%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*100%;
活跃用户量小于第一阈值、大于第二阈值时,为二级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为95%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*95%;
活跃用户量小于第二阈值、大于第三阈值时,为三级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为90%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*90%;
以此类推。
在另一个实施例中,所述预设指标还可以是节点设备3的性能得分,例如,算力分数、带宽分数及存储分数等,综合计算各节点设备3的性能得分,根据性能得分调整并更新虚拟凭证值分配权重。
需要说明的是,当某互联网平台为最近新增的平台时,没有该互联网平台对应的虚拟凭证值分配权重,取一个默认值γ 0作为该互联网平台对应的虚拟凭证值分配权重。
可选的,所述合约运行装置2根据预设计算规则计算所述目标节点设备3的贡献值包括:
所述合约运行装置2根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
所述合约运行装置2对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备3的贡献值,该计算公式为:
D i=a×U i+b×F i
式中,D i为第i个节点设备3的贡献值,U i为第i个节点设备3在预设时间段内用户量这一指标对应的指标值,F i为第i个节点设备3在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和为1。
例如,用户量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000004
式中,m、n为正整数,m小于n。
流量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000005
式中,p、q为正整数,p小于q。
可选的,所述计算所述区块链系统1中所有节点设备3在预设时间段内的总贡献值包括:
所述合约运行装置2根据所述预设计算规则分别计算所述区块链系统1中每个节点设备3在所述预设时间段内的贡献值;
所述合约运行装置2对所述区块链系统1中所有节点设备3在所述预设时间段内的贡献值进行求和,计算得到所述总贡献值,该计算公式为:
Figure PCTCN2019121827-appb-000006
式中,D t为该区块链系统 1中所有节点设备3在预设时间段内的总贡献值,D i为第i个节点设备3在预设时间段内的贡献值,s为区块链系统1中节点设备3的总数,s为正整数,i大于0且小于或等于s。
可选的,所述预设分配规则包括:
所述合约运行装置2计算所述目标节点设备3在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
所述合约运行装置2基于所述目标节点设备3在预设时间点内的贡献值占所述总贡献值的百分比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备3对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
如图3所示,为图2中合约运行可读指令20一实施例的功能模块图。在本实施例中,合约运行可读指令20包括计算模块210及执行模块220。
所述计算模块210,用于实时或者定时启动针对所述区块链系统1的预先确定的目标节点设备3的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统1的一个节点设备3发出针对所述目标节点设备3的虚拟凭证值分配计算请求后,启动针对所述目标节点设备3的虚拟凭证值分配计算;在启动针对所述目标节点设备3的虚拟凭证值分配计算后,根据预设计算规则计算所述目标节点设备3在预设时间段内的贡献值,并计算所述区块链系统1中所有节点设备3在所述预设时间段内的总贡献值;获取所述区块链系统1在所述预设时间段内的待分配虚拟凭证值总量。
上述节点设备3可以是组成所述区块链系统1的互联网平台服务器,例如,中小银行平台服务器、中小企业平台服务器等,用户可在不同的互联网平台服务器注册或登录用户账户,例如,用户在互联网平台A的服务器注册,用户不仅可以访问互联网平台A的服务器,还可访问处于同一区块链系统1中的其他互联网平台B、C的服务器,以实现不同互联网平台服务器间的流量互利。
每个节点设备3可保存自己的那份“账本”,即自己在该区块链系统1中的虚拟凭证值权益证明。
区块链系统1会定时发起虚拟凭证值分配计算,即每隔一个虚拟凭证值分配周期会分配虚拟凭证值。虚拟凭证值分配周期可根据需求进行调整,例如,可以是一天、一周、一个月等。可选的,也可实时侦测并接收用户基于所述区块链系统1中的一个节点设备3发出的虚拟凭证值分配请求,并响应所述虚拟凭证值分配请求。
所述贡献值跟节点设备3的用户量及流量相关,节点设备3在预设时间段内的用户量及流量入链保存在自己的那份“区块链账本账户”中。
所述待分配虚拟凭证值总量是根据区块链系统1在预设时间段内的总流量转换为虚拟凭证值确定的,计算规则为统计区块链系统1在预设时间段的所有流量转换的虚拟凭证值的总和。
所述执行模块220,用于基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备3在所述预设时间段内的待分配虚拟凭证值。
可选的,所述执行模块220,还用于在所述目标节点设备3对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
可选的,所述执行模块220,还用于每隔预设时间对各节点设备3进行评级,根据各节点设备3对应的评定的级别确定并更新各节点设备3对应的虚拟凭证值分配权重,并计算出目标节点设备3最终对应的待分配虚拟凭证值。
目标节点设备3最终对应的待分配虚拟凭证值E oi的计算公式为E 0i=γ i×E i。式中,γ i为目标节点设备3对应的虚拟凭证值分配权重,E i为目标节点设备3在所述预设时间段内的待分配虚拟凭证值。例如,根据一定的时间间隔(比如前一个月或前一个季度)各互联网平台的预设指标(比如,活跃用户量)对各互联网平台进行排序:
活跃用户量超过第一阈值时,为一级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为100%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*100%;
活跃用户量小于第一阈值、大于第二阈值时,为二级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为95%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*95%;
活跃用户量小于第二阈值、大于第三阈值时,为三级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为90%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*90%;
以此类推。
在另一个实施例中,所述预设指标还可以是节点设备3的性能得分,例如,算力分数、带宽分数及存储分数等,综合计算各节点设备3的性能得分,根据性能得分调整并更新虚拟凭证值分配权重。
需要说明的是,当某互联网平台为最近新增的平台时,没有该互联网平台对应的虚拟凭证值分配权重,取一个默认值γ 0作为该互联网平台对应的虚拟凭证值分配权重。
可选的,所述计算模块210根据预设计算规则计算所述目标节点设备3的贡献值包括:
根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备3的贡献值,该计算公式为:
D i=a×U i+b×F i
式中,D i为第i个节点设备3的贡献值,U i为第i个节点设备3在预设时间段内用户量这一指标对应的指标值,F i为第i个节点设备3在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和为1。
例如,用户量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000007
式中,m、n为正整数,m小于n。
流量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000008
式中,p、q为正整数,p小于q。
可选的,所述计算模块210计算所述区块链系统1中所有节点设备3在预设时间段内的总贡献值包括:
根据所述预设计算规则分别计算所述区块链系统1中每个节点设备3在所述预设时间段内的贡献值;
对所述区块链系统1中所有节点设备3在所述预设时间段内的贡献值进行求和,计算得到所述总贡献值,该计算公式为:
Figure PCTCN2019121827-appb-000009
式中,D t为该区块链系统1中所有节点设备3在预设时间段内的总贡献值,D i为第i个节点设备3在预设时间段内的贡献值,s为区块链系统1中节点设备3的总数,s为正整数,i大于0且小于或等于s。
可选的,所述预设分配规则包括:
执行模块220计算所述目标节点设备3在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
执行模块220基于所述目标节点设备3在预设时间点内的贡献值占所述总贡献值的百分 比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备3对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
如图4所示,是本申请基于区块链的虚拟凭证值分配方法一实施例的流程图。
S11、区块链系统1的合约运行装置2实时或者定时启动针对所述区块链系统1的预先确定的目标节点设备3的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统1的一个节点设备3发出针对所述目标节点设备3的虚拟凭证值分配计算请求后,所述合约运行装置2启动针对所述目标节点设备3的虚拟凭证值分配计算;
上述节点设备3可以是组成所述区块链系统1的互联网平台服务器,例如,中小银行平台服务器、中小企业平台服务器等,用户可在不同的互联网平台服务器注册或登录用户账户,例如,用户在互联网平台A的服务器注册,用户不仅可以访问互联网平台A的服务器,还可访问处于同一区块链系统1中的其他互联网平台B、C的服务器,以实现不同互联网平台间的流量互利。
每个节点设备3可保存自己的那份“账本”,即自己在该区块链系统1中的虚拟凭证值权益证明。
区块链系统1会定时启动虚拟凭证值分配计算,即每隔一个虚拟凭证值分配周期会分配虚拟凭证值。虚拟凭证值分配周期可根据需求进行调整,例如,可以是一天、一周、一个月等。可选的,也可实时侦测并接收用户基于所述区块链系统1中的一个节点设备3发出的虚拟凭证值分配请求,并响应所述虚拟凭证值分配请求。
S12、在启动针对所述目标节点设备3的虚拟凭证值分配计算后,所述合约运行装置2根据预设计算规则计算所述目标节点设备3在预设时间段内的贡献值,并计算所述区块链系统1中所有节点设备3在所述预设时间段内的总贡献值;
所述贡献值跟节点设备3的用户量及流量相关,节点设备3在预设时间段内的用户量及流量入链保存在自己的那份“区块链账本账户”中。
S13、所述合约运行装置2获取所述区块链系统1在所述预设时间段内的待分配虚拟凭证值总量;
待分配虚拟凭证值总量是根据区块链系统1在预设时间段内的总流量转换为虚拟凭证值确定的,计算规则为统计区块链系统1在预设时间段的所有流量转换的虚拟凭证值的总和。
S14、所述合约运行装置2基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备3在所述预设时间段内的待分配虚拟凭证值。
需要说明的是,步骤S12与S13可以同时执行,也可以分先后顺序执行。
可选的,所述基于区块链的虚拟凭证值分配方法还包括如下步骤:
所述合约运行装置2在所述目标节点设备3对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
可选的,所述基于区块链的虚拟凭证值分配方法还包括如下步骤:
所述合约运行装置2每隔预设时间对各节点设备3进行评级,根据各节点设备3对应的评定的级别确定并更新各节点设备3对应的虚拟凭证值分配权重,并计算出目标节点设备3最终对应的待分配虚拟凭证值。
目标节点设备3最终对应的待分配虚拟凭证值E oi的计算公式为E 0i=γ i×E i。式中,γ i为目标节点设备3对应的虚拟凭证值分配权重,E i为目标节点设备3在所述预设时间段内的待分配虚拟凭证值。例如,根据一定的时间间隔(比如前一个月或前一个季度)各互联网平台的预设指标(比如,活跃用户量)对各互联网平台进行排序:
活跃用户量超过第一阈值时,为一级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为100%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*100%;
活跃用户量小于第一阈值、大于第二阈值时,为二级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为95%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*95%;
活跃用户量小于第二阈值、大于第三阈值时,为三级平台,目标节点设备3对应的虚拟凭证值分配权重γ i为90%,目标节点设备3最终对应的待分配虚拟凭证值E oi为:待分配虚拟凭证值E i*90%;
以此类推。
在另一个实施例中,所述预设指标还可以是节点设备3的性能得分,例如,算力分数、带宽分数及存储分数等,综合计算各节点设备3的性能得分,根据性能得分调整并更新虚拟凭证值分配权重。
需要说明的是,当某互联网平台为最近新增的平台时,没有该互联网平台对应的虚拟凭证值分配权重,取一个默认值γ 0作为该互联网平台对应的虚拟凭证值分配权重。
可选的,步骤S12所述合约运行装置2根据预设计算规则计算所述目标节点设备3的贡献值包括:
所述合约运行装置2根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
所述合约运行装置2对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备3的贡献值,该计算公式为:
D i=a×U i+b×F i
式中,D i为第i个节点设备3的贡献值,U i为第i个节点设备3在预设时间段内用户量这一指标对应的指标值,F i为第i个节点设备3在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和为1。
例如,用户量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000010
式中,m、n为正整数,m小于n。
流量这一指标的指标值可通过以下方式确定:
Figure PCTCN2019121827-appb-000011
式中,p、q为正整数,p小于q。
可选的,步骤S12所述计算所述区块链系统1中所有节点设备3在预设时间段内的总贡献值包括:
所述合约运行装置2根据所述预设计算规则分别计算所述区块链系统1中每个节点设备3在所述预设时间段内的贡献值;
所述合约运行装置2对所述区块链系统1中所有节点设备3在所述预设时间段内的贡献值进行求和,计算得到所述总贡献值,该计算公式为:
Figure PCTCN2019121827-appb-000012
式中,D t为该区块链系统1中所有节点设备3在预设时间段内的总贡献值,D i为第i个节点设备3在预设时间段内的贡献值,s为区块链系统1中节点设备3的总数,s为正整数,i大于0且小于或等于s。
可选的,步骤S14所述预设分配规则包括:
所述合约运行装置2计算所述目标节点设备3在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
所述合约运行装置2基于所述目标节点设备3在预设时间点内的贡献值占所述总贡献值的百分比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备3对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
本申请计算机可读存储介质具体实施方式与上述基于区块链的虚拟凭证值分配方法和合约运行装置各实施例基本相同,在此不作累述。
通过以上实施方式的描述,本领域的技术人员可以清楚的了解到上述实施例方法可借助软件加必须的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的基于区块链的虚拟凭证值分配方法。
以上实施例仅用以说明本申请的技术方案而非限制,尽管参照本文实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (20)

  1. 一种基于区块链的合约运行装置,其特征在于,该装置适用于一区块链系统,该装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的合约运行可读指令,所述合约运行可读指令被所述处理器执行时实现如下步骤:
    S11、所述合约运行装置实时或者定时启动针对所述区块链系统的预先确定的目标节点设备的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统的一个节点设备发出针对所述目标节点设备的虚拟凭证值分配计算请求后,所述合约运行装置启动针对所述目标节点设备的虚拟凭证值分配计算;
    S12、在启动针对所述目标节点设备的虚拟凭证值分配计算后,所述合约运行装置根据预设计算规则计算所述目标节点设备在预设时间段内的贡献值,并计算所述区块链系统中所有节点设备在所述预设时间段内的总贡献值;
    S13、所述合约运行装置获取所述区块链系统在所述预设时间段内的待分配虚拟凭证值总量;
    S14、所述合约运行装置基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备在所述预设时间段内的待分配虚拟凭证值。
  2. 如权利要求1所述的合约运行装置,其特征在于,所述合约运行可读指令被所述处理器执行时还实现如下步骤:
    所述合约运行装置在所述目标节点设备对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
  3. 如权利要求2所述的合约运行装置,其特征在于,所述合约运行可读指令被所述处理器执行时还实现如下步骤:
    所述合约运行装置每隔预设时间对所述区块链系统中各节点设备进行评级,根据各节点设备对应的评定的级别确定并更新各节点设备对应的虚拟凭证值分配权重,并计算出目标节点设备最终对应的待分配虚拟凭证值。
  4. 如权利要求1所述的合约运行装置,其特征在于,所述合约运行可读指令被所述处理器执行时还实现如下步骤:
    所述合约运行装置每隔预设时间对所述区块链系统中各节点设备进行评级,根据各节点设备对应的评定的级别确定并更新各节点设备对应的虚拟凭证值分配权重,并计算出目标节点设备最终对应的待分配虚拟凭证值。
  5. 如权利要求1所述的合约运行装置,其特征在于,所述合约运行装置根据预设计算规则计算所述目标节点设备的贡献值包括:
    所述合约运行装置根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
    所述合约运行装置对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备的贡献值,该计算公式为:
    D i=a×U i+b×F i
    式中,D i为第i个节点设备的贡献值,U i为第i个节点设备在预设时间段内用户量这一指标对应的指标值,F i为第i个节点设备在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和为1。
  6. 如权利要求1所述的合约运行装置,其特征在于,所述计算所述区块链系统中所有节点设备在预设时间段内的总贡献值包括:
    所述合约运行装置根据所述预设计算规则分别计算所述区块链系统中每个节点设备在所述预设时间段内的贡献值;
    所述合约运行装置对所述区块链系统中所有节点设备在所述预设时间段内的贡献值进 行求和,计算出所述总贡献值,该计算公式为:
    Figure PCTCN2019121827-appb-100001
    式中,D t为该区块链系统中所有节点设备在预设时间段内的总贡献值,D i为第i个节点设备在预设时间段内的贡献值,s为该区块链系统中节点设备的总数,s为正整数,i大于0且小于或等于s。
  7. 如权利要求1所述的合约运行装置,其特征在于,所述预设分配规则包括:
    所述合约运行装置计算所述目标节点设备在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
    所述合约运行装置基于所述目标节点设备在预设时间点内的贡献值占所述总贡献值的百分比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
  8. 一种基于区块链的虚拟凭证值分配方法,其特征在于,该方法适用于一区块链系统,该方法包括:
    S11、所述区块链系统的合约运行装置实时或者定时启动针对所述区块链系统的预先确定的目标节点设备的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统的一个节点设备发出针对所述目标节点设备的虚拟凭证值分配计算请求后,所述合约运行装置启动针对所述目标节点设备的虚拟凭证值分配计算;
    S12、在启动针对所述目标节点设备的虚拟凭证值分配计算后,所述合约运行装置根据预设计算规则计算所述目标节点设备在预设时间段内的贡献值,并计算所述区块链系统中所有节点设备在所述预设时间段内的总贡献值;
    S13、所述合约运行装置获取所述区块链系统在所述预设时间段内的待分配虚拟凭证值总量;
    S14、所述合约运行装置基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备在所述预设时间段内的待分配虚拟凭证值。
  9. 如权利要求8所述的基于区块链的虚拟凭证值分配方法,其特征在于,该方法还包括:
    所述合约运行装置在所述目标节点设备对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
  10. 如权利要求9所述的基于区块链的虚拟凭证值分配方法,其特征在于,该方法还包括:
    所述合约运行装置每隔预设时间对所述区块链系统中各节点设备进行评级,根据各节点设备对应的评定的级别确定并更新各节点设备对应的虚拟凭证值分配权重,并计算出目标节点设备最终对应的待分配虚拟凭证值。
  11. 如权利要求8所述的基于区块链的虚拟凭证值分配方法,其特征在于,该方法还包括:
    所述合约运行装置每隔预设时间对所述区块链系统中各节点设备进行评级,根据各节点设备对应的评定的级别确定并更新各节点设备对应的虚拟凭证值分配权重,并计算出目标节点设备最终对应的待分配虚拟凭证值。
  12. 如权利要求8所述的基于区块链的虚拟凭证值分配方法,其特征在于,所述合约运行装置根据预设计算规则计算所述目标节点设备的贡献值包括:
    所述合约运行装置根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
    所述合约运行装置对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备的贡献值,该计算公式为:
    D i=a×U i+b×F i
    式中,D i为第i个节点设备的贡献值,U i为第i个节点设备在预设时间段内用户量这一指标对应的指标值,F i为第i个节点设备在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和 为1。
  13. 如权利要求8所述的基于区块链的虚拟凭证值分配方法,其特征在于,所述计算所述区块链系统中所有节点设备在预设时间段内的总贡献值包括:
    所述合约运行装置根据所述预设计算规则分别计算所述区块链系统中每个节点设备在所述预设时间段内的贡献值;
    所述合约运行装置对所述区块链系统中所有节点设备在所述预设时间段内的贡献值进行求和,计算出所述总贡献值,该计算公式为:
    Figure PCTCN2019121827-appb-100002
    式中,D t为该区块链系统中所有节点设备在预设时间段内的总贡献值,D i为第i个节点设备在预设时间段内的贡献值,s为该区块链系统中节点设备的总数,s为正整数,i大于0且小于或等于s。
  14. 如权利要求8所述的基于区块链的虚拟凭证值分配方法,其特征在于,所述预设分配规则包括:
    所述合约运行装置计算所述目标节点设备在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
    所述合约运行装置基于所述目标节点设备在预设时间点内的贡献值占所述总贡献值的百分比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
  15. 一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:
    S11、所述合约运行装置实时或者定时启动针对所述区块链系统的预先确定的目标节点设备的虚拟凭证值分配计算,或者,在一个用户基于所述区块链系统的一个节点设备发出针对所述目标节点设备的虚拟凭证值分配计算请求后,所述合约运行装置启动针对所述目标节点设备的虚拟凭证值分配计算;
    S12、在启动针对所述目标节点设备的虚拟凭证值分配计算后,所述合约运行装置根据预设计算规则计算所述目标节点设备在预设时间段内的贡献值,并计算所述区块链系统中所有节点设备在所述预设时间段内的总贡献值;
    S13、所述合约运行装置获取所述区块链系统在所述预设时间段内的待分配虚拟凭证值总量;
    S14、所述合约运行装置基于预设分配规则、所述贡献值、所述总贡献值及所述待分配虚拟凭证值总量,计算出所述目标节点设备在所述预设时间段内的待分配虚拟凭证值。
  16. 如权利要求15所述的可读存储介质,其特征在于,所述合约运行可读指令被所述处理器执行时还实现如下步骤:
    所述合约运行装置在所述目标节点设备对应的虚拟凭证值账户中增加计算出的待分配虚拟凭证值。
  17. 如权利要求15或16所述的可读存储介质,其特征在于,所述合约运行可读指令被所述处理器执行时还实现如下步骤:
    所述合约运行装置每隔预设时间对所述区块链系统中各节点设备进行评级,根据各节点设备对应的评定的级别确定并更新各节点设备对应的虚拟凭证值分配权重,并计算出目标节点设备最终对应的待分配虚拟凭证值。
  18. 如权利要求15所述的可读存储介质,其特征在于,所述合约运行装置根据预设计算规则计算所述目标节点设备的贡献值包括:
    所述合约运行装置根据预设的用户量与流量的实际值与对应的指标值的映射关系,确定所述用户量与流量对应的指标值;
    所述合约运行装置对所述用户量、流量及分别对应的预设权重进行加权汇总,计算出所述目标节点设备的贡献值,该计算公式为:
    D i=a×U i+b×F i
    式中,D i为第i个节点设备的贡献值,U i为第i个节点设备在预设时间段内用户量这一指标对应的指标值,F i为第i个节点设备在预设时间段内流量这一指标对应的指标值,a为预先确定的用户量这一指标对应的权重,b为预先确定的流量这一指标对应的权重,a与b的和为1。
  19. 如权利要求15所述的可读存储介质,其特征在于,所述计算所述区块链系统中所有节点设备在预设时间段内的总贡献值包括:
    所述合约运行装置根据所述预设计算规则分别计算所述区块链系统中每个节点设备在所述预设时间段内的贡献值;
    所述合约运行装置对所述区块链系统中所有节点设备在所述预设时间段内的贡献值进行求和,计算出所述总贡献值,该计算公式为:
    Figure PCTCN2019121827-appb-100003
    式中,D t为该区块链系统中所有节点设备在预设时间段内的总贡献值,D i为第i个节点设备在预设时间段内的贡献值,s为该区块链系统中节点设备的总数,s为正整数,i大于0且小于或等于s。
  20. 如权利要求15所述的可读存储介质,其特征在于,所述预设分配规则包括:
    所述合约运行装置计算所述目标节点设备在预设时间段内的贡献值占所述总贡献值的百分比δ i,该计算公式为:δ i=D i/D t
    所述合约运行装置基于所述目标节点设备在预设时间点内的贡献值占所述总贡献值的百分比δ i及所述待分配虚拟凭证值总量E t,计算出所述目标节点设备对应的待分配虚拟凭证值E i,该计算公式为:E i=δ i×E t
PCT/CN2019/121827 2019-05-06 2019-11-29 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质 WO2020224248A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910371195.3 2019-05-06
CN201910371195.3A CN110233873B (zh) 2019-05-06 2019-05-06 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质

Publications (1)

Publication Number Publication Date
WO2020224248A1 true WO2020224248A1 (zh) 2020-11-12

Family

ID=67861214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/121827 WO2020224248A1 (zh) 2019-05-06 2019-11-29 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质

Country Status (2)

Country Link
CN (1) CN110233873B (zh)
WO (1) WO2020224248A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115169992A (zh) * 2022-09-02 2022-10-11 天聚地合(苏州)科技股份有限公司 基于区块链的数据要素权益分配方法、装置和系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110233873B (zh) * 2019-05-06 2022-06-17 深圳壹账通智能科技有限公司 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质
TWI717071B (zh) * 2019-10-25 2021-01-21 中華電信股份有限公司 憑證管理系統及其方法
CN111461691B (zh) * 2020-04-17 2020-12-11 支付宝(杭州)信息技术有限公司 基于区块链的流量统计系统、方法及装置
CN113344610B (zh) * 2021-05-18 2023-08-08 网易(杭州)网络有限公司 基于区块链的虚拟对象分配方法、设备和可读存储介质
CN114785526B (zh) * 2022-06-16 2022-09-02 德德市界(深圳)科技有限公司 基于区块链的多用户多批次权重分配计算及存储处理系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018137330A1 (zh) * 2017-01-26 2018-08-02 北京小度信息科技有限公司 订单处理方法、装置、服务器及计算机存储介质
CN108470277A (zh) * 2018-02-28 2018-08-31 深圳市网心科技有限公司 区块链的奖励结算方法、系统、可读存储介质及计算设备
CN108768700A (zh) * 2018-05-11 2018-11-06 北京奇虎科技有限公司 一种区块链中奖励分配方法、装置及系统
CN109376008A (zh) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 一种虚拟资源的分配方法和装置
CN110233873A (zh) * 2019-05-06 2019-09-13 深圳壹账通智能科技有限公司 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180218342A1 (en) * 2015-07-28 2018-08-02 Razer (Asia-Pacific) Pte. Ltd. Servers for a reward-generating distributed digital resource farm and methods for controlling a server for a reward-generating distributed digital resource farm
AU2018271863A1 (en) * 2017-05-23 2019-12-12 Materialytics, LLC Distributed ledger for physical material
CN109065099A (zh) * 2018-07-16 2018-12-21 曾巨鹏 一种运动健康数据贡献激励的区块链管理系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018137330A1 (zh) * 2017-01-26 2018-08-02 北京小度信息科技有限公司 订单处理方法、装置、服务器及计算机存储介质
CN108470277A (zh) * 2018-02-28 2018-08-31 深圳市网心科技有限公司 区块链的奖励结算方法、系统、可读存储介质及计算设备
CN108768700A (zh) * 2018-05-11 2018-11-06 北京奇虎科技有限公司 一种区块链中奖励分配方法、装置及系统
CN109376008A (zh) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 一种虚拟资源的分配方法和装置
CN110233873A (zh) * 2019-05-06 2019-09-13 深圳壹账通智能科技有限公司 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115169992A (zh) * 2022-09-02 2022-10-11 天聚地合(苏州)科技股份有限公司 基于区块链的数据要素权益分配方法、装置和系统
CN115169992B (zh) * 2022-09-02 2023-01-17 天聚地合(苏州)科技股份有限公司 基于区块链的数据要素权益分配方法、装置和系统

Also Published As

Publication number Publication date
CN110233873A (zh) 2019-09-13
CN110233873B (zh) 2022-06-17

Similar Documents

Publication Publication Date Title
WO2020224248A1 (zh) 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质
WO2021174944A1 (zh) 基于目标对象活跃度的消息推送方法及相关设备
CN108776934B (zh) 分布式数据计算方法、装置、计算机设备及可读存储介质
WO2020119051A1 (zh) 云平台资源使用预测方法及终端设备
CN108446176B (zh) 一种任务分配方法、计算机可读存储介质及终端设备
CN108833458B (zh) 一种应用推荐方法、装置、介质及设备
CN108090225B (zh) 数据库实例的运行方法、装置、系统及计算机可读存储介质
US10756981B2 (en) Efficiency indexes
CN109345398A (zh) 基于客户特征的分单方法、装置及存储介质
EP3961384A1 (en) Automatic derivation of software engineering artifact attributes from product or service development concepts
US20170235606A1 (en) System and methods for implementing control of use of shared resource in a multi-tenant system
US20160379122A1 (en) Recommendation algorithm optimization method, device and system
CN112733531A (zh) 虚拟资源分配方法、装置、电子设备及计算机存储介质
US20150142872A1 (en) Method of operating a server apparatus for delivering website content, server apparatus and device in communication with server apparatus
CN114116206A (zh) 一种云资源的管理方法、装置及计算机存储介质
WO2020143851A2 (en) Method and system for optimizing resource redistribution
CN109345947B (zh) 基于数据关联性分析的工作区域划分方法及终端设备
CN116647560A (zh) 物联网计算机集群协调优化控制方法、装置、设备及介质
CN110705816A (zh) 基于大数据的任务分配方法和装置
CN108399031B (zh) 确定界面布局方式的方法和装置
CN113643140B (zh) 确定医保支出影响因素的方法、装置、设备和介质
CN115033456A (zh) 一种内网前端性能监控方法、装置、计算机设备及存储介质
CN115113982A (zh) 一种安全资源池安全服务匹配方法、装置及存储介质
CN109255698B (zh) 基于大数据的还款额的分配方法及终端设备
CN110570136B (zh) 配送范围确定方法、装置、电子设备以及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19927617

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19927617

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19927617

Country of ref document: EP

Kind code of ref document: A1