Big data is calculated in e-commerce platform method of commerce and system
Technical field
The present invention relates to intelligent business technical field, the transaction that big data is calculated in more particularly to a kind of e-commerce platform
Method and system.
Background technology
Ecommerce is the commercial activity centered on the exchange of commodities using information network technique as means;It also is understood as
On internet (Internet), intranet (Intranet) and value-added network (VAN, Value Added Network) with
Electronic transaction mode is traded the activity of activity and related service, be the electronization of each link of traditional commerce activity, networking,
It is information-based.
Ecommerce is typically referred in the extensive trade activity in all parts of the world, the network environment opened in internet
Under, based on browser/server application mode, both parties carry out various commercial activities with not meeting, realize the net of consumer
Online transaction and online e-payment and various commercial activitys, transaction, finance activities and phase between upper shopping, trade company
A kind of new commercial operation pattern of the integrated service activity of pass.National governments, scholar, business people are according to residing for oneself
Status and to ecommerce participate in angle and degree difference, give many different definition.Ecommerce is divided into:
ABC, B2B, B2C, C2C, B2M, M2C, B2A (i.e. B2G), C2A (i.e. C2G), O2O etc..
Network marketing simultaneously is also a kind of product of ecommerce, and for network marketing, will be first before doing
Network marketing scheme is carried out, just there is the implementation for being easy to plan like that.
E-commerce platform is generally required to carry out funds transaction on a platform in the prior art, and credit also can only
Be shown on single transaction platform, more closure, the level of informatization is not high, once and the information of transaction platform let out
Dew, coverage will be extremely wide.
The content of the invention
In view of this, the present invention proposes the method for commerce that big data is calculated in a kind of e-commerce platform, and it includes as follows
Step:
S1, the multiple region trade centers being pre-configured with e-commerce platform;Region trade center is used for the region
Interior account book is verified, recorded;Credible trading server is configured, credible trading server is used for what region trade center was recorded
Transaction Information is recorded;
S2, according to geographical position by under the node distribution in e-commerce platform to corresponding region trade center;
S3, this node are signed a numeral to preceding once transaction and next node by the private key of this node itself and signed
Name, regard the public key of next node as recipient address;And the digital signature is attached to the end of this transaction, it is fabricated to
Schedule of dealing;
S4, this node broadcast schedule of dealing to other nodes in the corresponding region of this node, in the corresponding area of this node
The node of each in domain brings Transaction Information in the schedule of dealing received in one block into;One's respective area trade center will merchandise
Transaction Information recorded in transaction account books all in one's respective area in inventory;
S5, each node seeks a numerical value by making repeated attempts in the corresponding region of this node so that the numerical value, area
In block chain 256 can be calculated after the hash values of last block and the part of schedule of dealing three feeding SHA256 algorithms
Hashed value, and disclosure satisfy that in the hashed value of 256 that first 10 are that 10 after 1, first 10 are 0;
S6, when a certain node finds the numerical value at first in the corresponding region of this node, this finds the section of the numerical value at first
All lid timestamps to the corresponding regional broadcast block of this node are put, and by other nodes of the corresponding region of this node, area
Domain trade center verification;In the correctness of other node checks of the corresponding region of this node block book keeping operation, in other node cores
The correctness recorded to the block is carried out final true by rear by the corresponding region trade center of the node for finding the numerical value at first
Recognize, form the block chain of legal record;
Periodically the unidirectional Transaction Information for recording one's respective area trade center is synchronized to credible transaction clothes for S7, region trade center
Business device.
The method of commerce that big data is calculated in e-commerce platform of the present invention,
Information includes version number in block chain in the step S5, for representing software and agreement relevant release note;
The cryptographic Hash of father's block head in father's block cryptographic Hash, block chain father's block chain for representing reference, by each
Father's block cryptographic Hash joins end to end to form block chain in block;
Merkle roots, by the cryptographic Hash of All Activity in block main body, Hash calculation comes out two-by-two step by step, for school
Test whether a transaction exists in the block;
Timestamp, the time for recording block generation;
Random number, the value of the answer for recording block dependency number topic;
Region affiliation value, the area information for marked region trade center.
The present invention also provides the transaction system that big data is calculated in a kind of e-commerce platform, and it includes such as lower unit:
Center configuration unit, for the multiple region trade centers being pre-configured with e-commerce platform;In the transaction of region
The heart is used to verify account book in the region, record;Credible trading server is configured, credible trading server is used for region
The Transaction Information of trade center record is recorded;
Allocation unit, used in the node distribution in e-commerce platform to corresponding region to be merchandised according to geographical position
Under the heart;
Schedule of dealing production unit, for once being merchandised and next to preceding by the private key of this node itself by this node
Individual node signs a digital signature, regard the public key of next node as recipient address;And be attached to the digital signature
The end of this transaction, is fabricated to schedule of dealing;
Information recording unit, for being broadcasted schedule of dealing to other sections in the corresponding region of this node by this node
Point, each node brings Transaction Information in the schedule of dealing received in one block into the corresponding region of this node;
One's respective area trade center recorded Transaction Information in schedule of dealing in transaction account books all in one's respective area;
Hash computing units, in the corresponding region of this node each node seek a number by making repeated attempts
Value so that the hash values of last block and the part of schedule of dealing three are sent into after SHA256 algorithms in the numerical value, block chain
The hashed value of 256 can be calculated, and disclosure satisfy that in the hashed value of 256 that first 10 are 10 after 1, first 10
It is 0;
Authentication unit, for when a certain node finds the numerical value at first in the corresponding region of this node, this to find at first
All lid timestamps from the node of the numerical value to the corresponding regional broadcast block of this node, and by the corresponding region of this node its
His node, the verification of region trade center;In the correctness of other node checks of the corresponding region of this node block book keeping operation, at it
The correctness of his node checks block record is entered by rear by the corresponding region trade center of the node for finding the numerical value at first
The final block chain for confirming, forming legal record of row;
Transaction record unit, for being believed by the periodically unidirectional transaction for recording one's respective area trade center of region trade center
Breath is synchronized to credible trading server.
In the transaction system that big data is calculated in e-commerce platform of the present invention,
Information includes version number in block chain in the step S5, for representing software and agreement relevant release note;
The cryptographic Hash of father's block head in father's block cryptographic Hash, block chain father's block chain for representing reference, by each
Father's block cryptographic Hash joins end to end to form block chain in block;
Merkle roots, by the cryptographic Hash of All Activity in block main body, Hash calculation comes out two-by-two step by step, for school
Test whether a transaction exists in the block;
Timestamp, the time for recording block generation;
Random number, the value of the answer for recording block dependency number topic;
Region affiliation value, the area information for marked region trade center.
Big data is calculated in the e-commerce platform that the present invention is provided method of commerce and system, relative to prior art,
Block chain technology can be made full use of so that the transaction of e-commerce platform is safer.And to existing block chain technology
It is improved, introduces region trade center concept, it is to avoid the delay that the whole network node is confirmed.
Brief description of the drawings
Fig. 1 be the embodiment of the present invention e-commerce platform in big data calculate transaction system structured flowchart.
Embodiment
The method of commerce that big data is calculated in a kind of e-commerce platform of the embodiment of the present invention one, it comprises the following steps:
S1, the multiple region trade centers being pre-configured with e-commerce platform;Region trade center is used for the region
Interior account book is verified, recorded;Credible trading server is configured, credible trading server is used for what region trade center was recorded
Transaction Information is recorded;
S2, according to geographical position by under the node distribution in e-commerce platform to corresponding region trade center;
S3, this node are signed a numeral to preceding once transaction and next node by the private key of this node itself and signed
Name, regard the public key of next node as recipient address;And the digital signature is attached to the end of this transaction, it is fabricated to
Schedule of dealing;
S4, this node broadcast schedule of dealing to other nodes in the corresponding region of this node, in the corresponding area of this node
The node of each in domain brings Transaction Information in the schedule of dealing received in one block into;One's respective area trade center will merchandise
Transaction Information recorded in transaction account books all in one's respective area in inventory;
S5, each node seeks a numerical value by making repeated attempts in the corresponding region of this node so that the numerical value, area
In block chain 256 can be calculated after the hash values of last block and the part of schedule of dealing three feeding SHA256 algorithms
Hashed value, and disclosure satisfy that in the hashed value of 256 that first 10 are that 10 after 1, first 10 are 0;
S6, when a certain node finds the numerical value at first in the corresponding region of this node, this finds the section of the numerical value at first
All lid timestamps to the corresponding regional broadcast block of this node are put, and by other nodes of the corresponding region of this node, area
Domain trade center verification;In the correctness of other node checks of the corresponding region of this node block book keeping operation, in other node cores
The correctness recorded to the block is carried out final true by rear by the corresponding region trade center of the node for finding the numerical value at first
Recognize, form the block chain of legal record;
Periodically the unidirectional Transaction Information for recording one's respective area trade center is synchronized to credible transaction clothes for S7, region trade center
Business device.
The method of commerce that big data is calculated in e-commerce platform of the present invention,
Information includes version number in block chain in the step S5, for representing software and agreement relevant release note;
The cryptographic Hash of father's block head in father's block cryptographic Hash, block chain father's block chain for representing reference, by each
Father's block cryptographic Hash joins end to end to form block chain in block;
Merkle roots, by the cryptographic Hash of All Activity in block main body, Hash calculation comes out two-by-two step by step, for school
Test whether a transaction exists in the block;
Timestamp, the time for recording block generation;
Random number, the value of the answer for recording block dependency number topic;
Region affiliation value, the area information for marked region trade center.
As shown in figure 1, the present invention also provides the transaction system that big data is calculated in a kind of e-commerce platform, it is included such as
Lower unit:
Center configuration unit, for the multiple region trade centers being pre-configured with e-commerce platform;In the transaction of region
The heart is used to verify account book in the region, record;Credible trading server is configured, credible trading server is used for region
The Transaction Information of trade center record is recorded;
Allocation unit, used in the node distribution in e-commerce platform to corresponding region to be merchandised according to geographical position
Under the heart;
Schedule of dealing production unit, for once being merchandised and next to preceding by the private key of this node itself by this node
Individual node signs a digital signature, regard the public key of next node as recipient address;And be attached to the digital signature
The end of this transaction, is fabricated to schedule of dealing;
Information recording unit, for being broadcasted schedule of dealing to other sections in the corresponding region of this node by this node
Point, each node brings Transaction Information in the schedule of dealing received in one block into the corresponding region of this node;
One's respective area trade center recorded Transaction Information in schedule of dealing in transaction account books all in one's respective area;
Hash computing units, in the corresponding region of this node each node seek a number by making repeated attempts
Value so that the hash values of last block and the part of schedule of dealing three are sent into after SHA256 algorithms in the numerical value, block chain
The hashed value of 256 can be calculated, and disclosure satisfy that in the hashed value of 256 that first 10 are 10 after 1, first 10
It is 0;
Authentication unit, for when a certain node finds the numerical value at first in the corresponding region of this node, this to find at first
All lid timestamps from the node of the numerical value to the corresponding regional broadcast block of this node, and by the corresponding region of this node its
His node, the verification of region trade center;In the correctness of other node checks of the corresponding region of this node block book keeping operation, at it
The correctness of his node checks block record is entered by rear by the corresponding region trade center of the node for finding the numerical value at first
The final block chain for confirming, forming legal record of row;
Transaction record unit, for being believed by the periodically unidirectional transaction for recording one's respective area trade center of region trade center
Breath is synchronized to credible trading server.
In the transaction system that big data is calculated in e-commerce platform of the present invention,
Information includes version number in block chain in the step S5, for representing software and agreement relevant release note;
The cryptographic Hash of father's block head in father's block cryptographic Hash, block chain father's block chain for representing reference, by each
Father's block cryptographic Hash joins end to end to form block chain in block;
Merkle roots, by the cryptographic Hash of All Activity in block main body, Hash calculation comes out two-by-two step by step, for school
Test whether a transaction exists in the block;
Timestamp, the time for recording block generation;
Random number, the value of the answer for recording block dependency number topic;
Region affiliation value, the area information for marked region trade center.
Big data is calculated in the e-commerce platform that the present invention is provided method of commerce and system, relative to prior art,
Block chain technology can be made full use of so that the transaction of e-commerce platform is safer.And to existing block chain technology
It is improved, introduces region trade center concept, it is to avoid the delay that the whole network node is confirmed.
Hardware, computing device can be directly used with reference to the method or algorithm that the embodiments described herein is described
Software module, or the two combination are implemented.Software module can be placed in random access memory, internal memory, read-only storage, electricity can
Well known in programming ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In the storage medium of any other forms.
It is understood that for the person of ordinary skill of the art, can be done with technique according to the invention design
Go out other various corresponding changes and deformation, and all these changes and deformation should all belong to the protection model of the claims in the present invention
Enclose.