CN110597872A - Resource transaction method and device based on block chain and electronic equipment - Google Patents

Resource transaction method and device based on block chain and electronic equipment Download PDF

Info

Publication number
CN110597872A
CN110597872A CN201910752619.0A CN201910752619A CN110597872A CN 110597872 A CN110597872 A CN 110597872A CN 201910752619 A CN201910752619 A CN 201910752619A CN 110597872 A CN110597872 A CN 110597872A
Authority
CN
China
Prior art keywords
resource
user
information
available
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910752619.0A
Other languages
Chinese (zh)
Inventor
孙加亮
米明恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910752619.0A priority Critical patent/CN110597872A/en
Publication of CN110597872A publication Critical patent/CN110597872A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the invention discloses a resource transaction method and device based on a block chain and electronic equipment, relates to the technical field of computers, and can improve the utilization rate of resources. The method comprises the following steps: displaying the resource information of available resources to the user according to the query request of the user; providing a payment interface for the user according to the target available resource selected by the user according to the resource information; generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface; broadcasting the transaction record to nodes in a blockchain, so that a recording node in the nodes determines the validity of the transaction record; and sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information. The invention is suitable for sharing resources.

Description

Resource transaction method and device based on block chain and electronic equipment
Technical Field
The present invention relates to computer technologies, and in particular, to a resource transaction method and apparatus based on a block chain, and an electronic device.
Background
With the rapid development of the internet and the coming of the big data era, the data on the network is gradually huge, and the value of the data is more and more high, and at the moment, the web crawler technology comes up; meanwhile, the increase of data value also causes the protection of data security for people, and the number of the back-climbing technologies is increasing, wherein the most important back-climbing technology is mainly to limit the access times of the same ip in unit time, that is, the server side counts the number of times that a certain ip accesses the website or a certain interface in unit time, and if the number of times exceeds the limit times, subsequent accesses to the ip are not responded, that is, the ip blocking technology or the current limiting technology is forbidden.
When the server side uses the current limiting technology to perform reverse crawling, a website to be crawled can be accessed through the proxy server (the proxy server has the only ip of the proxy server, namely, the proxy server can be used for avoiding the problem that the access frequency of the same ip is too many), the crawling speed is higher as the number of the proxy servers is larger, but the using time of the proxy server is utilized when data are crawled, most of the time is in an idle state, and resources cannot be effectively utilized.
Disclosure of Invention
In view of this, embodiments of the present invention provide a resource transaction method and apparatus based on a block chain, and an electronic device, which can improve the utilization rate of resources.
In a first aspect, an embodiment of the present invention provides a resource transaction method based on a block chain, which is applied to a demand side, and the method includes: displaying resource information of available resources to a user according to a query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost; providing a payment interface for the user according to the target available resource selected by the user according to the resource information; generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface; broadcasting the transaction record to nodes in a blockchain, so that a recording node in the nodes determines the validity of the transaction record; and sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information.
Optionally, the available resource includes a server, the resource identifier includes a user name of an owner of the server, and the resource capability includes a network interface speed of the server.
Optionally, the displaying, according to the query request of the user, the resource information of the available resource to the user includes: and displaying the resource information meeting the query conditions to the user according to the query conditions input by the user, wherein the query conditions comprise resource identification query, resource capacity query, resource available time query and/or resource cost query.
Optionally, the providing the payment interface to the user includes: and providing a payment code to the user according to the resource expense recorded in the resource information of the target available resource so that the user can pay according to the payment code.
In a second aspect, an embodiment of the present invention provides a resource transaction method based on a block chain, applied to a sharing end, including: broadcasting resource information input by an available resource owner to nodes in a block chain, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost; and charging the fee paid by the user at the demand end through the payment interface.
Optionally, the broadcasting the resource information input by the available resource owner to the nodes in the block chain includes: broadcasting the use information and resource information input by the available resource owner to nodes in the block chain, wherein the use information is used for providing the user so that the user can use the available resource according to the use information.
Optionally, the resource information further includes contact information of an available resource owner, and after the payment of the fee paid by the end user through the payment interface is received, the method further includes: and notifying the available resource owner of the transaction information according to the contact information.
In a third aspect, an embodiment of the present invention provides a resource transaction apparatus based on a block chain, which is applied to a demand side, and the apparatus includes: the display module is used for displaying resource information of available resources to the user according to a query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost; the payment module is used for providing a payment interface for the user according to the target available resource selected by the user according to the resource information; the transaction record generating module is used for generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the fee information paid by the user through the payment interface; the first broadcasting module is used for broadcasting the transaction record to nodes in a block chain so that a recording node in the nodes can determine the legality of the transaction record; and the sending module is used for sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information.
Optionally, the available resource includes a server, the resource identifier includes a user name of an owner of the server, and the resource capability includes a network interface speed of the server.
Optionally, the display module is specifically configured to: and displaying the resource information meeting the query conditions to the user according to the query conditions input by the user, wherein the query conditions comprise resource identification query, resource capacity query, resource available time query and/or resource cost query.
Optionally, the payment module is specifically configured to: and providing a payment code to the user according to the resource expense recorded in the resource information of the target available resource so that the user can pay according to the payment code.
In a fourth aspect, an embodiment of the present invention provides a resource transaction apparatus based on a block chain, which is applied to a demand side, and the apparatus includes: the second broadcasting module is used for broadcasting the resource information input by the available resource owner to the nodes in the block chain, wherein the resource information comprises resource identification, resource capacity, resource available time and resource cost; and the fee collection module is used for collecting the fee paid by the demand end user through the payment interface.
Optionally, the second broadcasting module is specifically configured to: broadcasting the use information and resource information input by the available resource owner to nodes in the block chain, wherein the use information is used for providing the user so that the user can use the available resource according to the use information.
Optionally, the resource information further includes contact information of an available resource owner, and the apparatus further includes: and the notification module is used for notifying the transaction information of the available resource owner according to the contact information after the fee paid by the demand end user through the payment interface is collected.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing any one of the above block chain-based resource transaction methods.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement the method for resource transaction based on a block chain according to any of the foregoing embodiments.
According to the resource transaction method, the resource transaction device and the electronic equipment based on the block chain, provided by the embodiment, the resource information of available resources can be displayed to a user according to a query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost; providing a payment interface for the user according to the target available resource selected by the user according to the resource information; generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface; broadcasting the transaction record to nodes in the blockchain so that record nodes in the blockchain determine the validity of the transaction record; and sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information. Therefore, the block chain DPos consensus mechanism can be utilized, the record of the transaction is realized by utilizing the intelligent contract, the legality of the transaction is ensured, the characteristics of decentralization, easy expansion and point-to-point transaction between the user and the available resource owner are realized, the idle available resources can be fully utilized, and the utilization rate of the resources is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a resource transaction method based on a block chain according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a resource transaction method based on a block chain according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a resource transaction apparatus based on a blockchain according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a resource transaction apparatus based on a block chain according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an embodiment of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a block chain-based resource transaction method applied to a demand side and capable of improving a utilization rate of resources according to a first embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, displaying resource information of available resources to a user according to a query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost;
in this embodiment, the blockchain adopts a distributed architecture, and is mainly composed of nodes in the blockchain, the nodes can be freely added and accessed, and each node can provide basic functions such as query of available resources, record of transaction, query and analysis of data, and the like. The blockchain can be used as a shared platform, and the demand end provides a transaction interface for the blockchain platform.
Before inquiring available resources, a user can register to become a member of the block chain sharing platform, when registering, the user can select a real name or anonymous mode to register, if the user registers in an anonymous mode, the user can utilize the characteristics of the block chain and adopt some special encryption modes, such as a public key and ring signature mode, to encrypt user information and protect the user information; when the user carries out resource transaction, the transaction can be carried out through the demand end.
In this step, any node of the block chain stores the resource information of the available resource, and the demand side can acquire the resource information of the available resource from any node of the block chain; the available resources may include servers, cars, houses, parking spaces, etc.; or may include member identity information of a website or client, such as member login information, S of the Aiqiyi APPooMember registration information of Pat, and the like; the user may be a demander of the available resources.
Optionally, before the resource information of the available resource is displayed to the user according to the query request of the user, the method may further include: classifying available resources; at this time, the displaying the resource information of the available resource to the user according to the query request of the user may include: and displaying the resource information of the available resources conforming to the resource categories to the user according to the resource category information carried in the query request of the user.
Optionally, the resource identifier may be information of the owner of the available resource, for example: the available resource is an automobile, the user name of the owner of the automobile is an automobile rental carefree automobile rental company, and when the owner of the automobile wants to release the resource information in a real-name mode, the resource identifier can be the automobile rental carefree automobile rental company; another example is: the available resource is a server, and the owner of the server wishes to issue the resource information in an anonymous manner, and the resource identifier may be a public key of the owner of the available resource. It should be understood that each available resource owner in the blockchain platform possesses a pair of keys, which includes a public key and a private key, and the public key described herein belongs to the prior art and is not described herein again.
Optionally, the resource capability may be main performance information of the available resource, for example, when the available resource is an electric vehicle, the resource capability may be a cruising capability of the electric vehicle; when the available resource is a server, the resource capability may be a network interface speed of the server, or the like.
Optionally, the resource availability time may be a time interval in which the available resource may be used, for example: 12:00-16:302019/07/25. The resource cost may be a unit price of the available resource usage cost, such as: 200 yuan/hour; it may also be the total price of the available resource usage fees, such as: 900 yuan.
Optionally, the resource information may further include resource location information, where the resource location information is used to describe a location of the available resource. In this embodiment, when the available resource is a car, the user may prefer to select a car closer to the user's own location, and the resource location information is very important.
As an optional implementation manner of the foregoing embodiment, the displaying, according to the query request of the user, the resource information of the available resource to the user may further include: and displaying the resource information meeting the query conditions to the user according to the query conditions input by the user, wherein the query conditions comprise resource identification query, resource capacity query, resource available time query and/or resource cost query.
In this embodiment, the resource identifier, the resource capability, the resource available time and/or the resource cost input by the user may be set by the user according to the need of the user, or may be provided or recommended by the system to the user for the user to select; optionally, the query condition may further include a resource location query, for example: the user wants to use the car rental company to rent the car near the Olympic village street in the sunny region of Beijing City at 8:00-16:00 in 2 month and 3 days of 2019, and at the moment, the user can use the car rental company, the Olympic village street in the sunny region of Beijing City, 8:00-16:00 in 3 months of 2019, the car rental company and the Olympic village street in the sunny region of Beijing city as query conditions, and the system displays the resource information of the car meeting the query conditions to the user according to the query conditions input by the user for the user to select.
102, providing a payment interface for a user according to a target available resource selected by the user according to the resource information;
in this embodiment, after the user selects the target available resource, a payment interface is provided for the user, so that the user can pay the owner of the target available resource through the payment interface. Optionally, when the user pays a certain fee through the payment interface, the fee paid by the user may be compared with the resource fee in the resource information of the target available resource, if the two are matched, the corresponding balance is deducted from the wallet of the user and the user is informed that the payment is successful, otherwise, the deduction is cancelled and the user is informed that the transaction is failed.
Optionally, the providing the payment interface to the user may further include: and providing a payment code to the user according to the resource expense recorded in the resource information of the target available resource so that the user can pay according to the payment code.
In the embodiment, the user can complete payment only by scanning the payment code and inputting the payment information, thereby enriching the payment mode and improving the safety of payment; and no other plug-ins need to be installed at the client where the payment interface is located.
103, generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface;
in this step, after the payment of the user is successful, a transaction record can be generated according to the payment behavior of the user; optionally, the transaction record may include information of fees paid by the user through the payment interface, a transaction address of the user, and a transaction address of the owner of the target available resource; it should be understood that the transaction address of the user is obtained by encrypting the user name of the user by using the public key of the user, and similarly, the transaction address of the target available resource owner is obtained by encrypting the user name of the target available resource owner by using the public key of the target available resource owner; the transaction address described herein is prior art and will not be described further herein.
Step 104, broadcasting the transaction record to nodes in the block chain, so that a recording node in the nodes determines the validity of the transaction record;
in this step, the record node in the block chain collects the transaction record, performs validity check on the transaction record, and adds a new transaction record to the block chain through a DPos consensus mechanism, where each node in the block chain may serve as the record node.
Optionally, the broadcasting the transaction record to the nodes in the blockchain may include: and after encrypting the transaction record, broadcasting the transaction record to the nodes in the block chain platform. Specifically, the method may include: generating a raw digital summary of the transaction record according to a first algorithm (any HASH algorithm); encrypting the original digital abstract by using the private key of the user to generate an original digital signature; broadcasting the transaction record, the user's public key, and the original digital signature to other nodes. A recording node in the blockchain firstly checks whether the transaction record is tampered, specifically, the original digital signature is decrypted by using the public key of the user to obtain the original digital abstract, the recording node generates the digital abstract of the received transaction information according to the first algorithm, the generated digital abstract is compared with the original digital abstract, and if the generated digital abstract is the same as the original digital abstract, the transaction record is not tampered.
And 105, sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information.
In this step, the usage information may be login information of the target available resource information, or may also be an unlocking password of the target available resource information; for example, when the target available resource is a server, the usage information may be login information of the server, and after obtaining the login information of the target server, the user may use the login information to use the target server; when the target available resource is the house, the use information can be a door lock password of the house, so that the user can open a house door lock by using the door lock password to use the house.
Optionally, after sending the usage information of the target available resource to the user, the transaction is successful, and at this time, the node in the block chain may mark the target available resource to indicate that the target available resource is temporarily unavailable.
According to the resource transaction method based on the block chain, provided by the embodiment, the resource information of available resources can be displayed to the user according to the query request of the user, and the resource information comprises a resource identifier, resource capacity, resource available time and resource cost; providing a payment interface for the user according to the target available resource selected by the user according to the resource information; generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface; broadcasting the transaction record to nodes in the blockchain so that record nodes in the blockchain determine the validity of the transaction record; and sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information. Therefore, the block chain DPos consensus mechanism can be utilized, the record of the transaction is realized by utilizing the intelligent contract, the legality of the transaction is ensured, the characteristics of decentralization, easy expansion and point-to-point transaction between the user and the available resource owner are realized, the idle available resources can be fully utilized, and the utilization rate of the resources is improved.
Fig. 2 is a resource transaction method based on a block chain according to a second embodiment of the present invention, which is applied to a sharing end and can improve the utilization rate of resources, as shown in fig. 2, the method includes:
step 201, broadcasting resource information input by an available resource owner to nodes in a block chain, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost;
in this embodiment, the blockchain adopts a distributed architecture, and is mainly composed of nodes in the blockchain, the nodes can be freely added and accessed, and each node can provide basic functions such as query of available resources, record of transaction, query and analysis of data, and the like. The blockchain can be used as a shared platform, and the shared end provides a transaction interface for the blockchain platform.
The available resource owner can also register as a member of the block chain sharing platform before releasing the available resource, and can select a real name or anonymous mode to register when registering, and if registering in an anonymous mode, the available resource owner can encrypt the information of the available resource owner by using the characteristics of the block chain and adopting some special encryption modes, such as a public key and ring signature mode, so as to protect the information of the available resource owner; when the available resource owner carries out resource transaction, the transaction can be carried out through the sharing end.
In this step, any node of the blockchain may be used as a recording node, where the recording node is configured to maintain a blockchain transaction record backup, collect resource information submitted by an available resource owner, perform validity check on the resource information, and add the transaction information to the blockchain through a DPos consensus mechanism. The available resources may include servers, cars, houses, parking spaces, etc.; or may include member identity information of a certain website or client, such as member login information of the love art APP, member login information of the SooPat, and the like; the available resource owner can issue the idle available resources to the shared platform of the block chain, and when a user uses the available resources, the available resource owner can obtain certain benefits.
Optionally, the resource identifier may be information of the owner of the available resource, for example: the available resource is an automobile, the user name of the owner of the automobile is an automobile rental carefree automobile rental company, and when the owner of the automobile wants to release the resource information in a real-name mode, the resource identifier can be the automobile rental carefree automobile rental company; another example is: the available resource is a server, and the owner of the server wishes to issue the resource information in an anonymous manner, and the resource identifier may be a public key of the owner of the available resource. It should be understood that each available resource owner in the blockchain platform possesses a pair of keys, which include a public key and a private key, and the public key described herein belongs to the prior art and is not described herein again.
Optionally, the resource capability may be main performance information of the available resource, for example, when the available resource is an electric vehicle, the resource capability may be a cruising capability of the electric vehicle; when the available resource is a server, the resource capability may be a network interface speed of the server, or the like.
Optionally, the resource availability time may be a time interval in which the available resource may be used, for example: 12:00-16:302019/07/25. The resource cost may be a unit price of the available resource usage cost, such as: 200 yuan/hour; it may also be the total price of the available resource usage fees, such as: 900 yuan.
Optionally, the resource information may further include resource location information, where the resource location information is used to describe a location of the available resource. In this embodiment, when the available resource is a car, the user may prefer to select a car closer to the user's own location, and the resource location information is very important.
Optionally, the broadcasting the resource information input by the available resource owner to the nodes in the block chain includes: and broadcasting the resource information and the use information input by the available resource owner to nodes in the block chain, wherein the use information is used for providing a user so that the user can use the available resource according to the use information.
In this embodiment, the usage information may be login information of the available resource information, or may also be an unlocking password of the available resource information; for example, when the available resource is a server, the usage information may be login information of the server, so that after the user pays a corresponding fee, the demand side may send the login information of the server acquired from the node of the blockchain to the user, so that the user uses the login information to use the server. When the available resource is the house, the use information can be a door lock password of the house, and therefore the user can open a house door lock by using the door lock password to use the house.
Optionally, the broadcasting the resource information input by the available resource owner to the nodes in the block chain includes: performing digital signature on the resource information input by the available resource owner by using the public key of the available resource owner to generate an original digital signature; broadcasting the original digital signature and the resource information to nodes in the blockchain.
In this embodiment, before recording the resource information, the recording node in the block chain may first verify whether the received resource information is tampered, specifically, perform a digital signature on the received resource information by using a public key of an available resource owner, compare the digital signature with a received original digital signature, and if the two signatures are consistent, the received resource information is not tampered.
Optionally, before broadcasting the resource information to the nodes in the block chain, the available resource owner may perform ring signature on the resource information, and then the sharing end broadcasts the resource information subjected to ring signature to the block chain platform, and the recording node in the block chain records the resource information. In this way, the privacy of the owner of the available resources can be adequately protected.
Step 202, charging the fee paid by the user at the demand end through the payment interface.
In this step, the user at the demand end pays a corresponding fee, and the sharing end receives the fee paid by the user at the demand end through the payment interface under the condition that the record node of the block chain determines that the transaction is legal. How the recording node of the block chain determines that the transaction is legal and how the sharing terminal receives the fee paid by the demand terminal user through the payment interface belong to the prior art, and are not described herein again.
Optionally, the resource information further includes contact information of an available resource owner; after collecting the fee paid by the end-of-demand user through the payment interface, the method further comprises: and notifying the available resource owner of the transaction information according to the contact information.
In this embodiment, after the sharing end receives the fee paid by the user at the demand end through the payment interface, the sharing end indicates that the transaction is successful, and at this time, the sharing end can notify the transaction information of the available resource owner in time according to the contact information reserved by the available resource owner. The contact information can comprise a mobile phone number, an email box and the like of an available resource owner, and when the contact information is the mobile phone number of the available resource owner, the available resource owner can be notified in a short message mode, and the available resource owner can also be notified in a telephone recording mode; the transaction information may include resource information of the transaction, a user name of the user at the requesting end, information of fees paid by the user at the requesting end, and the like.
Optionally, when the available resource is unavailable for some reason, the available resource owner may issue a transaction cancellation notification to cause a node in the blockchain to mark the available resource to indicate that the available resource is temporarily unavailable.
The resource transaction method based on the block chain provided by the embodiment can broadcast the resource information input by the available resource owner to the nodes in the block chain, wherein the resource information includes resource identification, resource capacity, resource available time and resource cost; and charging the fee paid by the user at the demand end through the payment interface. Therefore, the block chain DPos consensus mechanism can be utilized, the record of the transaction is realized by utilizing the intelligent contract, the legality of the transaction is ensured, the characteristics of decentralization, easy expansion and point-to-point transaction between the available resource owner and the user are realized, the idle available resources can be shared, and the utilization rate of the resources is improved.
Fig. 3 is a block chain-based resource transaction apparatus applied to a demand side and capable of improving the utilization rate of resources according to a third embodiment of the present invention, as shown in fig. 3, the apparatus includes: the display module 31 is configured to display resource information of available resources to a user according to a query request of the user, where the resource information includes a resource identifier, a resource capability, a resource availability time, and a resource cost; the payment module 32 is used for providing a payment interface for the user according to the target available resource selected by the user according to the resource information; the transaction record generating module 33 is configured to generate a transaction record according to a payment behavior of a user, where the transaction record includes information of a fee paid by the user through the payment interface; a first broadcasting module 34, configured to broadcast the transaction record to nodes in a blockchain, so that a recording node in the nodes determines validity of the transaction record; a sending module 35, configured to send, to the user, the usage information of the target available resource when the transaction record is determined to be legal, so that the user uses the target available resource according to the usage information.
Optionally, the available resource includes a server, the resource identifier includes a user name of an owner of the server, and the resource capability includes a network interface speed of the server.
Optionally, the display module is specifically configured to: and displaying the resource information meeting the query conditions to the user according to the query conditions input by the user, wherein the query conditions comprise resource identification query, resource capacity query, resource available time query and/or resource cost query.
Optionally, the payment module is specifically configured to: and providing a payment code to the user according to the resource expense recorded in the resource information of the target available resource so that the user can pay according to the payment code.
The resource transaction device based on the block chain provided by the embodiment can display the resource information of available resources to a user according to the query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost; providing a payment interface for the user according to the target available resource selected by the user according to the resource information; generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface; broadcasting the transaction record to nodes in the blockchain so that record nodes in the blockchain determine the validity of the transaction record; and sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information. Therefore, the block chain DPos consensus mechanism can be utilized, the record of the transaction is realized by utilizing the intelligent contract, the legality of the transaction is ensured, the characteristics of decentralization, easy expansion and point-to-point transaction between the user and the available resource owner are realized, the idle available resources can be fully utilized, and the utilization rate of the resources is improved.
Fig. 4 is a resource transaction apparatus based on a block chain according to a fourth embodiment of the present invention, which is applied to a demand side and can improve the utilization rate of resources, as shown in fig. 4, the apparatus includes: applied to the demand side, the device comprises: a second broadcasting module 41, configured to broadcast resource information input by an available resource owner to nodes in a block chain, where the resource information includes a resource identifier, a resource capability, a resource availability time, and a resource cost; and a fee collection module 42 for collecting the fee paid by the end user through the payment interface.
Optionally, the second broadcasting module is specifically configured to: broadcasting the use information and resource information input by the available resource owner to nodes in the block chain, wherein the use information is used for providing the user so that the user can use the available resource according to the use information.
Optionally, the resource information further includes contact information of an available resource owner, and the apparatus further includes: and the notification module is used for notifying the transaction information of the available resource owner according to the contact information after the fee paid by the demand end user through the payment interface is collected.
The resource transaction device based on the block chain provided by this embodiment can broadcast the resource information input by the available resource owner to the nodes in the block chain, where the resource information includes resource identification, resource capability, resource available time, and resource cost; and charging the fee paid by the user at the demand end through the payment interface. Therefore, the block chain DPos consensus mechanism can be utilized, the record of the transaction is realized by utilizing the intelligent contract, the legality of the transaction is ensured, the characteristics of decentralization, easy expansion and point-to-point transaction between the available resource owner and the user are realized, the idle available resources can be shared, and the utilization rate of the resources is improved.
Correspondingly, the fifth embodiment of the invention provides electronic equipment, which can improve the utilization rate of resources.
Fig. 5 is a schematic structural diagram of an embodiment of an electronic device of the present invention, and as shown in fig. 5, the electronic device may include: the device comprises a shell 51, a processor 52, a memory 53, a circuit board 54 and a power circuit 55, wherein the circuit board 54 is arranged inside a space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; a power supply circuit 55 for supplying power to each circuit or device of the electronic apparatus; the memory 53 is used to store executable program code; the processor 52 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 53, for executing the method according to any of the foregoing embodiments.
For specific execution processes of the above steps by the processor 52 and further steps executed by the processor 52 by running the executable program code, reference may be made to the description of the foregoing embodiments, and details are not described herein again.
The above electronic devices exist in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs can be executed by one or more processors to implement any one of the methods provided in the foregoing embodiments, so that the corresponding technical effects can also be achieved, which have been described in detail above and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A resource transaction method based on a block chain is applied to a demand side and comprises the following steps:
displaying resource information of available resources to a user according to a query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost;
providing a payment interface for the user according to the target available resource selected by the user according to the resource information;
generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the information of the fee paid by the user through the payment interface;
broadcasting the transaction record to nodes in a blockchain, so that a recording node in the nodes determines the validity of the transaction record;
and sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information.
2. The method of claim 1, wherein the available resource comprises a server, wherein the resource identification comprises a username of an owner of the server, and wherein the resource capability comprises a network interface speed of the server.
3. The method of claim 1, wherein the presenting resource information of available resources to the user according to the query request of the user comprises:
and displaying the resource information meeting the query conditions to the user according to the query conditions input by the user, wherein the query conditions comprise resource identification query, resource capacity query, resource available time query and/or resource cost query.
4. The method of claim 1, wherein providing the user with the payment interface comprises:
and providing a payment code to the user according to the resource expense recorded in the resource information of the target available resource so that the user can pay according to the payment code.
5. A resource transaction method based on a block chain is applied to a sharing end and comprises the following steps:
broadcasting resource information input by an available resource owner to nodes in a block chain, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost;
and charging the fee paid by the user at the demand end through the payment interface.
6. The method of claim 5, wherein broadcasting the resource information input by the available resource owner to the nodes in the blockchain comprises:
broadcasting the use information and resource information input by the available resource owner to nodes in the block chain, wherein the use information is used for providing the user so that the user can use the available resource according to the use information.
7. The method of claim 5, wherein the resource information further includes contact information of an owner of the available resource, and after collecting a fee paid by the end-user through the payment interface, the method further comprises:
and notifying the available resource owner of the transaction information according to the contact information.
8. A resource transaction device based on a block chain platform is applied to a demand side and comprises:
the display module is used for displaying resource information of available resources to the user according to a query request of the user, wherein the resource information comprises a resource identifier, resource capacity, resource available time and resource cost;
the payment module is used for providing a payment interface for the user according to the target available resource selected by the user according to the resource information;
the transaction record generating module is used for generating a transaction record according to the payment behavior of the user, wherein the transaction record comprises the fee information paid by the user through the payment interface;
the first broadcasting module is used for broadcasting the transaction record to nodes in a block chain so that a recording node in the nodes can determine the legality of the transaction record;
and the sending module is used for sending the use information of the target available resource to the user under the condition that the transaction record is determined to be legal, so that the user can use the target available resource according to the use information.
9. The apparatus of claim 8, wherein the available resource comprises a server, wherein the resource identification comprises a username of an owner of the server, and wherein the resource capability comprises a network interface speed of the server.
10. The device of claim 8, wherein the display module is specifically configured to:
and displaying the resource information meeting the query conditions to the user according to the query conditions input by the user, wherein the query conditions comprise resource identification query, resource capacity query, resource available time query and/or resource cost query.
CN201910752619.0A 2019-08-14 2019-08-14 Resource transaction method and device based on block chain and electronic equipment Pending CN110597872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910752619.0A CN110597872A (en) 2019-08-14 2019-08-14 Resource transaction method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910752619.0A CN110597872A (en) 2019-08-14 2019-08-14 Resource transaction method and device based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
CN110597872A true CN110597872A (en) 2019-12-20

