CN108241979B - Multi-account book transfer method based on block chain, electronic device and readable storage medium - Google Patents

Multi-account book transfer method based on block chain, electronic device and readable storage medium Download PDF

Info

Publication number
CN108241979B
CN108241979B CN201711382545.3A CN201711382545A CN108241979B CN 108241979 B CN108241979 B CN 108241979B CN 201711382545 A CN201711382545 A CN 201711382545A CN 108241979 B CN108241979 B CN 108241979B
Authority
CN
China
Prior art keywords
account
user
balance
ciphertext
account book
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.)
Active
Application number
CN201711382545.3A
Other languages
Chinese (zh)
Other versions
CN108241979A (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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201711382545.3A priority Critical patent/CN108241979B/en
Priority to PCT/CN2018/075881 priority patent/WO2019119632A1/en
Publication of CN108241979A publication Critical patent/CN108241979A/en
Application granted granted Critical
Publication of CN108241979B publication Critical patent/CN108241979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The invention relates to a multi-account book transfer method based on a block chain, an electronic device and a readable storage medium, wherein the method comprises the following steps: if a first user account of a first user under a first account book in the block chain initiates a transaction request for exchanging a preset exchange transaction share according to a preset exchange rate with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the first ciphertext is generated by encrypting the preset exchange transaction share by adopting a second preset password formula and a corresponding transaction share privacy key; calculating an exchange transaction share, an encrypted exchange transaction share and a corresponding transaction share privacy key of a second account book through a first preset exchange calculation formula and based on a preset exchange rate and a first ciphertext, and generating a second ciphertext of the second account book; and completing the transaction based on the first ciphertext and the second ciphertext. The invention can realize the multi-account book transfer operation under the condition of effectively ensuring the safety of the transaction information in the block chain technical scene.

Description

Multi-account book transfer method based on block chain, electronic device and readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a multi-account book transfer method based on a block chain, an electronic device and a readable storage medium.
Background
The blockchain technology is more and more favored by companies in the fields of finance, insurance and the like due to the characteristics of decentralization, information non-tamper and the like, and especially, the realization of transaction events (such as transfer transactions, payment transactions and the like) involving multiple parties by using the blockchain technology becomes more and more the focus of attention of people, for example, when a bank a needs to sell 100 bills to a bank B, if the transaction is carried out on the blockchain, all other nodes on the blockchain verify the transaction, and the blockchain technology has the advantages that other parties can participate in confirming the transaction accuracy together but cannot interpret (decrypt) data (also called zero knowledge detection).
In order to ensure the privacy of the transaction, it is common in the industry to employ a privacy transaction encryption/decryption algorithm in the transaction. However, existing private transaction encryption/decryption algorithms are generally limited to only operations within one ledger under a blockchain technology scenario, such as transferring x shares within one asset ledger from a first account to a second account. However, in an actual blockchain scenario, each transfer may involve two or more accounts, and such existing private transaction encryption/decryption algorithms would not be able to implement such private transactions in the blockchain scenario.
Therefore, how to realize the multi-account book transfer operation under the condition of effectively ensuring the safety of the transaction information in the block chain technical scene becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a multi-account book transfer method based on a block chain, an electronic device and a readable storage medium, and aims to realize multi-account book transfer operation in a block chain technical scene under the condition of ensuring the safety of transaction information.
In order to achieve the above object, the present invention provides a block chain-based multi-account book transfer method, which is applied to an electronic device, and the block chain-based multi-account book transfer method includes:
A. if a first user account of a first user under a first account book in a block chain initiates a transaction request with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the transaction request is a request for exchanging a preset exchange transaction share according to a preset exchange rate, and the first ciphertext is a first ciphertext generated by encrypting the preset exchange transaction share by adopting a second preset cryptographic formula and a corresponding transaction share privacy key;
B. calculating an exchange transaction share, an encrypted exchange transaction share and a corresponding transaction share privacy key of the second account book for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second account book;
C. and finishing the transaction of a first user account of the first user under the first account book and a second user account of the second user under the second account book according to a preset rule based on the first ciphertext and the second ciphertext.
Preferably, the step C includes:
receiving a first ciphertext subjected to electronic signature; after the first ciphertext subjected to electronic signature is sent to the second user by the first user, if the second user confirms a preset exchange transaction share and a preset exchange rate according to the first ciphertext, the second user performs electronic signature generation on the first ciphertext;
writing the first ciphertext subjected to the electronic signature to a shared asset account book on each node of the block chain;
and updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext, and updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext.
Preferably, the step of updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext includes:
deducting the preset exchange transaction share from the balance of the first user account of the first user under the first account book according to a first preset balance calculation formula, calculating a first new balance of the first user account of the first user under the first account book, and updating the calculated first new balance to a shared asset account book;
and adding the preset exchange transaction share in the balance of the third account of the second user under the first account book according to a second preset balance calculation formula, calculating a second new balance of the third account of the second user under the first account book, and updating the calculated second new balance to the shared asset account book.
Preferably, the step of updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext includes:
deducting the preset exchange transaction share from the balance of the second user account of the second user under the second account book according to a third preset balance calculation formula, calculating a third new balance of the second user account of the second user under the second account book, and updating the calculated third new balance to the shared asset account book;
and adding the preset exchange transaction share in the balance of the fourth account of the first user under the second account book according to a fourth preset balance calculation formula, calculating a fourth new balance of the fourth account of the first user under the second account book, and updating the calculated fourth new balance to the shared asset account book.
Preferably, the third preset balance calculation formula is further configured to add the preset exchange transaction share to the balance of the third account of the second user in the first account book, and calculate a second new balance of the third account of the second user in the first account book; or, the third preset balance calculation formula is further configured to deduct the preset exchange transaction share from the balance of the fourth account of the first user in the second account book, and calculate a fourth new balance of the fourth account of the first user in the second account book.
Preferably, the step B is replaced by the following steps:
receiving a first ciphertext and a second ciphertext after electronic signature, and writing the first ciphertext and the second ciphertext after electronic signature to a shared asset account book on each node of a block chain; the generation process of the first ciphertext and the second ciphertext after the electronic signature is as follows:
calculating, by the first user, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger; the first user sends the first ciphertext and the second ciphertext to the second user; and if the second user confirms the preset exchange transaction share and the preset exchange rate, the second user carries out electronic signature on the first ciphertext and the second ciphertext.
Furthermore, to achieve the above object, the present invention further provides an electronic device, which includes a memory, a processor, the memory storing thereon a blockchain based multi-ledger transfer system operable on the processor, the blockchain based multi-ledger transfer system when executed by the processor implementing the steps of:
if a first user account of a first user under a first account book in a block chain initiates a transaction request with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the transaction request is a request for exchanging a preset exchange transaction share according to a preset exchange rate, and the first ciphertext is a first ciphertext generated by encrypting the preset exchange transaction share by adopting a second preset cryptographic formula and a corresponding transaction share privacy key;
calculating an exchange transaction share, an encrypted exchange transaction share and a corresponding transaction share privacy key of the second account book for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second account book;
and finishing the transaction of a first user account of the first user under the first account book and a second user account of the second user under the second account book according to a preset rule based on the first ciphertext and the second ciphertext.
Preferably, when the processor executes the step of implementing the transaction between the first user account of the first user in the first account book and the second user account of the second user in the second account book according to a preset rule based on the first ciphertext and the second ciphertext, the block chain-based multi-account book transfer system specifically includes:
receiving a first ciphertext subjected to electronic signature; after the first ciphertext subjected to electronic signature is sent to the second user by the first user, if the second user confirms a preset exchange transaction share and a preset exchange rate according to the first ciphertext, the second user performs electronic signature generation on the first ciphertext;
writing the first ciphertext subjected to the electronic signature to a shared asset account book on each node of the block chain;
and updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext, and updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext.
Preferably, the step of updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext includes:
deducting the preset exchange transaction share from the balance of the first user account of the first user under the first account book according to a first preset balance calculation formula, calculating a first new balance of the first user account of the first user under the first account book, and updating the calculated first new balance to a shared asset account book;
adding the preset exchange transaction share in the balance of the third account of the second user under the first account book according to a second preset balance calculation formula, calculating a second new balance of the third account of the second user under the first account book, and updating the calculated second new balance to the shared asset account book;
the step of updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext comprises:
deducting the preset exchange transaction share from the balance of the second user account of the second user under the second account book according to a third preset balance calculation formula, calculating a third new balance of the second user account of the second user under the second account book, and updating the calculated third new balance to the shared asset account book;
and adding the preset exchange transaction share in the balance of the fourth account of the first user under the second account book according to a fourth preset balance calculation formula, calculating a fourth new balance of the fourth account of the first user under the second account book, and updating the calculated fourth new balance to the shared asset account book.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing a blockchain-based multi-ledger transfer system, which is executable by at least one processor to cause the at least one processor to perform the steps of the blockchain-based multi-ledger transfer method as described above.
The invention provides a multi-account book transfer method, a multi-account book transfer system and a readable storage medium based on a block chain.A first user account of a first user under the first account book in the block chain initiates a transaction request for exchanging a preset exchange transaction share according to a preset exchange rate with a second user account of a second user under the second account book, and then receives a first ciphertext generated by encrypting the preset exchange transaction share by the first user in advance by adopting a second preset password formula and a corresponding transaction share privacy key; calculating and generating an encrypted exchange transaction share of the second account book and a second ciphertext of a corresponding transaction share privacy secret key for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext; and finishing the transaction of a first user account of the first user under the first account book and a second user account of the second user under the second account book according to a preset rule based on the first ciphertext and the second ciphertext. Because the preset exchange transaction share of the first user account under the first account book can be encrypted by adopting the second preset cryptographic formula and the corresponding transaction share privacy key to generate the first ciphertext, and calculating and generating a second ciphertext of the encrypted exchange transaction share of the second ledger and a corresponding transaction share privacy key for the second ledger, and completing the transaction operation of a first user account under the first ledger and a second user account under the second ledger based on the first ciphertext and the second ciphertext, only the first user or the second user can decrypt the first ciphertext or the second ciphertext to obtain the specific converted transaction share data of the transaction in the transaction process, other nodes on the blockchain cannot interpret the specific converted transaction share data, therefore, under the condition that the safety of transaction information in a block chain technical scene is effectively guaranteed, the multi-account book transfer operation is realized.
Drawings
FIG. 1 is a schematic diagram of the operational environment of a preferred embodiment of a blockchain based multiple account transfer system 10 of the present invention;
fig. 2 is a schematic flow chart of an embodiment of a block chain-based multi-account book transfer method according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a multi-account book transfer system based on a block chain. Referring to fig. 1, a block chain based multi-account transfer system 10 according to a preferred embodiment of the present invention is shown in an operating environment.
In the present embodiment, the blockchain-based multi-account transfer system 10 is installed and operated in the electronic device 1. The electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13. Fig. 1 only shows the electronic device 1 with components 11-13, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may alternatively be implemented.
The electronic device 1 is connected to a network (not shown in fig. 1) through a network interface 13 to obtain information. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or a communication network.
The memory 11 is at least one type of readable computer storage medium, and the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a hard disk or a memory of the electronic device 1. The memory 11 may also be an external storage device of the electronic apparatus 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic apparatus 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic apparatus 1. The memory 11 is used for storing application software installed in the electronic device 1 and various types of data, such as program codes of the blockchain-based multi-ledger transfer system 10. The memory 11 may also be used to temporarily store data that has been output or is to be output.
The processor 12 may be, in some embodiments, a Central Processing Unit (CPU), microprocessor or other data Processing chip for running program code stored in the memory 11 or Processing data, such as executing the blockchain-based multi-ledger account transfer system 10.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used for establishing a communication connection between the electronic apparatus 1 and other electronic devices.
Blockchain-based multi-ledger transfer system 10 includes at least one computer-readable instruction stored in the memory 11 that is executable by the processor 12 to implement embodiments of the present application.
Wherein, when executed by the processor 12, the above blockchain-based multi-ledger account transfer system 10 implements the following steps:
step S1, if a first user account of a first user under a first account book in the block chain initiates a transaction request with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the transaction request is a request for exchanging a preset exchange transaction share according to a preset exchange rate, and the first ciphertext is a first ciphertext generated by encrypting the preset exchange transaction share by adopting a second preset cryptographic formula and a corresponding transaction share privacy key.
In this embodiment, a user or an organization in a block chain encrypts a balance of each user account of each account by using a first preset cryptographic formula and a corresponding balance privacy key, and writes the encrypted balance of each user account of each account to a shared asset account on each node of the block chain through an intelligent contract of the block chain. For example, with the Pederson Commitment algorithm, the first preset password formula is a'ij=g^aij*h^xijOr, a'ij=h^aij*g^xijWherein a isijRepresenting the balance, x, of the jth user account in the ith account bookijBalance privacy key, a ', representing the jth user account under the ith account book'ijRepresenting the encrypted balance of the jth user account in the ith account book, g and h being discrete logarithm problemsWherein h is g ^ c, c is an unknown number, and i and j are positive integers.
Before a first user account of a first user initiates a transaction request exchanged with a second user account of a second user under a first ledger (for example, the second ledger may be a dollar ledger) at a preset exchange rate (the preset exchange transaction share and the preset exchange rate may be set in advance in a smart contract), the first user encrypts a preset exchange transaction share for the preset exchange transaction share by using a second preset cryptographic formula and a corresponding transaction share privacy key to generate a first ciphertext. For example, the second preset password formula is t'1ij=g^tij*h^zijOr, t'1ij=h^tij*g^zijWherein, tijA share of the redemption transaction, z, representing the jth user account under the ith accountijRedeemed transaction share privacy key, t ', representing the jth user account under the ith account'1ijRepresenting the encrypted converted transaction share of the jth first user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers.
Step S2, calculating, by using a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger.
In this embodiment, if it is determined that the transaction is to exchange the preset exchange transaction share with a preset exchange rate e (for example, the exchange rate of rmb to U.S. dollars is 7, then e is 7), the intelligent contract calculates, through a first preset exchange calculation formula and based on the preset exchange rate e and the first ciphertext, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger, and directly generates, in the intelligent contract, a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger.For example, the first preset transaction redemption calculation formula is t'2ij=(t'1ij)^e=(g^tij*h^zij)^e,
Figure BDA0001515949190000101
Alternatively, the first and second electrodes may be,
Figure BDA0001515949190000102
wherein, tijE represents the converted transaction share of the jth user account under the ith account, zijE represents a redemption transaction share privacy key, t 'of the jth user account under the ith account'2ijRepresenting the encrypted converted transaction share of the jth second user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers.
Step S3, based on the first ciphertext and the second ciphertext, and according to a preset rule, completing a transaction between a first user account of the first user in the first account book and a second user account of the second user in the second account book.
In this embodiment, the transaction between the first user account of the first user in the first account book and the second user account of the second user in the second account book may be completed based on the first ciphertext and the second ciphertext. For example, a preset exchange transaction share may be used for performing a transfer transaction between a first user account of a first user in the first ledger and a second user account of a second user in the second ledger at a preset exchange rate. A first user may also be updated (e.g., balance update) simultaneously with all user accounts under the first ledger (e.g., the first ledger may be a renminbi ledger) and the second ledger (e.g., the second ledger may be a dollar ledger), and a second user may be updated (e.g., balance update) simultaneously with all user accounts under the first ledger (e.g., the first ledger may be a renminbi ledger) and the second ledger (e.g., the second ledger may be a dollar ledger). For example, if a and b are to exchange RMB for U.S. dollars, the accounts of the RMB and the U.S. dollars of the A and the B in the embodiment can be updated simultaneously, and the private transaction of the multi-account book transfer in the block chain technology scene is completed.
Compared with the prior art, in this embodiment, after a transaction request for exchanging a preset exchange transaction share according to a preset exchange rate is initiated by a first user account of a first user under a first account book and initiated by a second user account of a second user under a second account book in a block chain, a first ciphertext generated by encrypting the preset exchange transaction share by the first user in advance by using a second preset cipher formula and a corresponding transaction share privacy key is received; calculating and generating an encrypted exchange transaction share of the second account book and a second ciphertext of a corresponding transaction share privacy secret key for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext; and finishing the transaction of a first user account of the first user under the first account book and a second user account of the second user under the second account book according to a preset rule based on the first ciphertext and the second ciphertext. Because the preset exchange transaction share of the first user account under the first account book can be encrypted by adopting the second preset cryptographic formula and the corresponding transaction share privacy key to generate the first ciphertext, and calculating and generating a second ciphertext of the encrypted exchange transaction share of the second ledger and a corresponding transaction share privacy key for the second ledger, and completing the transaction operation of a first user account under the first ledger and a second user account under the second ledger based on the first ciphertext and the second ciphertext, only the first user or the second user can decrypt the first ciphertext or the second ciphertext to obtain the specific converted transaction share data of the transaction in the transaction process, other nodes on the blockchain cannot interpret the specific converted transaction share data, therefore, under the condition that the safety of transaction information in a block chain technical scene is effectively guaranteed, the multi-account book transfer operation is realized.
In an optional embodiment, on the basis of the embodiment of fig. 1, when the processor 12 executes the step S3, the method specifically includes:
receiving a first ciphertext subjected to electronic signature; and after the first ciphertext subjected to electronic signature is sent to the second user by the first user, if the second user confirms a preset exchange transaction share and a preset exchange rate according to the first ciphertext, the second user performs electronic signature generation on the first ciphertext. And writing the first ciphertext subjected to the electronic signature to a shared asset account book on each node of the block chain. In this embodiment, the first user sends the first ciphertext to the second user; if the second user confirms the preset exchange transaction share and the preset exchange rate, the second user carries out electronic signature on the first ciphertext, and writes the electronically signed first ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain, or the second user sends the electronically signed first ciphertext to the first user, so that the first user writes the electronically signed first ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain.
And updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext, and updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext.
In this embodiment, after a transaction request of a preset transaction share and a preset exchange price of a second user account of a second user in a second ledger (for example, the second ledger may be a dollar ledger) is initiated by a first user account of the first user in the first ledger (for example, the first ledger may be a renminbi ledger), a smart contract of the block chain updates a balance of the first user account of the first user in the first ledger and a balance of a third user account of the second user in the first ledger according to the first ciphertext, and updates a balance of a fourth account of the first user in the second ledger and a balance of the second user account of the second user in the second ledger according to the second ciphertext. The first user account and the fourth account are both accounts of the first user, and are accounts of the first user in the first account book and the second account book, respectively, for example, the first user account is a rmb account book account of the first user, and the fourth account is a dollar account book account of the first user. The second user account and the third account are both accounts of the second user, and are accounts of the second user in the second account book and the first account book, respectively, for example, the second user account is a dollar account book account of the second user, and the third account is a rmb account book account of the second user.
Specifically, the step of updating, according to the first ciphertext, a balance of a first user account of the first user in the first account book and a balance of a third account of the second user in the first account book includes:
and deducting the preset exchange transaction share from the balance of the first user account of the first user under the first account book by the intelligent contract according to a first preset balance calculation formula, calculating a first new balance of the first user account of the first user under the first account book, and updating the calculated first new balance to the shared asset account book. For example, the first predetermined balance calculation formula is a1ij”=a1ij'/t1ij'=(g^a1ij*h^x1ij)/(g^tij*h^zij)=g^(a1ij–tij)*h^(x1ij–zij) Or, a1ij”=h^(a1ij–tij)*g^(x1ij–zij). Wherein, a1ijBalance, x, representing the jth first user account under the ith account book1ijA balance privacy key representing the jth first user account under the ith account book, a1ij"represents the new balance of the j first user account in the ith account book, g and h are base, h is an n power of g, i and j are positive integers," a1ij-tij"represents the new balance of the jth first user account under the ith account book," x1ij-zij"New obfuscated balance privacy Key, t, representing the jth first user Account under ith AccountijTransaction shares, z, representing the jth first user account under the ith accountijA transaction share privacy key representing a jth first user account under an ith account book.
The intelligent contract is increased in the balance of the third account of the second user under the first account book according to a second preset balance calculation formulaAnd calculating a second new balance of a third account of the second user under the first account book by the preset exchange transaction share, and updating the calculated second new balance to the shared asset account book. For example, the second predetermined balance calculation formula is a3ij”=a3ij'*t1ij'=(g^a3ij*h^y3ij)*(g^tij*h^zij)=g^(a3ij+tij)*h^(y3ij+zij) Or, a3ij”=h^(a3ij+tij)*g^(y3ij+zij),a3ijRepresenting the balance, Y, of the jth third account in the ith account book3ijA balance privacy key representing the jth third account under the ith account book, a3ij"represents the new balance of the j third account in the ith account, g and h are the base, h is an n-th power of g, i and j are positive integers," a3ij+tij"represents the new balance of the jth third account under the ith account book," y3ij+zij"New obfuscated balance privacy Key, t, representing the jth third Account under ith AccountijTransaction shares, z, representing the jth third account under the ith accountijA transaction share privacy key representing a jth third account under an ith account book.
The step of updating the balance of the fourth account of the first user in the second account book and the balance of the second user account of the second user in the second account book according to the second ciphertext includes:
and deducting the preset exchange transaction share in the balance of the second user account of the second user under the second account book by the intelligent contract according to a third preset balance calculation formula, calculating a third new balance of the second user account of the second user under the second account book, and updating the calculated third new balance to the shared asset account book. For example, the third predetermined balance calculation formula is a2ij”=a2ij'/t2ij'=(g^a2ij*h^x2ij)/(g^(tij*e)*h^(zij*e))=g^(a2ij-(tij*e))*h^(x2ij-(zijE)) or a)2ij”=h^(a2ij-(tij*e))*g^(x2ij-(zijE)), wherein a)2ijBalance, x, representing the jth second user account in the ith account book2ijA balance privacy key representing a jth second user account under the ith account book, a2ij"represents the new balance of the j second user account in the ith account book, g and h are base, h is an n power of g, i and j are positive integers," a2ij-(tijE) "represents the new balance of the jth second user account under the ith account, and" x2ij-(zijE) "represents a new obfuscated balance privacy key of the jth second user account under the ith account book," tijE "represents transaction share of jth second user account under ith account," zijE "represents the transaction share privacy key of the jth second user account under the ith account.
And the intelligent contract adds the preset exchange transaction share in the balance of the fourth account of the first user under the second account book according to a fourth preset balance calculation formula, calculates a fourth new balance of the fourth account of the first user under the second account book, and updates the calculated fourth new balance to the shared asset account book. For example, the fourth predetermined balance calculation formula is a4ij”=a4ij'*t2ij'=(g^a4ij*h^y4ij)*(g^(tij*e)*h^(zij*e))=g^(a4ij+(tij*e))*h^(y4ij+(zijE)) or, a)4ij”=h^(a4ij+(tij*e))*g^(y4ij+(zij*e)),a4ijRepresenting the balance, Y, of the jth fourth account in the ith account4ijA balance privacy key representing the jth fourth account under the ith account book, a4ij"represents the new balance of the j fourth account in the ith account, g and h are the base, h is an n-th power of g, i and j are positive integers," a4ij+(tijE) "represents the new balance of the jth and fourth accounts under the ith account, and" y4ij+(zijE) "represents a new obfuscated balance privacy key for the jth fourth account under the ith account, t ″ijE "represents transaction share of jth fourth account under ith account," zijE "represents the transaction share privacy key of the jth fourth account under the ith account.
Further, the third preset balance calculation formula may also be that the preset exchange transaction share is added to the balance of the third account of the second user in the first account book, a second new balance of the third account of the second user in the first account book is calculated, and the calculated second new balance is updated to the shared asset account book. The third preset balance calculation formula may also be that the preset exchange transaction share is deducted from the balance of the fourth account of the first user in the second account book, a fourth new balance of the fourth account of the first user in the second account book is calculated, and the calculated fourth new balance is updated to the shared asset account book.
In an alternative embodiment, the step S2 is replaced by the following steps:
receiving a first ciphertext and a second ciphertext after electronic signature, and writing the first ciphertext and the second ciphertext after electronic signature to a shared asset account book on each node of a block chain; the generation process of the first ciphertext and the second ciphertext after the electronic signature is as follows:
calculating, by the first user, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger; the first user sends the first ciphertext and the second ciphertext to the second user; and if the second user confirms the preset exchange transaction share and the preset exchange rate, the second user carries out electronic signature on the first ciphertext and the second ciphertext.
In this embodiment, if it is determined that the preset exchange transaction share adopts the preset exchange rate e, the first user calculates, through the first preset exchange calculation formula and based on the preset exchange rate e and the first ciphertext, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger, and generates an encrypted exchange transaction share of the second ledger and a second ciphertext of the corresponding transaction share privacy key. The first user sends the first ciphertext and the second ciphertext to the second user. If the second user confirms the preset exchange transaction share and the preset exchange rate, the second user electronically signs the first ciphertext and the second ciphertext, and writes the electronically signed first ciphertext and the electronically signed second ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain, or the second user sends the electronically signed first ciphertext and the electronically signed second ciphertext to the first user, so that the first user writes the electronically signed first ciphertext and the electronically signed second ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain.
Further, on the basis of the above embodiment, the present embodiment may also create a simultaneous transfer of a third, a fourth or even more ledgers. For example, if there is a third ledger requiring share redemption in real time, the method can be implemented by the following steps: (1) setting the exchange amount f of the third account book and the first account book or the second account book on the intelligent contract; (2) calculating the transfer amount of the corresponding account on the third account book by the intelligent contract or the first user through a first preset exchange calculation formula and the exchange amount f; (3) and setting a fifth preset balance calculation formula and a sixth preset balance calculation formula on the third account book, and increasing and deducting the share of the corresponding account through the intelligent contract.
In a specific embodiment, account 1 and account 2 are taken as examples below to illustrate:
the method comprises the following steps: the balance of each user account under each account book is encrypted by a cryptographic formula with an addition homomorphic characteristic, and only the account owner can read the balance of the account through decryption of an account privacy key. While the example of Pederson Commitment and ECC (elliptic Curve) is used herein, it is not limited to RSA, Diffie-Hellman, etc.
If Pederson Commission is available for each account, account A exchanges the balance in ledger 1 for account B to exchange the balance in ledger 2, e.g., Renminbi (ledger 1) and B for USD (ledger 2), and account A transfers part of the Renminbi balance to B in ledger 1 and B transfers its own USD to A in ledger 2. For ledger 1, defining a1 as the balance of the ledger 1 of the first account, a 1' as the balance of the ledger 1 of the first account after password confusion, and x1 as the privacy key of the balance of the ledger 1 of the first account, the balance of the first account is: a1 ^ g ^ a1 ^ h ^ x1 (elliptic curve formula: a1 ^ a1G + x 1H). Defining b1 as the balance of Renminbi of the second account, b 1' as the balance of Renminbi of the second account after password confusion, and y1 as the privacy key of the balance of Renminbi of the second account, the balance of the second account is: b1 ^ g ^ b1 ^ h ^ y1 (elliptic curve formula: b1 ^ b1G + y 1H). For ledger 2, define a2 as the balance of the first account ledger 2, a2 as the balance of the first account ledger 2 with confused passwords, and x2 as the privacy key of the balance of the first account ledger 2, the balance of the first account is: a2 ^ g ^ a2 ^ h ^ x2 (elliptic curve formula: a2 ^ a2G + x 2H). Defining b2 as the balance of Renminbi of the second account, b 2' as the balance of Renminbi of the second account after password confusion, and y2 as the privacy key of the balance of Renminbi of the second account, the balance of the second account is: b2 ^ g ^ b2 ^ h ^ y2 (elliptic curve formula: b2 ^ b2G + y 2H).
Step two: if the balance of the account book 1 is exchanged with the balance of the account book 2, the first creates two ciphertexts, the first is the transaction share of the account book 1 protected by the addition homomorphic cipher text, and the second is the exchange price (such as exchange rate) of the account book 1 and the account book 2 which are mixed up by encryption.
The transfer initiator (A) can generate a homomorphic privacy key for a first ciphertext and a privacy key for a second ciphertext by itself, send the homomorphic privacy key, the first ciphertext and the second ciphertext to a transaction counterpart (B), and send the whole transaction and the signature of the second party to a block chain network (the digital signature of the second party represents the approval of transaction share and exchange rate) after obtaining the approval of the second party and the digital signature of the first ciphertext and the second ciphertext, for example, to an intelligent contract of the block chain. If t ═ book 1 transaction share, t ═ crypto-obfuscated transaction share, and z ═ transaction share privacy key are defined, the first ciphertext (transaction share) is t ═ g ^ t ^ h ^ z (elliptic curve formula: t ═ tG + zH). Define e ═ exchange rate.
Step three: after receiving a transaction request, the blockchain updates the ledger 2 while updating the ledger 1, and the step of updating the ledger 2 comprises the following three substeps:
and step three A, deducting transaction share in the balance of the account A of the account book 1, and meanwhile, increasing transaction share in the balance of the account B of the account book 1. Account a in account book 1 new share: a1 ″ (a1 '/t', a1 ″) (G ^ a1 ^ H ^ x1)/(G ^ t ^ H ^ z), a1 ^ (a1-t) ^ H ^ (x1-z) (elliptic curve formula: a1 ^ a1-t) G + (x1-z) H). New balance of account a1-t, new obfuscated privacy key x 1' of account a (x1-z), new share of account b in ledger 1: b1 ″ (b1 '× t'), b1 ″) (G ^ b1 ^ H1) × (G ^ t ^ H ^ z), b1 ^ G (b1+ t) × H ^ (y1+ z) (elliptic curve formula: b1 ═ b1+ t) G + (y1+ z) H. The new balance b1 'of the account b is b1+ t, and the new obfuscated privacy key y 1' of the account b is y1+ z.
And step three B, calculating the transaction share corresponding to the transfer operation needing to be carried out on the account book 2 by the intelligent contract on the block chain through the transaction amount (first ciphertext) and the exchange rate. This operation is performed without decrypting the transaction amount, and the first ciphertext (transaction share) t ^ g ^ t ^ h ^ z (elliptic curve formula: t ^ tG + zH), defines the transaction conversion rate e.
Calculating shares of the account A and the account B transferred in the account book 2 under the condition of not decrypting; since t represents ledger 1 transaction shares and e represents exchange rates, te represents account a and account b transfer shares in ledger 2. Then, book 2 transaction share is t2 t e te, and book 2 transaction share (ciphertext) t2 ═ (g ^ t h ^ z) ^ e ^ g te h ^ ze) (elliptic curve formula: t2 ═ tG + zH) e teG + zeH).
And step three C, adding the transaction share in the balance of the account A of the account book 2, and simultaneously subtracting the transaction share from the balance of the account B of the account book 2. Account a in ledger 2 new share: a2 ″ (a2 ″) t 2', a2 ″ (G ^ a2 ^ H ^ x2) × (G ^ te ^ H ^ ze), a2 ^ G (a2+ te) ^ H (x2+ ze) (elliptic curve formula: a2 ″ (a2+ te) G + (x2+ ze) H). The new balance a2 'of the first account is a2+ te, and the new obfuscated privacy key x 2' of the first account is x2+ ze. Account b in new share of ledger 1: b2 ″ - (b2 '/t ', b2 ″) (G ^ b2 ^ H ^ y2)/(G ^ te ^ H ^ ze), b2 ═ G ^ (b2-te) H ^ (y2-ze) (elliptic curve formula: b2 ″ - (b2-te) G + (y2-ze) H), account B new balance b2 ═ b2-te, account B new obfuscated privacy key y2 ' ═ y 2-ze.
As shown in fig. 2, fig. 2 is a schematic flow chart of an embodiment of a block chain-based multi-account book transfer method according to the present invention, and the block chain-based multi-account book transfer method includes the following steps:
step S10, if a first user account of a first user under a first account book in the block chain initiates a transaction request with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the transaction request is a request for exchanging a preset exchange transaction share according to a preset exchange rate, and the first ciphertext is a first ciphertext generated by encrypting the preset exchange transaction share by adopting a second preset cryptographic formula and a corresponding transaction share privacy key.
In this embodiment, a user or an organization in a block chain encrypts a balance of each user account of each account by using a first preset cryptographic formula and a corresponding balance privacy key, and writes the encrypted balance of each user account of each account to a shared asset account on each node of the block chain through an intelligent contract of the block chain. For example, with the Pederson Commitment algorithm, the first preset password formula is a'ij=g^aij*h^xijOr, a'ij=h^aij*g^xijWherein a isijRepresenting the balance, x, of the jth user account in the ith account bookijBalance privacy key, a ', representing the jth user account under the ith account book'ijRepresenting the encrypted balance of the jth user account in the ith account, g and h are bases in the discrete logarithm problem, h ═ g ^ c, c is an unknown number, and i and j are positive integers.
A first user account of a first user under a first ledger (e.g., the first ledger may be a RMB ledger) initiates an exchange of a preset exchange transaction share at a preset exchange rate with a second user account of a second user under a second ledger (e.g., the second ledger may be a USD ledger) (the preset exchange transaction share is exchanged at the preset exchange rate)The transaction share and the preset exchange rate can be set in advance in the intelligent contract), the first user encrypts the preset exchange transaction share by using a second preset cryptographic formula and a corresponding transaction share privacy key to generate a first ciphertext. For example, the second preset password formula is t'1ij=g^tij*h^zijOr, t'1ij=h^tij*g^zijWherein, tijA share of the redemption transaction, z, representing the jth user account under the ith accountijRedeemed transaction share privacy key, t ', representing the jth user account under the ith account'1ijRepresenting the encrypted converted transaction share of the jth first user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers.
Step S20, calculating, by using a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger.
In this embodiment, if it is determined that the transaction is to exchange the preset exchange transaction share with a preset exchange rate e (for example, the exchange rate of rmb to U.S. dollars is 7, then e is 7), the intelligent contract calculates, through a first preset exchange calculation formula and based on the preset exchange rate e and the first ciphertext, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger, and directly generates, in the intelligent contract, a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger. For example, the first preset transaction redemption calculation formula is t'2ij=(t'1ij)^e=(g^tij*h^zij)^e,
Figure BDA0001515949190000201
Alternatively, the first and second electrodes may be,
Figure BDA0001515949190000202
wherein, tijE represents the converted transaction share of the jth user account under the ith account, zijE represents a redemption transaction share privacy key, t 'of the jth user account under the ith account'2ijRepresenting the encrypted converted transaction share of the jth second user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers.
Step S30, based on the first ciphertext and the second ciphertext, and according to a preset rule, completing a transaction between a first user account of the first user in the first account book and a second user account of the second user in the second account book.
In this embodiment, the transaction between the first user account of the first user in the first account book and the second user account of the second user in the second account book may be completed based on the first ciphertext and the second ciphertext. For example, a preset exchange transaction share may be used for performing a transfer transaction between a first user account of a first user in the first ledger and a second user account of a second user in the second ledger at a preset exchange rate. A first user may also be updated (e.g., balance update) simultaneously with all user accounts under the first ledger (e.g., the first ledger may be a renminbi ledger) and the second ledger (e.g., the second ledger may be a dollar ledger), and a second user may be updated (e.g., balance update) simultaneously with all user accounts under the first ledger (e.g., the first ledger may be a renminbi ledger) and the second ledger (e.g., the second ledger may be a dollar ledger). For example, if a and b are to exchange RMB for U.S. dollars, the accounts of the RMB and the U.S. dollars of the A and the B in the embodiment can be updated simultaneously, and the private transaction of the multi-account book transfer in the block chain technology scene is completed.
Compared with the prior art, in this embodiment, after a transaction request for exchanging a preset exchange transaction share according to a preset exchange rate is initiated by a first user account of a first user under a first account book and initiated by a second user account of a second user under a second account book in a block chain, a first ciphertext generated by encrypting the preset exchange transaction share by the first user in advance by using a second preset cipher formula and a corresponding transaction share privacy key is received; calculating and generating an encrypted exchange transaction share of the second account book and a second ciphertext of a corresponding transaction share privacy secret key for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext; and finishing the transaction of a first user account of the first user under the first account book and a second user account of the second user under the second account book according to a preset rule based on the first ciphertext and the second ciphertext. Because the preset exchange transaction share of the first user account under the first account book can be encrypted by adopting the second preset cryptographic formula and the corresponding transaction share privacy key to generate the first ciphertext, and calculating and generating a second ciphertext of the encrypted exchange transaction share of the second ledger and a corresponding transaction share privacy key for the second ledger, and completing the transaction operation of a first user account under the first ledger and a second user account under the second ledger based on the first ciphertext and the second ciphertext, only the first user or the second user can decrypt the first ciphertext or the second ciphertext to obtain the specific converted transaction share data of the transaction in the transaction process, other nodes on the blockchain cannot interpret the specific converted transaction share data, therefore, under the condition that the safety of transaction information in a block chain technical scene is effectively guaranteed, the multi-account book transfer operation is realized.
In an optional embodiment, on the basis of the foregoing embodiment, the step S30 specifically includes:
receiving a first ciphertext subjected to electronic signature; and after the first ciphertext subjected to electronic signature is sent to the second user by the first user, if the second user confirms a preset exchange transaction share and a preset exchange rate according to the first ciphertext, the second user performs electronic signature generation on the first ciphertext. And writing the first ciphertext subjected to the electronic signature to a shared asset account book on each node of the block chain. In this embodiment, the first user sends the first ciphertext to the second user; if the second user confirms the preset exchange transaction share and the preset exchange rate, the second user carries out electronic signature on the first ciphertext, and writes the electronically signed first ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain, or the second user sends the electronically signed first ciphertext to the first user, so that the first user writes the electronically signed first ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain.
And updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext, and updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext.
In this embodiment, after a transaction request of a preset transaction share and a preset exchange price of a second user account of a second user in a second ledger (for example, the second ledger may be a dollar ledger) is initiated by a first user account of the first user in the first ledger (for example, the first ledger may be a renminbi ledger), a smart contract of the block chain updates a balance of the first user account of the first user in the first ledger and a balance of a third user account of the second user in the first ledger according to the first ciphertext, and updates a balance of a fourth account of the first user in the second ledger and a balance of the second user account of the second user in the second ledger according to the second ciphertext. The first user account and the fourth account are both accounts of the first user, and are accounts of the first user in the first account book and the second account book, respectively, for example, the first user account is a rmb account book account of the first user, and the fourth account is a dollar account book account of the first user. The second user account and the third account are both accounts of the second user, and are accounts of the second user in the second account book and the first account book, respectively, for example, the second user account is a dollar account book account of the second user, and the third account is a rmb account book account of the second user.
Specifically, the step of updating, according to the first ciphertext, a balance of a first user account of the first user in the first account book and a balance of a third account of the second user in the first account book includes:
and deducting the preset exchange transaction share from the balance of the first user account of the first user under the first account book by the intelligent contract according to a first preset balance calculation formula, calculating a first new balance of the first user account of the first user under the first account book, and updating the calculated first new balance to the shared asset account book. For example, the first predetermined balance calculation formula is a1ij”=a1ij'/t1ij'=(g^a1ij*h^x1ij)/(g^tij*h^zij)=g^(a1ij–tij)*h^(x1ij–zij) Or, a1ij”=h^(a1ij–tij)*g^(x1ij–zij). Wherein, a1ijBalance, x, representing the jth first user account under the ith account book1ijA balance privacy key representing the jth first user account under the ith account book, a1ij"represents the new balance of the j first user account in the ith account book, g and h are base, h is an n power of g, i and j are positive integers," a1ij-tij"represents the new balance of the jth first user account under the ith account book," x1ij-zij"New obfuscated balance privacy Key, t, representing the jth first user Account under ith AccountijTransaction shares, z, representing the jth first user account under the ith accountijA transaction share privacy key representing a jth first user account under an ith account book.
And the intelligent contract adds the preset exchange transaction share in the balance of the third account of the second user under the first account book according to a second preset balance calculation formula, calculates a second new balance of the third account of the second user under the first account book, and updates the calculated second new balance to the shared asset account book. For example, the second predetermined balance calculation formula is a3ij”=a3ij'*t1ij'=(g^a3ij*h^y3ij)*(g^tij*h^zij)=g^(a3ij+tij)*h^(y3ij+zij) Or, a3ij”=h^(a3ij+tij)*g^(y3ij+zij),a3ijRepresenting the balance, Y, of the jth third account in the ith account book3ijA balance privacy key representing the jth third account under the ith account book, a3ij"represents the new balance of the j third account in the ith account, g and h are the base, h is an n-th power of g, i and j are positive integers," a3ij+tij"represents the new balance of the jth third account under the ith account book," y3ij+zij"New obfuscated balance privacy Key, t, representing the jth third Account under ith AccountijTransaction shares, z, representing the jth third account under the ith accountijA transaction share privacy key representing a jth third account under an ith account book.
The step of updating the balance of the fourth account of the first user in the second account book and the balance of the second user account of the second user in the second account book according to the second ciphertext includes:
and deducting the preset exchange transaction share in the balance of the second user account of the second user under the second account book by the intelligent contract according to a third preset balance calculation formula, calculating a third new balance of the second user account of the second user under the second account book, and updating the calculated third new balance to the shared asset account book. For example, the third predetermined balance calculation formula is a2ij”=a2ij'/t2ij'=(g^a2ij*h^x2ij)/(g^(tij*e)*h^(zij*e))=g^(a2ij-(tij*e))*h^(x2ij-(zijE)) or a)2ij”=h^(a2ij-(tij*e))*g^(x2ij-(zijE)), wherein a)2ijBalance, x, representing the jth second user account in the ith account book2ijA balance privacy key representing a jth second user account under the ith account book, a2ij"represents the new balance of the j second user account in the ith account book, g and h are base, h is an n power of g, i and j are positive integers," a2ij-(tijE) "represents the new balance of the jth second user account under the ith account,“x2ij-(zije) "represents a new obfuscated balance privacy key of the jth second user account under the ith account book," tijE "represents transaction share of jth second user account under ith account," zijE "represents the transaction share privacy key of the jth second user account under the ith account.
And the intelligent contract adds the preset exchange transaction share in the balance of the fourth account of the first user under the second account book according to a fourth preset balance calculation formula, calculates a fourth new balance of the fourth account of the first user under the second account book, and updates the calculated fourth new balance to the shared asset account book. For example, the fourth predetermined balance calculation formula is a4ij”=a4ij'*t2ij'=(g^a4ij*h^y4ij)*(g^(tij*e)*h^(zij*e))=g^(a4ij+(tij*e))*h^(y4ij+(zijE)) or, a)4ij”=h^(a4ij+(tij*e))*g^(y4ij+(zij*e)),a4ijRepresenting the balance, Y, of the jth fourth account in the ith account4ijA balance privacy key representing the jth fourth account under the ith account book, a4ij"represents the new balance of the j fourth account in the ith account, g and h are the base, h is an n-th power of g, i and j are positive integers," a4ij+(tijE) "represents the new balance of the jth and fourth accounts under the ith account, and" y4ij+(zijE) "represents a new obfuscated balance privacy key for the jth fourth account under the ith account, t ″ijE "represents transaction share of jth fourth account under ith account," zijE "represents the transaction share privacy key of the jth fourth account under the ith account.
Further, the third preset balance calculation formula may also be that the preset exchange transaction share is added to the balance of the third account of the second user in the first account book, a second new balance of the third account of the second user in the first account book is calculated, and the calculated second new balance is updated to the shared asset account book. The third preset balance calculation formula may also be that the preset exchange transaction share is deducted from the balance of the fourth account of the first user in the second account book, a fourth new balance of the fourth account of the first user in the second account book is calculated, and the calculated fourth new balance is updated to the shared asset account book.
In an alternative embodiment, the step S20 can be replaced by the following steps:
receiving a first ciphertext and a second ciphertext after electronic signature, and writing the first ciphertext and the second ciphertext after electronic signature to a shared asset account book on each node of a block chain; the generation process of the first ciphertext and the second ciphertext after the electronic signature is as follows:
calculating, by the first user, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger; the first user sends the first ciphertext and the second ciphertext to the second user; and if the second user confirms the preset exchange transaction share and the preset exchange rate, the second user carries out electronic signature on the first ciphertext and the second ciphertext.
In this embodiment, if it is determined that the preset exchange transaction share adopts the preset exchange rate e, the first user calculates, through the first preset exchange calculation formula and based on the preset exchange rate e and the first ciphertext, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger, and generates an encrypted exchange transaction share of the second ledger and a second ciphertext of the corresponding transaction share privacy key. The first user sends the first ciphertext and the second ciphertext to the second user. If the second user confirms the preset exchange transaction share and the preset exchange rate, the second user electronically signs the first ciphertext and the second ciphertext, and writes the electronically signed first ciphertext and the electronically signed second ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain, or the second user sends the electronically signed first ciphertext and the electronically signed second ciphertext to the first user, so that the first user writes the electronically signed first ciphertext and the electronically signed second ciphertext to the shared asset account book on each node of the block chain through the intelligent contract of the block chain.
Further, on the basis of the above embodiment, the present embodiment may also create a simultaneous transfer of a third, a fourth or even more ledgers. For example, if there is a third ledger requiring share redemption in real time, the method can be implemented by the following steps: (1) setting the exchange amount f of the third account book and the first account book or the second account book on the intelligent contract; (2) calculating the transfer amount of the corresponding account on the third account book by the intelligent contract or the first user through a first preset exchange calculation formula and the exchange amount f; (3) and setting a fifth preset balance calculation formula and a sixth preset balance calculation formula on the third account book, and increasing and deducting the share of the corresponding account through the intelligent contract.
In a specific embodiment, account 1 and account 2 are taken as examples below to illustrate:
the method comprises the following steps: the balance of each user account under each account book is encrypted by a cryptographic formula with an addition homomorphic characteristic, and only the account owner can read the balance of the account through decryption of an account privacy key. While the example of Pederson Commitment and ECC (elliptic Curve) is used herein, it is not limited to RSA, Diffie-Hellman, etc.
If Pederson Commission is available for each account, account A exchanges the balance in ledger 1 for account B to exchange the balance in ledger 2, e.g., Renminbi (ledger 1) and B for USD (ledger 2), and account A transfers part of the Renminbi balance to B in ledger 1 and B transfers its own USD to A in ledger 2. For ledger 1, defining a1 as the balance of the ledger 1 of the first account, a 1' as the balance of the ledger 1 of the first account after password confusion, and x1 as the privacy key of the balance of the ledger 1 of the first account, the balance of the first account is: a1 ^ g ^ a1 ^ h ^ x1 (elliptic curve formula: a1 ^ a1G + x 1H). Defining b1 as the balance of Renminbi of the second account, b 1' as the balance of Renminbi of the second account after password confusion, and y1 as the privacy key of the balance of Renminbi of the second account, the balance of the second account is: b1 ^ g ^ b1 ^ h ^ y1 (elliptic curve formula: b1 ^ b1G + y 1H). For ledger 2, define a2 as the balance of the first account ledger 2, a2 as the balance of the first account ledger 2 with confused passwords, and x2 as the privacy key of the balance of the first account ledger 2, the balance of the first account is: a2 ^ g ^ a2 ^ h ^ x2 (elliptic curve formula: a2 ^ a2G + x 2H). Defining b2 as the balance of Renminbi of the second account, b 2' as the balance of Renminbi of the second account after password confusion, and y2 as the privacy key of the balance of Renminbi of the second account, the balance of the second account is: b2 ^ g ^ b2 ^ h ^ y2 (elliptic curve formula: b2 ^ b2G + y 2H).
Step two: if the balance of the account book 1 is exchanged with the balance of the account book 2, the first creates two ciphertexts, the first is the transaction share of the account book 1 protected by the addition homomorphic cipher text, and the second is the exchange price (such as exchange rate) of the account book 1 and the account book 2 which are mixed up by encryption.
The transfer initiator (A) can generate a homomorphic privacy key for a first ciphertext and a privacy key for a second ciphertext by itself, send the homomorphic privacy key, the first ciphertext and the second ciphertext to a transaction counterpart (B), and send the whole transaction and the signature of the second party to a block chain network (the digital signature of the second party represents the approval of transaction share and exchange rate) after obtaining the approval of the second party and the digital signature of the first ciphertext and the second ciphertext, for example, to an intelligent contract of the block chain. If t ═ book 1 transaction share, t ═ crypto-obfuscated transaction share, and z ═ transaction share privacy key are defined, the first ciphertext (transaction share) is t ═ g ^ t ^ h ^ z (elliptic curve formula: t ═ tG + zH). Define e ═ exchange rate.
Step three: after receiving a transaction request, the blockchain updates the ledger 2 while updating the ledger 1, and the step of updating the ledger 2 comprises the following three substeps:
and step three A, deducting transaction share in the balance of the account A of the account book 1, and meanwhile, increasing transaction share in the balance of the account B of the account book 1. Account a in account book 1 new share: a1 ″ (a1 '/t', a1 ″) (G ^ a1 ^ H ^ x1)/(G ^ t ^ H ^ z), a1 ^ (a1-t) ^ H ^ (x1-z) (elliptic curve formula: a1 ^ a1-t) G + (x1-z) H). New balance of account a1-t, new obfuscated privacy key x 1' of account a (x1-z), new share of account b in ledger 1: b1 ″ (b1 '× t'), b1 ″) (G ^ b1 ^ H1) × (G ^ t ^ H ^ z), b1 ^ G (b1+ t) × H ^ (y1+ z) (elliptic curve formula: b1 ═ b1+ t) G + (y1+ z) H. The new balance b1 'of the account b is b1+ t, and the new obfuscated privacy key y 1' of the account b is y1+ z.
And step three B, calculating the transaction share corresponding to the transfer operation needing to be carried out on the account book 2 by the intelligent contract on the block chain through the transaction amount (first ciphertext) and the exchange rate. This operation is performed without decrypting the transaction amount, and the first ciphertext (transaction share) t ^ g ^ t ^ h ^ z (elliptic curve formula: t ^ tG + zH), defines the transaction conversion rate e.
Calculating shares of the account A and the account B transferred in the account book 2 under the condition of not decrypting; since t represents ledger 1 transaction shares and e represents exchange rates, te represents account a and account b transfer shares in ledger 2. Then, book 2 transaction share is t2 t e te, and book 2 transaction share (ciphertext) t2 ═ (g ^ t h ^ z) ^ e ^ g te h ^ ze) (elliptic curve formula: t2 ═ tG + zH) e teG + zeH).
And step three C, adding the transaction share in the balance of the account A of the account book 2, and simultaneously subtracting the transaction share from the balance of the account B of the account book 2. Account a in ledger 2 new share: a2 ″ (a2 ″) t 2', a2 ″ (G ^ a2 ^ H ^ x2) × (G ^ te ^ H ^ ze), a2 ^ G (a2+ te) ^ H (x2+ ze) (elliptic curve formula: a2 ″ (a2+ te) G + (x2+ ze) H). The new balance a2 'of the first account is a2+ te, and the new obfuscated privacy key x 2' of the first account is x2+ ze. Account b in new share of ledger 1: b2 ″ - (b2 '/t ', b2 ″) (G ^ b2 ^ H ^ y2)/(G ^ te ^ H ^ ze), b2 ═ G ^ (b2-te) H ^ (y2-ze) (elliptic curve formula: b2 ″ - (b2-te) G + (y2-ze) H), account B new balance b2 ═ b2-te, account B new obfuscated privacy key y2 ' ═ y 2-ze.
In addition, the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a blockchain-based multi-ledger account transfer system, where the blockchain-based multi-ledger account transfer system is executable by at least one processor, so that the at least one processor performs the steps of the blockchain-based multi-ledger account transfer method in the foregoing embodiment, and specific implementation procedures of the blockchain-based multi-ledger account transfer method, such as steps S10, S20, S30, are as described above, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. Additionally, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Those skilled in the art can implement the invention in various modifications, such as features from one embodiment can be used in another embodiment to yield yet a further embodiment, without departing from the scope and spirit of the invention. Any modification, equivalent replacement and improvement made within the technical idea of using the present invention should be within the scope of the right of the present invention.

Claims (10)

1. A multi-account transfer method based on a block chain is applied to an electronic device and is characterized in that the multi-account transfer method based on the block chain comprises the following steps:
A. if a first user account of a first user under a first account book in a block chain initiates a transaction request with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the transaction request is a request for exchanging a preset exchange transaction share according to a preset exchange rate, and the first ciphertext is a first ciphertext generated by encrypting the preset exchange transaction share by adopting a second preset cryptographic formula and a corresponding transaction share privacy key;
B. calculating an exchange transaction share, an encrypted exchange transaction share and a corresponding transaction share privacy key of the second account book for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second account book;
C. based on the first ciphertext and the second ciphertext, completing the transaction of a first user account of a first user under the first account book and a second user account of a second user under the second account book according to a preset rule;
the second preset password formula is t'1ij=g^tij*h^zijOr, t'1ij=h^tij*g^zijWherein, tijA share of the redemption transaction, z, representing the jth user account under the ith accountijRedeemed transaction share privacy key, t ', representing the jth user account under the ith account'1ijRepresenting the encrypted exchange transaction share of the jth first user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers; the first pre-set transaction is redeemedThe calculation formula is t'2ij=(t'1ij)^e=(g^tij*h^zij)^e,
Figure FDA0002904149400000011
Alternatively, the first and second electrodes may be,
Figure FDA0002904149400000012
wherein e is the exchange rate, tijE represents the converted transaction share of the jth user account under the ith account, zijE represents a redemption transaction share privacy key, t 'of the jth user account under the ith account'2ijRepresenting the encrypted converted transaction share of the jth second user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers.
2. A blockchain-based multi-ledger transfer method of claim 1, wherein step C includes:
receiving a first ciphertext subjected to electronic signature; after the first ciphertext subjected to electronic signature is sent to the second user by the first user, if the second user confirms a preset exchange transaction share and a preset exchange rate according to the first ciphertext, the second user performs electronic signature generation on the first ciphertext;
writing the first ciphertext subjected to the electronic signature to a shared asset account book on each node of the block chain;
and updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext, and updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext.
3. A blockchain-based multi-ledger transfer method of claim 2, wherein the step of updating the balance of the first user account of the first user under the first ledger and the balance of the third user account of the second user under the first ledger in accordance with the first ciphertext comprises:
deducting the preset exchange transaction share from the balance of the first user account of the first user under the first account book according to a first preset balance calculation formula, calculating a first new balance of the first user account of the first user under the first account book, and updating the calculated first new balance to a shared asset account book;
and adding the preset exchange transaction share in the balance of the third account of the second user under the first account book according to a second preset balance calculation formula, calculating a second new balance of the third account of the second user under the first account book, and updating the calculated second new balance to the shared asset account book.
4. A blockchain-based multi-ledger transfer method of claim 2 or 3, wherein the step of updating the balance of the second user account of the second user under the second ledger and the balance of the fourth account of the first user under the second ledger according to the second ciphertext comprises:
deducting the preset exchange transaction share from the balance of the second user account of the second user under the second account book according to a third preset balance calculation formula, calculating a third new balance of the second user account of the second user under the second account book, and updating the calculated third new balance to the shared asset account book;
and adding the preset exchange transaction share in the balance of the fourth account of the first user under the second account book according to a fourth preset balance calculation formula, calculating a fourth new balance of the fourth account of the first user under the second account book, and updating the calculated fourth new balance to the shared asset account book.
5. A blockchain-based multi-account transfer method as recited in claim 4 wherein the third predetermined balance calculation formula is further configured to add the predetermined redemption transaction portion to the balance of the third account of the second user in the first account to calculate a second new balance of the third account of the second user in the first account; or, the third preset balance calculation formula is further configured to deduct the preset exchange transaction share from the balance of the fourth account of the first user in the second account book, and calculate a fourth new balance of the fourth account of the first user in the second account book.
6. A blockchain-based multi-ledger transfer method of claim 1, wherein the step B is replaced with the step of:
receiving a first ciphertext and a second ciphertext after electronic signature, and writing the first ciphertext and the second ciphertext after electronic signature to a shared asset account book on each node of a block chain; the generation process of the first ciphertext and the second ciphertext after the electronic signature is as follows:
calculating, by the first user, an exchange transaction share, an encrypted exchange transaction share, and a corresponding transaction share privacy key of the second ledger for the second ledger through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second ledger; the first user sends the first ciphertext and the second ciphertext to the second user; and if the second user confirms the preset exchange transaction share and the preset exchange rate, the second user carries out electronic signature on the first ciphertext and the second ciphertext.
7. An electronic device comprising a memory, a processor, the memory having stored thereon a blockchain based multi-ledger transfer system operable on the processor, the blockchain based multi-ledger transfer system when executed by the processor performing the steps of:
if a first user account of a first user under a first account book in a block chain initiates a transaction request with a second user account of a second user under a second account book, receiving a first ciphertext generated by pre-encrypting the first user; the transaction request is a request for exchanging a preset exchange transaction share according to a preset exchange rate, and the first ciphertext is a first ciphertext generated by encrypting the preset exchange transaction share by adopting a second preset cryptographic formula and a corresponding transaction share privacy key;
calculating an exchange transaction share, an encrypted exchange transaction share and a corresponding transaction share privacy key of the second account book for the second account book through a first preset exchange calculation formula and based on the preset exchange rate and the first ciphertext, and generating a second ciphertext of the encrypted exchange transaction share and the corresponding transaction share privacy key of the second account book;
based on the first ciphertext and the second ciphertext, completing the transaction of a first user account of a first user under the first account book and a second user account of a second user under the second account book according to a preset rule;
the second preset password formula is t'1ij=g^tij*h^zijOr, t'1ij=h^tij*g^zijWherein, tijA share of the redemption transaction, z, representing the jth user account under the ith accountijRedeemed transaction share privacy key, t ', representing the jth user account under the ith account'1ijRepresenting the encrypted exchange transaction share of the jth first user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers;
the first preset transaction conversion calculation formula is t'2ij=(t'1ij)^e=(g^tij*h^zij)^e,
Figure FDA0002904149400000031
Figure FDA0002904149400000041
Alternatively, the first and second electrodes may be,
Figure FDA0002904149400000042
wherein e is the exchange rate, tijE represents the j user account under the i accountConverted transaction share of, zijE represents a redemption transaction share privacy key, t 'of the jth user account under the ith account'2ijRepresenting the encrypted converted transaction share of the jth second user account under the ith account book, g and h are taken as bases, h is an n-th power of g, n is a positive integer, and i and j are positive integers.
8. The electronic device of claim 7, wherein the step of the blockchain-based multi-ledger transfer system being executed by the processor to perform the transaction based on the first cryptogram and the second cryptogram and to complete the transaction between the first user account of the first user under the first ledger and the second user account of the second user under the second ledger according to a preset rule specifically comprises:
receiving a first ciphertext subjected to electronic signature; after the first ciphertext subjected to electronic signature is sent to the second user by the first user, if the second user confirms a preset exchange transaction share and a preset exchange rate according to the first ciphertext, the second user performs electronic signature generation on the first ciphertext;
writing the first ciphertext subjected to the electronic signature to a shared asset account book on each node of the block chain;
and updating the balance of the first user account of the first user in the first account book and the balance of the third account of the second user in the first account book according to the first ciphertext, and updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext.
9. The electronic device of claim 8, wherein the step of updating the balance of the first user account of the first user in the first ledger and the balance of the third user account of the second user in the first ledger according to the first ciphertext comprises:
deducting the preset exchange transaction share from the balance of the first user account of the first user under the first account book according to a first preset balance calculation formula, calculating a first new balance of the first user account of the first user under the first account book, and updating the calculated first new balance to a shared asset account book;
adding the preset exchange transaction share in the balance of the third account of the second user under the first account book according to a second preset balance calculation formula, calculating a second new balance of the third account of the second user under the first account book, and updating the calculated second new balance to the shared asset account book;
the step of updating the balance of the second user account of the second user in the second account book and the balance of the fourth account of the first user in the second account book according to the second ciphertext comprises:
deducting the preset exchange transaction share from the balance of the second user account of the second user under the second account book according to a third preset balance calculation formula, calculating a third new balance of the second user account of the second user under the second account book, and updating the calculated third new balance to the shared asset account book;
and adding the preset exchange transaction share in the balance of the fourth account of the first user under the second account book according to a fourth preset balance calculation formula, calculating a fourth new balance of the fourth account of the first user under the second account book, and updating the calculated fourth new balance to the shared asset account book.
10. A computer readable storage medium having stored thereon a blockchain based multi-ledger transfer system which, when executed by a processor, performs the steps of the blockchain based multi-ledger transfer method of any of claims 1-6.
CN201711382545.3A 2017-12-20 2017-12-20 Multi-account book transfer method based on block chain, electronic device and readable storage medium Active CN108241979B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711382545.3A CN108241979B (en) 2017-12-20 2017-12-20 Multi-account book transfer method based on block chain, electronic device and readable storage medium
PCT/CN2018/075881 WO2019119632A1 (en) 2017-12-20 2018-02-08 Blockchain-based transfer method for multiple account books, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711382545.3A CN108241979B (en) 2017-12-20 2017-12-20 Multi-account book transfer method based on block chain, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN108241979A CN108241979A (en) 2018-07-03
CN108241979B true CN108241979B (en) 2021-03-16

Family

ID=62700289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711382545.3A Active CN108241979B (en) 2017-12-20 2017-12-20 Multi-account book transfer method based on block chain, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN108241979B (en)
WO (1) WO2019119632A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003081B (en) * 2018-07-13 2021-11-02 北京创世智链信息技术研究院 Transaction method, system and storage medium based on block chain
CN109102286B (en) * 2018-08-02 2023-04-07 平安科技(深圳)有限公司 Cross-account book transaction method and device
CN109257336B (en) * 2018-08-24 2021-03-16 维沃移动通信有限公司 Block chain-based password information processing method and terminal equipment
CN110197433B (en) 2018-10-25 2021-07-27 腾讯科技(深圳)有限公司 Numerical value transferring method, device and system
CN110009316A (en) * 2018-12-14 2019-07-12 阿里巴巴集团控股有限公司 Event-handling method and device, electronic equipment based on block chain
CN110033363B (en) * 2018-12-14 2024-01-23 创新先进技术有限公司 Event processing method and device based on block chain and electronic equipment
CN110033370B (en) * 2019-02-01 2020-04-24 阿里巴巴集团控股有限公司 Account creation method and device, electronic equipment and storage medium
WO2019120331A2 (en) * 2019-04-12 2019-06-27 Alibaba Group Holding Limited Retrieving values of digital tickets using smart contracts in blockchain networks
CN110505046B (en) * 2019-07-29 2020-11-24 深圳壹账通智能科技有限公司 Multi-data provider encrypted data cross-platform zero-knowledge verification method, device and medium
US11943360B2 (en) 2021-06-22 2024-03-26 International Business Machines Corporation Generative cryptogram for blockchain data management
CN113570373B (en) * 2021-09-23 2022-02-11 北京理工大学 Responsibility pursuing transaction method and system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719185A (en) * 2016-01-22 2016-06-29 杭州复杂美科技有限公司 Block chain data comparison and consensus method
CN106549749A (en) * 2016-12-06 2017-03-29 杭州趣链科技有限公司 A kind of block chain method for secret protection encrypted based on additive homomorphism
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN107133796A (en) * 2017-04-18 2017-09-05 杭州复杂美科技有限公司 Across the chain method of summary of block chain
CN107358424A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 A kind of method of commerce and device based on digital cash

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102619230B1 (en) * 2015-07-02 2023-12-28 로얄 뱅크 오브 캐나다 Secure processing of electronic payments
CN105681301B (en) * 2016-01-16 2019-03-12 杭州复杂美科技有限公司 Settlement method on block chain
WO2018120057A1 (en) * 2016-12-30 2018-07-05 深圳前海达闼云端智能科技有限公司 Currency management method and system based on block chain
CN107240001B (en) * 2017-06-06 2020-12-04 北京汇通金财信息科技有限公司 Transaction method and system for digital assets

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719185A (en) * 2016-01-22 2016-06-29 杭州复杂美科技有限公司 Block chain data comparison and consensus method
CN106549749A (en) * 2016-12-06 2017-03-29 杭州趣链科技有限公司 A kind of block chain method for secret protection encrypted based on additive homomorphism
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN107133796A (en) * 2017-04-18 2017-09-05 杭州复杂美科技有限公司 Across the chain method of summary of block chain
CN107358424A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 A kind of method of commerce and device based on digital cash

