Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology itThe detail of class understands the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specificallyThe present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system and methodDetailed description, in order to avoid unnecessary details interfere description of the invention.
An embodiment of the present invention provides a kind of integrating systems and method based on block chain.
One side according to embodiments of the present invention, an embodiment of the present invention provides a kind of integration systems based on block chainSystem.
Referring to Fig. 1, Fig. 1 is a kind of structural representation of the integrating system based on block chain provided in an embodiment of the present inventionFigure.
As shown in Figure 1, the system includes:Service system and application production support system, wherein,
Service system is used for:It is accumulated according to preset integration verification rule to receive the first of carrying user informationPoint solicited message is verified, and obtains check results, and when check results is when verify successfully, produce support system to application and send outSend first integral solicited message;
It is used for using production support system:Original integration information is changed according to first integral solicited message, and rawInto the first block chain data.
In the present embodiment, first integral solicited message carries user information, and user information can be user's (hand of userMachine) number, the information on services on number, the identity information of user, account (remaining sum, the amount of money the consumed etc.) letter of userBreath.
Only when check results are when verifying successfully, service system just sends the first product to application production support systemPoint solicited message, to ensure the reliability of first integral solicited message and authenticity, so as to fulfill data information reliability andAuthenticity.
Original integration information is changed according to first integral solicited message using production support system.Such as:It is originalOriginal integration according to first integral solicited message, is changed to 650 for 500 by the corresponding integration of integration information, also, generates theOne block chain data.That is, changing integration information each time, block chain data will be generated accordingly.
Due to block chain data can not tamper so that the integration information obtained after change every time is all reliable.AndDue to the retrospective of block chain data so that consumer or businessman can be inquired according to relative recording.
It is understood that when check results is verification failures, then service system is no longer to application production supportSystem send first integral solicited message, but to receive first integral solicited message end feeding back unsuccessful information.
Wherein, service system can be crm system, and crm system is the service system of telecom operators;
Can be BOSS systems, and BOSS systems are the Billing accounting systems of telecom operators using production support system.
It follows that provide through this embodiment:Service system verifies first integral solicited message, andWhen verifying successfully, first integral solicited message is sent to application production support system, using production support system according to firstIntegration request changes original integration information, and generates the technical solution of the first block chain data, on the one hand, avoids existingHave in technology, in order to which data safety establishes a large amount of api interface, cause the technology drawback of waste of resource, and in use,The numerous and diverse technology drawback of process for using, link, method;On the other hand, pass through the technology in terms of addition " block chain " so that dataInformation can not distort, and retrospective technique effect, it is achieved thereby that the appropriate technology for managing and safeguarding to data information is imitatedFruit.
In a kind of technical solution in the cards, which further includes:Electronic channel system, wherein,
Electronic channel system is used for:It tests to the first integral solicited message received, obtains inspection result, and work asInspection result is when examining successfully, first integral solicited message is forwarded to service system.
It is understood that client directly may send first integral solicited message to service system, butCan first integral solicited message be sent to service system by electronic channel system.When client passes through electronic channel systemIt is specific as follows when uniting to service system transmission first integral solicited message:
Client sends first integral solicited message to electronic channel system, and electronic channel system can be to the information of clientIt is verified, only when examining successfully, electronic channel system just can forward first integral solicited message to service system,To avoid being forwarded solicited message of mistake, so as to influence the reliability of data information and accuracy.
It is understood that when examining failure, electronic channel system will not forward first integral to service systemSolicited message, and electronic channel system can be to client feedback failure information.
In a kind of technical solution in the cards, which further includes:Block chain alliance enterprise system, wherein,
Block chain alliance enterprise system is used for:The second integral solicited message for carrying company information is sent to using productionSupport system;
It is used for using production support system:Judge whether that integration corresponding to enterprise carries out according to second integral solicited messageIt supplements with money, when judging result is when being, then exchanges rule integration corresponding to enterprise according to the exchange rate and supplement with money, and according to the second productSolicited message is divided to generate the second block chain data.
Wherein, the information that second integral solicited message supplements integration with money for corporation requests, and the second integral is askedThe company information is carried in information.
In the present embodiment, can not only letter be asked to the first integral that electronic channel system is sent using production support systemBreath is handled, and the second integral solicited message that can also be sent to block chain alliance enterprise system is handled.Specifically:
Company information can be:The id information of enterprise, account (amount of money) information of enterprise etc..
It is understood that contemporaneity, the corresponding exchange rate of different enterprises may be identical, it is also possible to different;It is differentIn period, the corresponding exchange rate of same enterprise may be identical, it is also possible to differ.So when judging result be can be enterprise intoDuring row integration, then rule integration corresponding to enterprise is exchanged according to the exchange rate using production support system and supplemented with money, and generate theTwo block chain data.That is, a second integral solicited message corresponds to a second block chain data, as long as to enterprise pairThe integration answered is supplemented with money, will generate corresponding second block chain data.
When judging result is no, then it corresponding to enterprise will not integrate and supplement with money, and application production support system meetingTo block chain alliance enterprise system feedback failure information.
In a kind of technical solution in the cards, block chain alliance enterprise system is additionally operable to:Company information will be carriedThird integral solicited message is sent to using production support system;
It is used for using production support system:Determine whether that consumption enterprise of enterprise corresponds to according to third integral solicited messageIntegration, when judging result for be when, then according to third integral solicited message generate third block chain data.
Wherein, the information that third integral solicited message consumes integration for corporation requests, and the third integral is askedThe company information is carried in information.
In the present embodiment, can not only relevant treatment be carried out to " integration is supplemented with money " using production support system, it can be withRelevant treatment is carried out to " total mark of consumption ".Specifically:
When application production support system judges that certain enterprise can be with total mark of consumption according to third integral solicited message, then allowThe consumption that the enterprise is integrated, and generate third block chain data.That is, after each total mark of consumption of enterprise, can all give birth toInto corresponding third block chain data, further to realize the appropriate management of data information and to safeguard.
In a kind of technical solution in the cards, it is additionally operable to using production support system:According to preset encryption ruleFirst block chain data are encrypted, obtain cryptographic block chain data, and cryptographic block chain data are sent to block chain connectionAlliance's business system;
Block chain alliance enterprise system is additionally operable to:Cryptographic block chain data are broadcasted.
In the present embodiment, the first block chain data can be encrypted by RSA Algorithm, obtains cryptographic block chain numberAccording to.
In a kind of technical solution in the cards, it is additionally operable to using production support system:Record please according to first integralThe track that information is asked to change original integration information obtains change trace information, and generates corresponding log information.
In the present embodiment, the track of change is recorded, obtains change trace information, and generate corresponding log information, withJust there is evidence that can seek to the process of change or corresponding business processing is carried out according to log information.
Other side according to embodiments of the present invention, an embodiment of the present invention provides with the corresponding one kind of above systemIntegration method based on block chain.
Referring to Fig. 2, the flow that Fig. 2 is a kind of integration method based on block chain provided in an embodiment of the present invention is illustratedFigure.
As shown in Fig. 2, this method includes:
S100:Service system is accumulated according to preset integration verification rule to receive the first of carrying user informationPoint solicited message is verified, and obtains check results, and when check results is when verify successfully, produce support system to application and send outSend first integral solicited message;
S200:Original integration information is changed according to first integral solicited message using production support system, and rawInto the first block chain data.
In the present embodiment, first integral solicited message carries user information, and user information can be user's (hand of userMachine) number, the information on services on number, the identity information of user, account (remaining sum, the amount of money the consumed etc.) letter of userBreath.
Only when check results are when examining successfully, service system just sends the first product to application production support systemPoint solicited message, to ensure the reliability of first integral solicited message and authenticity, so as to fulfill data information reliability andAuthenticity.
Original integration information is changed according to first integral solicited message using production support system.Such as:It is originalOriginal integration according to first integral solicited message, is changed to 650 for 500 by the corresponding integration of integration information, also, generates theOne block chain data.That is, often changing an integration information, block chain data will be generated accordingly.
Due to block chain data can not tamper so that the integration information obtained after change every time is all reliable.AndDue to the retrospective of block chain data so that consumer or businessman can be inquired according to relative recording.
It is understood that when check results is verification failures, then service system is no longer to application production supportSystem send first integral solicited message, but to receive first integral solicited message end feeding back unsuccessful information.
It follows that provide through this embodiment:Service system verifies first integral solicited message, andWhen verifying successfully, first integral solicited message is sent to application production support system, using production support system according to firstIntegration request changes integration information, and generates the technical solution of the first block chain data, on the one hand, avoids existing skillIn art, in order to which data safety establishes a large amount of api interface, the technology drawback of waste of resource is caused, and in use, usedThe numerous and diverse technology drawback of flow, link, method;On the other hand, pass through the technology in terms of addition " block chain " so that data informationIt can not distort, and retrospective technique effect, it is achieved thereby that the appropriate technique effect managed and safeguard to data information.
In a kind of technical solution in the cards, this method further includes:
The first integral solicited message that electronic channel system docking receives is tested, and obtains inspection result, and when inspectionAs a result for when examining successfully, first integral solicited message is forwarded to service system.
It is understood that client directly may send first integral solicited message to service system, butCan first integral solicited message be sent to service system by electronic channel system.When client passes through electronic channel systemIt is specific as follows when uniting to service system transmission first integral solicited message:
Client sends first integral solicited message to electronic channel system, and electronic channel system can be to the information of clientIt is verified, only when examining successfully, electronic channel system just can forward first integral solicited message to service system,To avoid being forwarded solicited message of mistake, so as to influence the reliability of data information and accuracy.
It is understood that when examining failure, electronic channel system will not forward first integral to service systemSolicited message, and electronic channel system can be to client feedback failure information.
In a kind of technical solution in the cards, this method further includes:
The second integral solicited message for carrying company information is sent to using production support by block chain alliance enterprise systemSystem;
Judge whether that integration corresponding to enterprise is supplemented with money according to second integral solicited message using production support system,When judging result is when being, then exchanges rule integration corresponding to enterprise according to the exchange rate and supplement with money, and please according to second integralInformation is asked to generate the second block chain data.
Wherein, the information that second integral solicited message supplements integration with money for corporation requests, and the second integral is askedThe company information is carried in information.
In the present embodiment, can not only letter be asked to the first integral that electronic channel system is sent using production support systemBreath is handled, and the second integral solicited message that can also be sent to block chain alliance enterprise system is handled.Specifically:
Company information can be:The id information of enterprise, account (amount of money) information of enterprise etc..
It is understood that contemporaneity, the corresponding exchange rate of different enterprises may be identical, it is also possible to different;It is differentIn period, the corresponding exchange rate of same enterprise may be identical, it is also possible to differ.So when judging result be can be enterprise intoDuring row integration, then rule integration corresponding to enterprise is exchanged according to the exchange rate using production support system and supplemented with money, and generate theTwo block chain data.That is, a second integral solicited message corresponds to a second block chain data, as long as to enterprise pairThe integration answered is supplemented with money, will generate corresponding second block chain data.
When judging result is no, then it corresponding to enterprise will not integrate and supplement with money, and application production support system meetingTo block chain alliance enterprise system feedback failure information.
In a kind of technical solution in the cards, this method further includes:
The third integral solicited message for carrying company information is sent to using production support by block chain alliance enterprise systemSystem;
The corresponding product of consumption enterprise of enterprise is determined whether according to third integral solicited message using production support systemPoint, when judging result is when being, then generates third block chain data according to third integral solicited message.
Wherein, the information that third integral solicited message consumes integration for corporation requests, and the third integral is askedThe company information is carried in information.
In the present embodiment, can not only relevant treatment be carried out to " integration is supplemented with money " using production support system, it can be withRelevant treatment is carried out to " total mark of consumption ".Specifically:
When application production support system judges that certain enterprise can be with total mark of consumption according to third integral solicited message, then allowThe consumption that the enterprise is integrated, and generate third block chain data.That is, after each total mark of consumption of enterprise, can all give birth toInto corresponding third block chain data, further to realize the appropriate management of data information and to safeguard.
In a kind of technical solution in the cards, this method further includes:
The first block chain data are encrypted according to preset encryption rule using production support system, obtain encrypted areaBlock chain data, and cryptographic block chain data are sent to block chain alliance enterprise system;
Block chain alliance enterprise system broadcasts cryptographic block chain data.
It provides through this embodiment:The first block chain data are encrypted using production support system, are encryptedBlock chain data, and the cryptographic block chain data are sent to block chain alliance enterprise system, so as to block chain alliance enterprise systemThe technical solution that system broadcasts cryptographic block chain data, realizes the enterprise in block chain alliance enterprise system to the encryptionBlock chain data carry out shared technique effect.
In a kind of technical solution in the cards, this method further includes:
Using the track that production support system record changes integration information according to first integral solicited message, obtainTrace information is changed, and generates corresponding log information.
It provides through this embodiment:Using production support system recording-related information, and generate the technology of log informationScheme realizes the technique effect that modification information is inquired or checked in time, so as to be furthermore achieved to data informationAppropriate management and safeguard.
To understand the more thorough technical solution to the application, in conjunction with the prior art to the technical side of the applicationCase is illustratively illustrated.
In the prior art, it is difficult to integrate across enterprise circulation, can not realize the market circulation of integration.Operator is for dataIt arranges, establishes a large amount of api interface, thereby resulted in the technology drawback of waste of resource.And api interface is being used to realize integrationWhile so that flow, the method for operation are extremely complex, cause and waste time, and reduce the technology drawback of efficiency.And due to netThe continuous development of network technology, carrying out " black operation " to data information becomes easy, so, also there are data in the prior artThe technology drawback that information may be tampered.
In this application, above-mentioned technical problem is overcome one by one.Specifically:
Client sends first integral solicited message to electronic channel system, and electronic channel system can ask first integralInformation is tested, if examining failure, on the one hand, electronic channel system no longer sends first integral to service system pleaseSeek information;On the other hand, electrical canalization examines the information of failure to client feedback, and client is prompted to examine failureReason.
When examining successfully, electronic channel system sends first integral solicited message, service handling to service systemSystem can again verify first integral solicited message, it is to be understood that this time checking procedure and previous electronic channelThe checkout procedure of system is not fully identical (can be entirely different, can also be partly different).If verification failure, on the one hand,Service system no longer sends first integral solicited message to application production support system;On the other hand, service systemTo the information of electronic channel system feedback verification failure, and the reason of verification failure, can be sent together, it is to be understood thatElectronic channel system will be sent to client according to service system feedack.
When verifying successfully, service system sends first integral solicited message, application to application production support systemProduction support system changes original integration information according to first integral solicited message, and generate block chain data." blockChain data " are so that data can not distort, and retrospective technique effect, it is achieved thereby that the appropriate management of data information and dimensionThe technique effect of shield.
And using production support system according to recording-related information (the change track of integration information), and generate daily record letterBreath, will pass through the associated dynamic for checking that log information obtains integration information change.
The first block chain data of generation are encrypted using production support system, obtain cryptographic block chain data, andThe cryptographic block chain data are sent to block chain alliance enterprise system, so that block chain alliance system is to the cryptographic block chain numberAccording to being broadcasted, so as to avoid across enterprise circulation difficulty is integrated, the technology drawback of the market circulation of integration can not be realized, and realXian Liao enterprises are to the shared technique effect of cryptographic block chain data.
In order to further realize across the enterprise circulation of integration, using production support system to receiving block chain alliance enterpriseThe second integral solicited message that system is sent carries out judging whether that can carry out integration supplements with money, alternatively, to receiving block chain connectionThe third integral solicited message that alliance's business system is sent carries out judging whether that integration consumption can be carried out, and supplement with money to integrationAfterwards, the second block chain data are generated, after being consumed to integration, generate third block chain data.It certainly, can be respectively to secondBlock chain data and third block chain data are broadcasted in block chain alliance enterprise system, further to realize enterprise to blockChain data are shared.
Block chain is substantially the huge account book database of a decentralization, as the bottom applied originating from bit coinTechnology, block chain data be by a string using cryptography be associated caused by data chunk into being included in each data blockMultiple network effectively confirms the information of (primary effectively transaction, which is examined, to be referred to as once confirming).As transaction constantly generates, oftenThe node of a integration allied member constantly verifies that transaction creates new block to record newest transaction, this account book can increase alwaysIt is long to extend.These blocks are linearly added to sequentially in time on original block chain.Each node (telecom operators orElectric business) there is a completely existing block chain duplicated record, and these are all the nets by carrying out Data Authentication Algorithm decryptionNetwork is automatically performed.The integration information in all about each allied member is remained on block chain, these information are also recorded inOn complete block chain.
The block of block chain data is made of the transaction List Table that block head and the block are included.The size of block head is103 bytes, by the version number of 4 bytes, the hashed value of a upper block for 32 bytes, 32 bytes Merkle Root Hash,The time of 15 bytes sews the random number composition of (current time), the current difficulty value of 4 bytes, 15 bytes.The transaction that block includesList is then attached to behind block head.
The structure of block is as shown in the table:
In the construction process of block, the transaction List Table to be included the block is needed, is generated by HASH algorithmsMerkle Root Hash, and be stored in block head in this, as the abstract of transaction List Table.Block head can embody block and be includedAll Activity (integration is supplemented with money and consumer record).
The term of validity of block chain data must be judged, more than threshold values (threshold values data can configure as parameter), the areaBlock chain data are then cancelled.The integration that the control of block chain data validity interval is primarily due to many businessmans has the term of validity,Integration more than the term of validity will be cancelled, and can be happened by term of validity control to avoid such.
When integrating federation node generation new block chain data, it is desirable that at the same the random number of generation one 15, the random numberIf can be set as the time consistency generated with most original block, which is identified as formal block blockChain, which can the whole network broadcast distribution.
Difficulty value (difficulty) in block chain data was miners in the operation of bit coin originally when digging ore depositThe important references index of time, it determines that miner takes around could generate a legal block by how many times Hash operationChain data.In the application system of block chain integration, the generations of block chain data could be provided as timing (time interval according toTrading volume is adjusted), but the block chain federation node for participating in calculating can constantly change, the starting stage may compareIt is less, and can constantly fluctuate within a certain period of time, so the variation that difficulty value must calculate power according to the whole network is adjusted.
The adjustment of difficulty is independent in each complete node to be occurred automatically.Every 1000 (tentative) a block, Suo YoujiePoint all can be by unified method adjust automatically difficulty, this method can be the cost duration by newest 1000 blocks with it is expectedWhat duration relatively obtained, according to practical duration and the ratio for it is expected duration, adjust accordingly (or become difficult or become different).Such as:
The original issuing time of block chain data:20161009180817, totally 14, if the generation of new block chain data surpassesSpend 1 minute, can only compare top ten, if the time of generation again without lowering, can only relatively before 8.
The workload of bit coin determines it is to use sha algorithms, needs to expend a large amount of host computing capacity, to block chain allianceIt is less applicable in, formal block chain data can be determined within the shortest time with the method for random number, it in this way can be with to alliance enterpriseVacate the construction that more resources carry out integration platform.
Reader should be understood that in the description of this specification reference term " one embodiment ", " is shown " some embodiments "The description of example ", " specific example " or " some examples " etc. means to combine the specific features, structure of the embodiment or example descriptionOr feature is contained at least one embodiment of the present invention or example.In the present specification, to the schematic of above-mentioned termStatement need not be directed to identical embodiment or example.Moreover, specific features, structure or the feature of description can be anyIt is combined in an appropriate manner in a or multiple embodiments or example.In addition, without conflicting with each other, the technology of this fieldDifferent embodiments or examples described in this specification and the feature of different embodiments or examples can be combined by personnelAnd combination.
It should also be understood that in various embodiments of the present invention, the size of the serial number of above-mentioned each process is not meant to perform sequencePriority, each process execution sequence should be determined with its function and internal logic, without cope with the embodiment of the present invention implementationJourney forms any restriction.
More than, only specific embodiment of the invention, but protection scope of the present invention is not limited thereto is any to be familiar withThose skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions,These modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be wanted with rightSubject to the protection domain asked.