Family

ID=68854467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910752619.0A Pending CN110597872A (en) 2019-08-14 2019-08-14 Resource transaction method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN110597872A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681109A (en) * 2020-05-27 2020-09-18 山东星云环境科技有限公司 Resource index transaction method based on block chain technology
CN113095821A (en) * 2021-03-01 2021-07-09 支付宝(杭州)信息技术有限公司 Method and device for interaction of property rights

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN109118192A (en) * 2018-08-30 2019-01-01 中链科技有限公司 Shared education resources method, apparatus and electronic equipment based on block chain
CN109426995A (en) * 2017-08-25 2019-03-05 北京京东尚科信息技术有限公司 Books sharing method and device, electronic equipment, storage medium
CN109447740A (en) * 2018-10-10 2019-03-08 南京邮电大学 Radio Spectrum Resource method of commerce, readable storage medium storing program for executing and terminal
CN109920270A (en) * 2019-03-22 2019-06-21 广东安居宝数码科技股份有限公司 A kind of parking management method, block chain network and storage medium
CN110020774A (en) * 2019-01-30 2019-07-16 阿里巴巴集团控股有限公司 A kind of resource share method, system, device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426995A (en) * 2017-08-25 2019-03-05 北京京东尚科信息技术有限公司 Books sharing method and device, electronic equipment, storage medium
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN109118192A (en) * 2018-08-30 2019-01-01 中链科技有限公司 Shared education resources method, apparatus and electronic equipment based on block chain
CN109447740A (en) * 2018-10-10 2019-03-08 南京邮电大学 Radio Spectrum Resource method of commerce, readable storage medium storing program for executing and terminal
CN110020774A (en) * 2019-01-30 2019-07-16 阿里巴巴集团控股有限公司 A kind of resource share method, system, device and electronic equipment
CN109920270A (en) * 2019-03-22 2019-06-21 广东安居宝数码科技股份有限公司 A kind of parking management method, block chain network and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681109A (en) * 2020-05-27 2020-09-18 山东星云环境科技有限公司 Resource index transaction method based on block chain technology
CN113095821A (en) * 2021-03-01 2021-07-09 支付宝(杭州)信息技术有限公司 Method and device for interaction of property rights

Similar Documents

Publication Publication Date Title
CN108040295B (en) Public cutting method, server, user side and public cutting system
US20190018987A1 (en) System and Method for Remotely Initiating Lost Mode on a Computing Device
CN102970274B (en) For obtaining the method and system of identification information on the mobile apparatus
CN1953375B (en) Account management in a system and method for providing code signing services
RU2524868C2 (en) Controlling user authentication
CN112104665B (en) Block chain-based identity authentication method and device, computer and storage medium
CN103220344B (en) Microblogging licenses method and system
ES2905961T3 (en) metadata agent
CN111476572B (en) Block chain-based data processing method, device, storage medium and equipment
Li et al. Providing privacy-aware incentives in mobile sensing systems
US20090183266A1 (en) Method and a system for recovering a lost or stolen electronic device
CN103049692A (en) Application installation method, device and facility
CN104348714A (en) Mobile terminal, server and friend-based application program recommendation method
CN112953981A (en) Node selection method, block chain consensus method, device, system and equipment
CN105701414A (en) Method and device for multiplexing electronic equipment based on multiple accounts and electronic equipment
CN101477666A (en) Information lease system, information lease provider and lease method thereof
CN110597872A (en) Resource transaction method and device based on block chain and electronic equipment
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CN113486122A (en) Data sharing method and electronic equipment
WO2023056249A1 (en) Custodial systems for non-fungible tokens
Abubaker et al. Trustful data trading through monetizing IoT data using BlockChain based review system
CN110443957B (en) Shared vehicle use management method, device, server and storage medium
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
CN111680282B (en) Node management method, device, equipment and medium based on block chain network
CN112822267A (en) Data processing method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220

RJ01 Rejection of invention patent application after publication