CN110474954A - Sharing files method, apparatus, computer equipment and readable storage medium storing program for executing based on block chain - Google Patents

Sharing files method, apparatus, computer equipment and readable storage medium storing program for executing based on block chain Download PDF

Info

Publication number
CN110474954A
CN110474954A CN201910602792.2A CN201910602792A CN110474954A CN 110474954 A CN110474954 A CN 110474954A CN 201910602792 A CN201910602792 A CN 201910602792A CN 110474954 A CN110474954 A CN 110474954A
Authority
CN
China
Prior art keywords
user
file
request
block chain
information
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.)
Granted
Application number
CN201910602792.2A
Other languages
Chinese (zh)
Other versions
CN110474954B (en
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910602792.2A priority Critical patent/CN110474954B/en
Publication of CN110474954A publication Critical patent/CN110474954A/en
Application granted granted Critical
Publication of CN110474954B publication Critical patent/CN110474954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The present invention discloses a kind of sharing files method, apparatus, computer equipment and readable storage medium storing program for executing based on block chain.It include: that the first user information is obtained from block chain, and the first request is sent to the first user according to the first user information, first request includes that the first part of the first file identifies, first part of first request for requesting to share the first file, the first user information includes the mark for the first file that the first user identifier is shared with the first user;The first part of the first file of the first user transmission is received, and second user information is recorded in block chain, the first part's mark and second user mark that the first file has finished receiving;The second request that third user sends is received, the second request includes that the first part of the first file identifies, first part of second request for requesting to share the first file;The first file is sent to third user.The information during sharing can be effectively recorded, it is possible thereby to reduce the behavior for uploading deception.

Description

Sharing files method, apparatus, computer equipment and readable storage based on block chain Medium
Technical field
The present invention relates to field of computer technology, and in particular to it is a kind of by the sharing files method, apparatus of block chain, based on Calculate machine equipment and readable storage medium storing program for executing.
Background technique
BT is downloaded, one file is divided into many parts at uploader end first, user's first has downloaded it at random In some parts, and user's second has then downloaded other part at random.In this way first will according to circumstances (according to from different electricity Network connection speed between brain automatically selects most fast one end) to the part for taking second to download is gone on the computer of second, together Sample second can also not only alleviate server end according to circumstances to the part for taking first to download is gone on the computer of first in this way Load also accelerates the speed of download of both sides.Actually each user downloading while, also as source in upload (others Some part of that file is taken from your computer).Such case efficiently utilizes the bandwidth of uplink, also avoids everybody All it is extruded into the bottleneck that same file is downloaded on server.BT is seed (SEED) the person of offer complete file archives, just It is client (Client) in the person of downloading, so that it may relievedly download.Certainly, the file download that seed is more, client is more The speed got up can be faster.
But BT downloading is due to the limitation of its rule, so that the user for downloading file in this way is made to have to conduct Source is uploading, bring resource consumption when in order to reduce as source, and what user generallyd use is the behavior of upload deception, that is, What is uploaded is deceptive information, is not some part of file, still, since the behavior for uploading deception is more and more, leads to BT Download mechanism failure, the advantage of speed of download are also more and more unobvious.
Summary of the invention
The purpose of the present invention is to provide a kind of sharing files method, apparatus based on block chain, computer equipment and can Storage medium is read, the information during sharing can be effectively recorded, it is possible thereby to reduce the behavior for uploading deception.
The present invention is to solve above-mentioned technical problem by following technical proposals:
In a first aspect, providing a kind of sharing files method based on block chain, comprising:
First user information is obtained from the block chain, and is used according to first user information to described first Family sends the first request, and first request is identified including the first part of the first file, and first request divides for requesting The first part of the first file is enjoyed, first user information includes first that the first user identifier is shared with first user The mark of file;
The first part for the first file that first user sends is received, and second user information is recorded in block chain In, first part's mark and second user mark that the first file has finished receiving;
The second request that third user sends is received, second request includes that the first part of the first file identifies, institute State first part of second request for requesting to share first file;
The first part of first file is sent to the third user.
Optionally, user information further includes instruction information, and the instruction information is used to indicate the presence of user.
Optionally, the method also includes:
When first file all finishes receiving, first in second user information described in the block chain is referred to Show that information flag is off-line state.
Optionally, further includes:
The third user information is obtained from the block chain, and is used according to the third user information to the described 4th Family sends third request, and the third request is identified including the second part of the first file, and first request divides for requesting The second part of the first file is enjoyed, the third user information includes fourth user mark, the second part mark of the first file And second indication information, the second indication information are presence;
Receive the second part for the first file that the fourth user is sent.
Optionally, further includes:
When the first file all finishes receiving, it is determined as whole users that the second user shares first file And share ratio;
According to the sharing ratio, equal proportion is sent to the whole users for sharing first file for the second user Token.
Second aspect provides a kind of sharing files device based on block chain.Include:
Acquiring unit is believed for obtaining first user information from the block chain, and according to first user It ceasing to first user and sends the first request, first request includes that the first part of the first file identifies, and described first First part of the request for requesting to share the first file, first user information include the first user identifier and described first The mark for the first file that user shares;
Receiving unit for receiving the first part for the first file that first user sends, and second user is believed Breath is recorded in block chain, the first part's mark and second user mark that the first file has finished receiving;
The receiving unit is also used to, and receives the second request that third user sends, second request includes the first text The first part of part identifies, first part of second request for requesting to share first file;
Transmission unit, for sending the first part of first file to the third user.
Optionally, user information further includes instruction information, and the instruction information is used to indicate the presence of user.
Optionally, described device further include:
Recording unit, for when first file all finishes receiving, by second user described in the block chain The first instruction information flag in information is off-line state.
Optionally, the acquiring unit is also used to, and the third user information is obtained from the block chain, and according to institute It states third user information and sends third request to the fourth user, the third request includes the second part mark of the first file Know, second part of first request for requesting to share the first file, the third user information includes fourth user mark Know, the second part of the first file mark and second indication information, the second indication information are presence;
The receiving unit is also used to, and receives the second part for the first file that the fourth user is sent.
Optionally, further includes:
Determination unit shares described first for when the first file all finishes receiving, being determined as the second user Whole users of file and sharing ratio;
Transmission unit, for according to the sharing ratio, equal proportion to share first file to for the second user Whole users send token.
To achieve the goals above, the present invention also provides a kind of computer equipments, including memory, processor and storage On a memory and the computer program that can run on a processor, the processor realize the above method when executing described program The step of.
To achieve the goals above, the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer Program, when described program is executed by processor the step of the realization above method.
Sharing files method, apparatus, computer equipment and readable storage medium storing program for executing provided by the invention based on block chain, can To realize the sharing of file by block chain, and user obtains certain reward during sharing, can greatly improve user The liveness for sharing file can effectively record the information during sharing additionally by block chain, it is possible thereby to reduce Pass the behavior of deception.When further, by downloading file, the source of file and weight are determined to each source and weight Matched reward can reduce the behavior for uploading deception from the root.
Detailed description of the invention
Fig. 1 is a kind of application scenarios schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of optional process signal of the sharing files method according to an embodiment of the present invention based on block chain Figure;
Fig. 3 is that a kind of optional program module of the sharing files device according to an embodiment of the present invention based on block chain is shown It is intended to;
Fig. 4 is a kind of optional hardware structure schematic diagram of computer equipment according to an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The embodiment of the present invention can be applied in scene shown in FIG. 1, may include one in the exemplary architecture or more The meshed network that a block chain node is constituted, record has block chain in block chain node.Block chain meshed network can connect one A or multiple client (for example, client 110 and client 120).Client can realize in a software form, can also be with hard Part form is realized.When implemented in hardware, laptop, desktop computer and mobile terminal etc. can be used.
Client can be used for interacting with block chain link point, such as client can inquire the record in block chain, It can also record the information in block chain.Block chain node can store block chain, and client can be from block chain node Newly-generated block can also be sent to block chain node by middle acquisition block chain;Wherein client can be divided into more by function Kind client, for example, inquiring client terminal, packing client etc., wherein being packaged client can be used for being packaged new block etc. Deng.In embodiments of the present invention, the user of the descriptions such as " the first user " " second user ", can refer to and be logged in by client User, in specific implementation, the connection between user and user can refer to the connection between client and client, from hard For the angle that part is realized, client is installed at the terminal, and the connection between client and client can refer to terminal and end Connection between end.
In embodiments of the present invention, user can realize the downloading and sharing of file by across the chain client in area, also Certain reward can be obtained by sharing file, greatly improve the liveness that user shares file, it can additionally by block chain Information during being shared with effective record, it is possible thereby to reduce the behavior for uploading deception.It is right combined with specific embodiments below The embodiment of the present invention is further introduced.
Embodiment one
The sharing files method based on block chain for providing terminal side to the present invention with reference to the accompanying drawing is illustrated.
Fig. 2 be the present invention is based on a kind of optional flow diagrams of the sharing files method of block chain, as shown in Fig. 2, Applied to the corresponding terminal of second user, this method be may comprise steps of:
S210, obtains first user information from the block chain, and according to first user information to described First user sends the first request.Wherein, first user information includes that the first user identifier is shared with first user The first file mark, it is described first request include the first file first part identify, it is described first request for requesting Share the first part of the first file.
User can share the file resource of oneself by block chain.Wherein, shared mode is to can be used as seed Shared, can also be used as client and share.
When as seed, can by the mark of first user with the identification record of the first file to be shared in block In first user information of chain.So that other clients on block chain can be somebody's turn to do according to the information of the record to the first user request First file.
Wherein, the mark of the first user may include the one or more of user identifier, IP address and block chain address etc.. The mark of first file may include the information such as the file name, size and type of the first file, can also be the first file Cryptographic Hash, which may be considered the abstract of first file.
In addition, the first user information is recorded in block chain in the first user, which can also include Indicate that information, the instruction information can indicate presence and off-line state etc..Wherein, presence refers to that other users can To request the first file to the first user, off-line state is other users temporarily without the first user of normal direction the first file of request.
In addition, the first information can also include the value of the first file.The value refers to that other users request first every time The expense paid when file, the expense can be the numerical value such as integral or contribution degree.
The first file that second user can be requested by block chain to the first user.
For example, client can provide function of search, which can pass through the received user's input of client Keyword matches relevant user information in block chain.Client can determine according to the first user information being matched to Corresponding first user identifier of one file, wherein the first user information includes pair of the first user identifier and the first file identification It should be related to, which is used to indicate the first user as seed and shares first file.Client can be by this The first user identifier and first user for including in first user information establish connection.The connection can be P2P connection, can also Think the connection of other forms.
User may search for multiple user informations, what multiple user information was shared can be identical in search First file.Wherein, whether file is identical can determine according to cryptographic Hash or file format information etc..It is clicked in user any When one downloading, client can send connection as the user of the seed of the first file to other simultaneously and establish request.Under Publish papers part when, this document can be divided into multiple portions, the corresponding mark in every part, branch point is downloaded, and is sending the When the request of one file, the corresponding mark in part of request can be carried.
In one example, for the process to seed the first file of request: obtaining first user from block chain Information, and the first request is sent to first user according to the first user information, which includes the of the first file A part mark, the first part of first request for requesting to share the first file, the first user information includes the first user Identify the mark for the first file shared with the first user
In another example, for the process to client's the first file of request further include: obtain third from block chain User information, and third request is sent to fourth user according to third user information, third request includes the of the first file Two portion identifications, second part of first request for requesting to share the first file, third user information includes fourth user mark Know, the second part of the first file mark and second indication information, second indication information are presence;Receive fourth user The second part of the first file sent.
S220, receives the first part for the first file that the first user sends, and second user information is recorded in block In chain, the second user information includes the first part's mark and second user mark that the first file has finished receiving.
Second user from other users receive the first file during, first user can be used as client to other User shares the part that the first file has been downloaded.
For example, second user can by the first file the number of download part and the identification record of second user in block In chain, fourth user when downloading the first file, can according to the information recorded in block chain, to second user request its under The part of load.
For another example it can downloaded the state recording of the first file in block chain by second user, fourth user When downloading the first file, determine that second user is also downloading the first file, then fourth user can be established with second user It can be sent to fourth user with the number of the part of downloading by connection, second user.
S230 receives the second request that third user sends, which includes that the first part of the first file identifies, First part of second request for requesting to share first file.
S240, Xiang Suoshu third user send the first part of first file.
During second user receives the first file from other users, which can download to other The user of first file requests the part downloaded.
For example, second user can by the first file the identification record of the number of download part and user in block chain In, third user can request it to download according to the information recorded in block chain when downloading the first file to second user Part.
For another example it can downloaded the state recording of the second file in block chain by second user, when third is used Family determines that second user is also downloading the first file when downloading the second file, through block chain, and the first user can be with second User establishes connection, it can be sent to the first user with the number of the part of downloading by second user.
In embodiments of the present invention, the user information in block chain further includes instruction information, and the instruction information is for referring to Show the presence of user.It, in another embodiment, will be in block chain when the first file all finishes receiving based on this The first instruction information flag in second user information is off-line state.
In addition, first file can be determined respectively from which client when second user receives the completion of the first file And its corresponding ratio, the first user can send reward to the user for providing the first file resource in proportion.It, should based on this Method can also include: to be determined as the second user when the first file all finishes receiving and share first file Whole users and sharing ratio;According to the sharing ratio, equal proportion shares first file to for the second user Whole users send token.
The first user is come from for example, received first file of second user, percent 40,30 percent uses from third Family, 30 percent comes from fourth user, and the value of first file is 10 integrals, then, second user can pass through area This ten integrals are given to the first user, third user and fourth user by block chain respectively in proportion, that is, second user 4 integrates, Third user 3 integrates, and fourth user 3 integrates.
In addition, the reward can also be provided by system.For example, the client of second user can recorde the first of its offer The size of file and the corresponding weight of the first file, the weight can indicate the value of first file.Pass through file Contribution margin is calculated in the product of size and weight note, which can be sent to second user by system, wherein the process It can be realized automatically by intelligent contract.For second user when being downloaded using system, can be determined according to the contribution margin should The maximum download of user.Contribution margin is higher, and the total size of Downloadable file is bigger.
The embodiment of the present invention can by block chain realize file sharing, and during sharing user obtain it is certain Reward can greatly improve the liveness that user shares file, during can effectively recording sharing additionally by block chain Information, it is possible thereby to reduce upload deception behavior.When further, by downloading file, the source of file and weight, The behavior for uploading deception can be reduced to each source and the matched reward of weight from the root by determining.
Embodiment two
The sharing files method based on block chain provided in one based on the above embodiment provides a kind of base in the present embodiment In the sharing files device of block chain, specifically, Fig. 3 shows the optional structure of the sharing files device based on block chain Block diagram is somebody's turn to do the sharing files device based on block chain and is divided into one or more program modules, one or more program mould Block is stored in storage medium, and as performed by one or more processors, to complete the present invention.The so-called program of the present invention Module is the series of computation machine program instruction section for referring to complete specific function, is more suitable for description based on block than program itself Implementation procedure of the sharing files device of chain in storage medium, each program module of the present embodiment will specifically be introduced by being described below Function.
As shown in figure 3, being somebody's turn to do the sharing files device 300 based on block chain can include:
Acquiring unit 301, for obtaining the first user information from the block chain, and according to first user information The first request is sent to first user, wherein first user information includes that the first user identifier and described first are used The mark for the first file that family is shared, first request include that the first part of the first file identifies, and first request is used Share the first part of the first file in request;
Receiving unit 302, for receiving the first part for the first file that first user sends, and by second user Information is recorded in block chain, the first part's mark and second user mark that the first file has finished receiving;
The receiving unit 302 is also used to, and receives the second request that third user sends, second request includes first The first part of file identifies, first part of second request for requesting to share first file;
Transmission unit 303, for sending the first part of first file to the third user.
Optionally, user information further includes instruction information, and the instruction information is used to indicate the presence of user.
Optionally, described device further include:
Recording unit, for when first file all finishes receiving, by second user described in the block chain The first instruction information flag in information is off-line state.
Optionally, the acquiring unit is also used to, and the third user information is obtained from the block chain, and according to institute It states third user information and sends third request to the fourth user, the third request includes the second part mark of the first file Know, second part of first request for requesting to share the first file, the third user information includes fourth user mark Know, the second part of the first file mark and second indication information, the second indication information are presence;
The receiving unit 302 is also used to, and receives the second part for the first file that the fourth user is sent.
Optionally, further includes:
Determination unit shares described first for when the first file all finishes receiving, being determined as the second user Whole users of file and sharing ratio;
Transmission unit 303, for according to the sharing ratio, equal proportion to share first text to for the second user Whole users of part send token.
The embodiment of the present invention can by block chain realize file sharing, and during sharing user obtain it is certain Reward can greatly improve the liveness that user shares file, during can effectively recording sharing additionally by block chain Information, it is possible thereby to reduce upload deception behavior.When further, by downloading file, the source of file and weight, The behavior for uploading deception can be reduced to each source and the matched reward of weight from the root by determining.
Embodiment three
The present embodiment also provides a kind of computer equipment, can such as execute the smart phone, tablet computer, notebook of program Computer, desktop computer, rack-mount server, blade server, tower server or Cabinet-type server are (including independent Server cluster composed by server or multiple servers) etc..As shown in figure 4, the computer equipment 40 of the present embodiment to It is few to include but is not limited to: the memory 41, processor 42 and transceiver 43 of connection can be in communication with each other by system bus, received and dispatched Device 43 is for the communication between computer equipment and computer equipment, as shown in Figure 4.It should be pointed out that Fig. 4 illustrates only tool There is the computer equipment 40 of component 41-43, it should be understood that being not required for implementing all components shown, can substitute Implementation is more or less component.
In the present embodiment, memory 41 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD etc..In some embodiments, memory 41 can be the internal storage unit of computer equipment 40, such as the calculating The hard disk or memory of machine equipment 40.In further embodiments, memory 41 is also possible to the external storage of computer equipment 40 The plug-in type hard disk being equipped in equipment, such as the computer equipment 40, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 41 can also both include meter The internal storage unit for calculating machine equipment 40 also includes its External memory equipment.In the present embodiment, memory 41 is commonly used in storage It is installed on the operating system and types of applications software of computer equipment 40, such as the sharing files based on block chain of embodiment two The program code etc. of device.It has exported or will export all kinds of in addition, memory 41 can be also used for temporarily storing Data.
Processor 42 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 42 is commonly used in control computer equipment 40 overall operation.In the present embodiment, program code or processing data of the processor 42 for being stored in run memory 41, To realize step performed by user equipment in aforementioned embodiment shown in Fig. 2.
The embodiment of the present invention can by block chain realize file sharing, and during sharing user obtain it is certain Reward can greatly improve the liveness that user shares file, during can effectively recording sharing additionally by block chain Information, it is possible thereby to reduce upload deception behavior.When further, by downloading file, the source of file and weight, The behavior for uploading deception can be reduced to each source and the matched reward of weight from the root by determining.
Example IV
The present embodiment also provides a kind of computer readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD, server, App are stored thereon with computer program, phase are realized when program is executed by processor using store etc. Answer function.The computer readable storage medium of the present embodiment is used for the sharing files device based on block chain, is executed by processor The sharing files method based on block chain of Shi Shixian embodiment one or embodiment two.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of sharing files method based on block chain characterized by comprising
It obtains the first user information from the block chain, and sends the to first user according to first user information One request, first user information includes the mark for the first file that the first user identifier is shared with first user, institute First part's mark that the first request includes the first file is stated, first request is for requesting first of the first file of sharing Point;
The first part for the first file that first user sends is received, and second user information is recorded in block chain In, the second user information includes the first part's mark and second user mark that the first file has finished receiving;
The second request that third user sends is received, second request includes that the first part of the first file identifies, and described the First part of two requests for requesting to share first file;
The first part of first file is sent to the third user.
2. the method according to claim 1, wherein user information further includes instruction information, the instruction information It is used to indicate the presence of user.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When first file all finishes receiving, the first instruction in second user information described in the block chain is believed Breath is labeled as off-line state.
4. according to the method in claim 2 or 3, which is characterized in that further include:
The third user information is obtained from the block chain, and is sent out according to the third user information to the fourth user Third is sent to request, third request includes that the second part of the first file identifies, and first request is for requesting to share the The second part of one file, the third user information include fourth user mark, the first file second part mark and Second indication information, the second indication information are presence;
Receive the second part for the first file that the fourth user is sent.
5. the method according to claim 1, wherein further include:
When the first file all finishes receiving, be determined as the second user share first file whole users and Sharing ratio;
According to the sharing ratio, equal proportion sends to the whole users for sharing first file for the second user and enables Board.
6. a kind of sharing files device based on block chain characterized by comprising
Acquiring unit, for obtaining first user information from the block chain, and according to first user information to First user sends the first request, and first request includes that the first part of the first file identifies, first request First part for requesting to share the first file, first user information include the first user identifier and first user The mark for the first file shared;
Receiving unit for receiving the first part for the first file that first user sends, and second user information is remembered Record is in block chain, first part's mark and second user mark that the first file has finished receiving;
The receiving unit is also used to, and receives the second request that third user sends, second request includes the first file First part's mark, first part of second request for requesting to share first file;
Transmission unit, for sending the first part of first file to the third user.
7. device according to claim 6, which is characterized in that user information further includes instruction information, the instruction information It is used to indicate the presence of user.
8. device according to claim 7, which is characterized in that described device further include:
Recording unit, for when first file all finishes receiving, by second user information described in the block chain In first instruction information flag be off-line state.
9. a kind of computer equipment, the computer equipment include memory, processor and storage on a memory and can be The computer program run on processor, which is characterized in that the processor realizes claim 1 to 5 when executing described program The step of any one the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: described program is processed The step of any one of claim 1 to 5 the method is realized when device executes.
CN201910602792.2A 2019-07-05 2019-07-05 Block chain-based file sharing method and device, computer equipment and readable storage medium Active CN110474954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910602792.2A CN110474954B (en) 2019-07-05 2019-07-05 Block chain-based file sharing method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910602792.2A CN110474954B (en) 2019-07-05 2019-07-05 Block chain-based file sharing method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110474954A true CN110474954A (en) 2019-11-19
CN110474954B CN110474954B (en) 2022-10-25

Family

ID=68506879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910602792.2A Active CN110474954B (en) 2019-07-05 2019-07-05 Block chain-based file sharing method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110474954B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404897A (en) * 2020-03-06 2020-07-10 深圳前海达闼云端智能科技有限公司 Message distribution method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770115A (en) * 2016-08-15 2018-03-06 华为技术有限公司 Distribute the method and system of digital content in a peer-to-peer network
CN108111585A (en) * 2017-12-15 2018-06-01 成都链网络科技有限公司 Distributed storage method based on block chain
US20180299852A1 (en) * 2015-10-13 2018-10-18 LO3 Energy Inc. Use of blockchain based distributed consensus control
CN109191212A (en) * 2018-09-14 2019-01-11 北京京东金融科技控股有限公司 Determine method, apparatus, equipment and the computer readable storage medium for sharing user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180299852A1 (en) * 2015-10-13 2018-10-18 LO3 Energy Inc. Use of blockchain based distributed consensus control
CN107770115A (en) * 2016-08-15 2018-03-06 华为技术有限公司 Distribute the method and system of digital content in a peer-to-peer network
CN108111585A (en) * 2017-12-15 2018-06-01 成都链网络科技有限公司 Distributed storage method based on block chain
CN109191212A (en) * 2018-09-14 2019-01-11 北京京东金融科技控股有限公司 Determine method, apparatus, equipment and the computer readable storage medium for sharing user

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404897A (en) * 2020-03-06 2020-07-10 深圳前海达闼云端智能科技有限公司 Message distribution method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110474954B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN111163130B (en) Network service system and data transmission method thereof
CN110557284B (en) Data aggregation method and device based on client gateway
CN104348919A (en) Method and device for downloading file and browser
CN110196843B (en) File distribution method based on container cluster and container cluster
CN113411404A (en) File downloading method, device, server and storage medium
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
CN109951514A (en) Document handling method, system and computer equipment based on cloud storage
US8972968B1 (en) Alternate service for applications
CN111460394A (en) Copyright file verification method and device and computer readable storage medium
CN110278192A (en) Method, apparatus, computer equipment and the readable storage medium storing program for executing of extranet access Intranet
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN112714365A (en) Video playing method and system
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN110474954A (en) Sharing files method, apparatus, computer equipment and readable storage medium storing program for executing based on block chain
CN110515631B (en) Method for generating application installation data packet, server and computer storage medium
CN110839074A (en) Data request receiving and processing method and device
CN113849125A (en) Method, device and system for reading disk of CDN server
CN112688980B (en) Resource distribution method and device, and computer equipment
CN110597766B (en) Data transmission method and device
CN109889608B (en) Dynamic resource loading method and device, electronic equipment and storage medium
CN107948337B (en) Electronic file transmission method, device and system and computer readable storage medium
CN113867838A (en) Application program starting method, electronic equipment and computer storage medium
CN112597406A (en) File transmission method and device, terminal equipment and storage medium
CN111163123A (en) Service request processing method and device
CN114765606B (en) Container mirror image transmission method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant