Network resource sharing method based on block chain technologyTechnical Field
The invention relates to the technical field of network resource sharing, in particular to a network resource sharing method based on a block chain technology.
Background
The block chain is a trend of international financial science and technology, and currently, a plurality of international financial institutions are arranged in the field of establishing block chain laboratories, investing related technology companies and the like, wherein the block chain comprises more than 30 international financial major groups such as nasdck, Morgan Datong, Douglas bank, Reye group, Gaosheng group and the like. The application experiment of the block chain technology is started in the industries of securities, banks, audits and the like. The block chain technology is a novel decentralized protocol, transaction data can be safely stored, information cannot be forged and falsified, intelligent contracts can be intelligently executed, and auditing of any centralized organization is not needed. The transactions based on the blockchain technology can be digital currency, and can also be digital assets such as debt, equity, copyright and the like. The block chain technology greatly reduces the trust cost and the accounting cost of the real economy, and redefines the property right system of the internet era. In essence, the blockchain is a public ledger for recording all transactions which have occurred in the whole network, the blockchain theoretically realizes self-certification of data in data transmission, and the mechanism of decentralized and trust removal reduces the establishment cost of global transaction credit in a more profound sense. The blockchain technology may reshape the aspects of various currency markets, payment systems, financial services, and economic aspects, which can fundamentally become a new paradigm for reducing friction and improving efficiency in organizational activities, and the existing resource sharing blockchain network is still in distributed, unmanaged sharing.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a network resource sharing method based on a block chain technology.
In order to achieve the purpose, the invention is realized by the following technical scheme:
a network resource sharing method based on block chain technology comprises the following steps:
the multi-party network users form coalition members, and the coalition members participate in making a resource sharing intelligent contract together, wherein the resource sharing intelligent contract comprises network resource names and sharing rules;
the resource sharing intelligent contract is diffused and stored in a block chain through a P2P network;
the resource sharing intelligent contract of the block chain automatically executes the processes of checking, verifying and recording;
the alliance member sends a resource acquisition request and spreads through a P2P network; after receiving the resource acquisition request information, other nodes verify the resource acquisition request information, feed back the query result to the querying party after signing, and transmit the query result through a P2P network after digitally signing; the consensus node packs the transaction into a blockchain; triggering the intelligent contract and trading the backup.
The generated resource sharing intelligent contract multi-party network users participate in the block chain, and each network user grasps a pair of public key and private key to guarantee sharing and requesting authority of the network user in the block chain.
The users of the multi-party network mutually agree a commitment book according to the needs, the commitment book is used for stipulating the rights and obligations of both parties, then the commitment book is programmed in an electronic form and is converted into a machine language, and the users of the multi-party network use the private keys mastered by the users respectively to sign so as to ensure the effectiveness of contracts.
And through the common confirmation of the multi-party network users, selecting a certain network user as a common identification node of the block chain, and transmitting the intelligent contract into the block chain network instead of executing the intelligent contract.
Further, the method also comprises a sharing service creating step, when a certain network user manages and operates private or other network resources, such as sharing, obtaining, trading, modifying, supplementing and deleting information/resources, the identity of the network user is verified, basic information such as credit condition and the like is verified, then a private key is used for carrying out digital signature, a sharing form is made and booked, a request for obtaining the network resources is sent to other network users, verification is carried out, and then the network resources are diffused to the whole block chain through a P2P network.
Furthermore, the method also comprises a sharing form verification step, when the sharing form is propagated to the whole network, each network user temporarily caches the received sharing form in the blockchain, and as long as a sharing form of the information is inquired by a network user before, all the sharing forms recorded by the blockchain with the timestamps can be propagated to the whole network and checked by other network users of the whole network, and finally a sharing total form is generated.
The method further comprises a shared form feedback step, after the network user information on the block chain is verified, the information is fed back to the resource acquisition request user or mechanism through the digital signature, the existing information is monitored, the information is prevented from being re-recorded, incomplete information is fed back, error information is revealed, and poor information is eliminated, so that the resource acquisition request user or mechanism can reasonably manage and supervise the network resources, and the quality, the value and the practicability of the network resources are improved.
After signing the shared form by each network user on the shared summary form backup block chain, transmitting and verifying the signed shared form through P2P, converging the signed shared summary form into a shared summary form, uploading the signed shared summary form into the block chain through a consensus node, and then backing up the block chain through a resource sharing intelligent contract without tampering, so that the next sharing requirement can be safely and reliably facilitated.
Furthermore, the sharing summary list includes resource publishing information, where the resource publishing information includes identity information of the publishing user, address information, and a sharing identification of the corresponding resource. The shared summary form further includes shared contract information, which includes identity information of an author of the resource, the requesting user and the publishing user, address information of the requesting user and the publishing user, and shared resource information.
The network resource sharing method based on the block chain technology has the following beneficial effects: the method changes the traditional distributed and unmanaged network resource sharing into the resource sharing of firstly pulling and then pushing, realizes the purposes of one-time sharing and repeated use, and is beneficial to improving the use experience of network users, the transmission of network resources and the improvement of the quality of the network resources.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of a network resource sharing method of the present invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
Examples
A network resource sharing method based on block chain technology includes the following steps:
the method comprises the following steps: the multi-party network users form coalition members, and the coalition members participate in making a resource sharing intelligent contract together, wherein the resource sharing intelligent contract comprises network resource names and sharing rules;
step two: the resource sharing intelligent contract is diffused and stored in a block chain through a P2P network;
step three: the alliance member sends a resource acquisition request and spreads through a P2P network;
step four: after receiving the resource acquisition request information, other nodes verify the resource acquisition request information, feed back the query result to the querying party after signing, and transmit the query result through a P2P network after digitally signing;
step five: the consensus node packs the transaction into a blockchain; triggering the intelligent contract and trading the backup.
The resource sharing intelligent contract of the block chain automatically executes the processes of checking, verifying and recording;
in the block chain, the generated resource sharing intelligent contract multi-party network users participate in the block chain, and each network user grasps a pair of public key and private key to ensure the sharing and requesting authority of the network user in the block chain.
The users of the multi-party network mutually agree a commitment book according to the needs, the commitment book is used for stipulating the rights and obligations of both parties, then the commitment book is programmed in an electronic form and is converted into a machine language, and the users of the multi-party network use the private keys mastered by the users respectively to sign so as to ensure the effectiveness of contracts.
And through the common confirmation of the multi-party network users, selecting a certain network user as a common identification node of the block chain, and transmitting the intelligent contract into the block chain network instead of executing the intelligent contract.
Based on the above, the network resource sharing method includes a sharing service creation step, a sharing form verification step, and a sharing form feedback step.
A sharing service creating step: when a network user manages and operates private or other network resources, such as sharing, obtaining, trading, modifying, supplementing and deleting information/resources, the identity of the network user is verified, basic information such as credit status is verified, then a private key is used for carrying out digital signature, a shared form is made and booked, a request for obtaining the network resources is sent to other network users, verification is carried out, and then the network resources are diffused to the whole block chain through a P2P network.
And a shared form verification step: when the shared form is transmitted to the whole network, each network user temporarily caches the received shared form in the blockchain, and as long as one network user inquires the previous shared form of the information, all the shared forms recorded by the blockchain with the timestamps can be transmitted to the whole network and are checked by other network users of the whole network, and finally, a shared total form is generated.
And (3) sharing form feedback: after the network user information on the block chain is verified, the information is fed back to the resource acquisition request user or mechanism through the digital signature, the existing information is supervised, the information is prevented from being re-recorded, incomplete information is fed back, error information is revealed, and inferior information is rejected, so that the resource acquisition request user or mechanism can reasonably manage and supervise the network resources, and the quality, the value and the practicability of the network resources are improved.
In addition, it should be noted that: after signing the shared form by each network user on the shared summary form backup block chain, transmitting and verifying the signed shared form through P2P, converging the signed shared summary form into a shared summary form, uploading the signed shared summary form into the block chain through a consensus node, and then backing up the block chain through a resource sharing intelligent contract without tampering, so that the next sharing requirement can be safely and reliably facilitated.
The sharing summary form comprises resource publishing information, wherein the resource publishing information comprises identity information and address information of a publishing user and a sharing identification mark of a corresponding resource. The shared summary form further includes shared contract information, which includes identity information of an author of the resource, the requesting user and the publishing user, address information of the requesting user and the publishing user, and shared resource information.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.