Disclosure of Invention
The embodiment of the application provides a resource sharing method, a system, a device and electronic equipment, which are used for solving the problem that resources which can be shared in the prior art are limited, and even if sharing of certain resources can be realized, a resource requester needs to pay a great cost.
In order to solve the technical problems, the embodiment of the application is realized as follows:
In a first aspect, a method for sharing resources is provided, including:
the resource requesting party sends a shared resource using request to a super node for managing the shared resource based on the information of the shared resource published in a blockchain public account book on a blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
the super node determines resource use permission information corresponding to transaction cost paid by the resource request to the resource provider based on the use request and transaction records between the resource requester and the resource provider;
the super node allocates the shared resource for the resource requester or schedules the shared resource to complete the use request of the resource requester based on the resource use authority information.
In a second aspect, a resource sharing method is provided, where the method is applied to a super node in a blockchain system, and the method includes:
receiving a shared resource from a resource provider, and issuing information of the shared resource in a blockchain public account book on a blockchain system, so that a resource requester sends a use request of the shared resource to a super node managing the shared resource based on the information of the shared resource issued in the blockchain public account book on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
Determining resource use permission information corresponding to transaction cost paid by the resource request to the resource provider based on the use request and transaction records between the resource requester and the resource provider;
and distributing the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use permission information.
In a third aspect, a resource sharing system is provided, including a resource provider, a resource requester, and a super node, where:
the resource providing method comprises the steps that the resource providing method uploads shared resources to the super node so that the super node can release information of the shared resources in a blockchain public ledger on a blockchain system;
the resource requesting party sends a shared resource using request to a super node managing the shared resource based on the information of the shared resource published in a blockchain public account book on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
The super node determines resource use permission information corresponding to transaction cost paid by the resource request to the resource provider based on the use request and transaction records between the resource requester and the resource provider; and allocating the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use authority information.
In a fourth aspect, a resource sharing apparatus is provided, including:
the system comprises a receiving unit, a receiving unit and a super node, wherein the receiving unit receives shared resources from a resource provider and issues information of the shared resources in a blockchain public account book on a blockchain system, so that a resource requester sends a use request of the shared resources to the super node which manages the shared resources based on the information of the shared resources issued in the blockchain public account book on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
a determining unit, configured to determine resource usage right information corresponding to a transaction cost paid by the resource request to the resource provider based on the usage request and a transaction record between the resource requester and the resource provider;
And the completion unit is used for distributing the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use permission information.
In a fifth aspect, an electronic device is provided, the electronic device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving a shared resource from a resource provider, and issuing information of the shared resource in a blockchain public account book on a blockchain system, so that a resource requester sends a use request of the shared resource to a super node managing the shared resource based on the information of the shared resource issued in the blockchain public account book on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
determining resource use permission information corresponding to transaction cost paid by the resource request to the resource provider based on the use request and transaction records between the resource requester and the resource provider;
And distributing the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use permission information.
In a sixth aspect, a computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to:
receiving a shared resource from a resource provider, and issuing information of the shared resource in a blockchain public account book on a blockchain system, so that a resource requester sends a use request of the shared resource to a super node managing the shared resource based on the information of the shared resource issued in the blockchain public account book on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
determining resource use permission information corresponding to transaction cost paid by the resource request to the resource provider based on the use request and transaction records between the resource requester and the resource provider;
And distributing the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use permission information.
The embodiment of the application adopts the technical scheme at least to achieve the following technical effects:
because the resource requesting party can send a shared resource using request to the super node for managing the shared resource based on the information of the shared resource published in the blockchain public account book on the blockchain system; the information of the shared resource comprises a sharing policy of the shared resource, the sharing policy of the shared resource comprises transaction cost which needs to be paid for obtaining the shared resource, the super node can determine resource use permission information corresponding to the transaction cost which is paid for the resource provider by the resource request based on the use request and the transaction record between the resource requester and the resource provider, and can allocate the shared resource or schedule the shared resource for the resource requester based on the resource use permission information, so that the use request of the resource requester can be completed. The method and the system utilize the characteristic that the transaction process in the blockchain system is public and transparent, provide a convenient sharing platform for sharing different types of resources, and greatly facilitate a resource requester to acquire the use authority of the shared resources.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
In order to solve the problem that resources which can be shared are limited in the prior art, even if sharing of certain resources can be realized, a resource requester needs to pay a great cost, the embodiment of the specification provides a resource sharing method.
Specifically, an implementation flow diagram of a resource sharing method provided in one or more embodiments of the present disclosure is shown in fig. 1, and includes:
step 110, the resource requesting party sends a request for using the shared resource to the super node for managing the shared resource based on the information of the shared resource published in the blockchain public account book on the blockchain system;
the information of the shared resource comprises a shared strategy of the shared resource, and the shared strategy of the shared resource comprises transaction cost which needs to be paid for obtaining the shared resource. Alternatively, the transaction cost to be paid to acquire the shared resource may be measured in terms of transaction points agreed upon by most nodes in the blockchain. In addition, in the transaction cost for obtaining the shared resource and needing to be paid, the transaction cost for using or scheduling the shared resource within a unit time period can be specified, for example, transaction points needing to be paid per unit time period for using a certain shared resource can be specified.
Optionally, in order to facilitate the super node to complete the request of the resource requester for using the shared resource, the use request may include information such as a duration of time the resource requester wants to use the shared resource, a purpose of using the shared resource, and so on.
Optionally, to facilitate management and scheduling of the shared resources uploaded to the blockchain system, the blockchain system includes at least one supernode, and a plurality of common nodes, wherein one supernode manages at least one common node, then the processing step of the supernode on the shared resources uploaded by the resource provider may include:
the super node receives the shared resource from the resource provider and the sharing strategy of the shared resource;
the super node stores the shared resource into at least one common node managed by the super node, and records the shared information of the shared resource into the blockchain public ledger.
After the shared information of the shared resource is recorded in the blockchain public account book, the resource requesting party can look up the required shared resource in the blockchain public account book and use the information such as transaction cost which needs to be paid by the shared resource.
Optionally, in order to improve the security of the shared resource, such as the data resource or the algorithm resource, which is easily stolen, uploaded to the blockchain system, when the shared resource includes the data resource or the algorithm resource, the super node stores the shared resource into at least one common node managed by the super node, and specifically, the shared resource may be scattered and stored in an encrypted manner through the following steps:
The super node divides the shared resources into at least one group of resources;
the super node encrypts at least one group of resources;
and the super node respectively stores at least one group of resources after encryption processing into at least one common node managed by the super node.
For example, 10 common nodes managed by the super node are provided, the shared resources can be divided into 10 groups of resources, each group of resources is encrypted, and finally each group of resources is randomly stored in one common node managed by the super node, and specific storage conditions, namely which common node stores which group of shared resources, are encrypted and stored in the blockchain public account book.
Optionally, in order to improve the security of the shared resource, one or more embodiments of the present disclosure may further preset the obtaining permission of the shared resource, for example, a resource requester having an index such as transaction score, account reputation, or the like greater than or equal to a certain threshold may be set to have the obtaining permission of the shared resource. That is, not all resource requesters can transmit the request for use of the shared resource to the supernode, and only the resource requesters having the acquisition right of the shared resource can transmit the request for use of the shared resource to the supernode. When the shared resource includes a data resource or an algorithm resource, the shared resource sharing policy further includes an acquisition authority that can share the resource, and the resource requester sends a request for using the shared resource to a super node that manages the shared resource based on the information of the shared resource published by the blockchain public ledger on the blockchain system, which specifically includes the following steps:
The resource requesting party determines whether the resource requesting party has the acquisition authority of the shared resource or not based on the information of the shared resource issued by the blockchain public account book on the blockchain system;
if the resource requesting party has the acquisition authority of the shared resource, the resource requesting party can send a use request of the shared resource to the management super node.
Optionally, when the shared resource includes a computing resource, the preset method included in the shared policy of the shared resource to obtain the transaction cost to be paid by the shared resource is determined by at least one of:
preset by a resource provider of the shared resource;
determined by the supernode based on transaction conditions of other computing resources in the blockchain system.
The computing resources may include a central processor (Central Processing Unit, CPU) and a graphics processor (Graphics Processing Unit, GPU), and in actual sharing (i.e. renting), the supernode may initiate voting in the blockchain system to determine the units of the CPU and the GPU, that is, determine the resource size specifically included by the CPU and the GPU per unit, and the transaction cost required to be paid for renting the CPU and the GPU per unit in unit time may be preset by the resource provider, or may be determined by the supernode based on the transaction situation of other computing resources in the blockchain.
Step 120, the super node determines resource usage right information corresponding to the transaction cost paid by the resource request to the resource provider based on the usage request and the transaction record between the resource requester and the resource provider;
in order to ensure fair transaction between the resource requester and the resource provider, after the resource requester pays the transaction cost to the resource provider, the transaction record generated by the payment may be sent to the supernode, and similarly, after the resource provider receives the transaction cost paid by the resource requester, the transaction record generated by the payment may be sent to the supernode, so that the supernode verifies the transaction record.
It should be appreciated that, in order to improve the security of the shared resource after being shared to the resource requester, the resource usage rights may include information such as a duration that the resource requester can use or call the shared resource, the usage rights, and the like.
In step 130, the super node allocates the shared resource to the resource requester or schedules the shared resource to fulfill the use request of the resource requester based on the resource usage rights information.
Optionally, in order to avoid that the computing resource is uploaded into the blockchain while being used, which may cause that the resource requester cannot normally use the computing resource after acquiring the use authority of the computing resource, the computing resource in the embodiment of the present disclosure is in a locked state after being published on the blockchain public ledger and before being allocated to the resource requester by the supernode. Wherein the computing resource is not available to the resource provider or other user during the locked state.
Optionally, when the shared resource includes a machine learning model, in order to ensure the benefit of the resource requester, to avoid that the shared resource meeting the demand of the resource requester is not obtained after the resource requester pays the payment cost of the shared resource, the embodiment of the present specification may formulate an intelligent contract based on the use request and the transaction record of the resource requester to restrict the resource provider from completing the use request of the resource requester. Then, when the shared resource includes a machine learning model, the super node schedules the shared resource for the resource requester based on the resource usage rights information to complete a usage request of the resource requester, including:
the super node generates an intelligent contract based on the transaction records of the resource requesting party and the resource providing party for the machine learning model, and trains the resource requesting party to obtain the machine learning model by using the supervision resource providing party as the resource requesting party;
if the super node determines that the resource provider completes the intelligent contract, determining a user meeting preset conditions from the blockchain system to check and accept a machine learning model trained by the resource provider.
In order to ensure that the resource provider performs intelligent contracts, an artificial intelligent model meeting the requirements of the resource provider is obtained through training of the resource requester, the super node determines users meeting preset conditions from the blockchain system, and particularly determines a plurality of more authoritative users in the field of the artificial intelligent model from the blockchain system to check and accept the artificial intelligent model obtained through training of the resource provider for the resource provider.
Optionally, when the shared resource includes an environmental platform, the super node schedules the shared resource for the resource requester based on the resource usage rights information to complete a usage request of the resource requester, including:
the super node generates an intelligent contract based on the transaction records of the resource requesting party and the resource provider for the environment platform, and deploys the monitoring resource provider as the resource provider to obtain the environment platform;
if the super node determines that the resource provider completes the intelligent contract, a user meeting preset conditions can be determined from the blockchain system, so that the environment platform obtained by the resource provider through deployment of the resource provider is checked and accepted.
In order to ensure that the resource provider performs an intelligent contract, an environment platform meeting the requirements of the resource provider is deployed for the resource requester, the super node determines users meeting preset conditions from the blockchain system, and particularly determines a plurality of more authoritative users in the deployment field of the environment platform from the blockchain system to check and accept the environment platform deployed by the resource provider for the resource provider.
Optionally, when the shared resource includes a data resource or an algorithm resource, the super node allocates the shared resource for the resource requester or schedules the shared resource to complete a use request of the resource requester based on the resource use authority information, specifically, the shared resource stored in the plurality of common nodes can be decrypted and spliced according to the storage condition of the shared resource recorded in the blockchain public account book, and finally the decrypted shared resource is issued to a security node managed by the super node, and the resource requester is informed to download the shared resource from the security node. Each super node in the blockchain system manages at least one common node and at least one secret node, and the secret node is used for storing the shared resource requested to be used by a resource requester who obtains the use or calling authority of the shared resource.
Optionally, when the shared resource includes a data resource, the disclosure of the data resource to the resource requesters in the blockchain includes three of:
1. fully disclosed;
when the disclosure degree of a certain data resource to a resource requester in a blockchain is complete disclosure, all resource requesters in the blockchain system have the acquisition authority of the data resource, that is, the resource use authority corresponding to the transaction cost paid by the resource requester can be acquired as long as the transaction cost required to be paid for acquiring the data resource is included in the sharing strategy paid by the resource requester to the data resource.
2. Partially disclosed;
when the disclosure degree of a certain data resource to a resource requester in a blockchain is partially disclosed, only the resource requester with the data resource obtaining authority in the blockchain system can obtain the use authority of the data resource, for example, when the resource provider uploads a certain data resource, it can be defined that only the resource requester with the transaction score greater than or equal to a preset threshold value has the data resource obtaining authority. Then, the resource requester can acquire the resource usage right corresponding to the transaction cost paid by the resource requester, wherein the transaction cost required to be paid for acquiring the data resource is included in the sharing policy which is provided by the resource requester and has the transaction point greater than or equal to the preset threshold value.
3. Are not disclosed at all.
When the disclosure degree of a certain data resource to a resource requester in a blockchain is completely not disclosed, the data resource can be stored, transmitted or used for artificial intelligence model training, and in order to avoid the loss of the data resource, the security level of the data resource can be set, wherein different security levels correspond to different copying times, for example, the data resource with the security level of 1 corresponds to copying the data resource to be stored in each common node managed by the super node for 3 times, and the data resource with the security level of 2 corresponds to copying the data resource to be stored in each common node managed by the super node for 5 times. When the resource provider wants to use the data resources, a data use request can be sent to the super node, so that the super node can splice and send the data resources stored in different common nodes to the secret node, and the resource provider can download the data resources from the secret node.
It should be noted that, in one or more embodiments of the present disclosure, the resource requester and the resource provider are both users who have accounts allocated by the blockchain system.
Because the resource requesting party can send a shared resource using request to the super node for managing the shared resource based on the information of the shared resource published in the blockchain public account book on the blockchain system; the information of the shared resource comprises a sharing policy of the shared resource, the sharing policy of the shared resource comprises transaction cost which needs to be paid for obtaining the shared resource, the super node can determine resource use permission information corresponding to the transaction cost which is paid for the resource provider by the resource request based on the use request and the transaction record between the resource requester and the resource provider, and can allocate the shared resource or schedule the shared resource for the resource requester based on the resource use permission information, so that the use request of the resource requester can be completed. The method and the system utilize the characteristic that the transaction process in the blockchain system is public and transparent, provide a convenient sharing platform for sharing different types of resources, and greatly facilitate a resource requester to acquire the use authority of the shared resources.
Fig. 2 is a schematic flow chart of an implementation of the resource sharing method provided in the present disclosure applied to a super node in a blockchain system, including:
step 210, receiving the shared resource from the resource provider, and issuing the information of the shared resource in the blockchain public ledger on the blockchain system, so that the resource requester sends a request for using the shared resource to the super node managing the shared resource based on the information of the shared resource issued in the blockchain public ledger on the blockchain system; the shared resource information comprises a shared resource sharing policy, wherein the shared resource sharing policy comprises transaction cost required to be paid by the shared resource;
Step 220, determining resource usage right information corresponding to the transaction cost paid by the resource request to the resource provider based on the usage request and the transaction record between the resource requester and the resource provider;
step 230, based on the resource usage rights information, allocating the shared resource to the resource requester or scheduling the shared resource to fulfill the usage request of the resource requester.
The specific implementation of the steps related to the embodiment shown in fig. 2 may refer to the specific implementation of the corresponding steps in the embodiment shown in fig. 1, and one or more embodiments of this disclosure are not repeated herein.
Because the resource requesting party can send a shared resource using request to the super node for managing the shared resource based on the information of the shared resource published in the blockchain public account book on the blockchain system; the information of the shared resource comprises a sharing policy of the shared resource, the sharing policy of the shared resource comprises transaction cost which needs to be paid for obtaining the shared resource, the super node can determine resource use permission information corresponding to the transaction cost which is paid for the resource provider by the resource request based on the use request and the transaction record between the resource requester and the resource provider, and can allocate the shared resource or schedule the shared resource for the resource requester based on the resource use permission information, so that the use request of the resource requester can be completed. The method and the system utilize the characteristic that the transaction process in the blockchain system is public and transparent, provide a convenient sharing platform for sharing different types of resources, and greatly facilitate a resource requester to acquire the use authority of the shared resources.
Fig. 3 is a schematic structural diagram of a resource sharing system 300 provided in the present specification, please refer to fig. 3, in a software implementation, the resource sharing system 300 may include a resource provider 301, a resource requester 302, and a supernode 303, wherein:
the resource provider 301 uploads a shared resource to the super node, so that the super node issues information of the shared resource in a blockchain public ledger on a blockchain system;
the resource requester 302 sends a request for using a shared resource to a super node that manages the shared resource based on information of the shared resource issued in a blockchain public ledger on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
the supernode 303 determines resource usage rights information corresponding to a transaction cost paid by the resource request to the resource provider based on the usage request and a transaction record between the resource requester and the resource provider; and allocating the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use authority information.
Optionally, in an embodiment, when the shared resource includes a data resource or an algorithm resource, and the sharing policy of the shared resource further includes an acquisition right of the shared resource, the resource requester 302 is specifically configured to:
determining whether the resource requester has the acquisition authority of the shared resource based on the information of the shared resource issued by the blockchain public ledger on the blockchain system;
and if the resource request party is determined to have the acquisition permission of the shared resource, sending a use request of the shared resource to the super node.
Optionally, in one embodiment, when the shared resource includes a computing resource, the transaction cost included in the shared policy of the shared resource to be paid for obtaining the shared resource is determined by at least one of:
preset by a resource provider of the shared resource;
determined by the supernode based on trade cases of other computing resources in the blockchain system.
Optionally, in one embodiment, the computing resource is in a locked state after being published onto the blockchain public ledger and before being assigned to the resource requestor by the supernode.
Optionally, in one embodiment, when the shared resource includes a machine learning model, the super node 303 is specifically configured to:
generating an intelligent contract based on transaction records of the resource requesting party and the resource provider for the machine learning model, and training the resource provider for the resource requesting party to obtain the machine learning model;
and if the resource provider is determined to finish the intelligent contract, determining a user meeting preset conditions from the blockchain system to check and accept the machine learning model trained by the resource provider for the resource provider.
Optionally, in an embodiment, when the shared resource includes an environmental platform, the super node 303 is specifically configured to:
generating an intelligent contract based on the transaction records of the resource requester and the resource provider for the environment platform so as to supervise the deployment of the resource provider for the resource provider to obtain the environment platform;
and if the resource provider is determined to finish the intelligent contract, determining a user meeting preset conditions from the blockchain system to check and accept the environment platform deployed by the resource provider for the resource provider.
Optionally, in one embodiment, the blockchain system includes at least one of the super nodes, and a plurality of common nodes, and one of the super nodes manages at least one of the common nodes, then the super node 303 is further configured to:
receiving the shared resource from the resource provider and a sharing policy of the shared resource;
storing the shared resource into at least one common node managed by the super node, and recording the shared information of the shared resource into the blockchain public ledger.
Optionally, in an embodiment, when the shared resource includes a data resource or an algorithm resource, the super node 303 is configured to:
dividing the shared resource into at least one set of resources;
encrypting the at least one set of resources;
and respectively storing at least one group of resources after the encryption processing into at least one common node managed by the super node.
The resource sharing system 300 can implement the method of the method embodiment of fig. 1, and the method of sharing resources in the embodiment shown in fig. 1 may be specifically referred to, and will not be described herein.
Fig. 4 is a schematic diagram of a resource sharing device 400 provided in the present specification. Referring to fig. 4, in a software implementation, a resource sharing device 400 may include a receiving unit 401, a determining unit 402, and a completing unit 403, where:
A receiving unit 401 that receives a shared resource from a resource provider and issues information of the shared resource in a blockchain public ledger on a blockchain system, so that a resource requester sends a request for use of the shared resource to a super node that manages the shared resource based on the information of the shared resource issued in the blockchain public ledger on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
a determining unit 402, configured to determine, based on the usage request and a transaction record between the resource requester and the resource provider, resource usage right information corresponding to a transaction cost paid by the resource requester to the resource provider;
and a completion unit 403, configured to allocate the shared resource to the resource requester or schedule the shared resource to complete a use request of the resource requester based on the resource usage right information.
Optionally, in one embodiment, when the shared resource includes a computing resource, the transaction cost included in the shared policy of the shared resource to be paid for obtaining the shared resource is determined by at least one of:
Preset by a resource provider of the shared resource;
determined by the supernode based on trade cases of other computing resources in the blockchain system.
Optionally, in one embodiment, the computing resource is in a locked state after being published onto the blockchain public ledger and before being assigned to the resource requestor by the supernode.
Optionally, in one embodiment, when the shared resource includes a machine learning model, the completing unit 403 is configured to:
generating an intelligent contract based on transaction records of the resource requesting party and the resource provider for the machine learning model, and training the resource provider for the resource requesting party to obtain the machine learning model;
and if the resource provider is determined to finish the intelligent contract, determining a user meeting preset conditions from the blockchain system to check and accept the machine learning model trained by the resource provider for the resource provider.
Optionally, in an embodiment, when the shared resource includes an environmental platform, the completing unit 403 is configured to:
Generating an intelligent contract based on the transaction records of the resource requester and the resource provider for the environment platform so as to supervise the deployment of the resource provider for the resource provider to obtain the environment platform;
and if the resource provider is determined to finish the intelligent contract, determining a user meeting preset conditions from the blockchain system to check and accept the environment platform deployed by the resource provider for the resource provider.
Optionally, in an embodiment, the apparatus further includes a storage unit 404 configured to:
storing the shared resource into at least one common node managed by the super node, and recording the shared information of the shared resource into the blockchain public ledger.
Optionally, in an embodiment, when the shared resource includes a data resource or an algorithm resource, the storage unit 404 is configured to:
dividing the shared resource into at least one set of resources;
encrypting the at least one set of resources;
and respectively storing at least one group of resources after the encryption processing into at least one common node managed by the super node.
The resource sharing device 400 can implement the method of the method embodiment of fig. 2, and the method of sharing resources in the embodiment shown in fig. 2 can be specifically referred to, which is not described herein.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring to fig. 5, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended IndustryStandard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 5, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs, and forms a resource sharing device on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
receiving a shared resource from a resource provider, and issuing information of the shared resource in a blockchain public account book on a blockchain system, so that a resource requester sends a use request of the shared resource to a super node managing the shared resource based on the information of the shared resource issued in the blockchain public account book on the blockchain system; the shared resource information comprises a shared strategy of the shared resource, wherein the shared strategy of the shared resource comprises transaction cost which is required to be paid by the shared resource;
determining resource use permission information corresponding to transaction cost paid by the resource request to the resource provider based on the use request and transaction records between the resource requester and the resource provider;
And distributing the shared resource to the resource requester or scheduling the shared resource to complete the use request of the resource requester based on the resource use permission information.
The resource sharing method disclosed in the embodiment shown in fig. 1 of the present specification can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in one or more embodiments of the present description may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the resource sharing method of fig. 2, which is not described herein.
Of course, in addition to the software implementation, the electronic device in this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following process is not limited to each logic unit, but may also be hardware or a logic device.
In summary, the foregoing description is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present disclosure, is intended to be included within the scope of one or more embodiments of the present disclosure.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.