Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kindState system, method and the server of a kind of Internet application based on block chain of problem.
According to the present invention in a first aspect, providing a kind of system of Internet application based on block chain, the systemInclude:
Distributed system is returned for obtaining each service request for being directed to Internet application according to each service requestCorresponding business datum, and generate the corresponding business diary of each service request, and by the corresponding business day of each service requestWill is transferred to alliance's chain server;
Alliance's chain server, for receiving the corresponding business diary of each service request, and each service request is correspondingBusiness diary cochain to alliance's chain on;According to the corresponding business diary of each service request, in each preset time periodThe data concentrated of business diary handled, obtain the corresponding data processed result of each business diary collection, and by each industryThe corresponding data processed result of business log collection is sent to the public chain server;
Public chain server, for receiving the corresponding data processed result of each business diary collection, and by each business diaryCollect on corresponding data processed result cochain to publicly-owned chain.
Optionally, the distributed system is used to the corresponding business diary of each service request being transferred to alliance's chain serviceDevice specifically includes:
The distributed system, for according to the timestamp in the corresponding business diary of each service request, to every settingAll business diaries got in fixed cycle are packaged, and are obtained multiple business diary packets and are sent it to alliance's chain serviceDevice.
Optionally, alliance's chain server is used to receive the corresponding business diary of each service request, specifically includes:
Alliance's chain server is for receiving the multiple business diary packet.
Optionally, alliance's chain server is used for the corresponding business diary cochain of each service request to alliance's chainOn, it specifically includes:
If alliance's chain server corresponds to multiple alliance sides, alliance's chain server is for obtaining each alliance side pairThe multiple signature service log packets answered, and the corresponding multiple signature service logs in each alliance side are wrapped into chain to alliance's chainOn, the corresponding multiple signature service log packets in each alliance side are the alliance side signed to the multiple business diary packet andIt obtains.
Optionally, alliance's chain server is used to be obtained according to the corresponding business diary of each service request defaultAll business diaries in period, and the data in all business diaries are handled, data processed result is obtained,It specifically includes:
Alliance's chain server, for obtaining in each preset time period according to the timestamp in each business diaryInterior business diary collection, the data concentrated to each business diary are handled, and obtain the corresponding data of each business diary collectionProcessing result, and the corresponding data processed result of each business diary collection is sent to the public chain server.
Optionally, the public chain server is also used to user account information and subscriber identity information cochain to described publicly-ownedOn chain.
Optionally, the publicly-owned chain is the block chain of POW.
Second aspect according to the present invention provides a kind of method of Internet application based on block chain, is applied to connectionIn alliance's chain server, which comprises
Receive the corresponding business diary of each service request, and by the corresponding business diary cochain of each service request to connectionOn alliance's chain;
According to the corresponding business diary of each service request, the number that the business diary in each preset time period is concentratedAccording to being handled, the corresponding data processed result of each business diary collection is obtained, and by the corresponding data of each business diary collectionProcessing result is sent to the public chain server.
Optionally, described to receive the corresponding business diary of each service request, it specifically includes:
Multiple business diary packets are received, the multiple business diary packet is that distributed system is obtained to every in the setting periodObtained from all business diaries arrived are packaged;
Optionally, described by the corresponding business diary cochain to alliance's chain of each service request, it specifically includes:
If alliance's chain server corresponds to multiple alliance sides, the corresponding multiple signature service logs in each alliance side are obtainedPacket, and the corresponding multiple signature service logs in each alliance side are wrapped on chain to alliance's chain, each alliance side is correspondingMultiple signature service log packets are obtained from the alliance side signs to the multiple business diary packet.
The third aspect according to the present invention provides a kind of alliance's chain server, comprising:
Business diary reception and transmission unit, for receiving the corresponding business diary of each service request, and by each industryBusiness is requested on corresponding business diary cochain to alliance's chain;
Data processing unit is used for according to the corresponding business diary of each service request, in each preset time periodBusiness diary concentrate data handled, obtain the corresponding data processed result of each business diary collection;
Data transmission unit, for the corresponding data processed result of each business diary collection to be sent to the public chain serviceDevice.
Optionally, the business diary reception and transmission unit are specifically used for receiving multiple business diary packets, the multipleBusiness diary packet is distributed system to obtained from all business diaries got in the setting period are packaged;
Optionally, the business diary reception and transmission unit are also used to correspond in alliance's chain server multipleWhen alliance side, the corresponding multiple signature service log packets in each alliance side are obtained, and by the corresponding multiple signature industry in each alliance sideBusiness log is wrapped on chain to alliance's chain, and the corresponding multiple signature service log packets in each alliance side are the alliance side to describedObtained from multiple business diary packets are signed.
Fourth aspect provides a kind of alliance's chain server according to the present invention, including memory, processor and is stored inOn reservoir and the computer program that can run on a processor, the processor are realized above-mentioned based on block when executing described programThe step of method of the Internet application of chain.
5th aspect according to the present invention, provides a kind of computer readable storage medium, is stored thereon with computer program,The program realizes the step of method of the above-mentioned Internet application based on block chain when being executed by processor.
It include according to embodiments of the present invention distributed system, alliance's chain server and public chain service by three layers of system layerDevice handles the service request of the high concurrent of Internet application by distributed system in first layer, and generates each business and askAsk corresponding business diary;In the second layer, the business diary in each preset time period is concentrated by alliance's chain serverData handled, the corresponding data processed result of each business diary collection is obtained, at this point, data processing frequency significantly dropsIt is low, so that alliance's chain server can satisfy above-mentioned data processing frequency;In third layer, public chain server is used for each businessIn the corresponding data processed result storage to publicly-owned chain of log collection, data can be effectively prevent to be tampered;In this way, by by systemIt is divided into three layers, so that the service request of the high concurrent in Internet application is handled by distributed system, and in alliance's chain serverIt is middle by data processing frequency reduce make its alliance's chain server can satisfy to each business diary concentrate data handleFrequency and the calling frequency of the corresponding data processed result of each business diary collection can further decrease so that calling frequencyRate and the processing frequency of public chain server match, and so, it is possible by Internet application in conjunction with block chain technology, so that dataWith can not tamper.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage canIt is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawingExemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth hereIt is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosureIt is fully disclosed to those skilled in the art.
Referring to Fig. 1, the system for having supplied a kind of Internet application based on block chain according to a first aspect of the present invention, the systemSystem includes:
Distributed system 100 is returned for obtaining each service request for being directed to Internet application according to each service requestCorresponding business datum is returned, and generates the corresponding business diary of each service request, and by the corresponding business of each service requestLog transmission is to alliance's chain server 200;
Alliance's chain server 200, for receiving the corresponding business diary of each service request, and by each service request pairOn the business diary cochain to alliance's chain answered;According to the corresponding business diary of each service request, in each preset time periodThe data that interior business diary is concentrated are handled, and obtain the corresponding data processed result of each business diary collection, and will be eachThe corresponding data processed result of business diary collection is sent to public chain server 300;
Public chain server 300, for receiving the corresponding data processed result of each business diary collection, and by each business dayOn the corresponding data processed result cochain to publicly-owned chain of will collection.
In this specification embodiment, distributed system 100 includes multiple servers, and distributed system 100 has high concurrentAbility can respond hundreds of thousands of or more service request per second, thus can be to described by distributed system 100The service request of Internet application carries out real-time response;Further, the multiple quantity refers to 2 or 2 or more wholeNumber.
Specifically, distributed system 100 can store when returning to corresponding business datum according to each service requestBusiness datum corresponding with each service request is found in the service database in distributed system 100, is then returned everyThe corresponding business datum of a service request.
Specifically, when searching business datum corresponding with each service request from the service database, Ke YifenThe content for analysing each service request obtains the corresponding service label of each service request, then looks into from the service databaseBusiness datum corresponding with each service label is found to be returned according to the corresponding relationship of service label, service request and business datumReturn the corresponding business datum of each service request.Wherein, the business datum and service label pair stored in the service databaseIt answers.For example, a service request is request advertisement A, then the label that the corresponding service label of the service request is advertisement A is obtained,Then according to the label lookup of advertisement A to advertisement A from service database, advertisement A is then returned.
In this specification embodiment, the Internet application can be ad system application, searching class application etc..
For example, distributed system 100 is got for the per second of ad system application so that ad system is applied as an exampleThen 400000 service requests respond each service request, from the service database that distributed system 100 storesBusiness datum corresponding with each service request is obtained, business datum corresponding with each service request is then returned;For everyA service request carries out the process that response obtains corresponding business datum, a business diary can be generated, in this way, distributed system100 can generate the corresponding business diary of each service request, and the corresponding business diary of each service request is then transferred to connectionAlliance's chain server 200.
In the specific implementation process, since the processing effect of distributed system 100 is not achieved in the treatment effeciency of alliance's chainRate, in this way, in order to enable alliance's chain matches with distributed system 100, distributed system 100 is by each service request pairIt, can be according to the time in the corresponding business diary of each service request when the business diary answered is transferred to alliance's chain serverStamp is packaged to every all business diaries got in the setting period, obtains multiple business diary packets and send it to connectionAlliance's chain server 200.
In this specification embodiment, the setting period can be set by distributed system 100, can also manually be set,It can also determine that the setting period is, for example, 1 second, 2 seconds, 10 seconds etc., this theory according to the data processing speed of alliance's chainBright book embodiment is not specifically limited.
For example, distributed system 100 gets business diary Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9 and Y10, whereinThe timestamp of Y1, Y2, Y3, Y4, Y5 and Y6 are followed successively by 11:10:15:12 milliseconds of (ms), 11:10:15:25ms, 11:10:15:The timestamp of 60ms, 11:10:15:80ms, 11:10:15:160ms and 11:10:15:350ms, Y7, Y8, Y9 and Y10 are followed successively by11:10:16:35ms, 11:10:16:120ms, 11:10:16:230ms and 11:10:15:360ms, if it is described set the period as1s, then all business diaries in 11:10:15s are Y1, Y2, Y3, Y4, Y5 and Y6, and all in 11:10:16sBusiness diary be Y7, Y8, Y9 and Y10, then by Y1, Y2, Y3, Y4, Y5 and Y6 be packaged, obtain the first business diary packet Y1,Y2, Y3, Y4, Y5, Y };And be packaged Y7, Y8, Y9 and Y10, the second business diary packet { Y7, Y8, Y9, Y10 } is obtained, it is describedMultiple business diary packets include the first business diary packet and the second business diary packet, and are obtained for operation system 100It gets other business diaries and executes last time operation, obtain the multiple business diary packet, and the business diary packet is sent toAlliance's chain server 200.
In this way, alliance's chain server 200 is made to receive the multiple business diary packet, and each business diary packet beAll business diaries packing got in the setting period obtains, so that alliance's chain server is a setting weekA business diary packet can be only handled in phase, and distributed system 100 needs to handle this within a setting period and setsAll service requests in fixed cycle, if described set the period as 1s, distributed system 100 may need to handle in 1s tens of thousands ofSecondary or more service request, and it includes tens of thousands of times with above that alliance's chain server 200 may only handle one in 1sThe corresponding business diary packet of service request, processing frequency are greatly lowered, and make the sheet of processing frequency Yu alliance's chain server 200It is in reason speeds match.
In this specification embodiment, alliance's chain server 200 would generally correspond to multiple alliance sides, by the multiple alliance sideAlliance's chain is safeguarded jointly, and the data being stored on alliance's chain is enabled to prevent from being tampered.For example, being answered with internetFor for ad system, the multiple alliance side includes advertiser side, advertising platform side and media side, wherein advertiser sideFor sending the advertisements to the advertising platform side, so that the media resource that the advertising platform side is provided in the media sideUpper popularization advertisement.
Specifically, alliance's chain server is after receiving the corresponding business diary of each service request, and incites somebody to actionOn each business diary cochain to alliance's chain;At this point, if the corresponding multiple alliance sides of alliance's chain server 200, eachAfter alliance side signs to each business diary on cochain to alliance's chain, in this way, making
In this specification embodiment, if the multiple business diary packet is sent to alliance's chain service by distributed system 100Device 200 then makes alliance's chain server 200 for receiving the multiple business diary packet, it is corresponding then to obtain each alliance sideMultiple signature service log packets, the corresponding multiple signature service logs in each alliance side are then wrapped into chain to alliance's chainOn, wherein the corresponding multiple signature service log packets in each alliance side are that the alliance side carries out the multiple business diary packetObtained from signature.
It specifically, can be by each alliance side in the corresponding multiple signature service log packets in each alliance side of acquisitionIt signs to each business diary packet in the multiple business diary packet, obtains the corresponding multiple business days in each alliance sideWill packet.
In this specification embodiment, each alliance side can be used each when signing to each business diary packetThe private key of alliance side is signed.
For example, if the multiple business diary packet that distributed system 100 is got includes business diary packet B1, B2, B3And B1, B2, B3 and B4 are sent to alliance's chain server 200 by B4, distributed system 100, if the multiple alliance side includes connectionAlliance side F1 and F2 are then obtained and respectively are signed to obtain to B1, B2, B3 and B4 using the private key of F1, the corresponding multiple signatures of F1Business diary packet is B11, B21, B31 and B41;And it obtains and respectively B1, B2, B3 and B4 sign using the private key of F2Arrive, the corresponding multiple signature service log packets of F2 be B12, B22, B32 and B42, then by B11, B21, B31, B41, B12,On B22, B32 and B42 cochain to alliance's chain.
In this specification embodiment, alliance's chain server 200 is handled to the data in all business diariesWhen, the business diary collection in each preset time period can be obtained, to each industry according to the timestamp in each business diaryThe data that business log is concentrated are handled, and the corresponding data processed result of each business diary collection, and each business diary are obtainedCollect corresponding data processed result and is sent to public chain server 300.
Since the data processing speed of the publicly-owned chain is much smaller than the data processing speed of alliance's chain, and at this point, beingData processing speed in the publicly-owned chain matches with real data, and the data that store in the publicly-owned chain are usually to callThe smaller data of frequency, therefore, it such as can be 1 week, 1 month, 3 that the value of the preset time period, which would generally be arranged larger,A month etc..
In this specification embodiment, if alliance's chain server 200 receives the multiple business diary packet, according to eachThe timestamp of each business diary in business diary packet obtains the business diary collection in each preset time period, to each industryThe data that business log is concentrated are handled, and the corresponding data processed result of each business diary collection, and each business diary are obtainedCollect corresponding data processed result and is sent to public chain server 300.
For example, if the multiple business diary packet that system 100 is got include business diary packet B1, B2, B3, B4, C1,C2, C3, C4, D1, D2, D3 and D4, B1, B2, B3 and B4 are sent to alliance's chain server 200 by distributed system 100, if describedPreset time period be 1 month and determine the timestamp of B1, B2, B3 and B4 in July, 2017, C1, C2, C3 and C4 whenBetween stab in August, 2017, therefore the timestamp of D1, D2, D3 and D4, obtain the first business diary in September, 2017Collecting E1 is { B1, B2, B3, B4 }, and the second business diary collection E2 is { C1, C2, C3, C4 } and third business diary collection E3 is{ D1, D2, D3, D4 } then handles the data in business diary each in E1, obtains the first data processed result F1;Data in business diary each in E2 are handled, the second data processed result F2 is obtained;To business diary each in E3In data handled, obtain third data processed result F3, F1, F2 and F3 be then sent to public chain server 300.
In this specification embodiment, alliance's chain can be the block chain of DPOS, in the block chain of DPOS
The processing speed of the block chain of DPOS is higher, can satisfy the business diary that processing distributed system 100 is sentEfficiency.
In this specification embodiment, the publicly-owned chain is the block chain of POW, and public chain server 300 is used for will be receivedOn the corresponding data processed result cochain to the publicly-owned chain of each business diary collection.
In this specification embodiment, by taking ad system is applied as an example, alliance's chain server 200 concentrates each business diaryData relevant to bill carry out settlement process, the corresponding settlement data of each diary service collection is obtained, then by each dayThe corresponding settlement data of will services sets is sent to public chain server 300;At this point, due to being stored with each alliance on alliance's chainThe corresponding multiple signature service log packets in side, in this way, can be corresponding more by each alliance side stored on alliance's chainA signature service log packet carries out data verification, carrys out the corresponding multiple signature service log packets in each alliance side of authentication with thisIn data whether distort.
And after public chain server 300 receives the corresponding settlement data of each diary service collection, by each log industryBusiness collects on corresponding settlement data cochain to the publicly-owned chain, at this point, each diary service collection stored on the i.e. described publicly-owned chainCorresponding settlement data is distributed account book, and since block chain technology usually has the characteristics that following 4, and one is goneThe heart;Secondly, be a distributed network architecture due to block chain, none central node can be hit or be attackedIt hits, so having stronger stability, reliability and duration in terms of whole technical arrangement;Thirdly, strong safety, common recognition machineSystem does not need third-party intervention;Four, transaction it is open and clear and can not tamper;In this way, to deposit on the public key chainThe distributed account book of storage have can not tamper, facilitate user to pass through distributed account book and carry out account veritification.
In another embodiment of this specification, public chain server 300 is also used to user account information and subscriber identity informationOn cochain to the publicly-owned chain, at this point, public chain server 300 is also used on user's private information cochain to the publicly-owned chain,So that the user's private information stored on the publicly-owned chain have can not tamper.
It include distributed system, alliance's chain server and public chain by three layers of the system layer in this specification embodimentServer handles the service request of the high concurrent of Internet application by distributed system in first layer, and generates each industryCorresponding business diary is requested in business;In the second layer, by alliance's chain server to the business diary in each preset time periodThe data of concentration are handled, and the corresponding data processed result of each business diary collection are obtained, at this point, data processing frequency is substantiallyDegree reduces, so that alliance's chain server can satisfy above-mentioned data processing frequency;In third layer, public chain server is used for will be eachIn the corresponding data processed result storage to publicly-owned chain of business diary collection, data can be effectively prevent to be tampered;In this way, pass through bySystem is divided into three layers, so that the service request of the high concurrent in Internet application is handled by distributed system, and takes in alliance's chainReducing data processing frequency in business device makes its alliance's chain server can satisfy the data progress concentrated to each business diaryThe calling frequency of the frequency of processing and the corresponding data processed result of each business diary collection can further decrease, so that adjustingMatched with frequency and the processing frequency of public chain server, be so, it is possible by Internet application in conjunction with block chain technology, so thatData have can not tamper.
Based on technical concept identical with above system, second aspect of the present invention provides a kind of interconnection based on block chainThe method of net application, is applied in alliance's chain server, as shown in Figure 2, which comprises
S201, the corresponding business diary of each service request is received, and will be in the corresponding business diary of each service requestOn chain to alliance's chain;
S202, according to the corresponding business diary of each service request, to the business diary collection in each preset time periodIn data handled, obtain the corresponding data processed result of each business diary collection, and each business diary collection is correspondingData processed result be sent to the public chain server.
It is described to receive the corresponding business diary of each service request, tool in a kind of optional way of this specification embodimentBody includes:
Multiple business diary packets are received, the multiple business diary packet is that distributed system is obtained to every in the setting periodObtained from all business diaries arrived are packaged;
It is described to arrive the corresponding business diary cochain of each service request in a kind of optional way of this specification embodimentOn alliance's chain, specifically include:
If alliance's chain server corresponds to multiple alliance sides, the corresponding multiple signature service logs in each alliance side are obtainedPacket, and the corresponding multiple signature service logs in each alliance side are wrapped on chain to alliance's chain, each alliance side is correspondingMultiple signature service log packets are obtained from the alliance side signs to the multiple business diary packet.
Based on technical concept same as mentioned above, third aspect present invention provides a kind of alliance's chain server, such asShown in Fig. 3, comprising:
Business diary reception and transmission unit 301, for receiving the corresponding business diary of each service request, and will be eachOn the corresponding business diary cochain to alliance's chain of service request;
Data processing unit 302 is used for according to the corresponding business diary of each service request, in each preset time periodThe data that interior business diary is concentrated are handled, and the corresponding data processed result of each business diary collection is obtained;
Data transmission unit 303, for the corresponding data processed result of each business diary collection to be sent to the public chainServer.
In a kind of optional way of this specification embodiment, business diary reception and transmission unit 301 are specifically used for receivingMultiple business diary packets, the multiple business diary packet are distributed systems to every all business got in the setting periodObtained from log is packaged;
In a kind of optional way of this specification embodiment, business diary reception and transmission unit 301 are also used to describedWhen alliance's chain server corresponds to multiple alliance sides, the corresponding multiple signature service log packets in each alliance side are obtained, and will be eachThe corresponding multiple signature service logs in alliance side are wrapped on chain to alliance's chain, the corresponding multiple signature services in each alliance sideLog packet is obtained from the alliance side signs to the multiple business diary packet.
Fourth aspect according to the present invention provides a kind of alliance's chain server, as shown in figure 4, including memory 404, placeIt manages device 402 and is stored in the computer program that can be run on memory 404 and on the processor 402, the processor 402 executesThe step of either the method that identification suspicious object object described previously is realized when described program method.
Wherein, in Fig. 4, bus architecture (is represented) with bus 400, and bus 400 may include any number of interconnectionBus and bridge, bus 400 will include the one or more processors represented by processor 402 and what memory 404 represented depositsThe various circuits of reservoir link together.Bus 400 can also will peripheral equipment, voltage-stablizer and management circuit etc. itVarious other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it hereinDescription.Bus interface 405 provides interface between bus 400 and receiver 401 and transmitter 403.Receiver 401 and transmitter403 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.PlaceIt manages device 402 and is responsible for management bus 400 and common processing, and memory 404 can be used for storage processor 402 and execute behaviourUsed data when making.
5th aspect according to the present invention, provides a kind of computer readable storage medium, is stored thereon with computer program,The step of either the program realizes identification suspicious object object described previously method when being executed by processor method.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of systemStructure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use variousProgramming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hairBright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the inventionExample can be practiced without these specific details.In some instances, well known method, structure is not been shown in detailAnd technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimesIn example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protectShield the present invention claims features more more than feature expressly recited in each claim.More precisely, as followingClaims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itselfAll as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodimentChange and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodimentMember or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement orSub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use anyCombination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosedAll process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint powerBenefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purposeIt replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodimentsIn included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the inventionWithin the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointedMeaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processorsSoftware module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practiceIn the method and apparatus of microprocessor or digital signal processor (DSP) to realize process cleaning according to an embodiment of the present inventionSome or all components some or all functions.The present invention is also implemented as executing side as described hereinSome or all device or device programs (for example, computer program and computer program product) of method.It is suchIt realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signalFormula.Such signal can be downloaded from Internet platform and be obtained, and be perhaps provided on the carrier signal or with any other shapeFormula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and abilityField technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,Any reference symbol between parentheses should not be configured to limitations on claims.Word " comprising " does not exclude the presence of notElement or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple suchElement.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer realIt is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branchTo embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fameClaim.
The present invention discloses A1, a kind of system of the Internet application based on block chain, which is characterized in that the system packetIt includes:
Distributed system is returned for obtaining each service request for being directed to Internet application according to each service requestCorresponding business datum, and generate the corresponding business diary of each service request, and by the corresponding business day of each service requestWill is transferred to alliance's chain server;
Alliance's chain server, for receiving the corresponding business diary of each service request, and by each service requestOn corresponding business diary cochain to alliance's chain;According to the corresponding business diary of each service request, in each preset timeThe data that business diary in section is concentrated are handled, and obtain the corresponding data processed result of each business diary collection, and will be everyThe corresponding data processed result of a business diary collection is sent to public chain server;
The public affairs chain server, for receiving the corresponding data processed result of each business diary collection, and by each businessOn the corresponding data processed result cochain to publicly-owned chain of log collection.
A2, the system as described in claim A1, which is characterized in that the distributed system is used for each service requestCorresponding business diary is transferred to alliance's chain server, specifically includes:
The distributed system, for according to the timestamp in the corresponding business diary of each service request, to every settingAll business diaries got in fixed cycle are packaged, and are obtained multiple business diary packets and are sent it to alliance's chain serviceDevice.
A3, the system as described in claim A2, which is characterized in that alliance's chain server is for receiving each businessCorresponding business diary is requested, is specifically included:
Alliance's chain server is for receiving the multiple business diary packet.
A4, the system as described in right wants A3, which is characterized in that alliance's chain server is used for each service requestOn corresponding business diary cochain to alliance's chain, specifically include:
If alliance's chain server corresponds to multiple alliance sides, alliance's chain server is for obtaining each alliance side pairThe multiple signature service log packets answered, and the corresponding multiple signature service logs in each alliance side are wrapped into chain to alliance's chainOn, the corresponding multiple signature service log packets in each alliance side are the alliance side signed to the multiple business diary packet andIt obtains.
A5, the system as described in claim A1, which is characterized in that alliance's chain server is used for according to each businessCorresponding business diary is requested, obtains all business diaries within a preset period of time, and in all business diariesData are handled, and data processed result is obtained, and are specifically included:
Alliance's chain server, for obtaining in each preset time period according to the timestamp in each business diaryInterior business diary collection, the data concentrated to each business diary are handled, and obtain the corresponding data of each business diary collectionProcessing result, and the corresponding data processed result of each business diary collection is sent to the public chain server.
A6, the system as described in claim A1, which is characterized in that the public affairs chain server is also used to believe user accountOn breath and subscriber identity information cochain to the publicly-owned chain.
The described in any item systems of A7, such as claim A1-A6, which is characterized in that the publicly-owned chain is the block of POWChain.
B1, a kind of method of the Internet application based on block chain are applied in alliance's chain server, which is characterized in thatThe described method includes:
Receive the corresponding business diary of each service request, and by the corresponding business diary cochain of each service request to connectionOn alliance's chain;
According to the corresponding business diary of each service request, the number that the business diary in each preset time period is concentratedAccording to being handled, the corresponding data processed result of each business diary collection is obtained, and by the corresponding data of each business diary collectionProcessing result is sent to public chain server.
B2, the method as described in right wants B1, which is characterized in that described to receive the corresponding business day of each service requestWill specifically includes:
Multiple business diary packets are received, the multiple business diary packet is that distributed system is obtained to every in the setting periodObtained from all business diaries arrived are packaged;
B3, the system as described in right wants B2, which is characterized in that it is described will be in the corresponding business diary of each service requestOn chain to alliance's chain, specifically include:
If alliance's chain server corresponds to multiple alliance sides, the corresponding multiple signature service logs in each alliance side are obtainedPacket, and the corresponding multiple signature service logs in each alliance side are wrapped on chain to alliance's chain, each alliance side is correspondingMultiple signature service log packets are obtained from the alliance side signs to the multiple business diary packet.
C1, a kind of alliance's chain server characterized by comprising
Business diary reception and transmission unit, for receiving the corresponding business diary of each service request, and by each industryBusiness is requested on corresponding business diary cochain to alliance's chain;
Data processing unit is used for according to the corresponding business diary of each service request, in each preset time periodBusiness diary concentrate data handled, obtain the corresponding data processed result of each business diary collection;
Data transmission unit, for the corresponding data processed result of each business diary collection to be sent to public chain server.
C2, the server as described in right wants C1, which is characterized in that the business diary reception and transmission unit, specificallyFor receiving multiple business diary packets, the multiple business diary packet is that distributed system is got to every in the setting periodObtained from all business diaries are packaged;
C3, the server as described in right wants C2, which is characterized in that the business diary reception and transmission unit are also usedIn when alliance's chain server corresponds to multiple alliance sides, obtaining the corresponding multiple signature service log packets in each alliance side,And wrap the corresponding multiple signature service logs in each alliance side on chain to alliance's chain, each alliance side is corresponding multipleSignature service log packet is obtained from the alliance side signs to the multiple business diary packet.
D1, a kind of alliance's chain server, including memory, processor and storage can transport on a memory and on a processorThe step of capable computer program, the processor realizes any one of claim B1-B3 the method when executing described program.
E1, a kind of computer readable storage medium, are stored thereon with computer program, real when which is executed by processorThe step of any one of existing claim B1-B3 the method.