Also Published As

Publication number Publication date
CN108241979A (en) 2018-07-03
WO2019119632A1 (en) 2019-06-27

Similar Documents

Publication Publication Date Title
CN108241979B (en) Multi-account book transfer method based on block chain, electronic device and readable storage medium
WO2019144612A1 (en) Zero-knowledge multi-account-book exchange transfer method and apparatus based on blockchain, and storage medium
US11877213B2 (en) Methods and systems for asset obfuscation
CN106559211B (en) Privacy protection intelligent contract method in block chain
CN110419053B (en) System and method for information protection
RU2718229C1 (en) Establishing secure channel
WO2021114819A1 (en) Methods for generating and executing smart contract transaction and device
CN108564353A (en) Payment system based on block chain and method
JP2022545145A (en) Dynamic off-chain digital currency transaction processing
CN105684346A (en) Method for securing over-the-air communication between a mobile application and a gateway
CN109064324A (en) Method of commerce, electronic device and readable storage medium storing program for executing based on alliance's chain
WO2020051710A1 (en) System and process for managing digitized security tokens
CN109922084A (en) Key management method, device and electronic equipment
KR101976027B1 (en) Method for generating and backing up electric wallet and user terminal and server using the same
US20230103038A1 (en) Method for directly transferring electronic coin data sets between terminals, payment system, currency system and monitoring unit
CN104462949A (en) Method and device for calling plug-in
CN109615525A (en) Multi-signature shares guard method, system and the electronic equipment of account
US11922428B2 (en) Security for contactless transactions
US9246677B2 (en) Method and system for secure data communication between a user device and a server
CN109102286B (en) Cross-account book transaction method and device
CN115705601A (en) Data processing method and device, computer equipment and storage medium
CN111768199A (en) Digital currency transaction method and local wallet system
CN112184216A (en) Digital currency transaction method, device, digital currency transaction system and storage medium
CN111861462A (en) Financial product transaction method and device based on block chain
CN116823257A (en) Information processing method, device, equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1250079

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant