CN110428254B - Decentralized storage downloading method and arbitration method, equipment and storage medium - Google Patents

Decentralized storage downloading method and arbitration method, equipment and storage medium Download PDF

Info

Publication number
CN110428254B
CN110428254B CN201910600919.7A CN201910600919A CN110428254B CN 110428254 B CN110428254 B CN 110428254B CN 201910600919 A CN201910600919 A CN 201910600919A CN 110428254 B CN110428254 B CN 110428254B
Authority
CN
China
Prior art keywords
downloading
user
request information
service
quota
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.)
Active
Application number
CN201910600919.7A
Other languages
Chinese (zh)
Other versions
CN110428254A (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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201910600919.7A priority Critical patent/CN110428254B/en
Publication of CN110428254A publication Critical patent/CN110428254A/en
Application granted granted Critical
Publication of CN110428254B publication Critical patent/CN110428254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/12Payment architectures specially adapted for electronic shopping systems
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives

Abstract

The invention provides a decentralized storage downloading method, an arbitration method, equipment and a storage medium, wherein the method comprises the following steps: responding to the downloading operation, and inquiring whether the downloaded times of the first user in the first period is not less than an agreed quota: if not, generating first downloading request information and sending the first downloading request information to a corresponding service node for verification; if so, responding to the speed-limited downloading operation, generating second downloading request information and sending the second downloading request information to a corresponding service node for providing the speed-limited downloading service; or, responding to the payment downloading operation, generating third downloading request information comprising payment transaction and sending the third downloading request information to the corresponding service node for verification: if the verification is passed, providing download service and broadcasting payment transaction; if the verification fails, the download service is refused to be provided and the second notification information is returned. The method and the device ensure that the service node normally provides the downloading service.

Description

Decentralized storage downloading method and arbitration method, equipment and storage medium
Technical Field
The application relates to the technical field of internet, in particular to a decentralized storage downloading method, an arbitration method, equipment and a storage medium.
Background
Current cloud storage is typically centralized, users typically do not have, or have very few, opportunities and rights to select, and there is a world wide where huge storage space is not being efficiently utilized, such as when very many companies' computing devices or personal computers are idle. In another patent application filed by the applicant at the same time, it is proposed that decentralized data storage leasing can be realized through a distributed storage management contract deployed on a blockchain, a service node can provide an idle storage space for a leasing party with a storage requirement to store data, and the service node can live an effective storage space, so that the storage efficiency of the whole society in a computing storage method is improved, the storage is more efficient, and the storage cost is reduced.
In the above scheme, there is a problem that the service node is affected by the fact that the user requests the data to be downloaded too frequently, and provides normal service for other users, and further, there is a possibility that an attacker always requests the data to be downloaded after renting the storage space to attack the service node.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a decentralized storage download method and arbitration method, device, and storage medium for ensuring that a service node normally provides a download service.
In a first aspect, the present invention provides a decentralized storage downloading method suitable for a user side, including:
responding to the downloading operation, and inquiring whether the current downloaded times of the first user in the first period is not less than an agreed quota:
if not, generating signed first downloading request information and sending the signed first downloading request information to a corresponding service node for verifying the downloaded times of the first user in the first period:
if the downloaded times are less than quota minus one, providing a downloading service and storing first downloading request information;
if the downloaded times are equal to quota minus one, providing a downloading service, packaging the received and stored first downloading request information to generate a certificate storing transaction, and broadcasting the certificate storing transaction to the blockchain network;
if the downloaded times are not less than the quota, providing speed-limited downloading service and returning first notification information;
if so, responding to the speed-limited downloading operation, generating second downloading request information for requesting speed-limited downloading and sending the second downloading request information to a corresponding service node for providing speed-limited downloading service; or the like, or, alternatively,
in response to the payment downloading operation, generating third downloading request information comprising payment transaction and sending the third downloading request information to the corresponding service node for verification:
if the verification is passed, providing a download service and broadcasting the payment transaction to the blockchain network;
if the verification fails, the download service is refused to be provided and the second notification information is returned.
In a second aspect, the present invention provides a decentralized storage downloading method suitable for a service node, including:
responding to the first downloading request information sent by the receiving user terminal, verifying the downloaded times of the user terminal in a first period:
if the downloaded times are less than the appointed quota minus one, providing a downloading service and storing first downloading request information;
if the downloaded times are equal to quota minus one, providing a downloading service, packaging the received and stored first downloading request information to generate a certificate storing transaction, and broadcasting the certificate storing transaction to the blockchain network;
if the downloaded times are not less than the quota, providing speed-limited downloading service and returning first notification information;
responding to the second downloading request information sent by the receiving user terminal, and providing speed-limiting downloading service;
responding to the third downloading request information sent by the receiving user terminal, verifying whether the payment transaction in the third downloading request information pays enough fee:
if yes, providing download service, and broadcasting the payment transaction to the blockchain network;
if not, refusing to provide the download service and returning the second notification information.
The first downloading request information is generated by the user end responding to the downloading operation and inquiring that the current downloaded times of the first user in the first period is smaller than the quota; the second downloading request information is generated by responding to the speed-limited downloading operation when the user side inquires that the downloaded times of the first user in the first period are not less than the appointed quota; the third downloading request message is generated by the user side in response to the pay downloading operation when the user side inquires that the downloaded times of the first user in the first period are not less than the agreed quota.
In a third aspect, the present invention provides another decentralized storage downloading method suitable for a service node, including:
receiving download request information sent by a user side, verifying the downloaded times of a first user of the user side in a first period:
if the downloaded times are less than the appointed quota minus one, providing a downloading service and storing first downloading request information;
if the downloaded times are equal to quota minus one, providing a downloading service, packaging the received and stored first downloading request information to generate a certificate storing transaction, and broadcasting the certificate storing transaction to the blockchain network;
if the downloaded times are not less than the quota, verifying whether the downloading request information comprises an excess downloading request:
if not, providing speed-limited downloading service and returning first notification information;
if yes, verifying whether the downloading request information requests speed-limited downloading:
if yes, providing speed-limited downloading service;
if not, verifying whether the payment transaction in the downloading request information pays enough fee:
if yes, providing download service, and broadcasting the payment transaction to the blockchain network;
if not, refusing to provide the download service and returning the second notification information.
In a fourth aspect, the present invention provides an arbitration method for decentralized storage downloading for blockchain nodes, including:
receiving, broadcasting and packaging to execute arbitration transaction sent by a user side, verifying whether the downloaded times of a first user of the user side in a first period is not less than an appointed quota according to transaction records on a block chain in the first period:
if so, the arbitration fails and the arbitration result is recorded in the block chain;
and if not, the arbitration is successful, the frozen part of the guarantee fund in the account of the corresponding service node is transferred to the account of the first user, and the arbitration result is recorded on the block chain.
The arbitration transaction is generated and sent by the user side when the first notification information is received; the first notification message is returned by the service node when the first download request message sent by the user end is received and the downloaded times of the first user in the first period is verified to be not less than the appointed quota; the first download request message is generated by the user terminal in response to the download operation, and when the number of downloaded times of the first user in the first period is smaller than the agreed quota.
In a fifth aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a method provided according to embodiments of the present invention.
In a sixth aspect, the present invention also provides a storage medium storing a computer program that causes a computer to execute the methods provided according to the embodiments of the present invention.
According to the decentralized storage downloading method, the arbitration method, the equipment and the storage medium provided by the embodiments of the invention, the periodical limited free downloading times are configured in the decentralized storage downloading scheme, and a mechanism of limiting the speed excessively or paying the downloading service is provided for the user, so that the user is prevented from downloading too frequently or carrying out malicious attack type continuous downloading, and the service node is ensured to provide the downloading service normally;
the decentralized storage downloading method, the arbitration method, the device and the storage medium provided by some embodiments of the present invention further record the downloading request to the blockchain, and arbitrate according to the record on the blockchain by the contract on the blockchain when the two parties have divergence, so as to ensure the fairness of the quota free mechanism, thereby ensuring the rights and interests of the two parties.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a decentralized storage downloading method according to an embodiment of the present invention.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1.
FIG. 3 is a flow chart of a preferred embodiment of the method shown in FIG. 2.
Fig. 4 is a flowchart of another decentralized storage downloading method according to an embodiment of the present invention.
Fig. 5 is a flowchart of another decentralized storage downloading method according to an embodiment of the present invention.
Fig. 6 is a flowchart of an arbitration method for decentralized storage downloading according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a decentralized storage downloading method according to an embodiment of the present invention.
As shown in fig. 1, in this embodiment, the present invention provides a decentralized storage downloading method, including:
s11: responding to the downloading operation, and inquiring whether the current downloaded times of the first user in the first period is not less than an agreed quota:
otherwise, step S12 is executed: generating a signed first download request message and sending the signed first download request message to a corresponding service node for verifying the downloaded times of the first user in a first period:
if the downloaded times are less than quota minus one, providing a downloading service and storing first downloading request information;
if the downloaded times are equal to quota minus one, providing a downloading service, packaging the received and stored first downloading request information to generate a certificate storing transaction, and broadcasting the certificate storing transaction to the blockchain network;
if the downloaded times are not less than the quota, providing speed-limited downloading service and returning first notification information;
if yes, in response to the speed limit downloading operation, executing step S13: generating second downloading request information for requesting speed-limited downloading and sending the second downloading request information to a corresponding service node for providing speed-limited downloading service; or the like, or, alternatively,
in response to the pay download operation, step S14 is executed: generating third download request information including the payment transaction and sending to the corresponding service node for verification:
if the verification is passed, providing a download service and broadcasting the payment transaction to the blockchain network;
if the verification fails, the download service is refused to be provided and the second notification information is returned.
The following 30 segments S generated by encoding the data S by the user terminal A0-S29Respectively stored in the serving node B0-B29In the above method, the period is a natural month, and the agreed quota in each period is 5 times, for example, which is exemplarily described.
For example, in a 7-month cycle, at 0 point of 1/7, the downloaded times of all the clients and the service nodes are cleared.
User A performs S in 7 months0-S29The first download of (2):
in step S11, the user end a queries whether the downloaded number of times (0) of each segment in the 7-month period of the current user is not less than the agreed quota (5):
otherwise, step S12 is executed: generating signed first download request information m1, sending m1 to corresponding service node B0-B29
Serving node B0-B29After receiving m1, it may be processed according to the method shown in fig. 4 or fig. 5 to verify the downloaded number of times (0) of the user at user end a in a period of 7 months:
if the downloaded times are less than 4, providing the downloading service and storing m 1;
if the number of downloaded times is equal to 4, providing a download service, packaging each of the first download request messages received and stored this time (i.e. 5 m1 received by 5 downloads respectively) to generate a witness transaction tx1, and broadcasting the witness transaction tx1 to the blockchain network;
if the downloaded times are not less than 5, providing speed-limited downloading service and returning first notification information;
the verification result is that the downloaded number (0) is less than 4, so that the downloading service is provided for the user terminal a, and m1 is stored.
For another example, the client a has downloaded S5 times in a 7-month period0-S29At this time, the ue a performs the fragmentation S again21Downloading:
in step S11, client a queries segment S21Is not less than the agreed quota (5):
if yes, the user terminal a waits for the user operation within a predetermined time:
when the user selects to perform the speed limit downloading (or the user does not perform the operation within the predetermined time, the user terminal a selects the speed limit downloading by default), in response to the speed limit downloading operation, step S13 is performed: generating a second download request message m2 requesting a rate-limited download and transmitting the second download request message m2 to the corresponding service node B21
Serving node B21After m2 is received, processing is performed according to the method shown in fig. 4 or fig. 5, and speed-limited downloading service is provided for the user terminal a;
when the user selects the pay download, in response to the pay download operation, step S14 is performed: generates a payment transaction tx2, and transmits a third download request message m3 including tx2 to a corresponding service node B m321
Serving node B21After receiving m3, it is processed according to the method shown in fig. 4 or fig. 5 to verify that tx2 pays enough for the paid download:
if yes, providing download service for the user terminal A, and broadcasting tx2 to the blockchain network;
if not, the user end A is refused to provide the downloading service, and a second notification message is returned to inform the user end A that the downloading request is not paid enough.
The above examples are only for illustrative purposes, and those skilled in the art will understand that the method shown in fig. 1 can be applied to different scenarios, and is not limited to the above examples.
In the embodiment, the periodic limited free downloading times are configured in the decentralized storage downloading scheme, and an excess speed limit or payment downloading service mechanism is provided for the user, so that the user is prevented from downloading too frequently or carrying out malicious attack type continuous downloading, and the service node is ensured to provide the downloading service normally.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1. As shown in fig. 2, in a preferred embodiment, the method further comprises:
s15: in response to receiving the first notification message, generating an arbitration transaction and sending the arbitration transaction to a blockchain node for broadcast and packed execution to verify whether the downloaded times of the first user in the first period are not less than an agreed quota according to a transaction record on the blockchain in the first period:
if so, the arbitration fails and the arbitration result is recorded in the block chain;
and if not, the arbitration is successful, the frozen part of the guarantee fund in the account of the corresponding service node is transferred to the account of the first user, and the arbitration result is recorded on the block chain.
For example, after the user terminal a receives the first notification message, step S15 is executed to generate an arbitration transaction tx3 and send it to the blockchain node, tx3 may specifically include the hash value of the lease contract between the user terminal a and the corresponding service node, the first notification message signed by the corresponding service node, which includes the transaction hash of the last download request transaction for normal service, the period information, and so on.
After receiving tx3, the blockchain node broadcasts, packages tx3 and executes by a contract, and judges whether the downloaded times of the certificate are not less than the quota according to the certificate-deposit transaction record of the current period (for example, 7 months) recorded on the blockchain:
if so, the arbitration fails and the arbitration result is recorded in the block chain;
otherwise, the arbitration is successful, the frozen part of the guarantee fund in the account of the corresponding service node is transferred to the account of the user terminal A, and the arbitration result is recorded on the block chain.
The above embodiment further ensures the fairness of the quota free mechanism by recording the download request to the blockchain and arbitrating by the contract on the blockchain according to the record on the blockchain when the two parties have divergence, thereby ensuring the rights and interests of the two parties.
FIG. 3 is a flow chart of a preferred embodiment of the method shown in FIG. 2. As shown in fig. 3, it is further preferable that the method further includes:
s16: and acquiring an arbitration result recorded on the block chain, and updating the downloaded times in the first period according to the arbitration result when the arbitration result is arbitration failure.
Specifically, the arbitration result includes the downloaded times of the credentials stored in the blockchain, and when the arbitration result is an arbitration failure, it indicates that the downloaded times recorded locally at the user end are incorrect, so as to avoid a re-determination error in subsequent downloading and re-initiate the arbitration that will fail, and the downloaded times recorded locally that are incorrect need to be corrected according to the arbitration result.
Correspondingly, the service node also monitors and acquires the arbitration result which is recorded on the block chain and is related to the service node, when the arbitration result is successful, the service node shows that the downloaded times counted by the service node are wrong, and the wrong downloaded times are corrected according to the arbitration result.
Fig. 4 is a flowchart of another decentralized storage downloading method according to an embodiment of the present invention. The method illustrated in fig. 4 may be performed in conjunction with the methods illustrated in fig. 1-3.
As shown in fig. 4, the present invention provides a centralized storage downloading method suitable for a service node, including:
s221: responding to the first downloading request information sent by the receiving user terminal, verifying the downloaded times of the user terminal in a first period:
if the downloaded number of times is less than the default quota minus one, then step S222 is executed: providing a downloading service and storing first downloading request information;
if the downloaded number of times is equal to the quota minus one, execute step S223: providing a downloading service, packaging the received and stored first downloading request information to generate a deposit certificate transaction and broadcasting the deposit certificate transaction to a block chain network;
if the downloaded number of times is not less than the quota, step S224 is executed: providing speed-limiting downloading service and returning first notification information;
s23: responding to the second downloading request information sent by the receiving user terminal, and providing speed-limiting downloading service;
s241: responding to the third downloading request information sent by the receiving user terminal, verifying whether the payment transaction in the third downloading request information pays enough fee:
if yes, go to step S242: providing a download service that broadcasts payment transactions to a blockchain network;
otherwise, step S243 is executed: refusing to provide the download service and returning the second notification information.
The first downloading request information is generated by the user end responding to the downloading operation and inquiring that the current downloaded times of the first user in the first period is smaller than the quota; the second downloading request information is generated by responding to the speed-limited downloading operation when the user side inquires that the downloaded times of the first user in the first period are not less than the appointed quota; the third downloading request message is generated by the user side in response to the pay downloading operation when the user side inquires that the downloaded times of the first user in the first period are not less than the agreed quota.
Preferably, the method further comprises: and acquiring an arbitration result recorded on the blockchain, and updating the downloaded times of the first user in the first period according to the arbitration result when the arbitration result is successful.
Fig. 5 is a flowchart of another decentralized storage downloading method according to an embodiment of the present invention. The method illustrated in fig. 5 may also be performed in conjunction with the methods illustrated in fig. 1-3.
As shown in fig. 5, the present invention provides another centralized storage downloading method suitable for a service node, including:
s30: receiving downloading request information sent by a user side;
s31: verifying the downloaded times of a first user at a user terminal in a first period:
if the downloaded number of times is less than the agreed quota minus one, step S321 is executed: providing a downloading service and storing first downloading request information;
if the downloaded number of times is equal to the quota minus one, go to step S322: providing a downloading service, packaging the received and stored first downloading request information to generate a deposit certificate transaction and broadcasting the deposit certificate transaction to a block chain network;
if the downloaded number of times is not less than the quota, execute step S33: verifying whether the download request information includes an excess download request:
otherwise, step S34 is executed: providing speed-limiting downloading service and returning first notification information;
if yes, go to step S35: verifying whether the downloading request information requests speed-limited downloading:
if yes, go to step S36: providing a speed-limited download service;
otherwise, step S37 is executed: verifying whether the payment transaction in the download request message pays enough fees:
if yes, go to step S38: providing a download service that broadcasts payment transactions to a blockchain network;
otherwise, step S39 is executed: refusing to provide the download service and returning the second notification information.
Preferably, the method further comprises: and acquiring an arbitration result recorded on the blockchain, and updating the downloaded times of the first user in the first period according to the arbitration result when the arbitration result is successful.
Also taking the example that the user terminal a generates the first download request message m1, the second download request message m2 or the third download request message m3 under different conditions, the method shown in fig. 4 is different from the method shown in fig. 5 in that:
in the method shown in fig. 4, when the service node receives the download request information sent by the user end, it first determines the type of the download request information (m1/m2/m3), and selects a corresponding processing method according to the determination result;
in the method shown in fig. 5, when the service node receives the download request information sent by the user end, a unified judgment flow is adopted to perform judgment one by one.
The principles of the method shown in fig. 4-5 can be referred to the method shown in fig. 1-3 and will not be described in detail herein.
Fig. 6 is a flowchart of an arbitration method for decentralized storage downloading according to an embodiment of the present invention. The method shown in fig. 6 may be performed in conjunction with the methods shown in fig. 2-3, and the preferred embodiments of the methods shown in fig. 4-5.
As shown in fig. 6, in this embodiment, the present invention further provides a method for arbitrating decentralized storage downloading for blockchain nodes, including:
s41: receiving, broadcasting and packaging to execute arbitration transaction sent by a user side, verifying whether the downloaded times of a first user of the user side in a first period is not less than an appointed quota according to transaction records on a block chain in the first period:
if yes, go to step S43: recording the arbitration result on the block chain when the arbitration fails;
otherwise, step S45 is executed: and if the arbitration is successful, transferring the frozen part of the guarantee fund in the account of the corresponding service node to the account of the first user, and recording the arbitration result on the block chain.
The arbitration transaction is generated and sent by the user side when the first notification information is received; the first notification message is returned by the service node when the first download request message sent by the user end is received and the downloaded times of the first user in the first period is verified to be not less than the appointed quota; the first download request message is generated by the user side of the first user in response to the download operation, and when the number of times that the first user has downloaded in the first period is smaller than the agreed quota is inquired.
The arbitration principle of the method shown in fig. 6 can refer to the method shown in fig. 2, and is not described herein again.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 7, as another aspect, the present application also provides an apparatus 700 including one or more Central Processing Units (CPUs) 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the apparatus 700 are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the above-described method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described herein.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A decentralized storage downloading method, wherein the method is applied to a user side, and the method comprises:
responding to the downloading operation, and inquiring whether the current downloaded times of the first user in the first period is not less than an agreed quota:
if not, generating signed first downloading request information and sending the signed first downloading request information to a corresponding service node for verifying the downloaded times of the first user in the first period:
if the downloaded times are less than the quota minus one, providing a downloading service and storing the first downloading request information;
if the downloaded times are equal to the quota minus one, providing a downloading service, packaging the received and stored first downloading request information to generate a deposit certificate transaction, and broadcasting the deposit certificate transaction to the block chain network;
if the downloaded times are not less than the quota, providing speed-limited downloading service and returning first notification information;
if so, responding to the speed-limited downloading operation, generating second downloading request information for requesting speed-limited downloading and sending the second downloading request information to a corresponding service node for providing speed-limited downloading service; or the like, or, alternatively,
in response to the payment downloading operation, generating third downloading request information comprising payment transaction and sending the third downloading request information to the corresponding service node for verification:
if the verification is passed, providing a download service, and broadcasting the payment transaction to the blockchain network;
if the verification fails, the download service is refused to be provided and the second notification information is returned.
2. The method of claim 1, further comprising:
in response to receiving the first notification message, generating an arbitration transaction and sending the arbitration transaction to a blockchain node for broadcast and packed execution to verify whether the downloaded times of the first user in the first period are not less than an agreed quota according to a transaction record on the blockchain in the first period:
if so, the arbitration fails and the arbitration result is recorded in the block chain;
and if not, the arbitration is successful, the frozen part of the guarantee fund in the account of the corresponding service node is transferred to the account of the first user, and the arbitration result is recorded on the block chain.
3. The method of claim 2, further comprising:
and acquiring an arbitration result recorded on the block chain, and updating the downloaded times of the first user in the first period according to the arbitration result when the arbitration result is arbitration failure.
4. A decentralized storage downloading method, wherein the method is applied to a service node, and wherein the method comprises:
responding to a first downloading request message sent by a receiving user terminal, verifying the downloaded times of the user terminal in a first period:
if the downloaded times are less than the appointed quota minus one, providing a downloading service and storing the first downloading request information;
if the downloaded times are equal to the quota minus one, providing a downloading service, packaging the received and stored first downloading request information to generate a deposit certificate transaction, and broadcasting the deposit certificate transaction to the block chain network;
if the downloaded times are not less than the quota, providing speed-limited downloading service and returning first notification information;
responding to the second downloading request information sent by the user side, and providing speed-limiting downloading service;
in response to receiving third download request information sent by the user side, verifying whether the payment transaction in the third download request information pays enough fee:
if yes, providing download service, and broadcasting the payment transaction to the blockchain network;
if not, refusing to provide the downloading service and returning the second notification information;
the first downloading request message is generated by the user end in response to a downloading operation when the current downloaded times of the first user in a first period are smaller than the quota; the second downloading request information is generated by responding to the speed-limited downloading operation when the user side inquires that the downloaded times of the first user in the first period are not less than the appointed quota; the third downloading request message is generated by the user side in response to the payment downloading operation when the user side inquires that the downloaded times of the first user in the first period is not less than the agreed quota.
5. The method of claim 4, further comprising:
acquiring an arbitration result recorded on the block chain, and updating the downloaded times of the first user in the first period according to the arbitration result when the arbitration result is successful;
and the arbitration result is used for executing arbitration transaction by using the blockchain link point, and verifying whether the downloaded times of the first user in the first period are not less than the appointed quota according to the transaction record on the blockchain in the first period and recording the downloaded times on the blockchain.
6. A decentralized storage downloading method, wherein the method is applied to a service node, and wherein the method comprises:
receiving download request information sent by a user side, verifying the downloaded times of a first user of the user side in a first period:
if the downloaded times are less than the appointed quota minus one, providing a downloading service and storing the downloading request information;
if the downloaded times are equal to the quota minus one, providing a downloading service, packaging the received and stored downloading request information to generate a certificate-storing transaction, and broadcasting the certificate-storing transaction to the blockchain network;
if the downloaded times are not less than the quota, verifying whether the download request information comprises an excess download request:
if not, providing speed-limited downloading service and returning first notification information;
if yes, verifying whether the downloading request information requests speed-limited downloading:
if yes, providing speed-limited downloading service;
if not, verifying whether the payment transaction in the downloading request information pays enough fee:
if yes, providing download service, and broadcasting the payment transaction to the blockchain network;
if not, refusing to provide the download service and returning the second notification information.
7. The method of claim 6, further comprising:
acquiring an arbitration result recorded on the block chain, and updating the downloaded times of the first user in the first period according to the arbitration result when the arbitration result is successful;
and the arbitration result is used for executing arbitration transaction by using the blockchain link point, and verifying whether the downloaded times of the first user in the first period are not less than the appointed quota according to the transaction record on the blockchain in the first period and recording the downloaded times on the blockchain.
8. A method for arbitrating decentralized storage downloading, the method being applicable to blockchain nodes, the method comprising:
receiving, broadcasting and packaging to execute arbitration transaction sent by a user side, verifying whether the downloaded times of a first user of the user side in a first period is not less than an appointed quota according to transaction records on a block chain in the first period:
if so, the arbitration fails and the arbitration result is recorded in the block chain;
if not, the arbitration is successful, the frozen part of the guarantee fund in the account of the corresponding service node is transferred to the account of the first user, and the arbitration result is recorded on the block chain;
the arbitration transaction is generated and sent by the user side when first notification information is received; the first notification message is returned by the service node when the first download request message sent by the user side is received and the downloaded times of the first user in the first period is verified to be not less than the appointed quota; the first download request message is generated by the user end in response to a download operation, and when the number of downloaded times of the first user in a first period is smaller than an agreed quota.
9. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-8.
10. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-8.
CN201910600919.7A 2019-07-04 2019-07-04 Decentralized storage downloading method and arbitration method, equipment and storage medium Active CN110428254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910600919.7A CN110428254B (en) 2019-07-04 2019-07-04 Decentralized storage downloading method and arbitration method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910600919.7A CN110428254B (en) 2019-07-04 2019-07-04 Decentralized storage downloading method and arbitration method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110428254A CN110428254A (en) 2019-11-08
CN110428254B true CN110428254B (en) 2022-03-04

Family

ID=68408959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910600919.7A Active CN110428254B (en) 2019-07-04 2019-07-04 Decentralized storage downloading method and arbitration method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110428254B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671879B (en) * 2020-12-18 2023-01-10 北京浪潮数据技术有限公司 Component deployment method, system and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357673A (en) * 2016-10-19 2017-01-25 中国科学院信息工程研究所 DDoS attack detecting method and DDoS attack detecting system of multi-tenant cloud computing system
CN107948253A (en) * 2017-11-10 2018-04-20 江苏通付盾科技有限公司 Decentralization date storage method and system, electronic equipment, storage medium
CN108924092A (en) * 2018-06-07 2018-11-30 北京航空航天大学 Based on block chain can open arbitration distribution cloud storage method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8646064B1 (en) * 2012-08-07 2014-02-04 Cloudflare, Inc. Determining the likelihood of traffic being legitimately received at a proxy server in a cloud-based proxy service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357673A (en) * 2016-10-19 2017-01-25 中国科学院信息工程研究所 DDoS attack detecting method and DDoS attack detecting system of multi-tenant cloud computing system
CN107948253A (en) * 2017-11-10 2018-04-20 江苏通付盾科技有限公司 Decentralization date storage method and system, electronic equipment, storage medium
CN108924092A (en) * 2018-06-07 2018-11-30 北京航空航天大学 Based on block chain can open arbitration distribution cloud storage method and system

Also Published As

Publication number Publication date
CN110428254A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN109636492B (en) Tax administration method, device, medium and electronic equipment based on block chain system
US10552448B2 (en) Systems and methods for event driven object management and distribution among multiple client applications
US20120130781A1 (en) Cloud service information overlay
US11799954B2 (en) Intelligent, decentralized and autonomous marketplace for distributed computing and storage
US8761727B2 (en) Method and apparatus for pre-caching in a telecommunication system
US20210344484A1 (en) Multicast Encryption Scheme for Data-Ownership Platform
Das et al. A QoS and profit aware cloud confederation model for IaaS service providers
US20170063708A1 (en) Resource exchange service transaction for cloud computing
CN109005208B (en) Method and device for pushing information
Khan et al. Blockchain-enabled real-time SLA monitoring for cloud-hosted services
CN110428254B (en) Decentralized storage downloading method and arbitration method, equipment and storage medium
US10250440B2 (en) Managing a generation and delivery of digital identity documents
CN111563823A (en) Block chain-based network work copyright transaction processing method, device and system
CN109272318B (en) Resource flow transaction method, device, equipment and medium applied to requester client
CN105787791B (en) Service request processing method and device
CN107948337B (en) Electronic file transmission method, device and system and computer readable storage medium
US10922666B1 (en) Resource management for logical and physical availability zones of a provider network
US20080320141A1 (en) Affiliate bandwidth management
CN114827259B (en) Data processing method, computer readable storage medium and device
US20240098036A1 (en) Staggered payload relayer for pipelining digital payloads across network services
WO2024067672A1 (en) Cloud resource charging method, cloud management platform, computing device, and storage medium
US20240106725A1 (en) Managing service level agreements by a distributed ledger network
CN116883170A (en) API service calling evidence-storing and settling method based on blockchain
CN116467749A (en) Method and device for processing transaction data based on blockchain
CN115470289A (en) Risk data processing method, device and system

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