CN109767220A - Method of commerce based on block chain and the transaction system based on block chain - Google Patents

Method of commerce based on block chain and the transaction system based on block chain Download PDF

Info

Publication number
CN109767220A
CN109767220A CN201910036060.1A CN201910036060A CN109767220A CN 109767220 A CN109767220 A CN 109767220A CN 201910036060 A CN201910036060 A CN 201910036060A CN 109767220 A CN109767220 A CN 109767220A
Authority
CN
China
Prior art keywords
node
block chain
transaction
key
oneself
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910036060.1A
Other languages
Chinese (zh)
Other versions
CN109767220B (en
Inventor
田新雪
肖征荣
马书惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910036060.1A priority Critical patent/CN109767220B/en
Publication of CN109767220A publication Critical patent/CN109767220A/en
Application granted granted Critical
Publication of CN109767220B publication Critical patent/CN109767220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention belongs to block chain technical fields, are related to the method for commerce based on block chain and the transaction system based on block chain.This method comprises: each node will be broadcast in block chain after oneself block chain mark and private key signature of the public key using oneself;Certain transaction node initiates a transaction, using the cryptographic Hash of the cipher key calculation transaction, and will be broadcast in block chain after transaction message and the private key signature of the first cryptographic Hash using oneself;Other nodes use the cryptographic Hash for calculating the transaction again with the shared session key of transaction node, it is whether identical as cryptographic Hash again to verify first cryptographic Hash, and will be broadcast in block chain after private key signature of the verification result using oneself;Accounting nodes within the scope of the preset time threshold that transaction node initiates transaction, statistical testing of business cycles result by whether accumulated quantity, according to verification result be by accumulated quantity build a consensus mechanism.The efficiency of transmission of block chain is greatly improved in the size of its communications burden that can reduce block chain and block.

Description

Method of commerce based on block chain and the transaction system based on block chain
Technical field
The invention belongs to block chain technical fields, and in particular to the method for commerce based on block chain and the friendship based on block chain Easy system.
Background technique
The basic thought of block chain (Blockchain) is: by the public account book established on one group of internet, by network In all user book keeping operation and core account on account book jointly, come guarantee information authenticity and can not tamper.As its name suggests, " block " chain is because the structure of its storing data is by " memory block " forms a chain, each block one by one on network In include information interchange data whole in network in certain time.As time goes by, this chain can constantly increase.Block chain It is substantially the database of a decentralization.For narrow sense, block chain is one kind sequentially in time by data block with suitable A kind of linked data structure that the connected mode of sequence is combined into, and can not distorting of being guaranteed in a manner of cryptography and can not forge Distributed account book.Broadly, block chain technology be verified using block linked data structure with storing data, utilize distribution Node know together algorithm generate and more new data, guarantee in the way of cryptography data transmission and access safety, using by The intelligent contract of automatized script code composition is programmed and the completely new distributed basis framework of one kind of operation data and is calculated Normal form.
Currently, block chain generally fights for book keeping operation power in such a way that miner digs mine, this is being currently most fair mode.Mine Work is to obtain the continuous investment resource of digging mine reward to carry out digging mine, although this mechanism guarantees the peace of block chain to a certain extent Full property and sustainable development, but the resource for investment of staying away from work without leave at the same time is more and more, and it is more next to expend a large amount of energy investment income ratio It is lower.Moreover, a large amount of methods for calculating power to fight for book keeping operation power of this consuming, due to current block chain public key and signature length too It is long, it will increase the communications burden of block chain and the size of block, greatly reduce the efficiency of transmission of block chain.
Summary of the invention
It is a kind of based on block chain the technical problem to be solved by the present invention is to provide for above-mentioned deficiency in the prior art Method of commerce and transaction system based on block chain reduce the communications burden of block chain and the size of block, block are greatly improved The efficiency of transmission of chain.
Solving technical solution used by present invention problem is the method for commerce based on block chain comprising step It is rapid:
Each node will be broadcast in the block chain after oneself block chain mark and private key signature of the public key using oneself;
Certain transaction node initiates a transaction, using the cryptographic Hash of the cipher key calculation transaction, and by transaction message and is somebody's turn to do It is broadcast in the block chain after first private key signature of the cryptographic Hash using oneself;
Other nodes use the cryptographic Hash for calculating the transaction again with the shared session key of the transaction node, verifying Whether first cryptographic Hash and cryptographic Hash again are identical, and will be broadcast to the block after private key signature of the verification result using oneself In chain;
It is logical to count the verification result within the scope of the preset time threshold that the transaction node initiates transaction for accounting nodes Accumulated quantity whether mistake, and according to the verification result be by accumulated quantity build a consensus mechanism.
Preferably, before certain transaction node initiates a transaction, also there is step:
Any pair of node in the block chain carries out key exchange by way of non-block chain network, establishes this to section Between point and this is only limitted to the shared session key between node;
Include:
First node is sent in the block chain carries out communication request with second node, uses the public affairs of the second node Key encryption obtains first and shakes hands key;
It include the block chain mark of the second node and the non-block of the first node to block chain broadcast The broadcast message that the source identification of chain, block chain mark and public key, described first shake hands key, described in the broadcast message use The private key of first node is signed;
The second node receives the broadcast message of the first node, according to the non-area of the first node The source identification of block chain is sent by the corresponding non-block chain network, Xiang Suoshu first node using the first node Second after public key encryption shakes hands key;
The first node is received described second by way of the non-block chain network and shaken hands key, using oneself The described second key of shaking hands is decrypted in private key;
The second node is received described first by way of the block chain network and shaken hands key, using the private of oneself The described first key of shaking hands is decrypted in key;
The first node is shaken hands key according to described second, according to prespecified algorithm obtain the first node and Between the second node and this is only limitted to the first session key between node;
And the second node is shaken hands key according to described first, obtains described first according to prespecified algorithm Between node and the second node and this is only limitted to the second session key between node.
Preferably, the source identification of the non-block chain include the corresponding terminal of the first node phone number, In the IP address in INTERNET network, at least one in email address;
Correspondingly, the mode of the non-block chain network includes sending short message by mobile switch net or dialing voice electricity The mode of words, by way of IP address P2P is sent, email address send E-mail address by way of.
Preferably, initiate a transaction in certain transaction node, using the cipher key calculation transaction cryptographic Hash the step of In,
The transaction node uses the cryptographic Hash of oneself and the shared session-key computation transaction of other nodes;
Alternatively, the cryptographic Hash of the transaction node using the cipher key calculation transaction generated at random.
Preferably, according to the verification result be by accumulated quantity build a consensus mechanism the step of in, comprising:
When the verification result be by accumulated quantity reach default common recognition threshold percentage when, by the transaction message and All Message Records being verified within the scope of the preset time threshold are in block chain account book;
Otherwise, the transaction message is recorded in block chain account book by refusal.
A kind of transaction system based on block chain comprising broadcast module, transaction verification module, is total to transaction computing module Module is established in knowledge, in which:
The broadcast module is configured for the private key signature that oneself block chain mark and public key are used oneself by each node After be broadcast in the block chain;
The transaction computing module is configured for certain transaction node and initiates a transaction, using the cipher key calculation transaction Cryptographic Hash, and transaction message and the first cryptographic Hash are broadcast to using after oneself private key signature by the broadcast module In the block chain;
The transaction verification module is configured for other nodes and uses with the shared session key of the transaction node again It is whether identical as cryptographic Hash again to verify first cryptographic Hash, and verification result is used oneself for the cryptographic Hash for calculating the transaction Private key signature after be broadcast in the block chain by the broadcast module;
The common recognition establishes module, is configured for the preset time threshold that accounting nodes initiate transaction in the transaction node In range, count the verification result by whether accumulated quantity, and according to the verification result be by accumulated quantity It builds a consensus mechanism.
It preferably, further include shared Session key establishment module, the shared Session key establishment module includes first Encryption unit, the second encryption unit, the first decryption unit, the second decryption unit, the first session password unit, the second session password Unit, in which:
First encryption unit, is configured to send in the block chain in first node and is communicated with second node When request, first is obtained using the public key encryption of the second node and is shaken hands key;
The broadcast module, be configured to the block chain broadcast include the second node block chain mark and The broadcast message that the source identification of the non-block chain of the first node, block chain mark and public key, described first shake hands key, The broadcast message is signed using the private key of the first node;
Second encryption unit is configured to receive the broadcast message of the first node in the second node Afterwards, pass through the corresponding non-block chain network, Xiang Suoshu according to the source identification of the non-block chain of the first node First node is sent is shaken hands key using second after the public key encryption of the first node;
First decryption unit is configured to receive institute by way of the non-block chain network in the first node It states second to shake hands after key, the described second key of shaking hands is decrypted using the private key of oneself;
Second decryption unit is configured to the second node and receives described by way of the block chain network One shakes hands after key, and the described first key of shaking hands is decrypted using the private key of oneself;
The first session password unit is configured for the first node and shakes hands key according to described second, according to pre- Algorithm as defined in elder generation obtains between the first node and the second node and is only limitted to this to the first session between node Key;
The second session password unit is configured for the second node and shakes hands key according to described first, according to pre- Algorithm as defined in elder generation obtains between the first node and the second node and is only limitted to this to the second session between node Key.
Preferably, the source identification of the non-block chain include the corresponding terminal of the first node phone number, In the IP address in INTERNET network, at least one in email address;
Correspondingly, the mode of the non-block chain network includes sending short message by mobile switch net or dialing voice electricity The mode of words, by way of IP address P2P is sent, email address send E-mail address by way of.
Preferably, in the transaction computing module,
The transaction node uses the cryptographic Hash of oneself and the shared session-key computation transaction of other nodes;
Alternatively, the cryptographic Hash of the transaction node using the cipher key calculation transaction generated at random.
Preferably, it is established in module in the common recognition,
When the verification result be by accumulated quantity reach default common recognition threshold percentage when, by the transaction message and All Message Records being verified within the scope of the preset time threshold are in block chain account book;
Otherwise, the transaction message is recorded in block chain account book by refusal.
The beneficial effects of the present invention are:
Method of commerce provided by the invention based on block chain and the transaction system based on block chain establish a kind of new Block chain know together mechanism, avoid in the prior art block chain public key and signature length it is too long, will increase network communications burden and The size of block, causing each node of block chain is the problem of real-time synchronization block chain account book needs a large amount of memory space, can pole The big efficiency of transmission for promoting block chain, reduces the memory space of each node of block chain;Moreover, non-for example, by mobile switch net etc. The mode of block chain network reaches one-to-one session key, and safety is higher, ensures the interests of both parties, promotes area The development of block chain.
Detailed description of the invention
Fig. 1 is the flow chart of the method for commerce based on block chain in the embodiment of the present invention 1;
Fig. 2 is the structural block diagram of the transaction system based on block chain in the embodiment of the present invention 1;
Fig. 3 is the flow chart of the method for commerce based on block chain in the embodiment of the present invention 2;
Fig. 4 be Fig. 3 in step S2) detail flowchart;
Fig. 5 is the structural block diagram of the transaction system based on block chain in the embodiment of the present invention 2;
Fig. 6 is the detailed block diagram that Session key establishment module is shared in Fig. 5;
In attached drawing mark:
1- broadcast module;
2- transaction computing module;
3- transaction verification module;
4- common recognition establishes module;
5- shares Session key establishment module;The first encryption unit of 51-;The second encryption unit of 52-;53- first decrypts list Member;The second decryption unit of 54-;55- the first session password unit;56- the second session password unit.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, with reference to the accompanying drawing and specific embodiment party Formula is to the present invention is based on the method for commerce of block chain and the transaction system based on block chain is described in further detail.
Embodiment 1:
As shown in Figure 1, a kind of method of commerce based on block chain provided in this embodiment includes the following steps:
Step S1): each node will be broadcast to block after oneself block chain mark and private key signature of the public key using oneself In chain;
Step S2): certain transaction node initiates a transaction, (first to calculate using the cryptographic Hash of the cipher key calculation transaction Obtained cryptographic Hash, i.e., first cryptographic Hash), and will be broadcasted after the private key signature of transaction message and the first cryptographic Hash using oneself Into block chain;
Step S3): other nodes use the cryptographic Hash for calculating the transaction again with the shared session key of transaction node (cryptographic Hash being calculated again, i.e., again cryptographic Hash), it is whether identical as cryptographic Hash again to verify first cryptographic Hash, and will test It is broadcast in block chain after demonstrate,proving private key signature of the result using oneself;
Step S4): for accounting nodes within the scope of the preset time threshold that transaction node initiates transaction, statistical testing of business cycles result is logical Accumulated quantity whether mistake, and according to verification result be by accumulated quantity build a consensus mechanism.
Correspondingly, the present embodiment also provides a kind of transaction system based on block chain, as shown in Fig. 2, the system includes wide Broadcasting module 1, transaction computing module 2, transaction verification module 3, common recognition establish module 4, in which:
Broadcast module 1, being configured for each node will be after private key signature using oneself of oneself block chain mark and public key It is broadcast in block chain;
Transaction computing module 2 is configured for certain transaction node and initiates a transaction, using the Kazakhstan of the cipher key calculation transaction Uncommon value, and block chain is broadcast to by broadcast module 1 is passed through after the private key signature of transaction message and the first cryptographic Hash using oneself In;
Transaction verification module 3 is configured for other nodes using the shared session key with transaction node and calculates this again The cryptographic Hash of transaction verifies whether first cryptographic Hash is identical as cryptographic Hash again, and verification result is used to the private key of oneself It is broadcast in block chain after signature by broadcast module 1;
Common recognition establishes module 4, is configured for accounting nodes within the scope of the preset time threshold that transaction node initiates transaction, Statistical testing of business cycles result by whether accumulated quantity, and according to verification result be by accumulated quantity build a consensus mechanism.
The present embodiment provides a kind of method of commerce based on block chain and the transaction systems based on block chain, establish a kind of new Block chain know together mechanism, avoid in the prior art block chain public key and signature length it is too long, will increase the communications burden of network With the size of block, causing each node of block chain is the status that real-time synchronization block chain account book needs a large amount of memory space, energy The efficiency of transmission of significant increase block chain reduces the memory space of each node of block chain, promotes the development of block chain.
Embodiment 2:
The node of shared session password is not established for a certain rigid new node that block chain is added or with other nodes, this Embodiment provides a kind of method of commerce based on block chain, as shown in figure 3, this method comprises the following steps:
Step S1): each node will be broadcast to block after oneself block chain mark and private key signature of the public key using oneself In chain.
In this step, when there is a new first node A to be added in block chain, which locally generates the public affairs of oneself Key and private key pair, by the way of sending broadcast message, by oneself block chain mark and public key broadcasts into block chain, The broadcast message after the private key signature of the new node using being broadcasted.
Step S2): any pair of node in block chain carries out key exchange by way of non-block chain network, and establishing should To between node and being only limitted to this to the shared session key between node.
In this step, any pair of node in block chain, such as first node A and second node B, first node A When having communication requirement with the second node B in block chain, first node A and second node B by mobile switch net or Mode under line or under chain carries out key exchange, that is to say, that possesses a pair of externally secrecy and only the between every two node The session key shared between one node A and second node B.
As shown in figure 4, any pair of node in block chain carries out key exchange by way of non-block chain network, establish This is between node and being only limitted to this specific step is as follows to the shared session key between node:
Step S21): first node is sent in block chain carries out communication request with second node, uses second node Public key encryption obtains first and shakes hands key.
In this step, the public key of second node B can inquire oneself internal real-time synchronization and be stored by first node A Block chain account book obtain, first node A is shaken hands key KEY-A using first after the public key encryption of second node B.
Step S22): it include the block chain mark of second node and the non-block chain of first node to the broadcast of block chain Source identification, block chain mark and public key, the first broadcast message for shaking hands key, broadcast message uses the private key of first node It signs.
Preferably, the source identification of non-block chain include the corresponding terminal of first node phone number, At least one of in IP address, email address in INTERNET network;Correspondingly, the mode of non-block chain network includes passing through Mobile switch net send short message or dial the mode of voice call, in such a way that IP address P2P is sent, pass through email address Send the mode of E-mail address.
In this step, first node A sends the broadcast message that communication request is carried out with second node B in block chain, In the broadcast message including second node B block chain mark, the corresponding terminal of first node A phone number (or IP address, email address of first node A in INTERNET network etc.), the block chain of first node A mark and public key, make It is shaken hands key KEY-A with first after the public key encryption of second node B, which uses the private key signature of first node A After be broadcasted.
Step S23): second node receives the broadcast message of first node, according to the source of the non-block chain of first node Mark is shaken hands by corresponding non-block chain network, to first node transmission using second after the public key encryption of first node close Key.
In this step, second node B receives the broadcast message of first node A, according to the corresponding terminal of first node A Phone number crosses the mode for sending short message or dialing voice call in mobile switch Netcom, sends and uses to first node A Second after the public key encryption of the first node A key KEY-B that shakes hands (is also possible to shake hands key KEY-B using first for second The E-mail address mode that either IP address P2P is sent is sent after the public key encryption of node A and is sent to first node A).
Step S24): first node is received second by way of non-block chain network and shaken hands key, using the private of oneself The second key of shaking hands is decrypted in key.
In this step, first node A receives the public key encryption using first node A by way of non-block chain network Second afterwards is shaken hands key KEY-B, using oneself private key by the second of the public key encryption for using oneself shake hands key KEY-B into Row decryption.Reach one-to-one session key, safety for example, by the mode of the non-block chain network such as mobile switch net It is higher, ensure the interests of both parties.
Step S25): second node is received first by way of block chain network and shaken hands key, using the private key of oneself First key of shaking hands is decrypted.
In this step, similarly, second node B receives first and shakes hands after key, using the private key of oneself will use from The key KEY-A that shakes hands of the first of oneself public key encryption is decrypted.
Step S26): first node is shaken hands key according to second, obtains first node and according to prespecified algorithm Between two nodes and this is only limitted to the first session key between node.
Step S27): second node is shaken hands key according to first, obtains first node and according to prespecified algorithm Between two nodes and this is only limitted to the second session key between node.
Step S26), step S27) implement respectively in two nodes, sequence is without limitation.In step S26), step S27) In, first node A and second node B are respectively calculated according to KEY-A and KEY-B according to prespecified algorithm, are obtained To the shared session key KEY-AB or KEY-BA of first node A and second node B.First node A to second node B first Session key, second node B have directive property to the second session key of first node A, not identical under normal conditions.In advance Defined algorithm can be such as Hash calculation etc., here without limitation.
Step S3): certain transaction node initiates a transaction, using the cryptographic Hash of the cipher key calculation transaction, and will transaction It is broadcast in block chain after message and the private key signature of the first cryptographic Hash using oneself.
In this step, transaction node uses the Hash of oneself and the shared session-key computation transaction of other nodes Value.First node A initiates a transaction to second node B, and first node A calculates this friendship using the hash algorithm with key Easy cryptographic Hash, the hash algorithm with key use each between other nodes in oneself and block chain for first node A From shared key calculate a series of cryptographic Hash of the transaction, node A is by transaction message and all cryptographic Hash one It rises and is broadcast in block chain, the broadcast message using being broadcasted again after the private key signature of first node A.Wherein, cryptographic Hash is total Number is that block chain present node sum subtracts 1.
Here it will be understood that first node A is not necessarily required to choose a unique key KEY-A for calculating transaction The cryptographic Hash of message can generate key at random every time, using the cryptographic Hash of the cipher key calculation transaction generated at random, in this way The safety and anti-cracking of communication and transaction are stronger.
Step S4): other nodes use the cryptographic Hash for calculating the transaction again with the shared session key of transaction node, It is whether identical as cryptographic Hash again to verify first cryptographic Hash, and block will be broadcast to after private key signature of the verification result using oneself In chain.
In this step, other nodes (i.e. verifying node C) in block chain receive the broadcast message of first node A transmission Afterwards, the cryptographic Hash of the transaction is recalculated using the shared key of oneself and first node A.If the Hash being calculated It is worth identical as the cryptographic Hash in the broadcast message received, then is verified.The verifying node C is incited somebody to action after the private key signature using oneself The broadcast being verified is into block chain.
Step S5): for accounting nodes within the scope of the preset time threshold that transaction node initiates transaction, statistical testing of business cycles result is logical Accumulated quantity whether mistake, and according to verification result be by accumulated quantity build a consensus mechanism.
Preferably, according to verification result be by accumulated quantity build a consensus mechanism when: when verification result be pass through Accumulated quantity when reaching default common recognition threshold percentage, transaction message and all verifyings within the scope of preset time threshold are led to The Message Record crossed is in block chain account book;Otherwise, transaction message is recorded in block chain account book by refusal.
In this step, preset time threshold model of the accounting nodes after first node A sends the broadcast message of the transaction In enclosing, the message being verified progress quantity is added up, when transaction verification quantity reaches default common recognition threshold percentage, is then carried out The generation of the new block of the transaction, that is to say, that block chain reaches altogether the generation of the new block that will be generated comprising the transaction Know.Accounting nodes will be verified Message Record in area within the scope of origination message related with the transaction and all time thresholds In block chain account book.
Correspondingly, the present embodiment also provides a kind of transaction system based on block chain, as shown in figure 5, the system includes wide Broadcasting module 1, shared Session key establishment module 5, transaction computing module 2, transaction verification module 3, common recognition establish module 4, in which:
Broadcast module 1, being configured for each node will be after private key signature using oneself of oneself block chain mark and public key It is broadcast in block chain;
Shared Session key establishment module 5, any pair of node being configured in block chain pass through non-block chain network Mode carries out key exchange, establishes this between node and being only limitted to this to the shared session key between node;
Transaction computing module 2 is configured for certain transaction node and initiates a transaction, using the Kazakhstan of the cipher key calculation transaction Uncommon value, and block chain is broadcast to by broadcast module 1 is passed through after the private key signature of transaction message and the first cryptographic Hash using oneself In;
Transaction verification module 3 is configured for other nodes using the shared session key with transaction node and calculates this again The cryptographic Hash of transaction verifies whether first cryptographic Hash is identical as cryptographic Hash again, and verification result is used to the private key of oneself It is broadcast in block chain after signature by broadcast module 1;
Common recognition establishes module 4, is configured for accounting nodes within the scope of the preset time threshold that transaction node initiates transaction, Statistical testing of business cycles result by whether accumulated quantity, and according to verification result be by accumulated quantity build a consensus mechanism.
Preferably, in transaction computing module 2, transaction node uses the shared session key meter of oneself and other nodes Calculate the cryptographic Hash of the transaction;Alternatively, cryptographic Hash of the transaction node using the cipher key calculation transaction generated at random.
Established in module 4 in common recognition, when verification result be by accumulated quantity reach default common recognition threshold percentage when, will Transaction message and all Message Records being verified within the scope of preset time threshold are in block chain account book;Otherwise, it refuses Transaction message is recorded in block chain account book absolutely.
As shown in fig. 6, shared Session key establishment module 5 includes the first encryption unit 51, the second encryption unit 52, first Decryption unit 53, the second decryption unit 54, the first session password unit 55, the second session password unit 56, in which:
First encryption unit 51 is configured to send in block chain in first node and second node progress communication request When, first, which is obtained, using the public key encryption of second node shakes hands key;
Broadcast module 1 is configured to broadcast the non-of block chain mark and first node including second node to block chain The broadcast message that the source identification of block chain, block chain mark and public key, first shake hands key, broadcast message use first node Private key sign;
Second encryption unit 52 is configured to after the broadcast message that second node receives first node, according to first node Non- block chain source identification by corresponding non-block chain network, send to first node and added using the public key of first node Second after close shakes hands key;
First decryption unit 53 is configured to receive second by way of non-block chain network in first node and shakes hands key Afterwards, the second key of shaking hands is decrypted using the private key of oneself;
Second decryption unit 54, is configured to second node and receives first by way of block chain network to shake hands after key, The first key of shaking hands is decrypted using the private key of oneself;
First session password unit 55 is configured for first node and shakes hands key according to second, according to prespecified calculation Method obtains between first node and second node and is only limitted to this to the first session key between node;
Second session password unit 56 is configured for second node and shakes hands key according to first, according to prespecified calculation Method obtains between first node and second node and is only limitted to this to the second session key between node.
Wherein, the source identification of non-block chain includes the phone number of the corresponding terminal of first node, in INTERNET net At least one of in IP address, email address in network;
Correspondingly, the mode of non-block chain network includes sending short message by mobile switch net or dialing voice call Mode, by way of IP address P2P is sent, email address send E-mail address by way of.
Method of commerce provided in this embodiment based on block chain and the transaction system based on block chain establish a kind of new Block chain know together mechanism, avoid in the prior art block chain public key and signature length it is too long, will increase the communications burden of network With the size of block, causing each node of block chain is the problem of real-time synchronization block chain account book needs a large amount of memory space, energy The efficiency of transmission of significant increase block chain reduces the memory space of each node of block chain;Moreover, for example, by mobile switch net etc. The mode of non-block chain network reaches one-to-one session key, and safety is higher, ensures the interests of both parties, promotes The development of block chain.
It is understood that embodiment of above is only principle to illustrate the invention and the exemplary embodiment party that uses Formula, however the present invention is not limited thereto.For those skilled in the art, spirit of the invention is not being departed from In the case where essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (10)

