WO2020063175A1 - 一种虚拟资源的分配方法和装置 - Google Patents

一种虚拟资源的分配方法和装置 Download PDF

Info

Publication number
WO2020063175A1
WO2020063175A1 PCT/CN2019/100703 CN2019100703W WO2020063175A1 WO 2020063175 A1 WO2020063175 A1 WO 2020063175A1 CN 2019100703 W CN2019100703 W CN 2019100703W WO 2020063175 A1 WO2020063175 A1 WO 2020063175A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
value
target service
virtual resources
characteristic value
Prior art date
Application number
PCT/CN2019/100703
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 WO2020063175A1 publication Critical patent/WO2020063175A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • 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

Definitions

  • This specification relates to the technical field of network information processing, and in particular, to a method and a device for allocating virtual resources.
  • Blockchain technology also known as distributed ledger technology, is an emerging network technology in which several computing devices participate in "accounting" and jointly maintain a complete distributed database. Because blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and data can be quickly synchronized between computing devices, making blockchain technology widely used in many fields. Apply.
  • one or more embodiments of the present specification provide a virtual resource allocation method for allocating virtual resources to users of a business system, including:
  • the obtaining the due virtual resource for the user to participate in the target service within the preset time period based on the first feature value includes:
  • the method further includes:
  • the first characteristic value of the user is cleared.
  • obtaining the user's contribution ratio to the target service within the preset time period based on the first feature value includes:
  • a ratio of the user's contribution to the target service within the preset time period within the preset time period is obtained.
  • the service system sets an expected value for the sum of the first feature values of all users in the preset time period, and provides an available value based on the target service for the preset time period.
  • the total amount of the allocated virtual resources is set with a fixed threshold; the method further includes:
  • an additional value of a virtual resource is set based on a difference between the actual value and the expected value, and the total amount of the virtual resource is a sum of the fixed threshold and the additional value.
  • the obtaining a user's contribution ratio to the target service within the preset time period based on the first characteristic value and the second characteristic value includes:
  • a contribution ratio of the user to the target service is obtained.
  • the business system is a system constructed based on a blockchain that includes a plurality of user nodes.
  • the method further comprises: after allocating the due virtual resources to the user within the preset time period, publishing the clearing to the distributed database of the blockchain Transaction, the clear transaction is used to set the first characteristic value of the user to zero.
  • the obtaining the user's due virtual resources that participate in the target service within the preset time period based on the first characteristic value; allocating the user in the The due virtual resources participating in the target service within the preset duration include:
  • the smart contract further declares execution logic that clears the first characteristic value of the user, and allocates the due virtual resources to the user to the user.
  • a clearing transaction is issued in the distributed database of the blockchain, and the clearing transaction is used to set the first characteristic value of the user to zero.
  • This specification also provides a virtual resource allocation device for allocating virtual resources to users of a business system, including:
  • the obtaining unit obtains a first characteristic value of a user, wherein the first characteristic value is used to represent a contribution of the user to a target service in a service system within a preset period of time;
  • the allocating unit allocates to the user the due virtual resources that participate in the target service within the preset duration.
  • the obtaining unit :
  • the above device further includes:
  • the clearing unit clears the first characteristic value of the user after allocating the user with the due virtual resources within the preset time period.
  • the obtaining unit :
  • the service system sets an expected value for the sum of the first feature values of all users in the preset time period, and provides an available value based on the target service for the preset time period.
  • the total amount of the allocated virtual resources is set with a fixed threshold; the device further includes a total amount of virtual resource calculation unit:
  • an additional value of a virtual resource is set based on a difference between the actual value and the expected value, and the total amount of the virtual resource is a sum of the fixed threshold and the additional value.
  • the obtaining unit :
  • a contribution ratio of the user to the target service is obtained.
  • the business system is a system constructed based on a blockchain that includes a plurality of user nodes.
  • the device further includes a clear transaction sending unit: after allocating the user with the due virtual resources within the preset time period, the distribution to the blockchain A clearing transaction is issued in the database, and the clearing transaction is used to set the first characteristic value of the user to zero.
  • the obtaining unit and the allocation unit :
  • the smart contract further declares execution logic that clears the first characteristic value of the user, and allocates the due virtual resources to the user to the user.
  • a clearing transaction is issued in the distributed database of the blockchain, and the clearing transaction is used to set the first characteristic value of the user to zero.
  • This specification also provides a computer device, including: a memory and a processor; the memory stores a computer program executable by the processor; and when the processor runs the computer program, the virtual resource allocation method described above is described A step of.
  • This specification also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is run by a processor, the steps described in the above-mentioned virtual resource allocation method are performed.
  • the method and device for allocating virtual resources divides the allocation of virtual resources in time according to time, evaluates the user's contribution ratio to the target business within a preset period of time, and thereby changes the preset
  • the total amount of virtual resources that can be allocated during the duration is allocated correspondingly according to the contribution ratio of each user, which avoids the disadvantage that the existing virtual resource allocation cannot be encouraged by new users due to the accumulated use time of the business system by users.
  • the second feature value used to characterize the user's credibility is encouraged to be included in the user's contribution ratio to the target service, so that the virtual resource allocation to the user in the business system is not only It is related to the user's contribution to the target business, and also to the user's credibility. Encouraging users to do more business while maintaining a good level of credibility, so that the business system is developing towards a more benign state.
  • the above-mentioned virtual resource allocation method is applied to a blockchain network, and a first characteristic value used to characterize the contribution to a service running in a business system within a preset period of time, or a first characteristic value
  • the second characteristic value used to characterize the user's credibility is decentralized and recorded in the distributed database of the blockchain, which is jointly maintained by the nodes of the blockchain, all data records can be traced back, and based on the blockchain's Consensus mechanism, the first characteristic value and the second characteristic value will not be tampered after being provided, thereby ensuring virtual resource allocation based on the first characteristic value, or the first characteristic value and the second characteristic value Reliability and fairness of behavior.
  • FIG. 1 is a flowchart of a virtual resource allocation method according to an embodiment provided in the present specification
  • FIG. 2 is a schematic diagram of a virtual resource allocation apparatus according to an embodiment provided in this specification.
  • FIG. 3 is a hardware structural diagram of an embodiment of a virtual resource allocation apparatus running the embodiment provided in this specification.
  • the steps of the corresponding method are not necessarily performed in the order shown and described in this specification.
  • the method may include more or fewer steps than described in this specification.
  • a single step described in this specification may be divided into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for other embodiments. description.
  • FIG. 1 is a flowchart of a virtual resource allocation method according to an exemplary embodiment, which is used to allocate virtual resources to users of a business system.
  • the business system described in the embodiments of this specification may be an online or offline system including any business behavior, including but not limited to social, payment, gaming, leasing, community, vehicle scheduling, insurance claims, credit services, medical services And other systems.
  • the virtual resources described in the embodiments of this specification include the virtual resource reward forms that can be allocated in the above business system, such as computing power, points, or other characteristic points.
  • the execution subject of the virtual resource allocation method described in this embodiment may be the above business system.
  • Centralized server if the above business system is a "business system node-user node” type distributed system based on the blockchain network, since each node can obtain the full amount of data in the blockchain's distributed database,
  • the execution subject of the virtual resource allocation method described in this embodiment may be any node device or client in the above blockchain network.
  • the above-mentioned method for allocating virtual resources includes:
  • Step 102 Obtain a first characteristic value of a user, where the first characteristic value is used to represent a contribution of the user in a target service in which a user participates in a business system within a preset time period.
  • the first characteristic value described in this embodiment is used to characterize the contribution of the target business that the user participates in the business system.
  • the specific expression of the target business can be set by the business system, such as daily login of the user, real-name authentication, Release information, game upgrades, complete car hire, successful payment, etc .; the target business can also be divided into different process steps.
  • the user's contribution in the participating target services described in this embodiment refers to the degree of user participation or completion in the target services.
  • the first characteristic value may be specifically expressed as a point value, a growth value, an activity degree, etc. obtained by a user participating in the target business.
  • the target service described in this embodiment may be one or one time.
  • the specific service can also be a variety of specific services, it can also be multiple specific tasks, or even the sum of all specific services within a preset period of time, which can actually be determined by the target task calculation rules set by the business system .
  • the above-mentioned preset duration can be set to a natural day, or a week, or a month, and any business system can conveniently count the duration of the user's contribution to the service according to its specific running business.
  • Step 104 Obtain the due virtual resource for the user to participate in the target service within the preset time period based on the first characteristic value.
  • the manner of obtaining the due virtual resource of the user participating in the target service within the preset time period based on the first characteristic value may be set according to a specific calculation rule of a service system.
  • the above process includes: obtaining, based on the first feature value, the user's contribution ratio to the target service within the preset time period; obtaining the service system in the Based on the total amount of virtual resources available for allocation within the preset duration; based on the total amount of virtual resources and the user's contribution ratio, obtaining that the user participates in the goal within the preset duration Deserved virtual resources for business.
  • the contribution parameter values of the user participating in the above target service may be calculated first based on the first feature value of the user; and then all other users are participating in the above target based on the same calculation method. Contribution parameter value of the service; by the proportion of the contribution parameter value of the user occupying the contribution parameter value of all users, the contribution ratio of the user to the target service within the preset time period can be obtained.
  • the virtual resource allocation in the foregoing business system may also introduce a second characteristic value used to characterize the credibility of the user, based on the first The feature value and the second feature value obtain a contribution ratio of the user to the target service within the preset time period.
  • users can improve their second characteristic value through a variety of behaviors, such as establishing their own trusted identity-passing real-name authentication / face authentication, corporate email authentication (proving that they actually work for a company), Ask authenticated users to endorse themselves, to prove that they really work in a company, etc. to establish a trusted identity and maintain a trusted identity-do not fake, if you falsely report your identity or give false authentication to other users, you will be The user's report is true, it will reduce the second characteristic value, and perform credible behaviors-such as completing the appointment of the car, going to the appointment on time, paying the rent fee on time, and honestly performing the target business.
  • the user's contribution ratio in the target business can be increased accordingly, so that a higher ratio of virtual resources can be obtained when the virtual resources are allocated later.
  • the specific algorithm of the user's contribution ratio in the target business can be as follows:
  • Contribution parameter value of the user in the target service within a preset time period (the first characteristic value of the user * the second characteristic value of the user) / 100;
  • the user's contribution ratio to the target service within the preset time period the user's contribution parameter value to the target service within the preset time period / the sum of all user contribution parameter values to the target service within the preset time period.
  • the second feature value described in this embodiment is a feature that represents the user's ability to maintain a trusted identity in the business system for a long time and perform trusted behavior Reliability is a measure of the credibility of a user over a long period of time (even after joining a business system). Therefore, the above embodiment incorporates the user's credibility or the second characteristic value into the virtual resource allocation method, calculates the user's contribution ratio in the target service based on the first characteristic value and the second characteristic value, and encourages the user While doing more business, maintaining a good level of credibility makes the business system develop towards a more benign state.
  • the credibility of participating in one service may be different from the credibility of users participating in another service.
  • a second characteristic of the user when performing a business behavior related to the target service may be selected Value is added to the calculation of the contribution ratio, and the second characteristic value produced by the credibility that is not related to the target business may not be considered.
  • the business system can set a corresponding total amount of virtual resources that can be used for allocation for the target business within a preset time period.
  • the total amount of the virtual resources may be dynamically adjusted. For example, the business system sets an expected value for the sum of the first characteristic values of all users in the preset time period, and sets a total amount of the virtual resources available for allocation based on the target service in the preset time period.
  • a fixed threshold the method further includes: obtaining an actual value of a sum of first characteristic values of all users within the preset duration; comparing the expected value with the actual value, if the actual value does not exceed the expected value
  • the total amount of virtual resources is the fixed threshold; if the actual value exceeds the expected value, an additional value of virtual resources is set based on a difference between the actual value and the expected value, and the total amount of virtual resources is The sum of the fixed threshold and the extra value.
  • the due virtual resources for the user may participate in the target service within the preset time period; for example, the due virtual resources It may be obtained by a product of the total amount of the virtual resources and the contribution ratio of the user.
  • step 106 the user is allocated the due virtual resources that participate in the target service within the preset duration.
  • the above-mentioned first characteristic value can be cleared to zero.
  • the first feature value may not be cleared to zero, but in a management system regarding the first feature value, the first feature value that has been allocated corresponding virtual resources based on the first feature value should be The characteristic value is marked, and it is not included in the calculation of the user's due virtual resources for the next preset duration or other target services.
  • the allocation of virtual resources is phased in time, and the user's contribution ratio to the target business is evaluated within a preset period of time, so that the preset period of time is available for allocation
  • the total amount of virtual resources is allocated according to the contribution ratio of each user, which avoids the disadvantage that the existing virtual resource allocation cannot be encouraged by new users due to the accumulated use time of the business system by users.
  • the second feature value used to characterize the user's credibility is encouraged to be included in the user's contribution ratio to the target service, so that the virtual resource allocation to the user in the business system is not only It is related to the user's contribution to the target business, and also to the user's credibility. Encouraging users to do more business while maintaining a good level of credibility, so that the business system is developing towards a more benign state.
  • the above-mentioned business system is a "server-client" type system based on a centralized network
  • the centralized server of the above-mentioned business system executes the virtual resource allocation method described in the above embodiment, it cannot be ruled out that the centralized server changes the user privately The possibility of manipulating the virtual resource allocation to the user by using the first feature value or the second feature value.
  • Another embodiment of the present specification provides an embodiment of a virtual resource allocation method based on a blockchain.
  • Blockchain as a P2P network technology, is gaining more and more applications due to its advantages of decentralization and immutable data.
  • the above-mentioned business system is a system constructed based on a blockchain.
  • the above-mentioned blockchain includes a plurality of user nodes. Relevant data information generated by the user nodes participating in the target task of the business system can be included in the blockchain. In a distributed database.
  • the blockchain described in the embodiments of the present specification may specifically refer to a P2P network system with a distributed data storage structure reached by each node through a consensus mechanism.
  • the data in the blockchain is distributed over time.
  • the latter block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS, or PBFT, etc.), all or part of the node's data is reached Full backup.
  • the specific consensus mechanism such as POW, POS, DPOS, or PBFT, etc.
  • the blockchain system has the characteristics of ensuring data security and preventing tampering as compared with other centralized database systems. From this, it can be known that in the embodiments provided in this specification, the data collected in the distributed database of the blockchain will not be attacked or tampered with, thereby ensuring virtual resources based on the information stored in the distributed database. Fair and accurate distribution process.
  • the blockchain-based virtual resource allocation method described in this embodiment can be executed by any node device in the blockchain or a client connected to any node device, which is not limited herein. As shown in FIG. 1, the method includes:
  • Step 102 Obtain a first characteristic value of a user, where the first characteristic value is used to represent a contribution of the user in a target service in which a user participates in a business system within a preset time period.
  • the first characteristic value described in this embodiment is used to characterize the contribution of the target business that the user participates in the business system.
  • the specific expression of the target business can be set by the business system, such as daily login of the user, real-name authentication, Release information, game upgrades, complete car hire, successful payment, etc .; the target business can also be divided into different process steps.
  • the user's contribution in the participating target services described in this embodiment refers to the degree of user participation or completion in the target services.
  • the first characteristic value may be specifically expressed as a point value, a growth value, an activity degree, etc. obtained by a user participating in the target business.
  • the target service described in this embodiment may be one or one time.
  • the specific service can also be a variety of specific services, or multiple specific tasks, or even the sum of all specific services within a preset duration, which can actually be determined by the target task setting rules set by the business system .
  • the above-mentioned preset duration can be set to a natural day, or a week, or a month, and any business system can conveniently count the duration of the user's contribution to the service according to its specific running business.
  • the setting rules for the target task based on the allocation of virtual resources by the business system can be deployed in the underlying program code of the business system, or the user node in the participating target business Contributions (such as login system, real-name authentication, company authentication, participation or completion of target business, etc.), or the first feature value obtained based on the above-mentioned user node's contribution in the participating target business can be included in the blockchain's
  • the calculation of the first feature value is performed by any node of the blockchain.
  • the obtaining of the first feature value of the user described in this embodiment may be that the nodes of the blockchain directly obtain the first feature value of the user from the distributed database of the blockchain, or that the nodes of the blockchain are based on the area
  • the data information related to the contribution of the target business that the user participates in collected by the distributed database of the blockchain is calculated to obtain the corresponding first characteristic value.
  • Step 104 Obtain the due virtual resource for the user to participate in the target service within the preset time period based on the first characteristic value.
  • the manner of obtaining the due virtual resource of the user participating in the target service within the preset time period based on the first characteristic value may be set according to a specific calculation rule of a service system.
  • the above process includes: obtaining, based on the first feature value, the user's contribution ratio to the target service within the preset time period; obtaining the service system in the Based on the total amount of virtual resources available for allocation within the preset duration; based on the total amount of virtual resources and the user's contribution ratio, obtaining that the user participates in the goal within the preset duration Deserved virtual resources for business.
  • a preset value may be obtained by obtaining each first characteristic value obtained by each user based on the target service within a preset period of time. The total length of the first characteristic value obtained by all users based on the target service within the duration of time, and based on the ratio of the first characteristic value of the user occupying the total of the first characteristic value, to obtain the preset duration of the user. To the target business.
  • the contribution parameter values of the user participating in the above target service may be calculated first based on the first feature value of the user; and then all other users are participating in the above target based on the same calculation method. Contribution parameter value of the service; by the proportion of the contribution parameter value of the user occupying the contribution parameter value of all users, the contribution ratio of the user to the target service within the preset time period can be obtained.
  • the virtual resource allocation in the foregoing business system may also introduce a second characteristic value used to characterize the credibility of the user, based on the first The feature value and the second feature value obtain a contribution ratio of the user to the target service within the preset time period.
  • users can improve their second characteristic value through a variety of behaviors, such as establishing their own trusted identity-passing real-name authentication / face authentication, corporate email authentication (proving that they actually work for a company), Ask authenticated users to endorse themselves, to prove that they really work in a company, etc. to establish a trusted identity and maintain a trusted identity-do not fake, if you falsely report your identity or give false authentication to other users, you will be The user's report is true, it will reduce the second characteristic value, and perform credible behaviors-such as completing the appointment of the car, going to the appointment on time, paying the rent fee on time, and honestly performing the target business.
  • the user's contribution ratio in the target business can be increased accordingly, so that a higher ratio of virtual resources can be obtained in the future when virtual resources are allocated.
  • the specific algorithm of the user's contribution ratio in the target business can be as follows:
  • Contribution parameter value of the user in the target service within a preset time period (the first characteristic value of the user * the second characteristic value of the user) / 100;
  • the user's contribution ratio to the target service within the preset time period the user's contribution parameter value to the target service within the preset time period / the sum of the contribution parameter values of all users to the target service within the preset time period.
  • the second feature value described in this embodiment is a feature that represents the user's ability to maintain a trusted identity in the business system for a long time and perform trusted behavior Reliability is a measure of the credibility of a user over a long period of time (even after joining a business system). Therefore, the above embodiment incorporates the user's credibility or the second characteristic value into the virtual resource allocation method, calculates the user's contribution ratio in the target service based on the first characteristic value and the second characteristic value, and encourages the user While doing more business, maintaining a good level of credibility makes the business system develop towards a more benign state.
  • the credibility of participating in one service may be different from the credibility of users participating in another service.
  • a second characteristic of the user when performing a business behavior related to the target service may be selected Value is added to the calculation of the contribution ratio, and the second characteristic value produced by the credibility that is not related to the target business may not be considered.
  • the business system's calculation rules that calculate the corresponding second characteristic value by the user's trusted behavior can be deployed in the underlying program code of the business system, or the user node is in the business
  • Various credible behavior events executed in the system, or the credibility established due to various credible behavior events, or the second feature value calculated based on the credibility of various credible behavior events can be included in
  • any node of the blockchain performs the process of calculating and obtaining the second feature value. Therefore, obtaining the second characteristic value of the user described in this embodiment may be that the nodes of the blockchain directly obtain the second characteristic value of the user from the distributed database of the blockchain, or that the nodes of the blockchain are based on the area.
  • Various trusted behaviors performed by users included in the distributed database of the blockchain, and corresponding second characteristic values are calculated.
  • the business system can set a corresponding total amount of virtual resources that can be used for allocation for the target business within a preset time period.
  • the total amount of the virtual resources may be dynamically adjusted. For example, the business system sets an expected value for the sum of the first characteristic values of all users in the preset time period, and sets a total amount of the virtual resources available for allocation based on the target service in the preset time period.
  • a fixed threshold the method further includes: obtaining an actual value of a sum of first characteristic values of all users within the preset duration; comparing the expected value with the actual value, if the actual value does not exceed the expected value
  • the total amount of virtual resources is the fixed threshold; if the actual value exceeds the expected value, an additional value of virtual resources is set based on a difference between the actual value and the expected value, and the total amount of virtual resources is The sum of the fixed threshold and the extra value.
  • the calculation rule of the total amount of virtual resources available for allocation within the preset period of time in the business system can be deployed in the underlying program code of the business system .
  • an due virtual resource for the user to participate in the target service within the preset time period is obtained.
  • the due virtual resource may be obtained by a product of the total amount of the virtual resource and the contribution ratio of the user.
  • step 106 the user is allocated the due virtual resources that participate in the target service within the preset duration.
  • the above-mentioned allocation of the due virtual resources to the user can be realized by sending a transaction for virtual resource transfer to the user's address on the blockchain.
  • the business system Since the business system is built based on the blockchain, the business system is based on the total amount of the virtual resources and the user's contribution ratio to allocate the user to participate in the target business within the preset duration
  • the calculation rules of the deserved virtual resources can be deployed in the underlying program code of the business system.
  • the calculation rules regarding the first feature value, the second feature value, the contribution ratio, the total amount of virtual resources, and the due virtual resources may be deployed in the underlying program code of the business system.
  • the above calculation rules can be set or changed on the fly.
  • the smart contract for virtual resource transfer can be deployed on the blockchain after the consensus verification of the blockchain consensus nodes; the above area Any node device or client in the block chain receives the calling transaction to the smart contract, executes the smart contract declaration and obtains the user to participate in the preset time period based on the first feature value
  • the due virtual resources of the target service, and the user is assigned execution logic of the due virtual resources that participate in the target service within the preset time period.
  • the execution logic declared by the smart contract to allocate the due virtual resources to the user may be implemented by sending a virtual resource transfer transaction to the user's blockchain address through the smart contract.
  • the above-mentioned first characteristic value can be cleared, that is, after the user is assigned the due virtual resources within the preset time period, the user is released to the distributed database of the blockchain.
  • the clearing transaction is used to set the first characteristic value of the user to zero.
  • execution logic for clearing the first characteristic value of the user is stated in the smart contract. After allocating the due virtual resources to the user, the smart contract is provided to the zone. A clearing transaction is issued in the distributed database of the blockchain, and the clearing transaction is used to set the first characteristic value of the user to zero.
  • the smart contract can be published to the blockchain through any node device in the blockchain, and the smart contract is designated by the designated member node device in the blockchain (for example, the alliance chain After a number of authoritative node devices specified in the accounting authority have completed consensus, they are included in the distributed database of the blockchain. Subsequently, the user can access the client of any node device and submit a transaction to the smart contract included in the blockchain to initiate a contract call to the smart contract, triggering the execution of relevant business logic on the blockchain .
  • smart contracts are called at any time in response to user requests, greatly improving the efficiency of user identity authentication; and smart contract execution has the advantages of lower human intervention and decentralized authority, and more Increased transparency and fairness of computing behavior.
  • the execution method of a smart contract has a larger design flexibility.
  • the allocation of virtual resources is phased in time, and the user's contribution ratio to the target business is evaluated within a preset period of time, so that the preset period of time is available for allocation
  • the total amount of virtual resources is allocated according to the contribution ratio of each user, which avoids the disadvantage that the existing virtual resource allocation cannot be encouraged by new users due to the accumulated use time of the business system by users.
  • the second feature value used to characterize the user's credibility is encouraged to be included in the user's contribution ratio to the target service, so that the virtual resource allocation to the user in the business system is not only It is related to the user's contribution to the target business, and also to the user's credibility. Encouraging users to do more business while maintaining a good level of credibility, so that the business system is developing towards a more benign state.
  • the first characteristic value and the second characteristic value used to characterize the contribution to a service running in a business system within a preset period of time may be Decentralized recording in the distributed database of the blockchain, or the process of obtaining the first characteristic value, the second characteristic value, the corresponding contribution ratio, and the due virtual resources can be deployed by any node on the blockchain by calling Smart contracts on the blockchain are executed fairly and fairly.
  • the first feature value and the second feature value will not be tampered with after being provided, thereby ensuring that depending on the first feature value, or the first feature value and the second feature value, The reliability and fairness of the virtual resource allocation behavior.
  • the embodiment of the present specification further provides a virtual resource allocation device 20.
  • the above devices 20 may be implemented by software, or may be implemented by hardware or a combination of software and hardware.
  • software implementation as an example, as a device in a logical sense, it is formed by reading a corresponding computer program instruction into a memory through a CPU (Central Process Unit) of a device where the device is located.
  • CPU Central Process Unit
  • the equipment that implements the network risk service usually includes other hardware such as chips for wireless signal transmission and reception, and / or for implementing Other hardware such as network communication board.
  • FIG. 2 is a virtual resource allocation device 20 according to an embodiment of the present specification, and is configured to allocate virtual resources to users of a service system.
  • the device 20 includes:
  • the obtaining unit 202 obtains a first feature value of a user, where the first feature value is used to represent a contribution of the user to a target service in a service system within a preset period of time;
  • the allocating unit 204 allocates, to the user, the due virtual resources that participate in the target service within the preset duration.
  • the obtaining unit 202 the obtaining unit 202:
  • the above device 20 further includes:
  • the clearing unit 206 clears the first characteristic value of the user after allocating the due virtual resources to the user within the preset duration.
  • the obtaining unit 202 the obtaining unit 202:
  • the service system sets an expected value for the sum of the first feature values of all users in the preset time period, and provides an available value based on the target service for the preset time period.
  • the total amount of the allocated virtual resources is set with a fixed threshold; the device further includes a total amount of virtual resource calculation unit:
  • an additional value of a virtual resource is set based on a difference between the actual value and the expected value, and the total amount of the virtual resource is a sum of the fixed threshold and the additional value.
  • the obtaining unit 202 the obtaining unit 202:
  • a contribution ratio of the user to the target service is obtained.
  • the business system is a system constructed based on a blockchain that includes a plurality of user nodes.
  • the device 20 further includes a clear transaction sending unit 208: after allocating the user with the due virtual resources within the preset time period, to the blockchain A clearing transaction is issued in the distributed database, the clearing transaction is used to set the first characteristic value of the user to zero.
  • the obtaining unit 202 and the assigning unit 204 :
  • the smart contract further declares execution logic that clears the first characteristic value of the user, and allocates the due virtual resources to the user to the user.
  • a clearing transaction is issued in the distributed database of the blockchain, and the clearing transaction is used to set the first characteristic value of the user to zero.
  • the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical modules, that is, may be located in One place, or can be distributed to multiple network modules. Some or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
  • the devices, units, and modules described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or may be implemented by a product having a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or a combination of any of these devices.
  • the embodiment of the present specification further provides a computer device, the computer device including a memory and a processor.
  • the memory stores a computer program that can be run by a processor.
  • the processor runs the stored computer program, the processor executes each step of the virtual resource allocation method in the embodiment of the present specification.
  • the processor executes each step of the virtual resource allocation method in the embodiment of the present specification. For a detailed description of each step of the virtual resource allocation method, refer to the previous content and will not be repeated.
  • the embodiments of the present specification also provide a computer-readable storage medium.
  • the storage medium stores computer programs.
  • the virtual programs in the embodiments of the present specification execute Steps of the resource allocation method.
  • Steps of the resource allocation method For a detailed description of each step of the virtual resource allocation method, refer to the previous content and will not be repeated.
  • a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
  • the embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, the embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本说明书的一个或多个实施例提供了基于区块链的虚拟资源分配方法和装置,应用于基于区块链构建的业务系统,所述区块链包括多个用户节点,所述方法包括获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内对业务系统内所参加目标业务中的贡献;基于所述第一特征值获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源;为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。

Description

一种虚拟资源的分配方法和装置 技术领域
本说明书涉及网络信息处理技术领域,尤其涉及一种虚拟资源的分配方法和装置。
背景技术
为鼓励用户对业务的贡献,业务系统常基于业务贡献对用户进行虚拟资源分配。现有业务系统通常采用积分表征用户所作的业务贡献,由于积分计算采取累积的方式,老用户将累积比新用户更多的积分。由于积分多少决定了最终奖励的分配,老用户往往能比新用户分配到更多虚拟资源。这样的计算方式过多奖励了加入时间越久的用户,其实并不能非常好地衡量一个用户对业务系统的贡献量,降低了新用户加入或使用业务系统的意愿。
区块链技术,也被称之为分布式账本技术,是一种由若干台计算设备共同参与“记账”,共同维护一份完整的分布式数据库的新兴网络技术。由于区块链技术具有去中心化、公开透明、每台计算设备可以参与数据库记录、并且各计算设备之间可以快速的进行数据同步的特性,使得区块链技术已在众多的领域中广泛的进行应用。
发明内容
有鉴于此,本说明书一个或多个实施例提供了一种虚拟资源的分配方法,用于对业务系统的用户进行虚拟资源分配,包括:
获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内对业务系统内所参加目标业务中的贡献;
基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;
为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
在又一示出的实施例中,所述基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,包括:
基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;
获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;
基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。
在又一示出的实施例中,所述的方法,还包括:
在为所述用户分配在所述预设时长内的应得虚拟资源之后,清零所述用户的第一特征值。
在又一示出的实施例中,所述基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率,包括:
获得所述用户的第二特征值,其中,所述第二特征值用以表征所述用户的可信度;
基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内所述用户在所述预设的时长内对所述目标业务的贡献比率。
在又一示出的实施例中,所述业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述方法还包括:
获得所述预设时长内所有用户的第一特征值总和的实际值;
对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;
如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与所述额外值之和。
在又一示出的实施例中,所述基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率,包括:
基于所述第一特征值和所述第二特征值获得所述用户对所述目标业务的贡献参数值;
获得所有用户对业务系统内所述目标业务的贡献参数值总和;
基于所述用户的贡献参数值占所述贡献参数值总和的比率,获得所述用户对所述目标业务的贡献比率。
在又一示出的实施例中,所述业务系统是基于区块链构建的系统,所述区块链包括多个用户节点。
在又一示出的实施例中,所述方法还包括:在为所述用户分配在所述预设时长内的应得虚拟资源之后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
在又一示出的实施例中,所述基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源,包括:
调用发布在所述区块链上的虚拟资源分配智能合约,执行所述智能合约所声明的基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,且为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的执行逻辑。
在又一示出的实施例中,所述智能合约内还声明有将所述用户的第一特征值清零的执行逻辑,在为所述用户分配所述应得虚拟资源后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
本说明书还提供了一种虚拟资源的分配装置,用于对业务系统的用户进行虚拟资源分配,包括:
获得单元,获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内对业务系统内所参加目标业务中的贡献;
基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;
分配单元,为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
在又一示出的实施例中,所述获得单元:
基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;
获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;
基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。
在又一示出的实施例中,上述装置还包括:
清零单元,在为所述用户分配在所述预设时长内的应得虚拟资源之后,清零所述用户的第一特征值。
在又一示出的实施例中,所述获得单元:
获得所述用户的第二特征值,其中,所述第二特征值用以表征所述用户的可信度;
基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率。
在又一示出的实施例中,所述业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述装置还包括虚拟资源总量计算单元:
获得所述预设时长内所有用户的第一特征值总和的实际值;
对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;
如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与所述额外值之和。
在又一示出的实施例中,所述获得单元:
基于所述第一特征值和所述第二特征值获得所述用户对所述目标业务的贡献参数值;
获得所有用户对业务系统内所述目标业务的贡献参数值总和;
基于所述用户的贡献参数值占所述贡献参数值总和的比率,获得所述用户对所述目标业务的贡献比率。
在又一示出的实施例中,所述业务系统是基于区块链构建的系统,所述区块链包括多个用户节点。
在又一示出的实施例中,所述的装置还包括清零交易发送单元:在为所述用户分配在所述预设时长内的应得虚拟资源之后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
在又一示出的实施例中,所述获得单元和分配单元:
调用发布在所述区块链上的虚拟资源分配智能合约,执行所述智能合约所声明的基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,且为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的执行逻辑。
在又一示出的实施例中,所述智能合约内还声明有将所述用户的第一特征值清零的 执行逻辑,在为所述用户分配所述应得虚拟资源后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
本说明书还提供了一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行上述虚拟资源分配方法所述的步骤。
本说明书还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时,执行上述虚拟资源分配方法所述的步骤。
由以上技术方案可见,本说明书提供的虚拟资源的分配方法及装置,将虚拟资源的分配按时间分阶段化,在预设的时长内评价用户对目标业务的贡献比率,从而将该预设的时长内可供分配的虚拟资源总量按照各用户的贡献比率相应分配,避免了现有的虚拟资源分配依赖用户对业务系统的积累使用时长而引起的不能鼓励新用户加入的缺点。而且,在一些示出的实施例中,鼓励用以表征用户的可信度的第二特征值纳入到用户对目标业务的贡献比率中来,使得业务系统中对用户进行的虚拟资源分配,不仅与用户对目标业务的贡献相关,还与用户的可信度相关,鼓励用户在多做业务的同时、维持良好的可信程度,使得业务系统朝着更为良性的状态发展。
进一步地,将上述虚拟资源分配方法应用于区块链网络中,将用以表征所述在预设的时长内对业务系统内运行的业务的贡献的第一特征值、或将第一特征值和用以表征用户可信度的第二特征值去中心化地记录在区块链的分布式数据库中,由区块链的节点共同维护,所有数据记录可回溯,而且,基于区块链的共识机制,所述第一特征值、第二特征值不会在提供后被篡改,从而保证了依托于所述第一特征值、或第一特征值和第二特征值而进行的虚拟资源分配行为的可靠性和公平性。
附图说明
图1为本说明书所提供的一实施例所示的虚拟资源分配方法的流程图;
图2为本说明书所提供的一实施例提供的虚拟资源分配装置的示意图;
图3为运行本说明书所提供的虚拟资源分配装置实施例的一种硬件结构图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附 图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。
图1是一示例性实施例提供的一种虚拟资源分配方法的流程图,用于对业务系统的用户进行虚拟资源分配。本说明书中各实施例所述的业务系统可以是包括任何业务行为的线上或线下系统,包括但不限于社交、支付、游戏、租赁、社区、车辆调度、保险理赔、信用服务、医疗服务等系统。本说明书中各实施例所述的虚拟资源,包括上述业务系统中可分配的虚拟资源奖励形式,如计算力、积分或其他特征分值等。
当业务系统为线上业务平台时,如果上述业务系统是基于中心化网络搭建的“服务器-客户端”型系统,本实施例中所述的虚拟资源分配方法的执行主体可以是上述业务系统的中心化服务器;如果上述业务系统是基于区块链网络搭建的“业务系统节点——用户节点”型的分布式系统,由于每个节点均可获得区块链的分布式数据库中的全量数据,本实施例中所述的虚拟资源分配方法的执行主体则可以是上述区块链网络中的任一节点设备或客户端。
如图1所示,上述虚拟资源的分配方法包括:
步骤102,获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内在业务系统内所参加目标业务中的贡献。
本实施例所述的第一特征值是用以表征用户在业务系统中所参加的目标业务的贡献,所述目标业务的具体表现形式可由业务系统设定,如用户每日登录、实名认证、发布信息、游戏升级、完成约车、支付成功等等;目标业务还可划分为不同的流程步骤。本实施例所述的用户在所参加目标业务中的贡献,是指用户在目标业务中的参与程度或完成程度。上述第一特征值可具体的表现为用户参加上述目标业务所获得的积分值、成长值、活跃度等。
本领域的技术人员熟知,在预设的时长内,用户在业务系统内的所参加的目标业务可以有多种或多次,因此本实施例所述的目标业务,既可以是一种或一次的具体业务,也可以是多种的具体业务,还可以是多次的具体任务,甚至可以是预设的时长内所有的具体业务的总和,实际可依业务系统设置的目标任务计算规则而定。为方便统计,上述预设的时长可以设置为一个自然日、或一个星期、或一个月等任何业务系统根据其具体运行的业务而方便统计用户对业务所作贡献的时长。
步骤104,基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源。
基于上述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源的方式可依业务系统的具体计算规则而设置。在一种示出的实施方式中,上述过程包括:基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。
获得所述贡献比率的具体方式可以有多种,在一示出的实施方式中,通过获得预设的时长内所有用户基于所述目标业务所获的第一特征值的总和,基于上述用户的第一特征值占用上述第一特征值总和的比率,即可获得上述用户在所述预设的时长内对所述目标业务的贡献比率。
在又一示出的实施方式中,可先基于所述用户的第一特征值计算出所述用户参加上述目标业务的贡献参数值;再基于相同的计算方式,计算出所有其他用户参加上述目标业务的贡献参数值;通过上述用户的贡献参数值占用所有用户的贡献参数值的比例,即可获得上述用户在所述预设的时长内对所述目标业务的贡献比率。
为了防止业务系统的用户为了获得更多的第一特征值而恶意刷单,上述业务系统内的虚拟资源分配还可引入用以表征用户的可信度的第二特征值,基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率。
具体而言,用户可以通过多种行为提升自身的第二特征值,例如建立起自身的可信身份——通过实名认证/刷脸认证、企业邮箱认证(证明自己确实在某家公司工作)、让已经认证的用户帮自身做背书,证明自己确实在某家公司工作等方式建立可信身份,保持可信身份——不要做假,如果虚报自己的身份或者给其他用户做虚假认证,被其他用 户举报属实,会降低第二特征值,执行可信行为——例如完成约车、约饭准时赴约、按时支付租房费用等诚实地执行目标业务。用户通过提高自身的第二特征值,可以相应提高用户在目标业务中的贡献比率,从而可在以后分配虚拟资源时获得更高比率的虚拟资源。
在一示出的计算方式中,关于用户在目标业务中的贡献比率的具体算法可如下所示:
预设时长内用户在目标业务中的贡献参数值=(用户的第一特征值*用户的第二特征值)/100;
相应地,
预设时长内用户对目标业务的贡献比率=预设时长内用户对目标业务的贡献参数值/预设时长内所有用户对目标业务的贡献参数值总和。
与第一特征值是表征用户在预设时长内的参与目标业务的贡献不同,本实施例所述的第二特征值是表征用户在业务系统中长期保持可信身份、执行可信行为的可信度,是用户长期内(甚至是加入业务系统以来)可信度的度量。因此上述实施例将用户的可信度或上述第二特征值纳入到虚拟资源的分配方法中来,基于上述第一特征值和第二特征值来计算用户在目标业务中的贡献比率,鼓励用户在多做业务的同时、维持良好的可信程度,使得业务系统朝着更为良性的状态发展。
值得注意的是,基于用户在参与不同的目标业务时所体现出的可信度可能不同,参与一种业务的可信度可能与用户参与另一种业务的可信度不同,在基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率时,可以选择用户在执行与所述目标业务相关的业务行为时的第二特征值加入到所述贡献比率的计算中,与所述目标业务无关的可信度所生产的第二特征值可不予以考虑。
业务系统可为预设时长内的目标业务设置相应的、可用于分配的虚拟资源总量。在一示出的实施例中,为鼓励用户积极参与目标业务,上述虚拟资源总量可以为动态调整状态。例如,业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述方法还包括:获得所述预设时长内所有用户的第一特征值总和的实际值;对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与额外值之和。通过以上实施 例所述的对虚拟资源总量的设置规则,更加提高了用户参与目标业务的积极性。
进一步地,基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源;例如,所述应得虚拟资源可以由所述虚拟资源总量与所述用户的所述贡献比率的乘积获得。
步骤106,为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
在一示出的实施方式中,当依据上述实施例所提供的虚拟资源分配方法,上述用户获取到其参与上述目标任务的应得虚拟资源后,为方便系统在下一个预设时长内对虚拟资源进行分配结算,可以将上述第一特征值清零。当然,本领域的技术人员熟知,也可不将上述第一特征值清零,但在关于第一特征值的管理系统中,应将已经基于第一特征值而分配过相应的虚拟资源的第一特征值予以标记,不将计入用户在下一预设时长的、或其他的目标业务的应得虚拟资源的计算中。
通过以上各实施例所提供的虚拟资源分配方法,将虚拟资源的分配按时间分阶段化,在预设的时长内评价用户对目标业务的贡献比率,从而将该预设的时长内可供分配的虚拟资源总量按照各用户的贡献比率相应分配,避免了现有的虚拟资源分配依赖用户对业务系统的积累使用时长而引起的不能鼓励新用户加入的缺点。而且,在一些示出的实施例中,鼓励用以表征用户的可信度的第二特征值纳入到用户对目标业务的贡献比率中来,使得业务系统中对用户进行的虚拟资源分配,不仅与用户对目标业务的贡献相关,还与用户的可信度相关,鼓励用户在多做业务的同时、维持良好的可信程度,使得业务系统朝着更为良性的状态发展。
当上述业务系统是基于中心化网络搭建的“服务器-客户端”型系统,由上述业务系统的中心化服务器执行上述实施例所述的虚拟资源分配方法时,不能排除中心化服务器通过私自更改用户的第一特征值、或第二特征值而操纵对用户的虚拟资源分配的可能性,本说明书的又一实施例提供了基于区块链的虚拟资源分配方法的实施例。区块链作为一种P2P网络技术,以其去中心化、及数据不可篡改的优点获得越来越多的应用。在本实施例中,上述业务系统是基于区块链构建的系统,上述区块链包括多个用户节点,用户节点参与业务系统的目标任务而产生的相关数据信息可被收录在区块链的分布式数据库中。
本说明书各实施例所述的区块链,具体可指一个各节点通过共识机制达成的、具有分布式数据存储结构的P2P网络系统,该区块链内的数据分布在时间上相连的一个个 “区块(block)”之内,后一区块包含前一区块的数据摘要,且根据具体的共识机制(如POW、POS、DPOS或PBFT等)的不同,达成全部或部分节点的数据全备份。本领域的技术人员熟知,由于区块链系统在相应共识机制下运行,已收录至区块链数据库内的数据很难被任意的节点篡改,例如采用Pow共识的区块链,至少需要全网51%算力的攻击才有可能篡改已有数据,因此区块链系统有着其他中心化数据库系统所法比拟的保证数据安全、防攻击篡改的特性。由此可知,在本说明书所提供的实施例中,被收录至区块链的分布式数据库中的数据不会被攻击或篡改,从而保证了基于分布式数据库所存储的信息所进行的虚拟资源分配过程的公平准确性。
本实施例所述的基于区块链的虚拟资源分配方法,可由该区块链中的任一节点设备,或与任一节点设备相连的客户端执行,在此不做限定。如图1所示,所述方法包括:
步骤102,获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内在业务系统内所参加目标业务中的贡献。
本实施例所述的第一特征值是用以表征用户在业务系统中所参加的目标业务的贡献,所述目标业务的具体表现形式可由业务系统设定,如用户每日登录、实名认证、发布信息、游戏升级、完成约车、支付成功等等;目标业务还可划分为不同的流程步骤。本实施例所述的用户在所参加目标业务中的贡献,是指用户在目标业务中的参与程度或完成程度。相应的,上述第一特征值可具体的表现为用户参加上述目标业务所获得的积分值、成长值、活跃度等。
本领域的技术人员熟知,在预设的时长内,用户在业务系统内的所参加的目标业务可以有多种或多次,因此本实施例所述的目标业务,既可以是一种或一次的具体业务,也可以是多种的具体业务,还可以是多次的具体任务,甚至可以是预设的时长内所有的具体业务的总和,实际可依业务系统设置的目标任务设置规则而定。为方便统计,上述预设的时长可以设置为一个自然日、或一个星期、或一个月等任何业务系统根据其具体运行的业务而方便统计用户对业务所作贡献的时长。
由于业务系统是基于区块链而构建的,该业务系统对分配虚拟资源所基于目标任务的设置规则可被部署在该业务系统的底层程序代码中,或用户节点在所参加的目标业务中的贡献(如登陆系统、实名认证、公司认证、参与或完成目标业务等事件),或者基于上述用户节点在所参加的目标业务中的贡献而获得的第一特征值可被收录在区块链的分布式数据库中,由区块链的任一节点执行第一特征值的计算获得过程。因此本实施例所述的获得用户的第一特征值,可以是区块链的节点直接从区块链的分布式数据库中 获得用户的第一特征值,也可以是区块链的节点基于区块链的分布式数据库所收录的用户所参加的目标业务中的贡献相关的数据信息,计算获得出相应的第一特征值。
步骤104,基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源。
基于上述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源的方式可依业务系统的具体计算规则而设置。在一种示出的实施方式中,上述过程包括:基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。
获得所述贡献比率的具体方式可以有多种,在一示出的实施方式中,通过获得预设的时长内各个用户基于所述目标业务所获的各个第一特征值,即可获得预设的时长内所有用户基于所述目标业务所获的第一特征值的总和,基于上述用户的第一特征值占用上述第一特征值总和的比率,即可获得上述用户在所述预设的时长内对所述目标业务的贡献比率。
在又一示出的实施方式中,可先基于所述用户的第一特征值计算出所述用户参加上述目标业务的贡献参数值;再基于相同的计算方式,计算出所有其他用户参加上述目标业务的贡献参数值;通过上述用户的贡献参数值占用所有用户的贡献参数值的比例,即可获得上述用户在所述预设的时长内对所述目标业务的贡献比率。
为了防止业务系统的用户为了获得更多的第一特征值而恶意刷单,上述业务系统内的虚拟资源分配还可引入用以表征用户的可信度的第二特征值,基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率。
具体而言,用户可以通过多种行为提升自身的第二特征值,例如建立起自身的可信身份——通过实名认证/刷脸认证、企业邮箱认证(证明自己确实在某家公司工作)、让已经认证的用户帮自身做背书,证明自己确实在某家公司工作等方式建立可信身份,保持可信身份——不要做假,如果虚报自己的身份或者给其他用户做虚假认证,被其他用户举报属实,会降低第二特征值,执行可信行为——例如完成约车、约饭准时赴约、按时支付租房费用等诚实地执行目标业务。用户通过提高自身的第二特征值,可以相应提高用户在目标业务中的贡献比率,从而可在以后分配虚拟资源时获得更高比率的虚拟 资源。
在一示出的计算方式中,关于用户在目标业务中的贡献比率的具体算法可如下所示:
预设时长内用户在目标业务中的贡献参数值=(用户的第一特征值*用户的第二特征值)/100;
相应地,
预设时长内用户对目标业务的贡献比率=预设时长内用户对目标业务的贡献参数值/预设时长内所有用户对目标业务的贡献参数值总和。
与第一特征值是表征用户在预设时长内的参与目标业务的贡献不同,本实施例所述的第二特征值是表征用户在业务系统中长期保持可信身份、执行可信行为的可信度,是用户长期内(甚至是加入业务系统以来)可信度的度量。因此上述实施例将用户的可信度或上述第二特征值纳入到虚拟资源的分配方法中来,基于上述第一特征值和第二特征值来计算用户在目标业务中的贡献比率,鼓励用户在多做业务的同时、维持良好的可信程度,使得业务系统朝着更为良性的状态发展。
值得注意的是,基于用户在参与不同的目标业务时所体现出的可信度可能不同,参与一种业务的可信度可能与用户参与另一种业务的可信度不同,在基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率时,可以选择用户在执行与所述目标业务相关的业务行为时的第二特征值加入到所述贡献比率的计算中,与所述目标业务无关的可信度所生产的第二特征值可不予以考虑。
由于业务系统是基于区块链而构建的,该业务系统由用户的可信行为而计算相应的第二特征值的计算规则可被部署在该业务系统的底层程序代码中,或用户节点在业务系统中执行的各种可信行为事件、或由于各种可信行为事件而建立的可信度或基于各种可信行为事件的可信度而计算获得的第二特征值均可被收录在区块链的分布式数据库中,由区块链的任一节点执行第二特征值的计算获得过程。因此本实施例所述的获得用户的第二特征值,可以是区块链的节点直接从区块链的分布式数据库中获得用户的第二特征值,也可以是区块链的节点基于区块链的分布式数据库所收录的用户执行的各种可信行为,而计算出相应的第二特征值。
业务系统可为预设时长内的目标业务设置相应的、可用于分配的虚拟资源总量。在一示出的实施例中,为鼓励用户积极参与目标业务,上述虚拟资源总量可以为动态调 整状态。例如,业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述方法还包括:获得所述预设时长内所有用户的第一特征值总和的实际值;对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与额外值之和。通过以上实施例所述的对虚拟资源总量的设置规则,更加提高了用户参与目标业务的积极性。
由于业务系统是基于区块链而构建的,该业务系统中所述预设时长内基于所述目标业务可供分配的虚拟资源总量计算规则,可被部署在该业务系统的底层程序代码中。
进一步地,基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。例如,所述应得虚拟资源可以由所述虚拟资源总量与所述用户的所述贡献比率的乘积获得。
步骤106,为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
上述为用户分配所述应得虚拟资源可通过向区块链上该用户的地址发送一用以虚拟资源转移的交易(transaction)来实现。
由于业务系统是基于区块链而构建的,该业务系统中基于所述虚拟资源总量和所述用户的所述贡献比率,为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的计算规则,可被部署在该业务系统的底层程序代码中。
在上述各实施例中,关于第一特征值、第二特征值、贡献比率、虚拟资源总量、应得虚拟资源的计算规则可以被部署在该业务系统的底层程序代码中。为了进一步保证用户身份认证的过程真实有效、公平公正,零活设置或更改上述计算规则,可经区块链共识节点的共识验证、在区块链上部署用于虚拟资源转移的智能合约;上述区块链中的任一节点设备或客户端,通过接收对所述智能合约的调用交易,执行所述智能合约声明的基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,且为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的执行逻辑。
例如,调用发布在所述区块链上的虚拟资源分配智能合约,执行所述智能合约所声明的所述用户的贡献比率及所述虚拟资源总量的计算逻辑、和基于所述虚拟资源总量和所述用户的所述贡献比率,为所述用户分配在所述预设时长内的应得虚拟资源的分 配逻辑,对所述用户分配所述应得虚拟资源。上述智能合约所声明的为所述用户分配所述应得虚拟资源的执行逻辑,可通过上述智能合约向所述用户的区块链地址发送一虚拟资源转移交易(transaction)来实现。
在又一示出的实施方式中,当依据上述实施例所提供的虚拟资源分配方法,上述用户获取到其参与上述目标任务的应得虚拟资源后,为方便系统在下一个预设时长内对虚拟资源进行分配结算,可以将上述第一特征值清零,亦即,在为所述用户分配在所述预设时长内的应得虚拟资源之后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
在又一示出的实施例中,上述智能合约内还声明有将所述用户的第一特征值清零的执行逻辑,在为所述用户分配所述应得虚拟资源后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
当然,本领域的技术人员熟知,除了向区块链的分布式数据库中发布清零交易,还可发布更新用户的第一特征值状态的交易,在该交易中将已经基于第一特征值而分配过相应的虚拟资源的第一特征值予以标记,不将计入用户在下一预设时长的、或其他的目标业务的应得虚拟资源的计算中。
对于开发完成的智能合约,可以通过区块链中的任一节点设备将该智能合约发布至区块链,并在该智能合约由该区块链中的指定的成员节点设备(比如,联盟链中指定的若干个具有记账权限的权威节点设备)完成共识后,收录至该区块链的分布式数据库。后续,用户可以通过接入任一节点设备的客户端,向区块链中收录的该智能合约提交交易,来发起对该智能合约的合约调用,触发在区块链上来触发执行相关的业务逻辑。
其中,需要说明的是,区块链中的成员节点设备在对发布至区块链的智能合约、或所述智能合约的调用交易进行共识处理时,所采用的共识算法,以及具体的共识过程,在本说明书中不再进行详述,本领域技术人员在将本说明书记载的技术方案付诸实现时,可以参考相关技术中的记载。
相比于中心化的服务器运行方式,智能合约在任何时候应相应用户的请求而调用,大大提升用户身份认证的效率;且智能合约执行有着较低的人为干预、去中心化权威的优势,更加增加了计算行为的透明性和公平性。相比于将本说明书所提供的虚拟资源分配方法所包括的计算规则逻辑和执行逻辑编译部署至基于区块链构建的业务系统的底层数据库的实施方式,智能合约的执行方法具有更大的设计灵活性。
通过以上各实施例所提供的虚拟资源分配方法,将虚拟资源的分配按时间分阶段化,在预设的时长内评价用户对目标业务的贡献比率,从而将该预设的时长内可供分配的虚拟资源总量按照各用户的贡献比率相应分配,避免了现有的虚拟资源分配依赖用户对业务系统的积累使用时长而引起的不能鼓励新用户加入的缺点。而且,在一些示出的实施例中,鼓励用以表征用户的可信度的第二特征值纳入到用户对目标业务的贡献比率中来,使得业务系统中对用户进行的虚拟资源分配,不仅与用户对目标业务的贡献相关,还与用户的可信度相关,鼓励用户在多做业务的同时、维持良好的可信程度,使得业务系统朝着更为良性的状态发展。
进一步的,将上述虚拟资源分配方法应用于区块链网络中,将用以表征所述在预设的时长内对业务系统内运行的业务的贡献的第一特征值、第二特征值可被去中心化地记录在区块链的分布式数据库中,或者获得上述第一特征值、第二特征值、及相应的贡献比率、应得虚拟资源的过程可由区块链上任一节点通过调用部署在区块链上的智能合约公平公正的执行。基于区块链的共识机制,所述第一特征值、第二特征值不会在提供后被篡改,从而保证了依托于所述第一特征值、或第一特征值和第二特征值而进行的虚拟资源分配行为的可靠性和公平性。
与上述流程实现对应,本说明书的实施例还提供了虚拟资源分配装置20。上述装置20均可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为逻辑意义上的装置,是通过所在设备的CPU(Central Process Unit,中央处理器)将对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,除了图3所示的CPU、内存以及存储器之外,网络风险业务的实现装置所在的设备通常还包括用于进行无线信号收发的芯片等其他硬件,和/或用于实现网络通信功能的板卡等其他硬件。
图2为本说明书一实施例所示的一种虚拟资源分配装置20,用于对业务系统的用户进行虚拟资源分配,所述装置20包括:
获得单元202,获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内对业务系统内所参加目标业务中的贡献;
基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;
分配单元204,为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
在又一示出的实施例中,所述获得单元202:
基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;
获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;
基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。
在又一示出的实施例中,上述装置20还包括:
清零单元206,在为所述用户分配在所述预设时长内的应得虚拟资源之后,清零所述用户的第一特征值。
在又一示出的实施例中,所述获得单元202:
获得所述用户的第二特征值,其中,所述第二特征值用以表征所述用户的可信度;
基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率。
在又一示出的实施例中,所述业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述装置还包括虚拟资源总量计算单元:
获得所述预设时长内所有用户的第一特征值总和的实际值;
对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;
如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与所述额外值之和。
在又一示出的实施例中,所述获得单元202:
基于所述第一特征值和所述第二特征值获得所述用户对所述目标业务的贡献参数值;
获得所有用户对业务系统内所述目标业务的贡献参数值总和;
基于所述用户的贡献参数值占所述贡献参数值总和的比率,获得所述用户对所述目标业务的贡献比率。
在又一示出的实施例中,所述业务系统是基于区块链构建的系统,所述区块链包括多个用户节点。
在又一示出的实施例中,所述的装置20还包括清零交易发送单元208:在为所述用户分配在所述预设时长内的应得虚拟资源之后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
在又一示出的实施例中,所述获得单元202和分配单元204:
调用发布在所述区块链上的虚拟资源分配智能合约,执行所述智能合约所声明的基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,且为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的执行逻辑。
在又一示出的实施例中,所述智能合约内还声明有将所述用户的第一特征值清零的执行逻辑,在为所述用户分配所述应得虚拟资源后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,相关之处参见方法实施例的部分说明即可,在此不再赘述。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部单元或模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
上述实施例阐明的装置、单元、模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
与上述方法实施例相对应,本说明书的实施例还提供了一种计算机设备,该计算机设备包括存储器和处理器。其中,存储器上存储有能够由处理器运行的计算机程序; 处理器在运行存储的计算机程序时,执行本说明书实施例中虚拟资源分配方法的各个步骤。对虚拟资源分配方法的各个步骤的详细描述请参见之前的内容,不再重复。
与上述方法实施例相对应,本说明书的实施例还提供了一种计算机可读存储介质,该存储介质上存储有计算机程序,这些计算机程序在被处理器运行时,执行本说明书实施例中虚拟资源分配方法的各个步骤。对虚拟资源分配方法的各个步骤的详细描述请参见之前的内容,不再重复。
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。
计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本说明书的实施例可提供为方法、系统或计算机程序产品。因此,本说明书的实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书的实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。

Claims (22)

  1. 一种虚拟资源的分配方法,用于对业务系统的用户进行虚拟资源分配,包括:
    获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内对业务系统内所参加目标业务中的贡献;
    基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;
    为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
  2. 根据权利要求1所述的方法,所述基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,包括:
    基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;
    获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;
    基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长内参加所述目标业务的应得虚拟资源。
  3. 根据权利要求1或2所述的方法,还包括:
    在为所述用户分配在所述预设时长内的应得虚拟资源之后,清零所述用户的第一特征值。
  4. 根据权利要求2所述的方法,所述基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率,包括:
    获得所述用户的第二特征值,其中,所述第二特征值用以表征所述用户的可信度;
    基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率。
  5. 根据权利要求4所述的方法,所述业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述方法还包括:
    获得所述预设时长内所有用户的第一特征值总和的实际值;
    对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;
    如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与所述额外值之和。
  6. 根据权利要求4所述的方法,所述基于所述第一特征值和第二特征值获得所述 用户在所述预设的时长内对所述目标业务的贡献比率,包括:
    基于所述第一特征值和所述第二特征值获得所述用户对所述目标业务的贡献参数值;
    获得所有用户对业务系统内所述目标业务的贡献参数值总和;
    基于所述用户的贡献参数值占所述贡献参数值总和的比率,获得所述用户对所述目标业务的贡献比率。
  7. 根据权利要求1所述的方法,所述业务系统是基于区块链构建的系统,所述区块链包括多个用户节点。
  8. 根据权利要求7所述的方法,还包括:在为所述用户分配在所述预设时长内的应得虚拟资源之后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
  9. 根据权利要求7所述的方法,所述基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源,包括:
    调用发布在所述区块链上的虚拟资源分配智能合约,执行所述智能合约所声明的基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,且为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的执行逻辑。
  10. 根据权利要求9所述的方法,所述智能合约内还声明有将所述用户的第一特征值清零的执行逻辑,在为所述用户分配所述应得虚拟资源后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
  11. 一种虚拟资源的分配装置,用于对业务系统的用户进行虚拟资源分配,包括:
    获得单元,获得用户的第一特征值,其中,所述第一特征值用以表征所述用户在预设的时长内对业务系统内所参加目标业务中的贡献;
    基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源;
    分配单元,为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源。
  12. 根据权利要求11所述的装置,所述获得单元:
    基于所述第一特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率;
    获得所述业务系统在所述预设时长内基于所述目标业务可供分配的虚拟资源总量;
    基于所述虚拟资源总量和所述用户的所述贡献比率,获得所述用户在所述预设时长 内参加所述目标业务的应得虚拟资源。
  13. 根据权利要求11或12所述的装置,还包括:
    清零单元,在为所述用户分配在所述预设时长内的应得虚拟资源之后,清零所述用户的第一特征值。
  14. 根据权利要求12所述的装置,所述获得单元:
    获得所述用户的第二特征值,其中,所述第二特征值用以表征所述用户的可信度;
    基于所述第一特征值和第二特征值获得所述用户在所述预设的时长内对所述目标业务的贡献比率。
  15. 根据权利要求14所述的装置,所述业务系统为所述预设时长内所有用户的第一特征值总和设置有一预期值,并为所述预设时长内的基于所述目标业务可供分配的所述虚拟资源总量设置有一固定阈值;所述装置还包括虚拟资源总量计算单元:
    获得所述预设时长内所有用户的第一特征值总和的实际值;
    对比所述预期值与所述实际值,如果所述实际值未超过所述预期值,所述虚拟资源总量为所述固定阈值;
    如果所述实际值超过所述预期值,基于所述实际值与所述预期值的差值设置虚拟资源额外值,所述虚拟资源总量为所述固定阈值与所述额外值之和。
  16. 根据权利要求14所述的装置,所述获得单元:
    基于所述第一特征值和所述第二特征值获得所述用户对所述目标业务的贡献参数值;
    获得所有用户对业务系统内所述目标业务的贡献参数值总和;
    基于所述用户的贡献参数值占所述贡献参数值总和的比率,获得所述用户对所述目标业务的贡献比率。
  17. 根据权利要求11所述的装置,所述业务系统是基于区块链构建的系统,所述区块链包括多个用户节点。
  18. 根据权利要求17所述的装置,还包括清零交易发送单元:在为所述用户分配在所述预设时长内的应得虚拟资源之后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
  19. 根据权利要求17所述的装置,所述获得单元和分配单元:
    调用发布在所述区块链上的虚拟资源分配智能合约,执行所述智能合约所声明的基于所述第一特征值获得所述用户在所述预设的时长内参加所述目标业务的应得虚拟资源,且为所述用户分配在所述预设时长内参加所述目标业务的应得虚拟资源的执行逻辑。
  20. 根据权利要求19所述的装置,所述智能合约内还声明有将所述用户的第一特征值清零的执行逻辑,在为所述用户分配所述应得虚拟资源后,向所述区块链的分布式数据库中发布清零交易,所述清零交易用以将所述用户的第一特征值设置为零。
  21. 一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行如权利要求1到10任意一项所述的方法。
  22. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时,执行如权利要求1到10任意一项所述的步骤。
PCT/CN2019/100703 2018-09-25 2019-08-15 一种虚拟资源的分配方法和装置 WO2020063175A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811116433.8 2018-09-25
CN201811116433.8A CN109376008A (zh) 2018-09-25 2018-09-25 一种虚拟资源的分配方法和装置

Publications (1)

Publication Number Publication Date
WO2020063175A1 true WO2020063175A1 (zh) 2020-04-02

Family

ID=65402362

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/100703 WO2020063175A1 (zh) 2018-09-25 2019-08-15 一种虚拟资源的分配方法和装置

Country Status (3)

Country Link
CN (1) CN109376008A (zh)
TW (1) TW202013272A (zh)
WO (1) WO2020063175A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376008A (zh) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 一种虚拟资源的分配方法和装置
CN111784090B (zh) * 2019-04-04 2024-04-30 百度在线网络技术(北京)有限公司 基于区块链的资源分配方法、装置及存储介质
CN110262845B (zh) * 2019-04-30 2021-05-07 北京邮电大学 区块链使能的分布式计算任务卸载方法及系统
CN110233873B (zh) * 2019-05-06 2022-06-17 深圳壹账通智能科技有限公司 基于区块链的虚拟凭证值分配方法、合约运行装置及存储介质
CN110232599A (zh) * 2019-06-18 2019-09-13 深圳市元征科技股份有限公司 一种任务权益分配方法、装置、设备及存储介质
CN110490631A (zh) * 2019-07-01 2019-11-22 咪咕文化科技有限公司 业务激励方法、装置、电子设备及计算机可读存储介质
CN110458702A (zh) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 基于区块链的虚拟资源分配方法及装置、电子设备
US10785168B2 (en) 2019-07-15 2020-09-22 Alibaba Group Holding Limited Allocating virtual resource based on block chain
CN110599263B (zh) * 2019-09-26 2021-06-01 腾讯科技(深圳)有限公司 用户互动数据处理方法、装置、存储介质和计算机设备
CN111047454A (zh) * 2019-12-10 2020-04-21 山东浪潮人工智能研究院有限公司 基于区块链的开源社区代码贡献激励方法及设备
CN111552981B (zh) * 2020-04-26 2023-08-22 深圳前海壹互联科技投资有限公司 基于区块链技术的保险业务归属方法及系统
CN111629062A (zh) * 2020-05-29 2020-09-04 汉海信息技术(上海)有限公司 一种消息推送方法及装置
CN112015822B (zh) * 2020-10-20 2021-05-25 支付宝(杭州)信息技术有限公司 一种区块链数据的删除方法和装置
CN112330146B (zh) * 2020-11-04 2024-01-23 杭州拼便宜网络科技有限公司 一种虚拟资源分配方法、装置、设备及可读存储介质
CN113535335B (zh) * 2021-09-15 2022-01-11 支付宝(杭州)信息技术有限公司 基于区块链的虚拟资源分配方法及装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170153917A1 (en) * 2015-11-26 2017-06-01 China Construction Bank Corporation Account activity level based-system resource allocating method and device
CN108364173A (zh) * 2018-02-14 2018-08-03 北京三六五八网络科技有限公司 用于电商平台的数字资产处理方法及装置
CN108470277A (zh) * 2018-02-28 2018-08-31 深圳市网心科技有限公司 区块链的奖励结算方法、系统、可读存储介质及计算设备
CN109376008A (zh) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 一种虚拟资源的分配方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330440B (zh) * 2007-06-18 2011-04-13 中国电信股份有限公司 根据用户行为调节电信级p2p网络资源分配的方法
CN106850509B (zh) * 2015-12-07 2020-04-14 中国电信股份有限公司 网络访问控制方法及装置
CN106920092A (zh) * 2016-12-23 2017-07-04 阿里巴巴集团控股有限公司 一种虚拟资源分配方法、客户端及服务器
CN107122993A (zh) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 一种基于区块链的通用积分系统
CN108538358A (zh) * 2018-03-05 2018-09-14 上海康斐信息技术有限公司 一种用于穿戴设备的区块链积分奖励方法、系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170153917A1 (en) * 2015-11-26 2017-06-01 China Construction Bank Corporation Account activity level based-system resource allocating method and device
CN108364173A (zh) * 2018-02-14 2018-08-03 北京三六五八网络科技有限公司 用于电商平台的数字资产处理方法及装置
CN108470277A (zh) * 2018-02-28 2018-08-31 深圳市网心科技有限公司 区块链的奖励结算方法、系统、可读存储介质及计算设备
CN109376008A (zh) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 一种虚拟资源的分配方法和装置

Also Published As

Publication number Publication date
CN109376008A (zh) 2019-02-22
TW202013272A (zh) 2020-04-01

Similar Documents

Publication Publication Date Title
WO2020063175A1 (zh) 一种虚拟资源的分配方法和装置
WO2020042775A1 (zh) 一种基于区块链的随机对象选取方法和装置
TWI771604B (zh) 基於區塊鏈的商品購置方法和裝置
WO2020199744A1 (zh) 基于区块链的作品版权分配方法和装置
WO2020019798A1 (zh) 权益分配方法及装置、电子设备
JP2019160316A (ja) ブロックチェーンのためのリソースの公平性のためのシステム、方法、およびコンピュータ・プログラム
He et al. On the consensus mechanisms of blockchain/dlt for internet of things
WO2020125218A1 (zh) 一种基于区块链的理赔方法和装置
WO2020015409A1 (zh) 一种基于区块链的版权收益分配方法及装置
TWI736959B (zh) 基於區塊鏈的用戶特徵值獲取、應用方法和裝置
AU2019285610A1 (en) Blockchain-based exchange method and apparatus for available resource quotas
TW202008260A (zh) 基於中心化與去中心化的雙重交易方法及系統
CN111818185B (zh) 启动智能合约的方法及装置、电子设备、存储介质
JP7097980B2 (ja) 利用可能なリソース割当量のためのブロックチェーンベースのセット交換方法および装置
CN109117994B (zh) 事件预测方法及装置、电子设备
CN110851531B (zh) 协作边缘计算方法、区块链和协作边缘计算系统
WO2020019785A1 (zh) 事件预测方法及装置、电子设备
WO2023116790A1 (zh) 计算任务的执行方法、装置、存储介质及电子装置
WO2020015414A1 (zh) 一种基于区块链向作品发布者发放奖励的方法及装置
CN109711840B (zh) 一种交易数据处理方法、装置及存储介质
CN111640002A (zh) 一种基于区块链的货押贷款方法和装置
CN115456772A (zh) 一种智能合约的创建方法和装置
Barinov et al. POSDAO: Proof of stake decentralized autonomous organization
CN112015577B (zh) 一种智能合约的调用方法和装置
CN111784090B (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: 19866554

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: 19866554

Country of ref document: EP

Kind code of ref document: A1