Electronic transaction system and method using a blockchain to store transaction records
20200051071 ยท 2020-02-13
Inventors
Cpc classification
H04L2209/56
ELECTRICITY
H04L9/3239
ELECTRICITY
G06Q20/3678
PHYSICS
H04L9/0637
ELECTRICITY
International classification
G06Q20/06
PHYSICS
H04L9/06
ELECTRICITY
Abstract
The present invention is related to an electronic transaction system using a blockchain to store transaction records. The electronic transaction system includes a computing device having a verification module, a processing module and a broadcasting module, and the blockchain includes a plurality of user nodes connecting to the computing device. The verification module is configured to generate notification information according to a transaction event, and the notification information is transmitted to a first and second user nodes. The processing module is configured to generate a first and second transaction currency values, the sum of which is zero, after the verification module receives the verification information from the first and second user nodes. The broadcasting module is configured to record transaction information associated with the transferring of the first and second transaction currency values in a data block, and to broadcast the data block to each of user nodes.
Claims
1. An electronic transaction system using a blockchain to store transaction records, the electronic transaction system comprising a computing device, and the blockchain comprising a plurality of user nodes connecting to the computing device by a peer-to-peer network, the plurality of user nodes having at least a first and second user nodes that correspond to a first and second user devices, respectively, wherein the computing device comprises: a verification module configured to generate two notification information that correspond to each other according to a transaction event, and are transmitted to the first and second user devices, respectively, and the verification module receives verification information verified and returned by a first and second users through the first and second user devices, respectively, and each notification information includes a transaction value; a processing module configured to generate a first and second transaction currency values according to the transaction value after the verification module receives the verification information, wherein the sum of the first and second transaction currency values is zero; and a broadcasting module configured to record a transaction information associated with the transferring of the first and second transaction currency values to the first and second users, respectively, in a data block, and to broadcast the data block to each of user nodes.
2. The electronic transaction system according to claim 1, wherein the first transaction currency value is a positive transaction currency value, and the second transaction currency value is a negative transaction currency value.
3. The electronic transaction system according to claim 1, wherein the first user node includes a first private key and a first public key, and the second user node includes a second private key and a second public key, and the verification information returned by the first user is encrypted and certified by the first private key and the verification information returned by the second user is encrypted and certified by the second private key, the broadcasting module stops recording the transaction information associated with the transferring of the first and second transaction currency values to the first and second users, respectively in a data block, when a sum of the first transaction currency value and a balance value of a first transaction account obtained from the blockchain by the first public key is negative, or when a sum of the second transaction currency value and a balance value of a second transaction account obtained from the blockchain by the second public key is negative.
4. The electronic transaction system according to claim 1, further comprising a backup module configured to receive a preset information that is encrypted and certified by a first biological feature information from the first user node, and the broadcasting module writes the preset information into a further data block, and broadcasts the further data block to each of the user nodes.
5. The electronic transaction system according to claim 4, wherein the preset information comprises a private key replacing assignment command configured to provide a first backup private key and a first backup transaction account after being certified by the first biological feature information, and a path linking command configured to transfer a zeroing transaction currency value and a corresponding initializing transaction currency value to the first transaction account and the first backup transaction account, respectively, and the sum of the zeroing transaction currency value and a balance value of the first transaction account obtained from the blockchain by the first public key is zero, and the sum of the zeroing transaction currency value and the initializing transaction currency value is zero.
6. An electronic transaction method using a blockchain to store transaction records, comprising the steps of: providing a computing device having a verification module, a processing module and a broadcasting module, wherein the blockchain comprises a plurality of user nodes connecting to the computing device by a peer-to-peer network, and the plurality of user nodes having at least a first and second user nodes that correspond to a first and second user devices, respectively; generating two notification information that correspond to each other according to a transaction event by means of the verification module, the two notification information are transmitted to the first and second user devices, respectively, and each notification information includes a transaction value; receiving the verification information verified and returned by the first and second users through the first and second user devices by means of the verification module; generating a first and second transaction currency values according to the transaction value by means of the processing module after receiving the verification information, wherein the sum of the first and second transaction currency values is zero; and recording a transaction information associated with the transferring of the first and second transaction currency values to the first and second users, respectively, in a data block and broadcasting the data block to each of the user nodes by means of the broadcasting module.
7. The electronic transaction method according to claim 6, wherein the first transaction currency value is a positive transaction currency value, and the second transaction currency value is a negative transaction currency value.
8. The electronic transaction method according to claim 6, wherein the first user node includes a first private key and a first public key, and the second user node includes a second private key and a second public key, and the electronic transaction method further comprising: using the first private key to encrypt and certify the verification information returned by the first user; using the second private key to encrypt and certify the verification information returned by the second user; and stop recording the transaction information associated with the transferring of the first and second transaction currency values to the first and second users, respectively, in a data block by the broadcasting module, when a sum of the first transaction currency value and a balance value of a first transaction account obtained from the blockchain by the first public key, is negative, or when a sum of the second transaction currency value and a balance value of a second transaction account obtained from the blockchain by the second public key is negative.
9. The electronic transaction method according to claim 8, further comprising: receiving a preset information that is encrypted and certified by a first biological feature information from the first user node; and writing the preset information in a further data block, and broadcasting the further data block to each of the user nodes by the broadcasting module.
9. The electronic transaction method according to claim 9, wherein the preset information comprises a private key replacing assignment command configured to provide a first backup private key and a first backup transaction account after being certified by the first biological feature information, and a path linking command configured to transfer a zeroing transaction currency value and a corresponding initializing transaction currency value to the first transaction account and the first backup transaction account, respectively, and the sum of the zeroing transaction currency value and a balance value of the first transaction account obtained from the blockchain by the first public key is zero, and the sum of the zeroing transaction currency value and the initializing transaction currency value is zero.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
DETAILED DESCRIPTION
[0078] The present invention is related to an electronic transaction system and an electronic transaction method for a blockchain adapted to store transaction records. In the descriptions, similar elements will be denoted by the same reference numerals. Moreover, the drawings of the present invention are only schematic illustrations and are not necessarily drawn to scale, and may not show all details therein.
[0079] Referring to
[0080] The computing device 100 includes a verification module 110, a processing module 120 and a broadcasting module 130. The verification module 110 is configured to verify whether a transaction event between the users is authorized and agreed upon by all. More particularly, the verification module 110 may generate two pieces of notification information that correspond to each other according to a transaction event associated with the first and second users. The two pieces of notification information are transmitted to the first and second user nodes 211 and 212, respectively. Each piece of notification information includes a transaction value. For example, the notification information transmitted to the first user node 211 may contain the information about the transaction value that the first user has gained or has to pay in this transaction event, or even contain the information of other users involved in this transaction if necessary. Similarly, the notification information transmitted to the second user node 212 may contain the information about the transaction value that the second user has gained or has to pay in this transaction event. On the other hand, the verification module 110 will receive from the first and second user nodes 211, 212 the first and second verification information sent by the first and second users, respectively, confirming on the transaction values gained or to pay as stated in the notification information.
[0081] In a further embodiment of the present invention, the first user node includes a first private key and a paired first public key, and the second user node includes a second private key and a paired second public key. The first and second private keys are directed to private information for the first and second users respectively, and are used for verifying the user's identities to access the corresponding transaction accounts. The first and second public keys are directed to public information. However, the first verification information and the second verification information, that are respectively verified and returned from the first user and the second user through the first and second user devices, are respectively encrypted by the first user's first private key and the second user's second private key, in order to further verify that the first and second verification information have been authorized by the first and second users respectively, and that the transaction event involved is conducted based on mutual agreement between the first and second users.
[0082] Referring again to
[0083]
[0084] According to one embodiment of the present invention, when the sum of the balance value of the first transaction account and the first transaction currency value (acquired by the processing module 120 from the blockchain through the first public key) is negative, or when the sum of the balance value of a second transaction account and the second transaction currency value (acquired from the blockchain by the second public key) is negative, the broadcasting module will cease to record the transaction information regarding the transfer of the first and second transaction currency values to the first and second users respectively in a data block. In other words, when the balance in the first transaction account of the first user or the balance in the second transaction account of the second user is insufficient to pay in full the transaction currency value needed for transfer, the processing module 120 will automatically cease all subsequent transactions.
[0085] In this embodiment, when the processing module 120 confirms that the transaction event is mutually agreed upon by the first and second users, and the balance values of the first and second transaction accounts are sufficient to pay the transaction currency value to be transferred, the broadcasting module 130 will record the transaction information regarding the transfer of the first and second transaction currency values to the first and second users respectively in a data block. The broadcasting module will then broadcast the data block into each of user nodes of the blockchain.
[0086] Referring to
[0087] in particular, the preset information includes a private key replacing assignment command and a path linking command. The private key replacing assignment command is intended to provide, after the biological feature information of the first user has been certified, a first backup private key to replace the first private key, and a first backup transaction account to replace the first transaction account, thereby renders the first user may access his transaction information. The path linking command is configured to transfer a zeroing transaction currency value and a paired initializing transaction currency value to the first transaction account and the first backup transaction account, respectively, and the transaction information regarding this transfer is recorded into a further data block, which is then broadcasted to each of the user nodes of the blockchain.
[0088] Moreover,
[0089] As such, after the first transaction account receives the preset, zeroing transaction currency value, the balance value of the first transaction account will become zero directly. On the other hand, as the transaction value first received by the first backup transaction account is the initializing transaction currency value, the first backup transaction account can effectively inherit the cumulative transaction values of the first transaction account.
[0090] With the aid of the backup module 140 as mentioned above, when a user loses his/her private key, he/she can activate the private key replacing assignment command and path linking command through the preset biological feature information, so as to generate a backup transaction account to have access to the transaction account associated with the private key which has been lost. In this manner, the existing transaction records of the first backup transaction account can effectively trace back to the first transaction record of the first transaction account. The rights of the user is thereby protected. Although the above embodiments are illustrated and explained for the case of the first user, one should appreciate that the embodiment may also be adapted for the case of the second user.
[0091] In a further embodiment of the present invention, when the user loses his private key, the private key replacing assignment command and the path linking command can be activated through the aid of the preset biological feature information. The backup module 140 may then generate a transaction record associated black coin and a transaction record associated white coin that are transmitted to the first transaction account and the first backup transaction account, respectively, in order to freeze the transactions of the first transaction account, and to enable the first backup account, in the course of calculating the balance value, to trace back to the first transaction record of the first transaction account without involving any transfer of the assets in between the accounts. As such, the user may inherit the rights to the assets and the liability obligation of the first transaction account through the first backup transaction account.
[0092] Referring to
[0093] Referring to
[0094] Secondly, the electronic transaction method 2000 comprises a transaction currency generating step S2200. The transaction currency generating step S2200 generates a first and second transaction currency values according to the corresponding transaction value of the transaction event. More specifically, when the transaction verifying step S2200 is applied onto the above electronic transaction system 1000, after the verification module 110 receives the first and second verification information from the first and second users respectively, the first and second transaction currency values are generated according to the transaction value. The sum of the first and second transaction currency values is zero. For instance, the first transaction currency value is a positive transaction currency value, and the second transaction currency value is a negative transaction currency value. Moreover, in this step, the first and second verification information that are returned from the first and second users, are respectively encrypted and certified by the first and second private keys.
[0095] Moreover, the electronic transaction method 2000 comprises a transaction information broadcasting step S2300, in which the transaction information that the sum of the transaction currency values is zero are sent to the user's account and broadcasted to the blockchain. More particularly, when the transaction information broadcasting step S2300 is applied onto the above electronic transaction system 1000, the transaction information about the transfer of the first and second transaction currency values to the first and second users is recorded in a data block, and then the data block is broadcasted to each of the user nodes.
[0096] Further, in the transaction information broadcasting step S2300, when the sum of the balance value of a first transaction account and a first transaction currency value (acquired from the blockchain by the first public key) is negative, or when the sum of the balance value of a second transaction account and a second transaction currency value (acquired from the blockchain by the second public key) is negative, the broadcasting module 130 will cease to record the transaction information regarding the transfer of the first and second transaction currency values to the first and second users, respectively, in a data block. As such, when the balance value in the first transaction account of the first user or the balance value in the second transaction account of the second user is insufficient to pay in full the transaction currency value needed for transfer, the subsequent transactions will be stopped.
[0097] Please refer to
[0098] In this embodiment, the preset information may further comprise a private key replacing assignment command and a path linking command. However, as the function and the effect of the private key replacing assignment command and the path linking command of the electronic transaction method 200 are similar to those of the private key replacing assignment command and the path linking command of the electronic transaction system 1000 in the above embodiments, the descriptions regarding the private key replacing assignment command and path linking command are omitted.
[0099]
[0100] However, when the user loses his/her original private key, he/she can protect and preserve his/her rights by means of the linking approval mechanism which the user has previously encrypted. In particular, as shown in
[0101] Given the above, through the transmission and linkage of the transaction records associated with the black and white coins, the user's existing account can be frozen, and the calculation of the balance value of the user's backup account can trace back to the first transaction record in the user's existing account. In other words, the user may use the backup transaction account to inherit the assets of existing transaction account based on the transaction record associated with black and white coins without having to transfer any existing asset.
[0102] The above embodiment is only for convenience of illustration and is merely exemplary. The scope of rights claimed by the present invention shall be subject to the scope of the application for patent, and not limited to the above embodiment.