1. a kind of method of commerce based on block chain, which is characterized in that comprising steps of
Each node will be broadcast in the block chain after oneself block chain mark and private key signature of the public key using oneself;
Certain transaction node initiates a transaction, using the cryptographic Hash of the cipher key calculation transaction, and transaction message is first with this Cryptographic Hash is broadcast in the block chain after the private key signature using oneself;
Other nodes use the cryptographic Hash for calculating the transaction again with the shared session key of the transaction node, and verifying is first Whether cryptographic Hash is identical as cryptographic Hash again, and will be broadcast to the block chain after private key signature of the verification result using oneself In;
Accounting nodes the transaction node initiate transaction preset time threshold within the scope of, count the verification result by with No accumulated quantity, and according to the verification result be by accumulated quantity build a consensus mechanism.
2. the method for commerce according to claim 1 based on block chain, which is characterized in that initiate one in certain transaction node Before transaction, also have step: any pair of node in the block chain carries out key friendship by way of non-block chain network It changes, establishes this between node and being only limitted to this to the shared session key between node;Include:
First node is sent in the block chain carries out communication request with second node, and the public key using the second node adds It is close to obtain first and shake hands key;
It include the block chain mark of the second node and the non-block chain of the first node to block chain broadcast Source identification, block chain mark and public key, the described first broadcast message for shaking hands key, the broadcast message use described first The private key of node is signed;
The second node receives the broadcast message of the first node, according to the non-block chain of the first node Source identification pass through the corresponding non-block chain network, Xiang Suoshu first node send using the first node public key Encrypted second shakes hands key;
The first node is received described second by way of the non-block chain network and shaken hands key, using the private key of oneself Described second key of shaking hands is decrypted;
The second node is received described first by way of the block chain network and shaken hands key, using the private key pair of oneself Described first key of shaking hands is decrypted;
The first node is shaken hands key according to described second, obtains the first node and described according to prespecified algorithm Between second node and this is only limitted to the first session key between node;
And the second node is shaken hands key according to described first, obtains the first node according to prespecified algorithm Between the second node and this is only limitted to the second session key between node.
3. the method for commerce according to claim 2 based on block chain, which is characterized in that mark in the source of the non-block chain Know include the corresponding terminal of the first node phone number, in INTERNET network IP address, in email address At least one of;
Correspondingly, the mode of the non-block chain network includes sending short message by mobile switch net or dialing voice call Mode, by way of IP address P2P is sent, email address send E-mail address by way of.
4. the method for commerce according to claim 1 based on block chain, which is characterized in that initiate one in certain transaction node Transaction, using the cipher key calculation transaction cryptographic Hash the step of in,
The transaction node uses the cryptographic Hash of oneself and the shared session-key computation transaction of other nodes;
Alternatively, the cryptographic Hash of the transaction node using the cipher key calculation transaction generated at random.
5. the method for commerce according to claim 1 based on block chain, which is characterized in that according to the verification result be logical The accumulated quantity crossed build a consensus mechanism the step of in, comprising:
When the verification result be by accumulated quantity reach default common recognition threshold percentage when, by the transaction message and in institute All Message Records being verified within the scope of preset time threshold are stated in block chain account book;
Otherwise, the transaction message is recorded in block chain account book by refusal.
6. a kind of transaction system based on block chain, which is characterized in that including broadcast module, transaction computing module, transaction verification Module, common recognition establish module, in which:
The broadcast module, being configured for each node will be wide after private key signature using oneself of oneself block chain mark and public key It is multicast in the block chain;
The transaction computing module is configured for certain transaction node and initiates a transaction, using the Kazakhstan of the cipher key calculation transaction Uncommon value, and by transaction message and the first cryptographic Hash using described in being broadcast to after oneself private key signature by the broadcast module In block chain;
The transaction verification module is configured for other nodes and is calculated again using the shared session key with the transaction node The cryptographic Hash of the transaction verifies whether first cryptographic Hash is identical as cryptographic Hash again, and verification result is used to the private of oneself It is broadcast in the block chain after key signature by the broadcast module;
The common recognition establishes module, is configured for the preset time threshold range that accounting nodes initiate transaction in the transaction node It is interior, count the verification result by whether accumulated quantity, and according to the verification result be by accumulated quantity establish Common recognition mechanism.
7. the transaction system according to claim 6 based on block chain, which is characterized in that further include that shared session key is built Formwork erection block, the shared Session key establishment module include the first encryption unit, the second encryption unit, the first decryption unit, the Two decryption units, the first session password unit, the second session password unit, in which:
First encryption unit is configured to send in the block chain in first node and second node progress communication request When, first, which is obtained, using the public key encryption of the second node shakes hands key;
The broadcast module, be configured to the block chain broadcast include the second node block chain mark and it is described The broadcast message that the source identification of the non-block chain of first node, block chain mark and public key, described first shake hands key, it is described Broadcast message is signed using the private key of the first node;
Second encryption unit, is configured to after the second node receives the broadcast message of the first node, presses Pass through the corresponding non-block chain network, Xiang Suoshu first segment according to the source identification of the non-block chain of the first node Point is sent is shaken hands key using second after the public key encryption of the first node;
First decryption unit is configured to receive described by way of the non-block chain network in the first node Two shake hands after key, and the described second key of shaking hands is decrypted using the private key of oneself;
Second decryption unit, is configured to the second node and receives described first by way of the block chain network to hold After hand key, the described first key of shaking hands is decrypted using the private key of oneself;
The first session password unit is configured for the first node and shakes hands key according to described second, according to preparatory rule Fixed algorithm obtains between the first node and the second node and is only limitted to this to the first session key between node;
The second session password unit is configured for the second node and shakes hands key according to described first, according to preparatory rule Fixed algorithm obtains between the first node and the second node and is only limitted to this to the second session key between node.
8. the transaction system according to claim 7 based on block chain, which is characterized in that mark in the source of the non-block chain Know include the corresponding terminal of the first node phone number, in INTERNET network IP address, in email address At least one of;
Correspondingly, the mode of the non-block chain network includes sending short message by mobile switch net or dialing voice call Mode, by way of IP address P2P is sent, email address send E-mail address by way of.
9. the transaction system according to claim 6 based on block chain, which is characterized in that in the transaction computing module In,
The transaction node uses the cryptographic Hash of oneself and the shared session-key computation transaction of other nodes;
Alternatively, the cryptographic Hash of the transaction node using the cipher key calculation transaction generated at random.
10. the transaction system according to claim 6 based on block chain, which is characterized in that establish module in the common recognition In,
When the verification result be by accumulated quantity reach default common recognition threshold percentage when, by the transaction message and in institute All Message Records being verified within the scope of preset time threshold are stated in block chain account book;
Otherwise, the transaction message is recorded in block chain account book by refusal.
CN201910036060.1A 2019-01-15 2019-01-15 Block chain based transaction method and block chain based transaction system Active CN109767220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910036060.1A CN109767220B (en) 2019-01-15 2019-01-15 Block chain based transaction method and block chain based transaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910036060.1A CN109767220B (en) 2019-01-15 2019-01-15 Block chain based transaction method and block chain based transaction system

Publications (2)

Publication Number Publication Date
CN109767220A true CN109767220A (en) 2019-05-17
CN109767220B CN109767220B (en) 2021-02-19

Family

ID=66454065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910036060.1A Active CN109767220B (en) 2019-01-15 2019-01-15 Block chain based transaction method and block chain based transaction system

Country Status (1)

Country Link
CN (1) CN109767220B (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109919771A (en) * 2019-03-18 2019-06-21 徐雪松 A kind of hierarchical block chain network and method of commerce applied to industry internet
CN110138558A (en) * 2019-05-30 2019-08-16 全链通有限公司 Transmission method, equipment and the computer readable storage medium of session key
CN110176994A (en) * 2019-05-30 2019-08-27 全链通有限公司 Session cipher key distributing method, equipment and storage medium based on alliance's block chain
CN110213264A (en) * 2019-05-30 2019-09-06 全链通有限公司 Auth method, equipment and storage medium based on alliance's block chain
CN110213263A (en) * 2019-05-30 2019-09-06 全链通有限公司 Auth method, equipment and storage medium based on alliance's block chain
CN110213045A (en) * 2019-05-30 2019-09-06 全链通有限公司 Transmission method, equipment and the computer readable storage medium of session key
CN110430067A (en) * 2019-07-15 2019-11-08 杭州复杂美科技有限公司 For reducing method and system, equipment and the storage medium of block repeated broadcast
CN110430066A (en) * 2019-07-15 2019-11-08 杭州复杂美科技有限公司 For reducing method, equipment and the storage medium of block chain transaction repeated broadcast
CN110443610A (en) * 2019-07-15 2019-11-12 杭州复杂美科技有限公司 For reducing method and system, equipment and the storage medium of trading group repeated broadcast
CN110650097A (en) * 2019-09-20 2020-01-03 腾讯科技(深圳)有限公司 Data broadcasting method and device and computer readable storage medium
CN111327669A (en) * 2019-10-30 2020-06-23 谢卓鹏 Decentralized block chain solution method
CN111371785A (en) * 2020-03-02 2020-07-03 杭州溪塔科技有限公司 Block chain privacy transaction method and device and electronic equipment
CN111414428A (en) * 2020-04-24 2020-07-14 远光软件股份有限公司 Data merging and offsetting method based on block chain
CN111598558A (en) * 2020-05-13 2020-08-28 中国联合网络通信集团有限公司 Accounting method, accounting node server and payer node server
CN111709053A (en) * 2020-06-11 2020-09-25 中国工商银行股份有限公司 Operation method and operation device based on loose coupling transaction network
CN112073179A (en) * 2020-07-21 2020-12-11 杜晓楠 Method for changing node session key in blockchain system, computer readable medium and blockchain system
CN112102078A (en) * 2020-08-07 2020-12-18 柳州市蓝海数链科技有限公司 Block chain consensus computing method and device, computer equipment and storage medium
CN112311544A (en) * 2020-12-31 2021-02-02 飞天诚信科技股份有限公司 Method and system for communication between server and authenticator
CN112398653A (en) * 2020-10-23 2021-02-23 陕西医链区块链集团有限公司 Block chain consensus verification method
WO2021047445A1 (en) * 2019-09-12 2021-03-18 腾讯科技(深圳)有限公司 Data processing method and apparatus in blockchain network, storage medium, and computer device
CN112926972A (en) * 2019-12-05 2021-06-08 中移物联网有限公司 Information processing method based on block chain, block chain system and terminal
CN112989392A (en) * 2021-04-19 2021-06-18 河北科技大学 Battlefield situation perception method, system and terminal equipment
CN113034135A (en) * 2021-02-08 2021-06-25 中国工商银行股份有限公司 Block chain-based information processing method, apparatus, device, medium, and product
CN113127894A (en) * 2021-03-03 2021-07-16 合肥工业大学 Public opinion propagation model-based cryptocurrency network data propagation method and system
CN113128999A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Block chain privacy protection method and device
CN113240248A (en) * 2021-04-25 2021-08-10 上海和数软件有限公司 Enterprise electric energy method and system based on block chain
CN113610526A (en) * 2021-08-24 2021-11-05 上海点融信息科技有限责任公司 Data trust method and device, electronic equipment and storage medium
CN113781048A (en) * 2021-11-15 2021-12-10 环球数科集团有限公司 Transaction information verification and settlement method based on block chain
CN113904854A (en) * 2021-10-13 2022-01-07 筹远(上海)信息科技有限公司 Block chain data encryption method and device based on quotient secret algorithm
CN114666344A (en) * 2020-12-22 2022-06-24 北京八分量信息科技有限公司 Verification method of block chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120240209A1 (en) * 2004-03-30 2012-09-20 Michael Roeder Secure information distribution between nodes (network devices)
CN106385319A (en) * 2016-09-29 2017-02-08 江苏通付盾科技有限公司 Verification method for information in block chain network and verification system thereof
CN108366059A (en) * 2018-02-07 2018-08-03 迈普通信技术股份有限公司 Communication negotiation method, responder device and initiator device
CN108650227A (en) * 2018-03-30 2018-10-12 苏州科达科技股份有限公司 Handshake method based on datagram secure transfer protocol and system
CN108880789A (en) * 2018-05-23 2018-11-23 众安信息技术服务有限公司 The anti-fake source tracing method of hardware product, node device and system
CN108989022A (en) * 2018-06-08 2018-12-11 中国科学院计算技术研究所 A kind of smart item shared key method for building up and system based on block chain
CN109039997A (en) * 2017-06-12 2018-12-18 北京金山云网络技术有限公司 Key preparation method, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120240209A1 (en) * 2004-03-30 2012-09-20 Michael Roeder Secure information distribution between nodes (network devices)
CN106385319A (en) * 2016-09-29 2017-02-08 江苏通付盾科技有限公司 Verification method for information in block chain network and verification system thereof
CN109039997A (en) * 2017-06-12 2018-12-18 北京金山云网络技术有限公司 Key preparation method, apparatus and system
CN108366059A (en) * 2018-02-07 2018-08-03 迈普通信技术股份有限公司 Communication negotiation method, responder device and initiator device
CN108650227A (en) * 2018-03-30 2018-10-12 苏州科达科技股份有限公司 Handshake method based on datagram secure transfer protocol and system
CN108880789A (en) * 2018-05-23 2018-11-23 众安信息技术服务有限公司 The anti-fake source tracing method of hardware product, node device and system
CN108989022A (en) * 2018-06-08 2018-12-11 中国科学院计算技术研究所 A kind of smart item shared key method for building up and system based on block chain

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109919771B (en) * 2019-03-18 2020-04-10 徐雪松 Industrial internet transaction device applying hierarchical block chain technology
CN109919771A (en) * 2019-03-18 2019-06-21 徐雪松 A kind of hierarchical block chain network and method of commerce applied to industry internet
CN110138558A (en) * 2019-05-30 2019-08-16 全链通有限公司 Transmission method, equipment and the computer readable storage medium of session key
CN110176994A (en) * 2019-05-30 2019-08-27 全链通有限公司 Session cipher key distributing method, equipment and storage medium based on alliance's block chain
CN110213264A (en) * 2019-05-30 2019-09-06 全链通有限公司 Auth method, equipment and storage medium based on alliance's block chain
CN110213263A (en) * 2019-05-30 2019-09-06 全链通有限公司 Auth method, equipment and storage medium based on alliance's block chain
CN110213045A (en) * 2019-05-30 2019-09-06 全链通有限公司 Transmission method, equipment and the computer readable storage medium of session key
CN110138558B (en) * 2019-05-30 2021-09-10 全链通有限公司 Transmission method and device of session key and computer-readable storage medium
CN110443610A (en) * 2019-07-15 2019-11-12 杭州复杂美科技有限公司 For reducing method and system, equipment and the storage medium of trading group repeated broadcast
CN110430066A (en) * 2019-07-15 2019-11-08 杭州复杂美科技有限公司 For reducing method, equipment and the storage medium of block chain transaction repeated broadcast
CN110430066B (en) * 2019-07-15 2021-07-06 杭州复杂美科技有限公司 Method, apparatus and storage medium for reducing repeated broadcasting of blockchain transactions
CN110430067A (en) * 2019-07-15 2019-11-08 杭州复杂美科技有限公司 For reducing method and system, equipment and the storage medium of block repeated broadcast
WO2021047445A1 (en) * 2019-09-12 2021-03-18 腾讯科技(深圳)有限公司 Data processing method and apparatus in blockchain network, storage medium, and computer device
US11895242B2 (en) 2019-09-12 2024-02-06 Tencent Technology (Shenzhen) Company Limited Data processing method and apparatus in blockchain network, storage medium, and computer device
CN110650097A (en) * 2019-09-20 2020-01-03 腾讯科技(深圳)有限公司 Data broadcasting method and device and computer readable storage medium
CN111327669A (en) * 2019-10-30 2020-06-23 谢卓鹏 Decentralized block chain solution method
CN112926972A (en) * 2019-12-05 2021-06-08 中移物联网有限公司 Information processing method based on block chain, block chain system and terminal
CN112926972B (en) * 2019-12-05 2024-04-09 中移物联网有限公司 Information processing method based on block chain, block chain system and terminal
CN113128999B (en) * 2019-12-31 2024-04-12 航天信息股份有限公司 Block chain privacy protection method and device
CN113128999A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Block chain privacy protection method and device
CN111371785A (en) * 2020-03-02 2020-07-03 杭州溪塔科技有限公司 Block chain privacy transaction method and device and electronic equipment
CN111414428A (en) * 2020-04-24 2020-07-14 远光软件股份有限公司 Data merging and offsetting method based on block chain
CN111598558B (en) * 2020-05-13 2023-08-22 中国联合网络通信集团有限公司 Billing method, billing node server and payer node server
CN111598558A (en) * 2020-05-13 2020-08-28 中国联合网络通信集团有限公司 Accounting method, accounting node server and payer node server
CN111709053A (en) * 2020-06-11 2020-09-25 中国工商银行股份有限公司 Operation method and operation device based on loose coupling transaction network
CN111709053B (en) * 2020-06-11 2024-04-05 中国工商银行股份有限公司 Operation method and operation device based on loose coupling transaction network
CN112073179A (en) * 2020-07-21 2020-12-11 杜晓楠 Method for changing node session key in blockchain system, computer readable medium and blockchain system
CN112073179B (en) * 2020-07-21 2024-05-17 杜晓楠 Method for replacing node session key in blockchain system, computer readable medium and blockchain system
CN112102078A (en) * 2020-08-07 2020-12-18 柳州市蓝海数链科技有限公司 Block chain consensus computing method and device, computer equipment and storage medium
CN112102078B (en) * 2020-08-07 2024-05-21 柳州市蓝海数链科技有限公司 Block chain consensus calculation method, device, computer equipment and storage medium
CN112398653A (en) * 2020-10-23 2021-02-23 陕西医链区块链集团有限公司 Block chain consensus verification method
CN114666344A (en) * 2020-12-22 2022-06-24 北京八分量信息科技有限公司 Verification method of block chain
WO2022142717A1 (en) * 2020-12-31 2022-07-07 飞天诚信科技股份有限公司 Method and system for communication between server and authenticator
CN112311544B (en) * 2020-12-31 2021-03-16 飞天诚信科技股份有限公司 Method and system for communication between server and authenticator
CN112311544A (en) * 2020-12-31 2021-02-02 飞天诚信科技股份有限公司 Method and system for communication between server and authenticator
CN113034135A (en) * 2021-02-08 2021-06-25 中国工商银行股份有限公司 Block chain-based information processing method, apparatus, device, medium, and product
CN113127894A (en) * 2021-03-03 2021-07-16 合肥工业大学 Public opinion propagation model-based cryptocurrency network data propagation method and system
CN113127894B (en) * 2021-03-03 2022-09-30 合肥工业大学 Public opinion propagation model-based cryptocurrency network data propagation method and system
CN112989392A (en) * 2021-04-19 2021-06-18 河北科技大学 Battlefield situation perception method, system and terminal equipment
CN113240248A (en) * 2021-04-25 2021-08-10 上海和数软件有限公司 Enterprise electric energy method and system based on block chain
CN113610526A (en) * 2021-08-24 2021-11-05 上海点融信息科技有限责任公司 Data trust method and device, electronic equipment and storage medium
CN113904854B (en) * 2021-10-13 2024-01-02 筹远(上海)信息科技有限公司 Block chain data encryption method and device based on quotient algorithm
CN113904854A (en) * 2021-10-13 2022-01-07 筹远(上海)信息科技有限公司 Block chain data encryption method and device based on quotient secret algorithm
CN113781048B (en) * 2021-11-15 2022-02-22 环球数科集团有限公司 Transaction information verification and settlement method based on block chain
CN113781048A (en) * 2021-11-15 2021-12-10 环球数科集团有限公司 Transaction information verification and settlement method based on block chain

Also Published As

Publication number Publication date
CN109767220B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN109767220A (en) Method of commerce based on block chain and the transaction system based on block chain
Fan et al. Privacy-enhanced data aggregation scheme against internal attackers in smart grid
CN106357396B (en) Digital signature method and system and quantum key card
Salem et al. A charging and rewarding scheme for packet forwarding in multi-hop cellular networks
Peter et al. Efficiently outsourcing multiparty computation under multiple keys
Zhu et al. Smart: A secure multilayer credit-based incentive scheme for delay-tolerant networks
Cai et al. An incentive-compatible routing protocol for two-hop delay-tolerant networks
Mahmoud et al. Privacy-preserving power injection over a hybrid AMI/LTE smart grid network
CN102223629B (en) Distribution method of threshold keys of mobile Ad hoc network
CN108540436B (en) Communication system and communication method for realizing information encryption and decryption transmission based on quantum network
CN109691013A (en) Block chain communication method between nodes, device and storage medium, block catenary system
CN102210121A (en) Method of integrating quantum key distribution with internet key exchange protocol
CN102098318B (en) Method for performing end-to-end anonymity safety communication of hop network
CN108462573A (en) A kind of flexible quantum safety moving communication means
Xi et al. A trust management scheme based on behavior feedback for opportunistic networks
CN105493438A (en) A method and apparatus for anonymous authentication on trust in social networking
Zhang et al. Efficient and Privacy‐Aware Power Injection over AMI and Smart Grid Slice in Future 5G Networks
CN112187450B (en) Method, device, equipment and storage medium for key management communication
CN104618387A (en) Method applying SIP signaling to quantum secure communication system, integrated access quantum gateway and system
Zhu et al. Password-Authenticated Key Exchange Scheme Using Chaotic Maps towards a New Architecture in Standard Model.
Zhu et al. A secure incentive scheme for delay tolerant networks
CN109981581A (en) A kind of intelligent electric meter identity identifying method and system based on block chain
CN102185866B (en) Internet protocol (IP) telephone network-based trust model construction method
Stengele et al. ETHTID: Deployable threshold information disclosure on Ethereum
CN114021165A (en) Partial private-public key pair construction method, authentication key negotiation method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant