Information processing method, apparatus and system, storage medium, electronic equipment
Technical field
This disclosure relates to finance data processing technology field, in particular to a kind of information processing method, information processing
Device, information processing system, computer readable storage medium and electronic equipment.
Background technique
Universal with mobile payment and online payment, the financial transaction agreement based on the building of block chain technology plays more
Carry out more important role.
In the related technology, the message communication between operation system and block chain can only rely on simple API
(Application Programming Interface, application programming interface) is completed, i.e., operation system can be adjusted directly
Asynchronous message subscription and message informing are carried out with API and block catenary system.
When but in the related technology, by the message communication between API finishing service system and block chain, in operation system
Imperfect mechanism guarantees the stability and safety of transaction;It, cannot since API cannot store transaction message
Whole retrospect is carried out to transaction message;In addition to this, since the degree of coupling between operation system and block chain is very high, it is unfavorable for
The independent deployment and transplanting of operation system, therefore information processing efficiency is lower.
Therefore, it is necessary to provide a kind of new information processing method for operation system and block chain network.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of information processing method, information processing unit, information processing system, computer
Readable storage medium storing program for executing and electronic equipment, and then overcome the limitation and defect due to the relevant technologies at least to a certain extent and lead
One or more problem caused.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure
Practice and acquistion.
According to one aspect of the disclosure, a kind of information processing method is provided, comprising:
The transaction request of operation system is responded, transaction cochain request corresponding with the transaction request is generated;
Transaction cochain request is sent to block chain so that the block chain requests to generate according to the transaction cochain
Block;
After the block chain generates the block, by the corresponding block information of the block store to local data base with
And message queue.
In a kind of exemplary embodiment of the disclosure, the corresponding block information of the block is stored to local data base
Include:
The block information is stored to the local data base by block dimension and transaction dimension.
In a kind of exemplary embodiment of the disclosure, the corresponding block information of the block is stored to local data base
And message queue includes:
The block information stored to the local data base is packaged, and by the block information after encapsulation
It is put into block queue and transaction queue.
In a kind of exemplary embodiment of the disclosure, the method also includes:
The inquiry request for responding operation system, according to the block dimension and the transaction dimension from the local data base
The middle determination block information corresponding with the inquiry request is simultaneously sent to operation system.
In a kind of exemplary embodiment of the disclosure, the method also includes:
The subscription request for responding operation system, will be requested by the block queue and the transaction queue with the subscription
The corresponding block information is sent to operation system.
In a kind of exemplary embodiment of the disclosure, the method also includes:
It inquires the block height of the local data base and is determined in the local data base according to the block height and lacked
The block information lost.
In a kind of exemplary embodiment of the disclosure, the local data base missing is determined according to the block height
The block information includes:
The block height of the local data base Yu the block chain is compared, with the determination local data base missing
The block information.
In a kind of exemplary embodiment of the disclosure, transaction cochain request packet corresponding with the transaction request is generated
It includes:
The transaction request is encapsulated as transaction motion;
Judge whether the quantity of the transaction motion is greater than preset threshold and to judge whether the transaction motion meets default
Transaction motion strategy;
It is raw when the quantity is greater than the preset threshold and the transaction motion meets the default transaction motion strategy
It is requested at the transaction cochain corresponding with the transaction request.
In a kind of exemplary embodiment of the disclosure, transaction cochain request, which is sent to block chain, includes:
Transaction cochain request is sent to by the block chain using GRPC agreement.
In a kind of exemplary embodiment of the disclosure, the method also includes:
Secure transport layer protocol authentication system is established based on the GRPC agreement, and is recognized by the secure transport layer protocol
Card system is encrypted in secure transport layers.
In a kind of exemplary embodiment of the disclosure, the transaction motion include registration ID, intelligence and about ID, private key,
One of Session loads and timestamp are a variety of.
According to one aspect of the disclosure, a kind of information processing unit is provided, comprising:
Transaction request generation module generates corresponding with the transaction request for responding the transaction request of operation system
Cochain of trading is requested;
Transaction request sending module, for by the transaction cochain request be sent to block chain so that the block chain according to
The transaction cochain request generates block;
Block information memory module is used for after the block chain generates the block, by the corresponding block of the block
Information is stored to local data base and message queue.
According to one aspect of the disclosure, a kind of information processing system is provided, comprising:
Embedded kit, for generating a transaction cochain request according to the transaction request of operation system and by the transaction
Chain request is sent to block chain;
Messaging service module is used for after the block chain requests to generate block according to the transaction cochain, by the area
The corresponding block information of block is stored to local data base and message queue.
In a kind of exemplary embodiment of the disclosure, the embedded kit includes:
Transaction and block query unit, for responding the inquiry request of operation system transmission, to inquire the corresponding area of block
Block message;
Transaction encapsulation is packaged generation transaction cochain and asks with unit, the transaction request for sending operation system is initiated
It asks and transaction cochain request is sent to block chain;
Certificate and private key administrative unit arrives operation system information registering for responding the registration request of operation system transmission
In block chain.
In a kind of exemplary embodiment of the disclosure, the messaging service module includes:
Query service unit, for obtaining block information corresponding with inquiry request from Database Unit;
Database Unit is used for memory block and block information;
Message observation unit is stored for being verified and being handled to block information, and by the block information to described
Database Unit and message queue unit;
Message queue unit, for determining block information corresponding with the subscription of operation system request, so that operation system
Carry out business processing.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with,
The computer program realizes information processing method described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute letter described in above-mentioned any one via the executable instruction is executed
Cease processing method.
A kind of information processing method for being there is provided in disclosure exemplary embodiment, information processing unit, information processing system,
In computer readable storage medium and electronic equipment, by responding the transaction request of operation system, generation is asked with the transaction
Corresponding transaction cochain is asked to request;Transaction cochain request is sent to block chain so that the block chain is according to the transaction
Cochain request generates block;After the block chain generates the block, the corresponding block information of the block is stored to this
Ground database and message queue.On the one hand, by storing block information to local data base and message queue, it ensure that letter
The stability and accuracy of breath;It on the one hand, can quickly whole retrospect by storing the block information to local data base
Each information guarantees the integrality of information;On the other hand, the degree of coupling between operation system and block chain is reduced, is improved
The efficiency of information processing.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of asynchronous message subscription structure chart in disclosure exemplary embodiment;
Fig. 2 schematically shows a kind of information processing method schematic diagram in disclosure exemplary embodiment;
Fig. 3 schematically shows a kind of block diagram of information processing unit in disclosure exemplary embodiment;
Fig. 4 schematically shows a kind of block diagram of information processing system in disclosure exemplary embodiment;
Fig. 5 schematically shows the block diagram of a kind of electronic equipment in disclosure exemplary embodiment;
Fig. 6 schematically shows a kind of program product in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps
More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can
It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used
Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and
So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function
Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form
Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
A kind of system structure diagram of message subscribing is provided firstly in this example embodiment, refering to what is shown in Fig. 1, institute
The system of stating includes operation system, block chain service layer and block chain network.Wherein, block chain service layer can be used as intermediate clothes
Business layer is mainly used for realizing the message communication between block chain and various businesses system.It include a variety of inhomogeneities in operation system
The interface of type, such as inquiry request interface 101, requests transaction interface 102, user's registration interface 103 and message subscribing interface
104.Block chain service layer include embeddable SDK (Software Development Kit, Software Development Kit) 105 and
Messaging service 106, wherein SDK includes that transaction encapsulates with block query interface 1051, transaction and initiates interface 1052, certificate/private
Key management interface 1053, it is corresponding with the interface of operation system respectively.Messaging service includes message queue interface 1061, message sight
Examine interface 1062, database interface 1063 and query service interface 1064.Block chain network includes 107 block chain interface API.
Based on above system architecture diagram, additionally provided in the present exemplary embodiment it is a kind of by block chain service layer realize
Information processing method can be used for carrying out the processes such as message subscribing, message informing between operation system and block chain network.With reference to
Shown in Fig. 2, which be may comprise steps of:
Step S210. responds the transaction request of operation system, generates transaction cochain request corresponding with the transaction request;
Transaction cochain request is sent to block chain so that the block chain is according to the transaction cochain by step S220.
Request generates block;
Step S230. stores the corresponding block information of the block to this after the block chain generates the block
Ground database and message queue.
The information processing method provided according to the present exemplary embodiment, on the one hand, by storing block information to this
Ground database and message queue ensure that the stability and accuracy of information;On the one hand, by by the block information store to
Local data base quickly whole can trace each information, guarantee the integrality of information;On the other hand, business system is reduced
The degree of coupling between system and block chain, improves the efficiency of information processing.
Next, being carried out in conjunction with each step of the Fig. 1 and Fig. 2 to the information processing method in this example embodiment
It explains in detail and illustrates.
In step S210, the transaction request of operation system is responded, generates transaction cochain corresponding with the transaction request
Request.
In this example, when system brings into operation, user's registration is carried out first, by operation system information registering to block chain
In, to become the legitimate user end of block chain.Transaction request can be by operation system active transmission, the operation system example
It such as may include client either consumption terminal.For example may include in transaction request schedule of dealing list, real-time transaction data,
The information such as order list.
Block chain service layer can receive and respond the transaction request of operation system transmission, wherein block chain service layer can
To include embeddable SDK and messaging service module.Specifically, SDK can be used for communicating with block chain, messaging service module
It can be used for communicating with operation system.
In this example, operation system can actively initiate transaction request, block chain service after being registered
SDK in layer can be requested with response transaction, and generate transaction cochain request corresponding with the transaction request.It can be asked to transaction
It asks and generates transaction cochain request after being pre-processed, pretreatment for example may include that formal layout either returns transaction request
One change processing etc..
Specifically, generation transaction cochain request corresponding with the transaction request may include:
The transaction request is encapsulated as transaction motion;
Whether the quantity for judging the transaction motion is more than preset threshold and to judge whether the transaction motion meets default
Transaction motion strategy;
It is raw when the quantity is more than the preset threshold and the transaction motion meets the default transaction motion strategy
It is requested at the transaction cochain corresponding with the transaction request.
In this example, transaction request can be encapsulated as the shape of transaction motion with initiation interface 1052 by the transaction encapsulation of SDK
State.The transaction motion may include one of registration ID, intelligent and about ID, private key, Session loads and timestamp or more
Kind.Specifically, can indicate transaction motion with Tx, wherein clientID represents registration ID, and system where specifying SDK exists
The ID registered in overall architecture corresponds to the information such as IP address;ChaincodeID represents intelligence and about ID, is the intelligence for needing to call
About ID specifies the version information etc. for needing to call intelligent contract;TxPayload represents Session loads, can will call intelligence
The business datum and parameter of energy contract are encapsulated in txPayload;ClientSig is that SDK is executed using pre-generated private key
To the signature of entire transaction motion, the true and false of the initiator for verifying transaction motion.
After transaction request to be packaged into transaction motion, it can be determined that whether the quantity for the transaction motion being collected into is more than pre-
If threshold value and judging whether the transaction motion meets default transaction motion strategy, to determine whether current transaction can be sent out
It is raw.Preset threshold herein can be for example the 2/3 of the transaction motion total quantity needed, and specific value can be according to actual needs
Specifically it is arranged.Default transaction motion strategy can for set in advance about injected into each node intelligent contract with
And the confirmation strategy of intelligent contract, such as can be to need 4 in 5 nodes of the whole network to give to sign.
It is greater than the preset threshold in the quantity of transaction motion and the transaction motion meets the default transaction motion plan
When slightly, transaction request can be generated the corresponding transaction cochain request by SDK.Specifically, such as in each of block chain
After node has been built, after some transaction motion is sent to node, node calls intelligent contract to be verified, if verifying is legal,
It will give and sign, and the collection confirmation rule of such verifying signature is exactly confirmation strategy;If it is confirmed that strategy was clearly stipulate that should
After the transaction motion of intelligent contract verifying needs 4 in 5 nodes of the whole network to give signature, it is believed that the transaction motion is closed
Method, and block can be generated as transaction.It, can be accurate by the way that transaction request will be packaged into the process of block in this example
It determines the sequence of transaction, and illegal transaction can be deleted, guarantee the safety of transaction.
Next, in step S220, transaction cochain request is sent to block chain so that the block chain according to
The transaction cochain request generates block.
SDK generate transaction cochain request after, can first confirm that whether the transaction can occur, for example, the block chain whether
Support that the transaction motion occurs.After determining that the transaction can occur, SDK can be connect by included transmission transaction motion
Transaction cochain request is sent to block chain by mouth.Subsequent block chain can verify transaction cochain request, to determine the friendship
Easily whether safety is legal.Block chain verify the transaction it is legal after, block chain can will transaction cochain request be packaged generate block,
And corresponding All Activity information is requested comprising the transaction cochain in the block generated.In addition to this, block chain can also be complete
Net broadcasts the generation of the block.
Wherein, block chain can be understood as point-to-point peer-to-peer network transport protocol, and cryptography Encryption Algorithm is distributed
The combination of the technologies such as the Game Design of common recognition mechanism and Nash Equilibrium.Based on the combination of these types of technology, may be implemented
The heart goes to the authentic data library trusted, and guarantees that the traceable of recorded information is traced to the source on chain using algorithm proof mechanism, can not
It forges, can not distort.
Block is a kind of data structure of record transaction, can be used for reflecting the funds flow of transaction.One block is for example
It may include Hash hash, the random number of Transaction Information, the formation of previous block.Transaction Information is the number of tasks that block is carried
According to specifically including the private key of both parties, the quantity of transaction, digital signature of electronic money etc.;The Kazakhstan that previous block is formed
Uncommon hash is used to connect block, realizes the sequence arrangement of passing transaction;Random number is the core that transaction is reached, Suo Youkuang
The competition of work node calculates the answer of random number, and the node for most obtaining answer fastly generates a new block, and is broadcast to all sections
Point is updated, and can so complete a transaction according to the above process.
Specifically, SDK can be encapsulated by transaction after generating transaction cochain request corresponding with the transaction request
With initiation interface, using GRPC, (Google Remote PRocedure Call Protocol, Google's remote procedure call are assisted
View) the transaction cochain of generation is requested to be sent to block chain, with the language being compatible between block chain service layer and block chain network
Diversity.
Further, TLS (Transport Layer can also be established on the basis of the GRPC agreement
Security, secure transport layer protocol) authentication system.Specifically, service system is with block chain node same where SDK
Respective certificate is issued under TLS root certificate system, and is encrypted in network communication at TLS layers.Due to portion of block chain service layer
Administration is in local, therefore private key is also stored in local.It is Intranet communication when carrying out message call and message informing, so as to
Guarantee safety of the data in public network transmission process.
Next, after the block chain generates the block, the corresponding block of the block is believed in step S230
Breath is stored to local data base and message queue.
In this example, database 1063 may include cache database and local data base, and block chain asks transaction cochain
It asks after being packaged into block, block information can be stored in cache database according to block dimension and transaction dimension first, and
It is written and read by KV (Key-Value, key assignments) database.Messaging service module in block chain service layer learns block chain
When generating with the transaction cochain corresponding new block of request, it is raw the block that interface 1062 broadcast block chain can be observed by message
It at corresponding block information and is verified and is handled, further by the block information persistence landing of generation to local data
In library.
Specifically, it may include: to be tieed up by block that the corresponding block information of the block, which is stored to local data base,
Degree and transaction dimension store the block information to the local data base.
In this example, all block informations can be stored according to two dimensions of block and transaction to local data base,
I.e. according to the corresponding storage of two dimensions of All Activity information included in all blocks of generation and each block, to pass through
Local data base can be to the quick whole retrospect of each message in block chain and operation system.
Further, the block information stored to local data base can also be sent to message queue.Message herein
The message queue that queue can monitor for operation system, such as may include block queue and transaction queue.By the way that block is believed
Breath is sent to message queue, and operation system can be made directly to obtain block information from the message queue of messaging service module, and
The operation such as operation system processing is carried out according to the block ID and transaction id information that include in block information.
Specifically, the corresponding block information of the block, which is stored to local data base and message queue, can wrap
It includes:
The block information stored to the local data base is packaged, and by the block information after encapsulation
It is put into block queue and transaction queue.
Block queue is used to store all block informations generated, and transaction queue can be used for included in memory block
All Activity information.The block information landed in above-mentioned steps to local data base can be packaged by block chain service layer to disappear
Breath, and message queue 1061 is respectively put into so that operation system monitors message queue.Such as it can be by the institute after encapsulation
It states block information and is put into block queue and transaction queue, so that operation system such as is consumed or subscribed at the operation.By this
Mode, can make all services be independently from operation system, and operation system does not need to consider further that the life of block chain service layer
Period, therefore the change of operation system can be minimized, deployment difficulty is reduced, to improve information processing efficiency.
In addition to this, the method can also include: to inquire the block height of the local data base and according to the area
Block height determines the block information lacked in the local data base.
Block chain service layer can inquire be locally stored in newest block height, and using newest block height as receive
The required parameter that new block generates, determines in local data base whether lack block according to newest block height, to obtain in time
The block lacked in local data base and corresponding block information.Such as newest block can be inquired by writing program language
Highly.You need to add is that can also be with the newest block height in query caching database.
Specifically, determining that the block information of the local data base missing can wrap according to the block height
It includes:
The block height of the local data base Yu the block chain is compared, with the determination local data base missing
The block information.
When the block of the local data base and block chain height is consistent, it may be said that bright local data
Library does not lack block;When the block of the local data base and block chain height is inconsistent, need to store again
Block.Due to carrying out tissue, index and the KV of storage according to the form of key-value pair using data, (Key-Value, key assignments are deposited
Storage) database, as long as key value determines, information is determining in corresponding value value, can be with by comparison block height
The consistency of local data base Yu block chain information is effectively ensured.
For example, it if the data in the cache database of block chain service layer are all removed, needs again from area
All a block and block information are obtained in the node of block chain, then it can be by the newest block height in cache database
It is compared with block height newest in block chain node, if there is the block of missing, so that it may reacquire the block pair
The information answered.
Since operation system can issue different types of request, and various requests are respectively corresponded and different are connect based on http
The API of mouth, on this basis, the method can also include:
The inquiry request for responding operation system, according to the block dimension and the transaction dimension from the local data base
The middle determination block information corresponding with the inquiry request is simultaneously sent to operation system.
When operation system issues the inquiry request including block by inquiry request interface 101, SDK can pass through transaction
The inquiry request is responded with block query interface 1051, and the inquiry request is sent to query service interface 1064, in turn
It determines and inquires in the local database according to the corresponding relationship between the block and block ID and transaction id in inquiry request
The corresponding Transaction Information of block in request, and the Transaction Information is sent to operation system.If losing message queue
Information after, or inquire the specific data of certain transaction in some block, or need to have generated on block chain
When business datum and block data in block are shown in a manner of visual, it can be sent and be inquired by operation system
The mode of request obtains the block information for needing to inquire from local data base again.
In addition to this, the method can also include: to respond the subscription request of operation system, from the block queue and institute
Transaction queue is stated to obtain block information corresponding with the subscription request and be sent to the operation system.
When operation system issues the subscription request including block by message subscribing interface 104, block chain service layer can
To respond subscription request, block information corresponding with the subscription request is obtained by block queue and transaction queue, and
The block information is sent to operation system so that the operation system carries out business processing.In this way, Ke Yishi
The asynchronous subscription of existing message and the stability and accuracy that ensure that message.
The disclosure additionally provides a kind of information processing unit.Refering to what is shown in Fig. 3, the information processing unit 300 may include:
Transaction request generation module 301 can be used for responding the transaction request of operation system, generate and the transaction request
Corresponding transaction cochain request;
Transaction request sending module 302 can be used for requesting the transaction cochain to be sent to block chain so that the area
Block chain requests to generate block according to the transaction cochain;
Block information memory module 303 can be used for after the block chain generates the block, and the block is corresponding
Block information store to local data base and message queue.
It should be noted that the detail of each module is in corresponding information processing side in above- mentioned information processing unit
It is described in detail in method, therefore details are not described herein again.
The disclosure additionally provides a kind of information processing system.The information processing system can be used as middle service layer, main
It will be for realizing the message communication between block chain and various businesses system.Refering to what is shown in Fig. 4, the information processing system 400 can
To include: embedded kit 401 and messaging service module 402, in which:
Embedded kit 401 can be used for generating a transaction cochain request according to the transaction request of operation system and by institute
It states transaction cochain request and is sent to block chain;
Messaging service module 402 can be used for after the block chain requests to generate block according to the transaction cochain, will
The corresponding block information of the block is stored to local data base and message queue.
Further, the embedded kit 401 may include transaction and block query unit 4011, transaction encapsulation and hair
Play unit 4012 and certificate and private key administrative unit 4013, in which:
Transaction and block query unit 4011, can be used for responding the inquiry request of operation system transmission, to inquire block
Corresponding block information;
Transaction encapsulation and initiation unit 4012 can be used for the transaction request that operation system is sent being packaged generation and hand over
Transaction cochain request is simultaneously sent to block chain by easy cochain request;
Certificate and private key administrative unit 4013 can be used for responding the registration request of operation system transmission, operation system believed
Breath is registered in block chain, so that operation system becomes the legitimate user end of block chain.
The messaging service module 402 may include query service unit 4021, Database Unit 4022, message observation list
Member 4023 and message queue unit 4024.Wherein:
Query service unit 4021 can be used for obtaining block information corresponding with inquiry request from Database Unit;
Database Unit 4022, can be used for memory block and block information, with by Database Unit to block chain with
Each message carries out quickly whole retrospect in operation system;
Message observation unit 4023 can be used for verifying block information and being handled, and the block information deposited
It stores up to the Database Unit and message queue unit;
Message queue unit 4024 is determined for the subscription with operation system and requests corresponding block information, so that
Operation system carries out the operation such as business processing, such as consumption.
It should be noted that the detail of each unit of each module is corresponding in above- mentioned information processing system
It is described in detail in information processing method, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want
These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize
Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 5.The electronics that Fig. 5 is shown
Equipment 600 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 610, at least one above-mentioned storage unit 620, the different system components of connection
The bus 630 of (including storage unit 620 and processing unit 610).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 610
Row, so that various according to the present invention described in the execution of the processing unit 610 above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 610 can execute step as shown in Figure 2: step S210.
The transaction request of operation system is responded, transaction cochain request corresponding with the transaction request is generated;Step S220. is by the friendship
Easy cochain request is sent to block chain so that the block chain requests to generate block according to the transaction cochain;Step S230. exists
After the block chain generates the block, the corresponding block information of the block is stored to local data base and message team
Column.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205
6204, such program module 6205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 630 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with
By network adapter 660 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute
Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 6, describing the program product for realizing the above method of embodiment according to the present invention
800, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.