A kind of communication means based on block chain, device, system and medium
Technical field
The present invention relates to block chain fields, more particularly to a kind of communication means based on block chain, device, system and Jie
Matter.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Application model
Block chain is made of a series of block chain nodes for following common recognition mechanism, and the data content in block chain be by
All block chain nodes are stored and are authenticated jointly in block chain, therefore it has the characteristics that decentralization, passes through block
Any block chain node in chain can not distort the data content of global storage in block chain, and due to number of every progress
According to communication, block chain can broadcast result of communication to each block chain node, and be added as new block data to area
In block chain node, and due to the block in block chain node be it is ever-increasing on the original basis, can be according to inspection
Rope block learns the result of communication of each secondary data communication, and then block chain has stronger trackability, therefore on current line
The technology that transaction platform is typically based on block chain is realized, avoids centralized server from usurping after the transaction private key for obtaining user with this
The case where using the transaction application and transaction results at family instead generation ensures to trade safe and reliable with this.
But be continuously increased as the user of current block chain entirety participates in quantity, lead to the user stored in block chain
Overall amount of data be also continuously increased, since each block chain node in same block chain is required in full storage block chain
The data of the total data of each user, each user can constantly increase on the basis of original, and the memory space of block chain node
It is limited, it is thus possible to occur can not storing data the case where, and then influence block chain normal work, it is difficult to ensure block chain
Global reliability;In addition, need the data volume of synchronous transfer relatively large when there is new block chain node to be added to block chain,
Biggish transfer resource will be occupied, the transmission reliability inside block chain can equally be impacted, and then reduces block chain
Functional reliability.
It can be seen that providing a kind of communication means based on block chain, block chain is stored with relative reduction user data
The occupancy degree in space, and when reducing new block chain node and being added to block chain, the data volume of synchronous transfer is needed, and then opposite
The functional reliability for improving block chain, is those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of communication means based on block chain, device, system and media, with relative reduction
User data needs to synchronize to the occupancy degree of block chain memory space, and when reducing new block chain node and being added to block chain
The data volume of transmission, and then the opposite functional reliability for improving block chain.
In order to solve the above technical problems, the present invention provides a kind of communication means based on block chain, it is flat to be applied to block chain
Platform node, method include:
The complete account data of each user is stored to corresponding target block chain respectively;Wherein, the number of target block chain
Amount is N, and N is the positive integer greater than 1;
When getting each Client-initiated communication request, the target account number of corresponding user is carried out according to communication request
Data communication between.
Preferably, communication request is specially transaction request;Wherein, the content of transaction request includes deals match information and tests
Demonstrate,prove information;
Correspondingly, carrying out the mesh of corresponding user according to communication request when getting each Client-initiated communication request
Data communication between mark account data includes:
When getting each Client-initiated transaction request, verification information is verified;
When verification information is without mistaking, the target account of corresponding user is obtained in target block chain according to deals match information
User data, and corresponding modification and synchronization between target account data are carried out, to complete the transaction in assets between target user.
Preferably, before carrying out corresponding modification between target account data and synchronizing, method further include:
Target account data setting data are locked;
Correspondingly, after carrying out corresponding modification between target account data and synchronizing, method further include:
Operation is unlocked to target account data.
Preferably, verification information includes the digital signature generated according to transaction request.
Preferably, deals match information is in advance by the order processing server communicated with block platform chain node, according to each
The expensed asset quantity and demand amount of assets of user carries out matching generation.
Preferably, the quantity of Asset Type is greater than 1 in account data.
It preferably, should after the data communication between the target account data for carrying out corresponding user according to communication request
Method further include:
The result of data communication is each with showing per family into corresponding user.
In addition, the present invention also provides a kind of block platform chain node, block platform chain node include memory, processor and
Bus is stored with the signal procedure based on block chain that can be run on a processor on memory, the communication journey based on block chain
Sequence is obtained and is executed by processor by bus, realizes such as above-mentioned method.
Preferably, device is the node for forming CDN network or block chain network.
In addition, the present invention also provides a kind of communication system based on block chain, system includes:
Storage unit, for respectively storing the complete account data of each user to corresponding target block chain;Wherein, mesh
The quantity for marking block chain is N, and N is the positive integer greater than 1;
Communication unit, for carrying out opposite application according to communication request when getting each Client-initiated communication request
Data communication between the target account data at family.
In addition, being stored with base on computer readable storage medium the present invention also provides a kind of computer readable storage medium
In the signal procedure of block chain, the signal procedure based on block chain can be executed by one or more processor, as above to realize
The communication means based on block chain stated.
In addition, the present invention also provides a kind of communication system based on block chain, including order processing server and at least two
A block chain node, in which:
Order processing server, for being used according to the preset expensed asset quantity of user and demand amount of assets
Expensed asset quantity is corresponded to each other with demand amount of assets the corresponding relationship between matched target user by the matching between family
Record is to transaction match information, and sending to block chain node includes that the transaction of deals match information and verification information is asked
It asks;
Block platform chain node, for respectively storing the complete account data of each user to corresponding target block chain;
Wherein, the quantity of target block chain is N, and N is the positive integer greater than 1;It include transaction when getting each Client-initiated
When transaction request with information and verification information, verification information is verified;When verification information is without mistaking, according to deals match
Information obtains the target account data of corresponding user in target block chain, and carries out corresponding between target account data repair
Change and synchronize, to complete the transaction in assets between target user.
In addition, the present invention also provides a kind of computer program product, including computer instruction, when it runs on computers
When, allow computer to execute the above-mentioned communication means based on block chain.
Communication means provided by the present invention based on block chain first respectively stores the complete account data of each user
To corresponding target block chain, the quantity of target block chain is greater than 1, i.e., whole users is dispersed corresponding multiple block chains, in turn
By the account data full storage of each user to corresponding target block chain, and then works as and get the corresponding use of each target block chain
When the communication request that family is initiated, according to the data communication between user corresponding to communication request progress target block chain.This method
The quantity of the block chain of storage user's corresponding account data is extended, and then by the block chain of one or more to the account of user
Data carry out separate storage, therefore compared with only being stored by a block chain to the account data of user, and this method will
The pressure of storage user account data is shared to a plurality of block chain, and the total amount of stored account data is with respect to subtracting in each block chain
It is few, and then alleviate the occupancy degree to memory space;In addition, by stored account data in each block chain total amount compared with
It is few, therefore when there is new block chain node to be added to block chain, it needs the data volume of synchronous transfer relatively small, transmission is provided
The occupancy in source is lower, and then the opposite functional reliability for improving block chain.In addition, the present invention also provides one kind to be based on block chain
Communication device, system and medium, beneficial effect is same as above.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart for communication means based on block chain that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the communication means based on block chain provided by Embodiment 2 of the present invention;
Incidence relation schematic diagram of the Fig. 3 between account data and Asset List;
Fig. 4 is a kind of timing diagram of the transaction in assets process based on block chain provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of target user's transaction in assets of transregional piece of chain;
Fig. 6 is a kind of structure chart of the communication device based on block chain provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
Embodiment one
The present invention provides a kind of communication means based on block chain.
Referring to Fig.1, Fig. 1 is a kind of flow chart for communication means based on block chain that the embodiment of the present invention one provides.
In example 1, this method comprises:
Step S10: the complete account data of each user is stored to corresponding target block chain respectively.
Wherein, the quantity of target block chain is N, and N is the positive integer greater than 1.
It should be noted that the account data in this step refers to related data corresponding to each user, such as Asset Name
Title and corresponding amount of assets etc., account data can be modified accordingly by the data communication between block chain user,
Such as communicated by user's transaction in assets between block chain user, the amount of assets of both parties user can be made to generate corresponding
Quantity variation, this step are not specifically limited the content of account data herein.In addition, being preset with the N greater than 1 in this step
Block chain, and in accordance with same common recognition mechanism between the node in each block chain, therefore each block chain can be controlled
Make the block chain node of itself the account data of stored user is modified and recorded.This step is corresponding by each user
Account data completely store into corresponding block chain, that is to say, that the account data of each user is only stored in and the use
In the corresponding a certain block chain in family, ensure that the account data of each user stored in block chain has integrality, goes with this
The heart and trackability.In addition, the overall quantity of block chain should be ensured with this by whole use at least more than 1 in this step
The account data at family shares storage pressure whole when mitigating block chain storage account data to 1 or more block chain storage.
Step S11: when getting each Client-initiated communication request, the mesh of corresponding user is carried out according to communication request
Mark the data communication between account data.
It should be noted that each Client-initiated communication request got in step, is that user exists in general
In client after authentication logs in by client initiate, the purpose of communication request be to user account data into
Row data communication, the transaction, registration or management etc. that specifically can be to content in user account data of data communication, herein not
It is specifically limited.
Communication means provided by the present invention based on block chain first respectively stores the complete account data of each user
To corresponding target block chain, the quantity of target block chain is greater than 1, i.e., whole users is dispersed corresponding multiple block chains, in turn
By the account data full storage of each user to corresponding target block chain, and then works as and get the corresponding use of each target block chain
When the communication request that family is initiated, according to the data communication between user corresponding to communication request progress target block chain.This method
The quantity of the block chain of storage user's corresponding account data is extended, and then by the block chain of one or more to the account of user
Data carry out separate storage, therefore compared with only being stored by a block chain to the account data of user, and this method will
The pressure of storage user account data is shared to a plurality of block chain, and the total amount of stored account data is with respect to subtracting in each block chain
It is few, and then alleviate the occupancy degree to memory space;In addition, by stored account data in each block chain total amount compared with
It is few, therefore when there is new block chain node to be added to block chain, it needs the data volume of synchronous transfer relatively small, transmission is provided
The occupancy in source is lower, and then the opposite functional reliability for improving block chain.
Embodiment two
It is a kind of flow chart of the communication means based on block chain provided by Embodiment 2 of the present invention referring to Fig. 2, Fig. 2.
Step S10 in Fig. 2 is identical as Fig. 1, and details are not described herein.
As shown in Fig. 2, as a preferred embodiment, communication request is specially transaction request;Wherein, transaction request
Content include deals match information and verification information;
Correspondingly, step S11 includes:
Step S20: when getting each Client-initiated transaction request, verification information is verified.
It should be noted that since transaction is to carry out between two or more users, and user sends out in itself
The preset condition that transaction is established, such as resource required for user and as cost branch are usually contained in the transaction request risen
Resource out, therefore transaction platform is when being collected into the transaction request that each user is initiated, it can be to the corresponding use of preset condition
Family is matched, and the target user in this step is the user with other user's successful match.
User in this step can be all from same block chain, can be from different blocks chain, that is to say, that transaction
It can establish, can also be established between the user in different blocks chain between the user in same block chain, it should be according to practical feelings
Depending on condition, it is not specifically limited herein.
In addition, including verification information in transaction request, the effect of verification information is the transaction for proving user and being initiated
The legitimacy of request.
Step S21: when verification information is without mistaking, corresponding user is obtained in target block chain according to deals match information
Target account data, and corresponding modification and synchronization between target account data are carried out, to complete the assets between target user
Transaction.
It is understood that the transaction request that this step is the target user that will be matched is sent in target block chain,
And then the legitimacy of target user's transaction request is verified by target block chain, when the transaction request of verifying target user is legal
Afterwards, the corresponding modification for meeting transaction request content is carried out to the account data of target user in target block chain, and will be after modification
Account data broadcast each block chain node into block chain to synchronize, and then complete the assets between target user and hand over
Easily.
It is emphasized that being that transaction other than block chain is flat for the matching of transaction request between user in the present embodiment
It is carried out in platform, and to the processing of transaction request is executed in block chain, due to including to prove to hand in transaction request
The easily verification information of request availability, therefore transaction platform can not distort transaction request, and then ensure that transaction in assets
Reliability.
Since transaction is content known in those skilled in the art between carrying out user by block chain, do not do herein
Excessive repeats.Present embodiment focuses on only in the processing for carrying out transaction request by block chain, and to transaction request
Matching by other than block chain transaction platform carry out, under present case to the matching of transaction request and processing by block chain
The case where completion, is compared, and the whole resource overhead of block chain is further saved.
In addition, as a preferred embodiment, in the corresponding modification of account data progress to target user and together
Before step, method further include:
Target account data setting data are locked.
Correspondingly, after the account data to target user carries out corresponding modification and synchronizes, method further include:
Operation is unlocked to target account data.
It should be noted that present embodiment to target block chain send target user transaction request after, pass through to
Target block chain initiates lock instruction, and control target block chain ensures the account data setting data lock of target user with this
Target block chain can not modify to the account data of target user because of other transaction requests, and then avoid because trading
Account data changes in journey, and the case where be unsatisfactory for preset condition in transaction request, ensure that trades goes on smoothly with this.Relatively
It answers, after the account data to target user carries out corresponding modification and synchronizes, in order to ensure target block chain is smoothly located
Other transaction requests are managed, need to initiate unlock instruction to target block chain, to control target block chain to the account of target user
User data is unlocked operation.This embodiment ensures that the account data and processing when target user initiates transaction request are traded
The consistency between account data when request, and then ensure going on smoothly for transaction.
In addition, as a preferred embodiment, verification information includes the digital signature generated according to transaction request.
It should be noted that the digital signature in present embodiment is generated according to transaction request is corresponding, it is specific raw
It include: to carry out feature extraction to the transaction request of target user to obtain characteristic, and the private key for passing through target user at step
Signature authentication is carried out to characteristic and generates digital signature.Correspondingly, including digital signature when target block chain receives
After transaction request, digital signature can be decrypted by the public key of target user first, generate original characteristic, and
Feature extraction is carried out to transaction request, obtains current characteristic, when original characteristic and current characteristic one
When cause, then assert that transaction request has availability, and then execute the processing to transaction request.In addition, the specific reality of feature extraction
Existing step is content known to those skilled in the art, and this will not be repeated here.It is generated after feature extraction due to transaction request
The data volume of characteristic is relatively small, and even if the difference between two transaction requests is smaller, also can be in characteristic
In embody biggish difference, therefore present embodiment opposite can reduce overall overhead simultaneously for digital signature as verification information
Increase accuracy.
In addition, as a preferred embodiment, deals match information is in advance by communicating with block platform chain node
Order processing server carries out matching generation according to the expensed asset quantity of each user and demand amount of assets.
It should be noted that the content of transaction request other than verification information, further includes asset addresses, expensed asset, branch
Amount of assets, demand assets, demand amount of assets and current transaction count out.Asset addresses are mentioned for characterizing target user
For specific storage address of the assets (expensed asset) in block chain;Expensed asset characterization is that target user initiates transaction when institute
Wish the assets of expenditure;What expensed asset quantity characterized is the quantity of expensed asset;Demand assets characterization is target user's hair
Play the assets of desired acquisition when transaction;What demand amount of assets characterized is the quantity of demand assets;Current transaction count characterization
Be current goal user initiate transaction whole number, in order to prevent because target user initiate two identical transaction
Request, and cause the generation of " honeysuckle ".
The content format of specific transaction request please refers to following table:
The content of transaction request can comprehensively record the transaction content of target user relatively in present embodiment, with this into
One step guarantees the preciseness and reliability of transaction.
Due to including expensed asset quantity and demand amount of assets in transaction request, and the essence traded is
By expensed asset switching requirement assets, therefore present embodiment is according to the expensed asset quantity and demand assets in transaction request
Quantity carries out the matching between user, such as in the transaction request of user t1, and the expensed asset quantity of expensed asset A is 20, demand
The quantity required of assets B is 30;And in the transaction request of user t2, the expensed asset quantity of expensed asset B is 30, demand assets
The quantity required of A is 20, since user t1 matches with the expensed asset of t2 with demand assets, by user t1 and user
The target user that t2 matches as transaction request.Present embodiment is by the expensed asset quantity and demand assets in transaction request
Quantity improves accuracy when choosing target user as matching foundation.
In addition, as a preferred embodiment, the quantity of Asset Type is greater than 1 in account data.
In view of a user often has a plurality of types of assets, if only recorded in account data a type of
Assets are difficult to ensure the diversity of transaction in assets, therefore in the present embodiment, and the quantity of Asset Type is greater than in account data
1, that is to say, that record has a plurality of types of assets of the user in the account data of user.
A kind of account data list for recording account data in present embodiment is provided below:
Field name |
Explanation |
address |
Account wallet address |
asset_list |
Asset List |
Asset List (asset_list) in account data list is as follows:
Field name |
Explanation |
asset_name |
Asset Type |
balance |
Amount of assets |
Incidence relation between above-mentioned account data and Asset List as shown in figure 3, i.e. one account data assets
It include multiple assets list in list.
In addition, as a preferred embodiment, in the target account number for carrying out corresponding user according to communication request
After data communication between, this method further include:
The result of data communication is each with showing per family into corresponding user.
The result of data communication is shown that opposite can improve user learns data communication result to user by this step
When convenience, improve user experience.
Embodiment three
In addition, the present invention also provides a kind of communication system based on block chain, including order processing server and at least two
A block chain node, in which:
The order processing server, for according to the preset expensed asset quantity of user and demand amount of assets into
The expensed asset quantity is corresponded to each other matched target with the demand amount of assets and used by the matching between the row user
Corresponding relationship between family is recorded to transaction match information, and includes that the deals match is believed to block chain node transmission
The transaction request of breath and verification information;
The block platform chain node, for respectively storing each complete account data of user to corresponding target
Block chain;Wherein, the quantity of the target block chain is N, and N is the positive integer greater than 1;It is initiated when getting each user
When including the transaction request of the deals match information and the verification information, the verification information is tested
Card;When the verification information is without mistaking, obtained in the target block chain according to the deals match information described corresponding
The target account data of user, and corresponding modification and synchronization between the target account data are carried out, to complete the target
Transaction in assets between user.
Communication system provided by the present invention based on block chain first respectively stores the complete account data of each user
To corresponding target block chain, the quantity of target block chain is greater than 1, i.e., whole users is dispersed corresponding multiple block chains, in turn
By the account data full storage of each user to corresponding target block chain, and then works as and get the corresponding use of each target block chain
When the communication request that family is initiated, according to the data communication between user corresponding to communication request progress target block chain.This system
The quantity of the block chain of storage user's corresponding account data is extended, and then by the block chain of one or more to the account of user
Data carry out separate storage, therefore compared with only being stored by a block chain to the account data of user, and this system will
The pressure of storage user account data is shared to a plurality of block chain, and the total amount of stored account data is with respect to subtracting in each block chain
It is few, and then alleviate the occupancy degree to memory space;In addition, by stored account data in each block chain total amount compared with
It is few, therefore when there is new block chain node to be added to block chain, it needs the data volume of synchronous transfer relatively small, transmission is provided
The occupancy in source is lower, and then the opposite functional reliability for improving block chain.
Overall description is carried out below by technology contents of the workflow under concrete scene to above-described embodiment two.
It is a kind of timing diagram of the transaction in assets process based on block chain provided in an embodiment of the present invention referring to Fig. 4, Fig. 4.
The specific steps of transaction in assets process include:
1. user fills in assets, the quantity etc. for wanting transaction by client, transaction request is counted with wallet private key
After word signature, it is submitted to order processing server;
2. order processing server, which saves each user, wants the assets of transaction, quantity, and carries out the friendship between user accordingly
Easily matching generates and is able to carry out the deals match information of transaction between characterization target user, will include deals match information with
And the transaction request content of verification information is transmitted to block chain;
3. block chain receives transaction request, user is obtained from transaction request and wants the assets of transaction, quantity, verifies user
Digital signature, the assets being related in user account and quantity are locked by rear.User cannot will provide after assets lock up
Account is produced in production, and user is unlocked assets after transaction request strikes a bargain or transaction request is overtime;
4. returning to locking result after locking to order processing server;
5. order processing server matches transaction request;
6. if two transaction requests are merged into a transaction request, after merging by two transaction request successful match
Transaction request includes the digital signature of two target users, then sends block chain for this transaction request;
After 7. block chain receives transaction request, the corresponding modification of performance objective user's assets and record;
8. the corresponding modification of target user's assets and record, return result to order processing server;
9. order processing server receives exchange of assets as a result, returning result to client.
Below for above-mentioned " after block chain receives transaction request, the corresponding modification of performance objective user's assets and record "
Operation is specifically described:
All blocks when the transaction request of successful match is initiated by the target user in same block chain, in block chain
Chain node can get identical data, and block chain serially executes transaction in order, therefore can be one
The corresponding target user's assets for modifying each transacting targeted user in secondary transaction.
When the transaction request of successful match is initiated by the target user in different blocks chain, such as target user t1 is in area
The zone2 (block chain 2) of the zone1 (block chain 1) of block platform chain node, target user t2 in block platform chain node, and mesh
Mark user t1 and target user t2 trades, then needs that trade management module is arranged in block chain, to realize transregional piece of chain
Target user's transaction in assets.
Referring to FIG. 5, Fig. 5 is the flow diagram of target user's transaction in assets of transregional piece of chain.
As shown in figure 5, target user t1 needs to be traded with the assets B of assets A and target user t2, such as above-mentioned assets
Described in transaction flow, after target user t1 and target user t2 initiates transaction request, corresponding block chain reconciliation
User data is locked, and the transaction between the account data of target user is really unlocked and is modified to account data
Process, it is specific as follows:
1. the transaction request after merging is issued preset transaction interface in block platform chain by order processing server.Merge
Transaction request afterwards includes the digital signature of user t1 and user t2;
The digital signature of trade management module verifying the user t1 and user t2 of 2.zone1, unlock user after being verified
The assets A of t1, and A is produced to the user t2 of zone2;
After the trade management module of 3.zone2 receives the information that user t1 is transferred to the characterization assets A of user t2, t1 is verified
With the digital signature of t2, the quantity of the assets A of corresponding modification user t2, unlocks the assets B of t2, and B is given to after being verified
The user t1 of zone1;
Assets B is transferred to user t1 to the transfer request of t1 by the trade management module of 4.zone1.
It should be noted that above-mentioned assets are transferred to the modification inherently to amount of assets in user account data.
Example IV
Hereinbefore the embodiment of the communication means based on block chain is described in detail, the present invention also provides
A kind of communication device based on block chain corresponding with this method, due to the embodiment of device part and the embodiment of method part
It corresponds to each other, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 6 is a kind of structure chart of the communication device based on block chain provided in an embodiment of the present invention.
In the present embodiment, the communication device 1 based on block chain can be PC (Personal Computer, personal electricity
Brain), it is also possible to smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage are set
Standby terminal device.
The communication device 1 based on block chain can be the node of composition CDN network or block chain network.
The communication device 1 based on block chain may include memory 11, processor 12 and bus 13.
Wherein, memory 11 includes at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard
Disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 exists
It can be the internal storage unit of the communication device 1 based on block chain in some embodiments, such as should the communication based on block chain
The hard disk of device 1.The external storage that memory 11 is also possible to the communication device 1 based on block chain in further embodiments is set
Plug-in type hard disk that is standby, such as being equipped on the communication device 1 based on block chain, intelligent memory card (Smart Media Card,
SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, memory 11 may be used also
Both to include the internal storage unit of the communication device 1 based on block chain or including External memory equipment.Memory 11 not only may be used
It is installed on the application software and Various types of data of the communication device 1 based on block chain for storage, such as logical based on block chain
The code etc. for believing program, can be also used for temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11
Code or processing data, such as execute the signal procedure etc. based on block chain.
The bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation
PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA)
Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 6 only with one slightly
Line indicates, it is not intended that an only bus or a type of bus.
Communication device provided by the present invention based on block chain first respectively stores the complete account data of each user
To corresponding target block chain, the quantity of target block chain is greater than 1, i.e., whole users is dispersed corresponding multiple block chains, in turn
By the account data full storage of each user to corresponding target block chain, and then works as and get the corresponding use of each target block chain
When the communication request that family is initiated, according to the data communication between user corresponding to communication request progress target block chain.The present apparatus
The quantity of the block chain of storage user's corresponding account data is extended, and then by the block chain of one or more to the account of user
Data carry out separate storage, therefore compared with only being stored by a block chain to the account data of user, and the present apparatus will
The pressure of storage user account data is shared to a plurality of block chain, and the total amount of stored account data is with respect to subtracting in each block chain
It is few, and then alleviate the occupancy degree to memory space;In addition, by stored account data in each block chain total amount compared with
It is few, therefore when there is new block chain node to be added to block chain, it needs the data volume of synchronous transfer relatively small, transmission is provided
The occupancy in source is lower, and then the opposite functional reliability for improving block chain.
Further, the communication device based on block chain can also include network interface, and network interface optionally can wrap
Wireline interface and/or wireless interface (such as WI-FI interface, blue tooth interface) are included, commonly used in setting in the device 1 with other electronics
Communication connection is established between standby.
Optionally, which can also include user interface, and user interface may include display (Display), input
Unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional
Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED
(Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate
Referred to as display screen or display unit, for being shown in the information handled in the communication device 1 based on block chain and for showing
Visual user interface.
It will be appreciated by persons skilled in the art that the structure shown in Fig. 6 is not constituted to the communication dress based on block chain
The restriction for setting 1 may include perhaps combining certain components or different component cloth than illustrating less perhaps more components
It sets.
Embodiment five
In addition, the present invention also provides a kind of communication system based on block chain, system includes:
Storage unit, for respectively storing the complete account data of each user to corresponding target block chain;Wherein, mesh
The quantity for marking block chain is N, and N is the positive integer greater than 1.
Communication unit, for when getting each Client-initiated communication request, according to communication request to the account of each user
User data carries out data communication.
Communication system provided by the present invention based on block chain first respectively stores the complete account data of each user
To corresponding target block chain, the quantity of target block chain is greater than 1, i.e., whole users is dispersed corresponding multiple block chains, in turn
By the account data full storage of each user to corresponding target block chain, and then works as and get the corresponding use of each target block chain
When the communication request that family is initiated, according to the data communication between user corresponding to communication request progress target block chain.This system
The quantity of the block chain of storage user's corresponding account data is extended, and then by the block chain of one or more to the account of user
Data carry out separate storage, therefore compared with only being stored by a block chain to the account data of user, and this system will
The pressure of storage user account data is shared to a plurality of block chain, and the total amount of stored account data is with respect to subtracting in each block chain
It is few, and then alleviate the occupancy degree to memory space;In addition, by stored account data in each block chain total amount compared with
It is few, therefore when there is new block chain node to be added to block chain, it needs the data volume of synchronous transfer relatively small, transmission is provided
The occupancy in source is lower, and then the opposite functional reliability for improving block chain.
In addition, being stored with base on computer readable storage medium the present invention also provides a kind of computer readable storage medium
In the signal procedure of block chain, the signal procedure based on block chain can be executed by one or more processor, as above to realize
The communication means based on block chain stated.
Computer readable storage medium provided by the present invention, first respectively by the complete account data of each user store to
The quantity of corresponding target block chain, target block chain is greater than 1, i.e., whole users is dispersed corresponding multiple block chains, and then will
The account data full storage of each user is to corresponding target block chain, and then when getting the corresponding user of each target block chain
When the communication request of initiation, according to the data communication between user corresponding to communication request progress target block chain.This computer
Readable storage medium storing program for executing extends the quantity of the block chain of storage user's corresponding account data, and then passes through the block chain of one or more
Separate storage carried out to the account data of user, thus with storage phase is only carried out by account data of the block chain to user
The pressure for storing user account data is shared to a plurality of block chain than, this computer readable storage medium, in each block chain
The total amount of stored account data is opposite to be reduced, and then alleviates the occupancy degree to memory space;In addition, due to each block
The total amount of stored account data is less in chain, therefore when there is new block chain node to be added to block chain, needs synchronous transfer
Data volume it is relatively small, it is lower for the occupancy of transfer resource, and then the opposite functional reliability for improving block chain.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
Computer program product includes one or more computer instructions.Load and execute on computers computer program
When instruction, the process or function according to the embodiment of the present invention are entirely or partly generated.Computer can be general purpose computer, specially
With computer, computer network or other programmable devices.Computer instruction can store in computer readable storage medium
In, or transmit from a computer readable storage medium to another computer readable storage medium, for example, computer instruction can
To pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line from a web-site, computer, server or data center
(DSL)) or wireless (such as infrared, wireless, microwave etc.) mode is into another web-site, computer, server or data
The heart is transmitted.Computer readable storage medium can be any usable medium or include one that computer can store
Or the data storage devices such as integrated server, data center of multiple usable mediums.Usable medium can be magnetic medium, (example
Such as, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State
Disk (SSD)) etc.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
The all or part of (can be personal computer, server or the network equipment etc.) execution each embodiment method of the application
Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), random
Access various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk
Matter.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And
The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet
Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed
Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more
In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element
Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.