The method of commerce and system that big data calculates in e-commerce platform
Technical field
The present invention relates to intelligent business technical field, more particularly to the transaction of big data calculating in a kind of e-commerce platform
Method and system.
Background technology
E-commerce 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.
E-commerce typically refers in the extensive trade activity in all parts of the world, in the network environment that internet opens
Under, it is 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 between upper shopping, trade company and various commercial activitys, transaction, finance activities and phase
A kind of movable novel commercial operation pattern of integrated service of pass.National governments, scholar, business people are according to residing for oneself
Status and to e-commerce participate in angle and degree difference, give many different definition.E-commerce 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 e-commerce, and for network marketing, will be first before doing
Network marketing scheme is carried out, just there is the implementation convenient for plan like that.
E-commerce platform generally requires 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.
Invention content
In view of this, the present invention proposes the method for commerce that big data calculates in a kind of e-commerce platform comprising as follows
Step:
S1, the multiple regions trade center being pre-configured in e-commerce platform;Region trade center is used for the region
Interior account book is verified, is recorded;Credible trading server is configured, what credible trading server was used to record region trade center
Transaction Information is recorded;
S2, the node in e-commerce platform is assigned under corresponding region trade center according to geographical location;
S3, this node sign a number label by the private key of this node itself to preceding primary transaction and next node
Name, using 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
Each node brings Transaction Information in the schedule of dealing received in one block into domain;One's respective area trade center will merchandise
Transaction Information is recorded in transaction account book 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
The hash values and schedule of dealing three parts of the last one block can calculate 256 after being sent into SHA256 algorithms in block chain
Hashed value, and disclosure satisfy that in 256 hashed values that first 10 are 1,10 after 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
The timestamp that point is covered to this node corresponding regional broadcast block, and by other nodes of the corresponding region of this node, region
Trade center is checked;In the correctness of other node checks of the corresponding region of this node block book keeping operation, in other node checks
After the correctness that the block is recorded passes through, the corresponding region trade center of node by finding the numerical value at first carries out final true
Recognize, forms the block chain of legal record;
The Transaction Information that one's respective area trade center records periodically unidirectionally is synchronized to credible transaction and taken by S7, region trade center
Business device.
The method of commerce that big data calculates in e-commerce platform of the present invention,
Information includes version number in block chain in the step S5, for indicating software and agreement relevant release note;
Father's block cryptographic Hash, for indicates quote block chain father's block chain in father's block head cryptographic Hash, 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, is used 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 is used for the area information of marked region trade center.
The present invention also provides the transaction systems that big data in a kind of e-commerce platform calculates comprising such as lower unit:
Center configuration unit, the multiple regions trade center for being pre-configured in e-commerce platform;In the transaction of region
The heart is for verifying account book in the region, being recorded;Credible trading server is configured, credible trading server is used for region
The Transaction Information of trade center record is recorded;
Allocation unit, for the node in e-commerce platform to be assigned in corresponding region transaction according to geographical location
Under the heart;
Schedule of dealing production unit signs preceding primary transaction and next node for the private key by this node itself
One digital signature, using the public key of next node as recipient address;And the digital signature is attached to this transaction
End 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 Transaction Information in schedule of dealing is recorded in transaction account book 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 after the hash values and schedule of dealing three parts of the last one block are sent into SHA256 algorithms in the numerical value, block chain
256 hashed values can be calculated, and disclosure satisfy that in 256 hashed values that first 10 are 1,10 after 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
The timestamp covered 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
After the correctness that his node checks block is recorded passes through, the corresponding region trade center of node by finding the numerical value at first into
Row is final to be confirmed, the block chain of legal record is formed;
Transaction record unit, the transaction for periodically unidirectionally being recorded one's respective area trade center by region trade center are believed
Breath is synchronized to credible trading server.
In the transaction system that big data calculates in e-commerce platform of the present invention,
Information includes version number in block chain in the hash computing units, for indicating software and agreement related versions letter
Breath;
Father's block cryptographic Hash, for indicates quote block chain father's block chain in father's block head cryptographic Hash, 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, is used 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 is used for the area information of marked region trade center.
The method of commerce and system that big data calculates in e-commerce platform provided by the invention, compared with the existing technology,
It can make full use of block chain technology so that the transaction of e-commerce platform is safer.And to existing block chain technology
It is improved, introduces region trade center concept, avoid the delay that the whole network node is confirmed.
Description of the drawings
Fig. 1 be the embodiment of the present invention e-commerce platform in big data calculate transaction system structure diagram.
Specific implementation mode
The method of commerce that big data calculates in a kind of one e-commerce platform of the embodiment of the present invention comprising following steps:
S1, the multiple regions trade center being pre-configured in e-commerce platform;Region trade center is used for the region
Interior account book is verified, is recorded;Credible trading server is configured, what credible trading server was used to record region trade center
Transaction Information is recorded;
S2, the node in e-commerce platform is assigned under corresponding region trade center according to geographical location;
S3, this node sign a number label by the private key of this node itself to preceding primary transaction and next node
Name, using 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
Each node brings Transaction Information in the schedule of dealing received in one block into domain;One's respective area trade center will merchandise
Transaction Information is recorded in transaction account book 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
The hash values and schedule of dealing three parts of the last one block can calculate 256 after being sent into SHA256 algorithms in block chain
Hashed value, and disclosure satisfy that in 256 hashed values that first 10 are 1,10 after 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
The timestamp that point is covered to this node corresponding regional broadcast block, and by other nodes of the corresponding region of this node, region
Trade center is checked;In the correctness of other node checks of the corresponding region of this node block book keeping operation, in other node checks
After the correctness that the block is recorded passes through, the corresponding region trade center of node by finding the numerical value at first carries out final true
Recognize, forms the block chain of legal record;
The Transaction Information that one's respective area trade center records periodically unidirectionally is synchronized to credible transaction and taken by S7, region trade center
Business device.
The method of commerce that big data calculates in e-commerce platform of the present invention,
Information includes version number in block chain in the step S5, for indicating software and agreement relevant release note;
Father's block cryptographic Hash, for indicates quote block chain father's block chain in father's block head cryptographic Hash, 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, is used 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 is used for the area information of marked region trade center.
As shown in Figure 1, the present invention also provides the transaction systems that big data in a kind of e-commerce platform calculates comprising such as
Lower unit:
Center configuration unit, the multiple regions trade center for being pre-configured in e-commerce platform;In the transaction of region
The heart is for verifying account book in the region, being recorded;Credible trading server is configured, credible trading server is used for region
The Transaction Information of trade center record is recorded;
Allocation unit, for the node in e-commerce platform to be assigned in corresponding region transaction according to geographical location
Under the heart;
Schedule of dealing production unit signs preceding primary transaction and next node for the private key by this node itself
One digital signature, using the public key of next node as recipient address;And the digital signature is attached to this transaction
End 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 Transaction Information in schedule of dealing is recorded in transaction account book 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 after the hash values and schedule of dealing three parts of the last one block are sent into SHA256 algorithms in the numerical value, block chain
256 hashed values can be calculated, and disclosure satisfy that in 256 hashed values that first 10 are 1,10 after 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
The timestamp covered 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
After the correctness that his node checks block is recorded passes through, the corresponding region trade center of node by finding the numerical value at first into
Row is final to be confirmed, the block chain of legal record is formed;
Transaction record unit, the transaction for periodically unidirectionally being recorded one's respective area trade center by region trade center are believed
Breath is synchronized to credible trading server.
In the transaction system that big data calculates in e-commerce platform of the present invention,
Information includes version number in block chain in the hash computing units, for indicating software and agreement related versions letter
Breath;
Father's block cryptographic Hash, for indicates quote block chain father's block chain in father's block head cryptographic Hash, 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, is used 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 is used for the area information of marked region trade center.
The method of commerce and system that big data calculates in e-commerce platform provided by the invention, compared with the existing technology,
It can make full use of block chain technology so that the transaction of e-commerce platform is safer.And to existing block chain technology
It is improved, introduces region trade center concept, avoid the delay that the whole network node is confirmed.
Method described in conjunction with the examples disclosed in this document or algorithm can directly use hardware, processor to execute
The combination of software module or the two is implemented.Software module can be placed in random access memory, memory, read-only memory, 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 arbitrary other forms.
It is understood that for those of ordinary skill in the art, can be conceived with the technique according to the invention and be done
Go out various other corresponding changes and deformation, and all these changes and deformation should all belong to the protection model of the claims in the present invention
It encloses.