CN108241979A - More account book transfer account methods, electronic device and readable storage medium storing program for executing based on block chain - Google Patents

More account book transfer account methods, electronic device and readable storage medium storing program for executing based on block chain Download PDF

Info

Publication number
CN108241979A
CN108241979A CN201711382545.3A CN201711382545A CN108241979A CN 108241979 A CN108241979 A CN 108241979A CN 201711382545 A CN201711382545 A CN 201711382545A CN 108241979 A CN108241979 A CN 108241979A
Authority
CN
China
Prior art keywords
account
user
account book
ciphertext
under
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711382545.3A
Other languages
Chinese (zh)
Other versions
CN108241979B (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 Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
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

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/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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

Abstract

The present invention relates to a kind of more account book transfer account methods based on block chain, electronic device and readable storage medium storing program for executing, this method to include:If the first user account of the first user initiates the transaction request for exchanging default exchange trading share by default exchange rate with the second user account of second user under the second account book under the first account book in block chain, the first ciphertext that the first user encrypts generation in advance is received;First ciphertext is that generation is encrypted using the second preset password formula and corresponding trade share privacy secret key in default exchange trading share;By the first default exchange calculation formula and based on default exchange rate and the first ciphertext, the exchange trading share, encryption exchange trading share and corresponding trade share privacy secret key of the second account book are calculated, and generate the second ciphertext of the second account book;Transaction is completed based on the first ciphertext and the second ciphertext.The present invention can realize more account book transfer operations in block chain technology scene is effectively ensured in the case of trading information safety.

Description

More account book transfer account methods, electronic device and readable storage medium storing program for executing based on block chain
Technical field
The present invention relates to field of computer technology more particularly to a kind of more account book transfer account methods, electronics based on block chain Device and readable storage medium storing program for executing.
Background technology
Decentralization that block chain technology has by it, information can not tamper the features such as, increasingly by finance, insurance Wait fields company favor, especially with block chain technology realization participate in many ways transaction event (for example, money transfer transactions, The events such as payment transaction) focus of concern is increasingly becomed, for example, bank B is given when bank A will sell 100 bills, if this Transaction carries out on block chain, then the every other node on block chain can all verify this transaction, and benefit is other Participant can participate in confirming transaction accuracy together, but cannot understand (decryption) data (also known as Zero Knowledge detection).
In order to ensure the privacy of transaction, industry would generally be in transaction using privacy transaction encryption/decryption algorithm at present.So And existing privacy transaction encryption/decryption algorithm is generally limited only to the operation in the next account book of block chain technology scene, such as X shares in one assets account book are gone to second account from first account.However, in actual block chain technology scene, each pen It transfers accounts and is likely to involve two or more account books, then this existing privacy transaction encryption/decryption algorithm will be unable to realize block chain This privacy transaction under technology scene.
Therefore, how in block chain technology scene is effectively ensured in the case of trading information safety, realize that more account books turn Account operates, and has become the technical issues of a kind of urgently to be resolved hurrily.
Invention content
The purpose of the present invention is to provide a kind of more account book transfer account methods, electronic device and readable storages based on block chain Medium, it is intended in the case of ensureing trading information safety, realize more account book transfer operations in block chain technology scene.
To achieve the above object, the present invention provides a kind of more account book transfer account methods based on block chain, is filled applied to electronics It puts, more account book transfer account methods based on block chain include:
A, if the first user account of the first user is initiated and second user under the second account book under the first account book in block chain Second user account transaction request, then receive the first ciphertext that first user encrypts generation in advance;The transaction please The request for default exchange trading share is exchanged by default exchange rate is asked, first ciphertext is default exchange trading part The first ciphertext of generation is encrypted using the second preset password formula and corresponding trade share privacy secret key for volume;
B, by first it is default exchange calculation formula and based on the default exchange rate and first ciphertext, be described the The exchange trading share, encryption exchange trading share and corresponding trade share privacy that two account books calculate second account book are secret Key, and generate the encryption exchange trading share of second account book and the second ciphertext of corresponding trade share privacy secret key;
C, based on first ciphertext and the second ciphertext, and the first user under first account book is completed by preset rules First user account and the transaction of the second user account of second user under second account book.
Preferably, the step C includes:
Receive the first ciphertext after electronic signature;The first ciphertext after the electronic signature is first user by described in After first ciphertext issues the second user, if the second user confirms default exchange trading share according to first ciphertext With default exchange rate, then the second user electronic signature generation is carried out to first ciphertext;
The first ciphertext after the electronic signature is write on the shared assets account book on each node of block chain;
The remaining sum of the first user account of first user and described is updated under first account book according to first ciphertext The remaining sum of the third account of second user under first account book, and the second use under second account book is updated according to second ciphertext The remaining sum of the 4th account of first user under the remaining sum of the second user account at family and second account book.
Preferably, it is described that the first user account of first user under first account book is updated according to first ciphertext Include the step of the remaining sum of the third account of second user under remaining sum and first account book:
According to the remaining sum of first default remaining sum calculation formula first user account of the first user under first account book Middle to deduct the default exchange trading share, calculate the first user account of the first user under first account book first is new Remaining sum, and will be in the first new balance that calculated update to shared assets account book;
Increased in the remaining sum of the third account of second user under first account book according to the second default remaining sum calculation formula Add the default exchange trading share, calculate the second new balance of the third account of second user under first account book, and It will be in the second new balance that calculated update to shared assets account book.
Preferably, it is described that the second user account of second user under second account book is updated according to second ciphertext Include the step of the remaining sum of the 4th account of the first user under remaining sum and second account book:
The remaining sum of remaining sum calculation formula second user account of second user under second account book is preset according to third Middle to deduct the default exchange trading share, the third for calculating the second user account of second user under second account book is new Remaining sum, and will be in the third new balance that calculated update to shared assets account book;
Increased in the remaining sum of the 4th account of the first user under second account book according to the 4th default remaining sum calculation formula Add the default exchange trading share, calculate the 4th new balance of the 4th account of the first user under second account book, and It will be on the "four news" (new ideas balance updates that calculated to shared assets account book.
Preferably, the third presets the third account that remaining sum calculation formula is additionally operable to the second user under first account book Increase the default exchange trading share in the remaining sum at family, calculate of the third account of second user under first account book Two new balances;Alternatively, the third presets the 4th account that remaining sum calculation formula is additionally operable to the first user under second account book The default exchange trading share is deducted in the remaining sum at family, calculates the of the 4th account of the first user under second account book Four new balances.
Preferably, the step B replaces with following steps:
The first ciphertext and the second ciphertext after electronic signature are received, and by the first ciphertext and the second ciphertext after electronic signature It writes on the shared assets account book on each node of block chain;Wherein, the first ciphertext after the electronic signature and second close The generating process of text is as follows:
By first user by the first default exchange calculation formula and based on the default exchange rate and described first Ciphertext calculates exchange trading share, the encryption exchange trading share and corresponding of second account book for second account book Trade share privacy secret key, and generate the encryption exchange trading share of second account book and corresponding trade share privacy secret key The second ciphertext;First ciphertext and second ciphertext are issued the second user by first user;If described Two users confirm the default exchange trading share and default exchange rate, then the second user is to first ciphertext and described Second ciphertext signs electronically.
In addition, to achieve the above object, the present invention also provides a kind of electronic device, the electronic device include memory, Processor is stored with the more account book fund transfer systems based on block chain that can be run on the processor, institute on the memory It states when more account book fund transfer systems based on block chain are performed by the processor and realizes following steps:
If the first user account of the first user is initiated and second user under the second account book under the first account book in block chain The transaction request of second user account then receives the first ciphertext that first user encrypts generation in advance;The transaction request For the request for exchanging default exchange trading share by default exchange rate, first ciphertext is default exchange trading share The first ciphertext of generation is encrypted using the second preset password formula and corresponding trade share privacy secret key;
It is described second by the first default exchange calculation formula and based on the default exchange rate and first ciphertext The exchange trading share, encryption exchange trading share and corresponding trade share privacy that account book calculates second account book are secret Key, and generate the encryption exchange trading share of second account book and the second ciphertext of corresponding trade share privacy secret key;
The of the first user under first account book is completed based on first ciphertext and the second ciphertext, and by preset rules One user account and the transaction of the second user account of second user under second account book.
Preferably, more account book fund transfer systems based on block chain are performed by the processor realizes described in described be based on First ciphertext and the second ciphertext, and by preset rules complete under first account book the first user account of the first user with it is described Under second account book during the step of the transaction of the second user account of second user, specifically include:
Receive the first ciphertext after electronic signature;The first ciphertext after the electronic signature is first user by described in After first ciphertext issues the second user, if the second user confirms default exchange trading share according to first ciphertext With default exchange rate, then the second user electronic signature generation is carried out to first ciphertext;
The first ciphertext after the electronic signature is write on the shared assets account book on each node of block chain;
The remaining sum of the first user account of first user and described is updated under first account book according to first ciphertext The remaining sum of the third account of second user under first account book, and the second use under second account book is updated according to second ciphertext The remaining sum of the 4th account of first user under the remaining sum of the second user account at family and second account book.
Preferably, it is described that the first user account of first user under first account book is updated according to first ciphertext Include the step of the remaining sum of the third account of second user under remaining sum and first account book:
According to the remaining sum of first default remaining sum calculation formula first user account of the first user under first account book Middle to deduct the default exchange trading share, calculate the first user account of the first user under first account book first is new Remaining sum, and will be in the first new balance that calculated update to shared assets account book;
Increased in the remaining sum of the third account of second user under first account book according to the second default remaining sum calculation formula Add the default exchange trading share, calculate the second new balance of the third account of second user under first account book, and It will be in the second new balance that calculated update to shared assets account book;
It is described according to second ciphertext update under second account book remaining sum of the second user account of second user and Include the step of the remaining sum of the 4th account of the first user under second account book:
The remaining sum of remaining sum calculation formula second user account of second user under second account book is preset according to third Middle to deduct the default exchange trading share, the third for calculating the second user account of second user under second account book is new Remaining sum, and will be in the third new balance that calculated update to shared assets account book;
Increased in the remaining sum of the 4th account of the first user under second account book according to the 4th default remaining sum calculation formula Add the default exchange trading share, calculate the 4th new balance of the 4th account of the first user under second account book, and It will be on the "four news" (new ideas balance updates that calculated to shared assets account book.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with more account book fund transfer systems based on block chain, and more account book fund transfer systems based on block chain can It is performed by least one processor, so that at least one processor performs more account books based on block chain as described above and transfers accounts The step of method.
More account book transfer account methods, system and readable storage medium storing program for executing proposed by the present invention based on block chain, in block chain The first user account of the first user initiates to preset with the second user account of second user under the second account book under first account book After the transaction request that exchange trading share is exchanged by default exchange rate, receive first user and handed in advance for default exchange The first ciphertext of generation is encrypted using the second preset password formula and corresponding trade share privacy secret key for easy share;Pass through First default exchange calculation formula is simultaneously based on the default exchange rate and first ciphertext, and generation is calculated for second account book The encryption exchange trading share of second account book and the second ciphertext of corresponding trade share privacy secret key;Based on described first Ciphertext and the second ciphertext, and by the first user account and described second of the first user under preset rules completion first account book The transaction of the second user account of second user under account book.Due to can hand over the default exchange of the first user account under the first account book The first ciphertext of generation is encrypted using the second preset password formula and corresponding trade share privacy secret key in easy share, and is institute State the second account book calculates the encryption exchange trading share for generating second account book and corresponding trade share privacy secret key the Two ciphertexts complete the first user account and second account under first account book based on first ciphertext and the second ciphertext The transactional operation of this lower second user account, it is close to decrypt described first for only the first user or second user in process of exchange To know the specific exchange trading share data of transaction, other nodes on block chain can not be understood specifically for text or the second ciphertext Exchange trading share data, so as to realize more accounts in the case of trading information safety in block chain technology scene is effectively ensured This transfer operation.
Description of the drawings
Fig. 1 is the running environment schematic diagram of more 10 preferred embodiments of account book fund transfer system the present invention is based on block chain;
Fig. 2 is the flow diagram of more one embodiments of account book transfer account method the present invention is based on block chain.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made All other embodiments obtained are put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not the present invention claims Protection domain within.
The present invention provides a kind of more account book fund transfer systems based on block chain.Referring to Fig. 1, it is that the present invention is based on block chains More 10 preferred embodiments of account book fund transfer system running environment schematic diagram.
In the present embodiment, more account book fund transfer systems 10 based on block chain are installed and run on electronic device 1 In.The electronic device 1 may include, but be not limited only to, memory 11, processor 12 and network interface 13.Fig. 1, which is illustrated only, to be had The electronic device 1 of component 11-13, it should be understood that being not required for implementing all components shown, the implementation that can be substituted More or less components.
The electronic device 1 connects network (Fig. 1 is not marked) by network interface 13, obtains information.The network can be with It is intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, the wirelessly or non-wirelessly network such as speech path network.
The memory 11 is the readable computer storage medium of at least one type, and the memory 11 is implemented at some Can be the internal storage unit of the electronic device 1 in example, such as the hard disk or memory of the electronic device 1.The memory 11 can also be in further embodiments the External memory equipment of the electronic device 1, such as are equipped on the electronic device 1 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card) etc..Further, the memory 11 can also both include the storage inside of the electronic device 1 Unit also includes External memory equipment.The memory 11 is installed on the application software of the electronic device 1 and each for storing Class data, such as described program code of more account book fund transfer systems 10 based on block chain etc..The memory 11 can also be used In temporarily storing the data that have exported or will export.
The processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for running the program code stored in the memory 11 or processing number According to, such as perform described more account book fund transfer systems 10 based on block chain etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the electronic device 1 and other electronic equipments.
More account book fund transfer systems 10 based on block chain include at least one computer being stored in the memory 11 Readable instruction, at least one computer-readable instruction can be performed by the processor 12, to realize each embodiment of the application.
Wherein, following step is realized when above-mentioned more account book fund transfer systems 10 based on block chain are performed by the processor 12 Suddenly:
Step S1, if the first user account of the first user is initiated and under the second account book second under the first account book in block chain The transaction request of the second user account of user then receives the first ciphertext that first user encrypts generation in advance;The friendship Easily request is the request for exchanging default exchange trading share by default exchange rate, and first ciphertext is that default exchange is handed over The first ciphertext of generation is encrypted using the second preset password formula and corresponding trade share privacy secret key for easy share.
In the present embodiment, first by the user in block chain or mechanism by oneself each user under each account book The remaining sum of account is encrypted, and using the first preset password formula and corresponding remaining sum privacy secret key by oneself in each account This lower encrypted remaining sum of each user account is write by the intelligent contract of block chain on each node of the block chain On shared assets account book.For example, using Pederson Commitment algorithms, the first preset password formula is a'ij=g^ aij*h^xij, alternatively, a'ij=h^aij*g^xij, wherein, aijRepresent the remaining sum of j-th of user account under the i-th account book, xijGeneration The remaining sum privacy secret key of j-th of user account under the i-th account book of table, a'ijRepresent adding for j-th of user account under the i-th account book Close remaining sum, g and h are the base in discrete logarithm problem, and h=g^c, c are unknown number, and i and j are positive integer.
The first user account hair of the first user under the first account book (for example, first account book can be RMB account book) It rises default exchange with the second user account of second user under the second account book (for example, second account book can be a dollar account book) Trade share is exchanged by default exchange rate, and (the default exchange trading share and the default exchange rate can carry in intelligent contract Preceding setting) transaction request before, by first user for the default exchange trading share using the second preset password formula and The first ciphertext of generation is encrypted in corresponding trade share privacy secret key.For example, the second preset password formula is t'1ij=g ^tij*h^zij, alternatively, t'1ij=h^tij*g^zij, wherein, tijRepresent the exchange trading of j-th of user account under the i-th account book Share, zijRepresent the exchange trading share privacy secret key of j-th of user account under the i-th account book, t'1ijIt represents under the i-th account book The encryption exchange trading share of j-th of first user accounts, g and h are base, and h is a n times side of g, and n is positive integer, and i and j are Positive integer.
Step S2 by the first default exchange calculation formula and is based on the default exchange rate and first ciphertext, is Second account book calculates the exchange trading share, encryption exchange trading share and corresponding trade share of second account book Privacy secret key, and generate second account book encryption exchange trading share and corresponding trade share privacy secret key it is second close Text.
In the present embodiment, if confirming, the transaction is that this is preset exchange trading share using default exchange rate e (for example, people People's coin is 7 to the exchange rate of dollar, then e=7) it is exchanged, then the first default exchange calculation formula is passed through by intelligent contract And based on the default exchange rate e and the first ciphertext, calculate the exchange trading share of the second account book for the second account book, encryption is converted Trade share and corresponding trade share privacy secret key are changed, and the encryption exchange of the second account book is directly generated inside intelligent contract Second ciphertext of trade share and corresponding trade share privacy secret key.For example, the first default transaction change calculation formula For t'2ij=(t'1ij) ^e=(g^tij*h^zij) ^e,Alternatively,Its In, tij* e represents the exchange trading share of j-th of user account under the i-th account book, zij* e represents j-th of use under the i-th account book The exchange trading share privacy secret key of family account, t'2ijFriendship is exchanged in the encryption for representing j-th of second user account under the i-th account book Easy share, g and h are base, and h is a n times side of g, and n is positive integer, and i and j are positive integer.
Step S3 is completed based on first ciphertext and the second ciphertext, and by preset rules first under first account book The first user account of user and the transaction of the second user account of second user under second account book.
In the present embodiment, the of the first user under first account book can be completed based on first ciphertext and the second ciphertext One user account and the transaction of the second user account of second user under second account book.It for example, can be by default exchange trading Share is pressed default exchange rate first user account of the first user under first account book and is used under second account book second Money transfer transactions are carried out between the second user account at family.Can also by the first user in first account book (for example, first account book Can be RMB account book) and second account book (for example, second account book can be a dollar account book) under all users Account is carried out at the same time update (such as balance updates), by second user in first account book (for example, first account book can be RMB account book) and second account book (for example, second account book can be a dollar account book) under all user accounts it is same When be updated (such as balance updates).For example, if first will exchange dollar by RMB with second, first and second in the present embodiment RMB and the account of dollar can realize while update, complete the privacy that more account books are transferred accounts under block chain technology scene and hand over Easily.
Compared with prior art, the first user account of the present embodiment first user under the first account book in block chain is initiated The friendship for exchanging default exchange trading share by default exchange rate with the second user account of second user under the second account book Easily after request, receive first user and use the second preset password formula and corresponding friendship for default exchange trading share in advance The first ciphertext of generation is encrypted in easy share privacy secret key;It is converted by the first default exchange calculation formula and based on described preset Rate and first ciphertext are changed, the encryption exchange trading share and correspondence for generating second account book are calculated for second account book Trade share privacy secret key the second ciphertext;Based on first ciphertext and the second ciphertext, and as described in being completed preset rules The first user account of first user and the transaction of the second user account of second user under second account book under first account book. Due to can be to the default exchange trading share of the first user account under the first account book using the second preset password formula and corresponding The first ciphertext of generation is encrypted in trade share privacy secret key, and is calculated for second account book and generate adding for second account book Second ciphertext of close exchange trading share and corresponding trade share privacy secret key, based on first ciphertext and the second ciphertext come The first user account and the transactional operation of second user account under second account book under first account book are completed, was being merchandised Only the first user or second user can decrypt first ciphertext or the second ciphertext to know that specific exchange of transaction is handed in journey Easy share data, other nodes on block chain can not understand specific exchange trading share data, so as to which area be effectively ensured In block chain technology scene in the case of trading information safety, more account book transfer operations are realized.
In an optional embodiment, on the basis of the embodiment of above-mentioned Fig. 1, more account books based on block chain turn When account system 10 performs the realization step S3 by the processor 12, specifically include:
Receive the first ciphertext after electronic signature;The first ciphertext after the electronic signature is first user by described in After first ciphertext issues the second user, if the second user confirms default exchange trading share according to first ciphertext With default exchange rate, then the second user electronic signature generation is carried out to first ciphertext.After the electronic signature First ciphertext is write on the shared assets account book on each node of block chain.In the present embodiment, the first user is by the first ciphertext Issue second user;If the second user confirms the default exchange trading share and default exchange rate, the second user is to this First ciphertext signs electronically, and the first ciphertext after electronic signature is write the block by the intelligent contract of the block chain On shared assets account book on each node of chain, alternatively, the second user by the first ciphertext after electronic signature give this The first ciphertext after electronic signature is write the block chain by one user for first user by the intelligent contract of the block chain On shared assets account book on each node.
The remaining sum of the first user account of first user and described is updated under first account book according to first ciphertext The remaining sum of the third account of second user under first account book, and the second use under second account book is updated according to second ciphertext The remaining sum of the 4th account of first user under the remaining sum of the second user account at family and second account book.
In the present embodiment, the first user under first account book (for example, first account book can be RMB account book) First user account initiates the second user with second user under the second account book (for example, second account book can be a dollar account book) After the default trade share of account and the transaction request of default exchange valency, the intelligent contract of the block chain is according to first ciphertext Update the third account of the remaining sum of the first user account of the first user and second user under first account book under first account book Remaining sum, and the remaining sum of the 4th account of the first user and second account book under second account book are updated according to second ciphertext The remaining sum of the second user account of lower second user.Wherein, the first user account and the 4th account are all the accounts of the first user, Account of respectively the first user under first account book and second account book, for example, the first user account is the first user's RMB account book account, the 4th account are the dollar account book account of the first user.Second user account and third account are all The account of the account of two users, respectively second user under second account book and first account book, for example, second user account For the dollar account book account of second user, third account is the RMB account book account of second user.
Specifically, it is described to be updated under first account book more than the first user account of the first user according to first ciphertext Include the step of the remaining sum of the third account of second user under volume and first account book:
Intelligent contract is according to the first user account of first default remaining sum calculation formula first user under first account book Remaining sum in deduct the default exchange trading share, calculate of the first user account of the first user under first account book One new balance, and will be in the first new balance that calculated update to shared assets account book.For example, the first default remaining sum calculates Formula is a1ij"=a1ij'/t1ij'=(g^a1ij*h^x1ij)/(g^tij*h^zij)=g^ (a1ij–tij)*h^(x1ij–zij) or Person, a1ij"=h^ (a1ij–tij)*g^(x1ij–zij).Wherein, a1ijRepresent the remaining of j-th of first user accounts under the i-th account book Volume, x1ijRepresent the remaining sum privacy secret key of j-th of first user accounts under the i-th account book, a1ij" represent j-th under the i-th account book The encryption new balance of first user account, g and h are base, and h is a n times side of g, and i and j are positive integer, " a1ij-tij" represent The new balance of j-th of first user accounts under i account books, " x1ij-zij" represent j-th of first user accounts under the i-th account book Newly obscure remaining sum privacy secret key, tijRepresent the trade share of j-th of first user accounts under the i-th account book, zijRepresent the i-th account The trade share privacy secret key of j-th of first user accounts under this.
Intelligent contract is according to the second default remaining sum calculation formula under first account book more than the third account of second user Increase the default exchange trading share in volume, calculate the second Xinyu of the third account of second user under first account book Volume, and will be in the second new balance that calculated update to shared assets account book.For example, the second default remaining sum calculation formula is a3ij"=a3ij'*t1ij'=(g^a3ij*h^y3ij)*(g^tij*h^zij)=g^ (a3ij+tij)*h^(y3ij+zij), alternatively, a3ij” =h^ (a3ij+tij)*g^(y3ij+zij), a3ijRepresent the remaining sum of j-th of third account under the i-th account book, Y3ijRepresent the i-th account book Under j-th of third account remaining sum privacy secret key, a3ij" the encryption new balance of j-th of third account under the i-th account book is represented, G and h is base, and h is a n times side of g, and i and j are positive integer, " a3ij+tij" represent j-th of third account under the i-th account book New balance, " y3ij+zij" represent the new of j-th of third account under the i-th account book and obscure remaining sum privacy secret key, tijRepresent the i-th account The trade share of j-th of third account under this, zijThe trade share privacy for representing j-th of third account under the i-th account book is secret Key.
It is described according to second ciphertext update under second account book remaining sum of the 4th account of the first user and this second Include the step of the remaining sum of the second user account of second user under account book:
Intelligent contract presets the second user account of remaining sum calculation formula second user under second account book according to third Remaining sum in deduct the default exchange trading share, calculate of the second user account of second user under second account book Three new balances, and will be in the third new balance that calculated update to shared assets account book.For example, the third presets remaining sum calculating 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-(zij* e)), wherein, a2ijIt represents under the i-th account book The remaining sum of j-th of second user account, x2ijThe remaining sum privacy secret key of j-th of second user account under the i-th account book is represented, a2ij" represent the encryption new balance of j-th of second user account under the i-th account book, g and h are base, and h is a n times side of g, i and J is positive integer, " a2ij-(tij* the new balance of j-th of second user account under the i-th account book, " x e) " are represented2ij-(zij*e)” It represents the new of j-th of second user account under the i-th account book and obscures remaining sum privacy secret key, " tij* e " represents the jth under the i-th account book The trade share of a second user account, " zij* e " represents the trade share privacy of j-th of second user account under the i-th account book Secret key.
Intelligent contract is according to the 4th default remaining sum calculation formula under second account book more than the 4th account of the first user Increase the default exchange trading share in volume, calculate the 4th Xinyu of the 4th account of the first user under second account book Volume, and will be on the "four news" (new ideas balance updates that calculated to shared assets account book.For example, the 4th default remaining sum calculation formula is a4ij"=a4ij'*t2ij'=(g^a4ij*h^y4ij)*(g^(tij*e)*h^(zij* e))=g^ (a4ij+(tij*e))*h^(y4ij+ (zij* e)), alternatively, a4ij"=h^ (a4ij+(tij*e))*g^(y4ij+(zij* e)), a4ijRepresent j-th the 4th under the i-th account book The remaining sum of account, Y4ijRepresent the remaining sum privacy secret key of j-th of the 4th accounts under the i-th account book, a4ij" represent under the i-th account book The encryption new balance of j-th of the 4th accounts, g and h are base, and h is a n times side of g, and i and j are positive integer, " a4ij+(tij*e)” Represent the new balance of j-th of the 4th accounts under the i-th account book, " y4ij+(zij* j-th of the 4th accounts under the i-th account book e) " are represented New obscure remaining sum privacy secret key, " tij* e " represents the trade share of j-th of the 4th accounts under the i-th account book, " zij* e " is represented The trade share privacy secret key of j-th of the 4th accounts under i-th account book.
Further, third presets the third account that remaining sum calculation formula can also be the second user under first account book Remaining sum in increase the default exchange trading share, calculate the third account of second user under first account book second is new Remaining sum, and will be in the second new balance that calculated update to shared assets account book.Third presets remaining sum calculation formula The default exchange trading share is deducted in the remaining sum of the 4th account of the first user under second account book, calculate this second 4th new balance of the 4th account of the first user under account book, and by the "four news" (new ideas balance updates calculated to shared assets account book On.
In an optional embodiment, the step S2 replaces with following steps:
The first ciphertext and the second ciphertext after electronic signature are received, and by the first ciphertext and the second ciphertext after electronic signature It writes on the shared assets account book on each node of block chain;Wherein, the first ciphertext after the electronic signature and second close The generating process of text is as follows:
By first user by the first default exchange calculation formula and based on the default exchange rate and described first Ciphertext calculates exchange trading share, the encryption exchange trading share and corresponding of second account book for second account book Trade share privacy secret key, and generate the encryption exchange trading share of second account book and corresponding trade share privacy secret key The second ciphertext;First ciphertext and second ciphertext are issued the second user by first user;If described Two users confirm the default exchange trading share and default exchange rate, then the second user is to first ciphertext and described Second ciphertext signs electronically.
In the present embodiment, if being confirmed as the default exchange trading share using default exchange rate e, passed through by the first user First default exchange calculation formula is simultaneously based on the default exchange rate e and the first ciphertext, and the second account book is calculated for the second account book Exchange trading share, encryption exchange trading share and corresponding trade share privacy secret key, and generate the encryption of the second account book Second ciphertext of exchange trading share and corresponding trade share privacy secret key.First user is by the first ciphertext and the second ciphertext Issue second user.If the second user confirms the default exchange trading share and default exchange rate, the second user is to this First ciphertext and the second ciphertext sign electronically, and the first ciphertext after electronic signature and the second ciphertext are passed through the block chain Intelligent contract write on the shared assets account book on each node of the block chain, alternatively, the second user will sign electronically The first ciphertext and the second ciphertext afterwards is sent to first user, for first user by the first ciphertext after electronic signature and Two ciphertexts are write by the intelligent contract of the block chain on the shared assets account book on each node of the block chain.
Further, third can also be created according to this on the basis of above-described embodiment, in the present embodiment, the 4th very It transfers accounts while to more account books.For example, if there is third account book needs to carry out share exchange in real time, it can be by following Step is realized:(1), third account book and the first account book or the exchange volume f with the second account book are set on intelligent contract;(2), by intelligence Energy contract or the first user are calculated by the first default exchange calculation formula and exchange volume f to be needed to correspond to account on third account book The volume of transferring accounts at family;(3), the 5th default remaining sum calculation formula and the 6th default remaining sum calculation formula are set up on third account book, is led to Crossing intelligent contract increases and deducts the share on corresponding account.
In a specific embodiment, it is illustrated by taking account book 1 and account book 2 as an example below:
Step 1:A kind of password with additive homomorphism characteristic of remaining sum for each user account under each account book Formula is encrypted, and only the owner of account can decrypt the remaining sum for reading oneself account by oneself " account privacy secret key ". It illustrates by taking Pederson Commitment and ECC (elliptic curve) as an example, certainly, does not also limit using other herein Such as RSA, Diffie-Hellman.
Such as available Pederson Commitment represent each account, and the remaining sum that first account will be used in account book 1 exchanges account for Second account book 2 remaining sum, such as first by RMB (account book 1) with second exchange dollar (account book 2), first can be in account book 1 groups of people People's coin remaining sum is given to second, and the dollar of oneself then can be given to first by second in account book 2.For account book 1, a1=first account book is defined 1 remaining sum, 1 remaining sum of first account book after a1 '=code obfuscation, 1 remaining sum privacy secret key of x1=first account book, then more than first account Volume is:(elliptic curve formula is a1 '=g^a1*h^x1:A1 '=a1G+x1H).Define b1=second account RMB remaining sums, b1 ' Second account RMB remaining sum after=code obfuscation, y1=second account RMB remaining sum privacy secret keys, then second account balance be: (elliptic curve formula is b1 '=g^b1*h^y1:B1 '=b1G+y1H).For account book 2, a2=first account book more than 2 is defined Volume, 2 remaining sum of first account book after a2 '=code obfuscation, 2 remaining sum privacy secret key of x2=first account book, then first account balance For:(elliptic curve formula is a2 '=g^a2*h^x2:A2 '=a2G+x2H).Definition b2=second account RMB remaining sums, b2 '= Second account RMB remaining sum after code obfuscation, y2=second account RMB remaining sum privacy secret keys, then second account balance be:b2’ (elliptic curve formula is=g^b2*h^y2:B2 '=b2G+y2H).
Step 2:If the first remaining sum of account book 1 exchanges remaining sum of the second in account book 2, first can create two ciphertexts, first A is 1 trade share of account book protected with additive homomorphism ciphertext, and second is by encrypting converting for the account book 1 obscured and account book 2 Change valency (such as exchange rate).
The initiator's (first) that transfers accounts can voluntarily generate the first ciphertext homomorphism privacy secret key and the second ciphertext privacy it is secret They and the first ciphertext and the second ciphertext are simultaneously issued counterpart's (second) by key, and are obtaining second accreditation and to the first ciphertext and the The signature of entire transaction and Party B is dealt into block chain network that (Party B's digital signature is represented to handing over after two ciphertext digital signature The accreditation of easy share and exchange rate), it is such as dealt on the intelligent contract of block chain.Such as define 1 trade share of t=account books, t '=close Code obscure after trade share, z=trade share privacy secret keys, then the first ciphertext (trade share) be:T '=g^t*h^z is (ellipse Circular curve formula is:T '=tG+zH).Define e=exchange rates.
Step 3:Block chain can update account book 2 while account book 1 is updated, update account book 2 after transaction request is received The step of have following three sub-steps:
Step 3 A deducts trade share, and simultaneously in the second account balance of account book 1 in the first account balance of account book 1 Increase trade share.First account is in 1 new share of account book:A1 "=a1 '/t ', a1 "=(g^a1*h^x1)/(g^t*h^z), a1 "= (elliptic curve formula is g^ (a1-t) * h^ (x1-z):A1 "=(a1-t) G+ (x1-z) H).First account new balance=a1-t, first Account newly obscures privacy secret key x1 '=(x1-z), and second account is in 1 new share of account book:B1 "=b1 ' * t ', b1 "=(g^b1*h^ Y1 (elliptic curve formula is) * (g^t*h^z), b1 "=g^ (b1+t) * h^ (y1+z):B1 "=(b1+t) G+ (y1+z) H).Second Account new balance b1 '=b1+t, second account newly obscure privacy secret key y1 '=y1+z.
Step 3 B, the intelligent contract on block chain is calculated by turnover (the first ciphertext) and exchange rate to be needed in account book 2 Carry out the corresponding trade share of transfer operation.The operation need to be carried out in the case where not decrypted to turnover, (the transaction of the first ciphertext Share):(elliptic curve formula is t '=g^t*h^z:T '=tG+zH), define transaction change rate:e.
The share that first account and second account are transferred the possession of in account book 2 is calculated under non-decrypting state;It merchandises since t represents account book 1 Share, e represent exchange rate, so te represents the transfer shares of account first and account second in account book 2.Then 2 trade share of account book= (elliptic curve formula is by t2=t*e=te, 2 trade share of account book (ciphertext) t2 '=(g^t*h^z) ^e=(g^te*h^ze): T2 '=(tG+zH) * e=teG+zeH).
Step 3 C plus trade share in the first account balance of account book 2, and subtracts in 2 second account balance of account book simultaneously Go trade share.First account is in 2 new share of account book:A2 "=a2 ' * t2 ', a2 "=(g^a2*h^x2) * (g^te*h^ze), a2 " (elliptic curve formula is=g^ (a2+te) * h^ (x2+ze):A2 "=(a2+te) G+ (x2+ze) H).First account new balance a2 ' =a2+te, first account newly obscure privacy secret key x2 '=x2+ze.Second account is in 1 new share of account book:B2 "=b2 '/t ', b2 "= (g^b2*h^y2) (elliptic curve formula is/(g^te*h^ze), b2 "=g^ (b2-te) * h^ (y2-ze):B2 "=(b2-te) G + (y2-ze) H), second account new balance b2 '=b2-te, second account newly obscures privacy secret key y2 '=y2-ze.
As shown in Fig. 2, Fig. 2 is the flow diagram of more one embodiments of account book transfer account method the present invention is based on block chain, More account book transfer account methods based on block chain include the following steps:
Step S10, if the first user account of the first user is initiated and under the second account book the under the first account book in block chain The transaction request of the second user account of two users then receives the first ciphertext that first user encrypts generation in advance;It is described Transaction request is the request for exchanging default exchange trading share by default exchange rate, and first ciphertext is exchanged to be default The first ciphertext of generation is encrypted using the second preset password formula and corresponding trade share privacy secret key for trade share.
In the present embodiment, first by the user in block chain or mechanism by oneself each user under each account book The remaining sum of account is encrypted, and using the first preset password formula and corresponding remaining sum privacy secret key by oneself in each account This lower encrypted remaining sum of each user account is write by the intelligent contract of block chain on each node of the block chain On shared assets account book.For example, using Pederson Commitment algorithms, the first preset password formula is a'ij=g^ aij*h^xij, alternatively, a'ij=h^aij*g^xij, wherein, aijRepresent the remaining sum of j-th of user account under the i-th account book, xijGeneration The remaining sum privacy secret key of j-th of user account under the i-th account book of table, a'ijRepresent adding for j-th of user account under the i-th account book Close remaining sum, g and h are the base in discrete logarithm problem, and h=g^c, c are unknown number, and i and j are positive integer.
The first user account hair of the first user under the first account book (for example, first account book can be RMB account book) It rises default exchange with the second user account of second user under the second account book (for example, second account book can be a dollar account book) Trade share is exchanged by default exchange rate, and (the default exchange trading share and the default exchange rate can carry in intelligent contract Preceding setting) transaction request before, by first user for the default exchange trading share using the second preset password formula and The first ciphertext of generation is encrypted in corresponding trade share privacy secret key.For example, the second preset password formula is t'1ij=g ^tij*h^zij, alternatively, t'1ij=h^tij*g^zij, wherein, tijRepresent the exchange trading of j-th of user account under the i-th account book Share, zijRepresent the exchange trading share privacy secret key of j-th of user account under the i-th account book, t'1ijIt represents under the i-th account book The encryption exchange trading share of j-th of first user accounts, g and h are base, and h is a n times side of g, and n is positive integer, and i and j are Positive integer.
Step S20 by the first default exchange calculation formula and is based on the default exchange rate and first ciphertext, is Second account book calculates the exchange trading share, encryption exchange trading share and corresponding trade share of second account book Privacy secret key, and generate second account book encryption exchange trading share and corresponding trade share privacy secret key it is second close Text.
In the present embodiment, if confirming, the transaction is that this is preset exchange trading share using default exchange rate e (for example, people People's coin is 7 to the exchange rate of dollar, then e=7) it is exchanged, then the first default exchange calculation formula is passed through by intelligent contract And based on the default exchange rate e and the first ciphertext, calculate the exchange trading share of the second account book for the second account book, encryption is converted Trade share and corresponding trade share privacy secret key are changed, and the encryption exchange of the second account book is directly generated inside intelligent contract Second ciphertext of trade share and corresponding trade share privacy secret key.For example, the first default transaction change calculation formula For t'2ij=(t'1ij) ^e=(g^tij*h^zij) ^e,Alternatively,Wherein, tij* e represents the exchange trading share of j-th of user account under the i-th account book, zij* e represents j-th of user under the i-th account book The exchange trading share privacy secret key of account, t'2ijRepresent the encryption exchange trading of j-th of second user account under the i-th account book Share, g and h are base, and h is a n times side of g, and n is positive integer, and i and j are positive integer.
Step S30 is completed based on first ciphertext and the second ciphertext, and by preset rules first under first account book The first user account of user and the transaction of the second user account of second user under second account book.
In the present embodiment, the of the first user under first account book can be completed based on first ciphertext and the second ciphertext One user account and the transaction of the second user account of second user under second account book.It for example, can be by default exchange trading Share is pressed default exchange rate first user account of the first user under first account book and is used under second account book second Money transfer transactions are carried out between the second user account at family.Can also by the first user in first account book (for example, first account book Can be RMB account book) and second account book (for example, second account book can be a dollar account book) under all users Account is carried out at the same time update (such as balance updates), by second user in first account book (for example, first account book can be RMB account book) and second account book (for example, second account book can be a dollar account book) under all user accounts it is same When be updated (such as balance updates).For example, if first will exchange dollar by RMB with second, first and second in the present embodiment RMB and the account of dollar can realize while update, complete the privacy that more account books are transferred accounts under block chain technology scene and hand over Easily.
Compared with prior art, the first user account of the present embodiment first user under the first account book in block chain is initiated The friendship for exchanging default exchange trading share by default exchange rate with the second user account of second user under the second account book Easily after request, receive first user and use the second preset password formula and corresponding friendship for default exchange trading share in advance The first ciphertext of generation is encrypted in easy share privacy secret key;It is converted by the first default exchange calculation formula and based on described preset Rate and first ciphertext are changed, the encryption exchange trading share and correspondence for generating second account book are calculated for second account book Trade share privacy secret key the second ciphertext;Based on first ciphertext and the second ciphertext, and as described in being completed preset rules The first user account of first user and the transaction of the second user account of second user under second account book under first account book. Due to can be to the default exchange trading share of the first user account under the first account book using the second preset password formula and corresponding The first ciphertext of generation is encrypted in trade share privacy secret key, and is calculated for second account book and generate adding for second account book Second ciphertext of close exchange trading share and corresponding trade share privacy secret key, based on first ciphertext and the second ciphertext come The first user account and the transactional operation of second user account under second account book under first account book are completed, was being merchandised Only the first user or second user can decrypt first ciphertext or the second ciphertext to know that specific exchange of transaction is handed in journey Easy share data, other nodes on block chain can not understand specific exchange trading share data, so as to which area be effectively ensured In block chain technology scene in the case of trading information safety, more account book transfer operations are realized.
In an optional embodiment, on the basis of above-described embodiment, the step S30 is specifically included:
Receive the first ciphertext after electronic signature;The first ciphertext after the electronic signature is first user by described in After first ciphertext issues the second user, if the second user confirms default exchange trading share according to first ciphertext With default exchange rate, then the second user electronic signature generation is carried out to first ciphertext.After the electronic signature First ciphertext is write on the shared assets account book on each node of block chain.In the present embodiment, the first user is by the first ciphertext Issue second user;If the second user confirms the default exchange trading share and default exchange rate, the second user is to this First ciphertext signs electronically, and the first ciphertext after electronic signature is write the block by the intelligent contract of the block chain On shared assets account book on each node of chain, alternatively, the second user by the first ciphertext after electronic signature give this The first ciphertext after electronic signature is write the block chain by one user for first user by the intelligent contract of the block chain On shared assets account book on each node.
The remaining sum of the first user account of first user and described is updated under first account book according to first ciphertext The remaining sum of the third account of second user under first account book, and the second use under second account book is updated according to second ciphertext The remaining sum of the 4th account of first user under the remaining sum of the second user account at family and second account book.
In the present embodiment, the first user under first account book (for example, first account book can be RMB account book) First user account initiates the second user with second user under the second account book (for example, second account book can be a dollar account book) After the default trade share of account and the transaction request of default exchange valency, the intelligent contract of the block chain is according to first ciphertext Update the third account of the remaining sum of the first user account of the first user and second user under first account book under first account book Remaining sum, and the remaining sum of the 4th account of the first user and second account book under second account book are updated according to second ciphertext The remaining sum of the second user account of lower second user.Wherein, the first user account and the 4th account are all the accounts of the first user, Account of respectively the first user under first account book and second account book, for example, the first user account is the first user's RMB account book account, the 4th account are the dollar account book account of the first user.Second user account and third account are all The account of the account of two users, respectively second user under second account book and first account book, for example, second user account For the dollar account book account of second user, third account is the RMB account book account of second user.
Specifically, it is described to be updated under first account book more than the first user account of the first user according to first ciphertext Include the step of the remaining sum of the third account of second user under volume and first account book:
Intelligent contract is according to the first user account of first default remaining sum calculation formula first user under first account book Remaining sum in deduct the default exchange trading share, calculate of the first user account of the first user under first account book One new balance, and will be in the first new balance that calculated update to shared assets account book.For example, the first default remaining sum calculates Formula is a1ij"=a1ij'/t1ij'=(g^a1ij*h^x1ij)/(g^tij*h^zij)=g^ (a1ij–tij)*h^(x1ij–zij) or Person, a1ij"=h^ (a1ij–tij)*g^(x1ij–zij).Wherein, a1ijRepresent the remaining of j-th of first user accounts under the i-th account book Volume, x1ijRepresent the remaining sum privacy secret key of j-th of first user accounts under the i-th account book, a1ij" represent j-th under the i-th account book The encryption new balance of first user account, g and h are base, and h is a n times side of g, and i and j are positive integer, " a1ij-tij" represent The new balance of j-th of first user accounts under i account books, " x1ij-zij" represent j-th of first user accounts under the i-th account book Newly obscure remaining sum privacy secret key, tijRepresent the trade share of j-th of first user accounts under the i-th account book, zijRepresent the i-th account The trade share privacy secret key of j-th of first user accounts under this.
Intelligent contract is according to the second default remaining sum calculation formula under first account book more than the third account of second user Increase the default exchange trading share in volume, calculate the second Xinyu of the third account of second user under first account book Volume, and will be in the second new balance that calculated update to shared assets account book.For example, the second default remaining sum calculation formula is a3ij"=a3ij'*t1ij'=(g^a3ij*h^y3ij)*(g^tij*h^zij)=g^ (a3ij+tij)*h^(y3ij+zij), alternatively, a3ij” =h^ (a3ij+tij)*g^(y3ij+zij), a3ijRepresent the remaining sum of j-th of third account under the i-th account book, Y3ijRepresent the i-th account book Under j-th of third account remaining sum privacy secret key, a3ij" the encryption new balance of j-th of third account under the i-th account book is represented, G and h is base, and h is a n times side of g, and i and j are positive integer, " a3ij+tij" represent j-th of third account under the i-th account book New balance, " y3ij+zij" represent the new of j-th of third account under the i-th account book and obscure remaining sum privacy secret key, tijRepresent the i-th account The trade share of j-th of third account under this, zijThe trade share privacy for representing j-th of third account under the i-th account book is secret Key.
It is described according to second ciphertext update under second account book remaining sum of the 4th account of the first user and this second Include the step of the remaining sum of the second user account of second user under account book:
Intelligent contract presets the second user account of remaining sum calculation formula second user under second account book according to third Remaining sum in deduct the default exchange trading share, calculate of the second user account of second user under second account book Three new balances, and will be in the third new balance that calculated update to shared assets account book.For example, the third presets remaining sum calculating 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-(zij* e)), wherein, a2ijIt represents under the i-th account book The remaining sum of j-th of second user account, x2ijThe remaining sum privacy secret key of j-th of second user account under the i-th account book is represented, a2ij" represent the encryption new balance of j-th of second user account under the i-th account book, g and h are base, and h is a n times side of g, i and J is positive integer, " a2ij-(tij* the new balance of j-th of second user account under the i-th account book, " x e) " are represented2ij-(zij*e)” It represents the new of j-th of second user account under the i-th account book and obscures remaining sum privacy secret key, " tij* e " represents the jth under the i-th account book The trade share of a second user account, " zij* e " represents the trade share privacy of j-th of second user account under the i-th account book Secret key.
Intelligent contract is according to the 4th default remaining sum calculation formula under second account book more than the 4th account of the first user Increase the default exchange trading share in volume, calculate the 4th Xinyu of the 4th account of the first user under second account book Volume, and will be on the "four news" (new ideas balance updates that calculated to shared assets account book.For example, the 4th default remaining sum calculation formula is a4ij"=a4ij'*t2ij'=(g^a4ij*h^y4ij)*(g^(tij*e)*h^(zij* e))=g^ (a4ij+(tij*e))*h^(y4ij+ (zij* e)), alternatively, a4ij"=h^ (a4ij+(tij*e))*g^(y4ij+(zij* e)), a4ijRepresent j-th the 4th under the i-th account book The remaining sum of account, Y4ijRepresent the remaining sum privacy secret key of j-th of the 4th accounts under the i-th account book, a4ij" represent under the i-th account book The encryption new balance of j-th of the 4th accounts, g and h are base, and h is a n times side of g, and i and j are positive integer, " a4ij+(tij*e)” Represent the new balance of j-th of the 4th accounts under the i-th account book, " y4ij+(zij* j-th of the 4th accounts under the i-th account book e) " are represented New obscure remaining sum privacy secret key, " tij* e " represents the trade share of j-th of the 4th accounts under the i-th account book, " zij* e " is represented The trade share privacy secret key of j-th of the 4th accounts under i-th account book.
Further, third presets the third account that remaining sum calculation formula can also be the second user under first account book Remaining sum in increase the default exchange trading share, calculate the third account of second user under first account book second is new Remaining sum, and will be in the second new balance that calculated update to shared assets account book.Third presets remaining sum calculation formula The default exchange trading share is deducted in the remaining sum of the 4th account of the first user under second account book, calculate this second 4th new balance of the 4th account of the first user under account book, and by the "four news" (new ideas balance updates calculated to shared assets account book On.
In an optional embodiment, the step S20 can be replaced following steps:
The first ciphertext and the second ciphertext after electronic signature are received, and by the first ciphertext and the second ciphertext after electronic signature It writes on the shared assets account book on each node of block chain;Wherein, the first ciphertext after the electronic signature and second close The generating process of text is as follows:
By first user by the first default exchange calculation formula and based on the default exchange rate and described first Ciphertext calculates exchange trading share, the encryption exchange trading share and corresponding of second account book for second account book Trade share privacy secret key, and generate the encryption exchange trading share of second account book and corresponding trade share privacy secret key The second ciphertext;First ciphertext and second ciphertext are issued the second user by first user;If described Two users confirm the default exchange trading share and default exchange rate, then the second user is to first ciphertext and described Second ciphertext signs electronically.
In the present embodiment, if being confirmed as the default exchange trading share using default exchange rate e, passed through by the first user First default exchange calculation formula is simultaneously based on the default exchange rate e and the first ciphertext, and the second account book is calculated for the second account book Exchange trading share, encryption exchange trading share and corresponding trade share privacy secret key, and generate the encryption of the second account book Second ciphertext of exchange trading share and corresponding trade share privacy secret key.First user is by the first ciphertext and the second ciphertext Issue second user.If the second user confirms the default exchange trading share and default exchange rate, the second user is to this First ciphertext and the second ciphertext sign electronically, and the first ciphertext after electronic signature and the second ciphertext are passed through the block chain Intelligent contract write on the shared assets account book on each node of the block chain, alternatively, the second user will sign electronically The first ciphertext and the second ciphertext afterwards is sent to first user, for first user by the first ciphertext after electronic signature and Two ciphertexts are write by the intelligent contract of the block chain on the shared assets account book on each node of the block chain.
Further, third can also be created according to this on the basis of above-described embodiment, in the present embodiment, the 4th very It transfers accounts while to more account books.For example, if there is third account book needs to carry out share exchange in real time, it can be by following Step is realized:(1), third account book and the first account book or the exchange volume f with the second account book are set on intelligent contract;(2), by intelligence Energy contract or the first user are calculated by the first default exchange calculation formula and exchange volume f to be needed to correspond to account on third account book The volume of transferring accounts at family;(3), the 5th default remaining sum calculation formula and the 6th default remaining sum calculation formula are set up on third account book, is led to Crossing intelligent contract increases and deducts the share on corresponding account.
In a specific embodiment, it is illustrated by taking account book 1 and account book 2 as an example below:
Step 1:A kind of password with additive homomorphism characteristic of remaining sum for each user account under each account book Formula is encrypted, and only the owner of account can decrypt the remaining sum for reading oneself account by oneself " account privacy secret key ". It illustrates by taking Pederson Commitment and ECC (elliptic curve) as an example, certainly, does not also limit using other herein Such as RSA, Diffie-Hellman.
Such as available Pederson Commitment represent each account, and the remaining sum that first account will be used in account book 1 exchanges account for Second account book 2 remaining sum, such as first by RMB (account book 1) with second exchange dollar (account book 2), first can be in account book 1 groups of people People's coin remaining sum is given to second, and the dollar of oneself then can be given to first by second in account book 2.For account book 1, a1=first account book is defined 1 remaining sum, 1 remaining sum of first account book after a1 '=code obfuscation, 1 remaining sum privacy secret key of x1=first account book, then more than first account Volume is:(elliptic curve formula is a1 '=g^a1*h^x1:A1 '=a1G+x1H).Define b1=second account RMB remaining sums, b1 ' Second account RMB remaining sum after=code obfuscation, y1=second account RMB remaining sum privacy secret keys, then second account balance be: (elliptic curve formula is b1 '=g^b1*h^y1:B1 '=b1G+y1H).For account book 2, a2=first account book more than 2 is defined Volume, 2 remaining sum of first account book after a2 '=code obfuscation, 2 remaining sum privacy secret key of x2=first account book, then first account balance For:(elliptic curve formula is a2 '=g^a2*h^x2:A2 '=a2G+x2H).Definition b2=second account RMB remaining sums, b2 '= Second account RMB remaining sum after code obfuscation, y2=second account RMB remaining sum privacy secret keys, then second account balance be:b2’ (elliptic curve formula is=g^b2*h^y2:B2 '=b2G+y2H).
Step 2:If the first remaining sum of account book 1 exchanges remaining sum of the second in account book 2, first can create two ciphertexts, first A is 1 trade share of account book protected with additive homomorphism ciphertext, and second is by encrypting converting for the account book 1 obscured and account book 2 Change valency (such as exchange rate).
The initiator's (first) that transfers accounts can voluntarily generate the first ciphertext homomorphism privacy secret key and the second ciphertext privacy it is secret They and the first ciphertext and the second ciphertext are simultaneously issued counterpart's (second) by key, and are obtaining second accreditation and to the first ciphertext and the The signature of entire transaction and Party B is dealt into block chain network that (Party B's digital signature is represented to handing over after two ciphertext digital signature The accreditation of easy share and exchange rate), it is such as dealt on the intelligent contract of block chain.Such as define 1 trade share of t=account books, t '=close Code obscure after trade share, z=trade share privacy secret keys, then the first ciphertext (trade share) be:T '=g^t*h^z is (ellipse Circular curve formula is:T '=tG+zH).Define e=exchange rates.
Step 3:Block chain can update account book 2 while account book 1 is updated, update account book 2 after transaction request is received The step of have following three sub-steps:
Step 3 A deducts trade share, and simultaneously in the second account balance of account book 1 in the first account balance of account book 1 Increase trade share.First account is in 1 new share of account book:A1 "=a1 '/t ', a1 "=(g^a1*h^x1)/(g^t*h^z), a1 "= (elliptic curve formula is g^ (a1-t) * h^ (x1-z):A1 "=(a1-t) G+ (x1-z) H).First account new balance=a1-t, first Account newly obscures privacy secret key x1 '=(x1-z), and second account is in 1 new share of account book:B1 "=b1 ' * t ', b1 "=(g^b1*h^ Y1 (elliptic curve formula is) * (g^t*h^z), b1 "=g^ (b1+t) * h^ (y1+z):B1 "=(b1+t) G+ (y1+z) H).Second Account new balance b1 '=b1+t, second account newly obscure privacy secret key y1 '=y1+z.
Step 3 B, the intelligent contract on block chain is calculated by turnover (the first ciphertext) and exchange rate to be needed in account book 2 Carry out the corresponding trade share of transfer operation.The operation need to be carried out in the case where not decrypted to turnover, (the transaction of the first ciphertext Share):(elliptic curve formula is t '=g^t*h^z:T '=tG+zH), define transaction change rate:e.
The share that first account and second account are transferred the possession of in account book 2 is calculated under non-decrypting state;It merchandises since t represents account book 1 Share, e represent exchange rate, so te represents the transfer shares of account first and account second in account book 2.Then 2 trade share of account book= (elliptic curve formula is by t2=t*e=te, 2 trade share of account book (ciphertext) t2 '=(g^t*h^z) ^e=(g^te*h^ze): T2 '=(tG+zH) * e=teG+zeH).
Step 3 C plus trade share in the first account balance of account book 2, and subtracts in 2 second account balance of account book simultaneously Go trade share.First account is in 2 new share of account book:A2 "=a2 ' * t2 ', a2 "=(g^a2*h^x2) * (g^te*h^ze), a2 " (elliptic curve formula is=g^ (a2+te) * h^ (x2+ze):A2 "=(a2+te) G+ (x2+ze) H).First account new balance a2 ' =a2+te, first account newly obscure privacy secret key x2 '=x2+ze.Second account is in 1 new share of account book:B2 "=b2 '/t ', b2 "= (g^b2*h^y2) (elliptic curve formula is/(g^te*h^ze), b2 "=g^ (b2-te) * h^ (y2-ze):B2 "=(b2-te) G + (y2-ze) H), second account new balance b2 '=b2-te, second account newly obscures privacy secret key y2 '=y2-ze.
In addition, the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has More account book fund transfer systems based on block chain, more account book fund transfer systems based on block chain can be held by least one processor Row, so that at least one processor is performed such as the step of more account book transfer account methods based on block chain in above-described embodiment Suddenly, the specific implementation process such as step S10, S20, S30 of more account book transfer account methods based on block chain are somebody's turn to do as described above, herein It repeats no more.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to be realized by hardware, but very much In the case of the former be more preferably embodiment.Based on such understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, calculate Machine, server, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
Above by reference to the preferred embodiment of the present invention has been illustrated, not thereby limit to the interest field of the present invention.On It states that serial number of the embodiment of the present invention is for illustration only, does not represent the quality of embodiment.It is patrolled in addition, though showing in flow charts Sequence is collected, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.
Those skilled in the art do not depart from the scope of the present invention and essence, can there are many variant scheme realize the present invention, It can be used for another embodiment for example as the feature of one embodiment and obtain another embodiment.All technologies with the present invention The all any modification, equivalent and improvement made within design, should all be within the interest field of the present invention.

Claims (10)

1. a kind of more account book transfer account methods based on block chain, applied to electronic device, which is characterized in that described to be based on block chain More account book transfer account methods include:
If A, in block chain under the first account book the first user account of the first user initiate with second user under the second account book the The transaction request of two user accounts then receives the first ciphertext that first user encrypts generation in advance;The transaction request is The request that default exchange trading share is exchanged by default exchange rate, first ciphertext are that default exchange trading share is adopted The first ciphertext of generation is encrypted with the second preset password formula and corresponding trade share privacy secret key;
B, it is second account by the first default exchange calculation formula and based on the default exchange rate and first ciphertext Originally the exchange trading share, encryption exchange trading share and corresponding trade share privacy secret key of second account book are calculated, And generate the encryption exchange trading share of second account book and the second ciphertext of corresponding trade share privacy secret key;
C, based on first ciphertext and the second ciphertext, and first of the first user under first account book is completed by preset rules User account and the transaction of the second user account of second user under second account book.
2. more account book transfer account methods based on block chain as described in claim 1, which is characterized in that the step C includes:
Receive the first ciphertext after electronic signature;The first ciphertext after the electronic signature is first user by described first After ciphertext issues the second user, if the second user is according to the default exchange trading share of first ciphertext confirmation and in advance If exchange rate, then the second user carries out electronic signature generation to first ciphertext;
The first ciphertext after the electronic signature is write on the shared assets account book on each node of block chain;
The remaining sum and described first of the first user account of the first user under first account book is updated according to first ciphertext The remaining sum of the third account of second user under account book, and second user under second account book is updated according to second ciphertext The remaining sum of the 4th account of first user under the remaining sum of second user account and second account book.
3. more account book transfer account methods based on block chain as claimed in claim 2, which is characterized in that described according to described first Ciphertext updates under first account book second user under the remaining sum of the first user account of the first user and first account book The step of remaining sum of third account, includes:
It is detained in the remaining sum of the first user account of the first user under first account book according to the first default remaining sum calculation formula Except the default exchange trading share, the first Xinyu of the first user account of the first user under first account book is calculated Volume, and will be in the first new balance that calculated update to shared assets account book;
Institute is increased in the remaining sum of the third account of second user under first account book according to the second default remaining sum calculation formula Default exchange trading share is stated, calculates the second new balance of the third account of second user under first account book, and will meter In the second new balance update to shared assets account book calculated.
4. more account book transfer account methods based on block chain as claimed in claim 2 or claim 3, which is characterized in that described in the basis Second ciphertext updates under second account book under the remaining sum of the second user account of second user and second account book first and uses The step of remaining sum of 4th account at family, includes:
Remaining sum calculation formula is preset according to third under second account book to detain in the remaining sum of the second user account of second user Except the default exchange trading share, the third Xinyu of the second user account of second user under second account book is calculated Volume, and will be in the third new balance that calculated update to shared assets account book;
Institute is increased in the remaining sum of the 4th account of the first user under second account book according to the 4th default remaining sum calculation formula Default exchange trading share is stated, calculates the 4th new balance of the 4th account of the first user under second account book, and will meter On the "four news" (new ideas balance updates to shared assets account book calculated.
5. more account book transfer account methods based on block chain as claimed in claim 4, which is characterized in that the third presets remaining sum Calculation formula is additionally operable to increase the default exchange trading in the remaining sum of the third account of second user under first account book Share calculates the second new balance of the third account of second user under first account book;Alternatively, the third presets remaining sum Calculation formula is additionally operable to deduct the default exchange trading in the remaining sum of the 4th account of the first user under second account book Share calculates the 4th new balance of the 4th account of the first user under second account book.
6. more account book transfer account methods based on block chain as described in claim 1, which is characterized in that the step B is replaced with Following steps:
The first ciphertext and the second ciphertext after electronic signature are received, and the first ciphertext after electronic signature and the second ciphertext are write On shared assets account book on each node of block chain;Wherein, the first ciphertext after the electronic signature and the second ciphertext Generating process is as follows:
By the first default exchange calculation formula and the default exchange rate and first ciphertext are based on by first user, The exchange trading share, encryption exchange trading share and corresponding transaction part of second account book are calculated for second account book Volume privacy secret key, and generate encrypt exchange trading share and corresponding trade share privacy secret key the second of second account book Ciphertext;First ciphertext and second ciphertext are issued the second user by first user;If the second user Confirm the default exchange trading share and default exchange rate, then the second user is to first ciphertext and described second close Text signs electronically.
7. a kind of electronic device, which is characterized in that the electronic device includes memory, processor, is stored on the memory There are the more account book fund transfer systems based on block chain that can be run on the processor, more account books based on block chain are transferred accounts System realizes following steps when being performed by the processor:
If in block chain under the first account book the first user the first user account initiate with the second account book under second user second The transaction request of user account then receives the first ciphertext that first user encrypts generation in advance;The transaction request is will The request that default exchange trading share is exchanged by default exchange rate, first ciphertext are that default exchange trading share uses The first ciphertext of generation is encrypted in second preset password formula and corresponding trade share privacy secret key;
It is second account book by the first default exchange calculation formula and based on the default exchange rate and first ciphertext The exchange trading share, encryption exchange trading share and corresponding trade share privacy secret key of second account book are calculated, and Generate the encryption exchange trading share of second account book and the second ciphertext of corresponding trade share privacy secret key;
Based on first ciphertext and the second ciphertext, and complete first of the first user under first account book by preset rules and use The transaction of family account and the second user account of second user under second account book.
8. electronic device as claimed in claim 7, which is characterized in that more account book fund transfer systems based on block chain are by institute Processor is stated to perform based on first ciphertext and the second ciphertext described in realization, and complete under first account book by preset rules The first user account of first user under second account book with during the step of the transaction of the second user account of second user, having Body includes:
Receive the first ciphertext after electronic signature;The first ciphertext after the electronic signature is first user by described first After ciphertext issues the second user, if the second user is according to the default exchange trading share of first ciphertext confirmation and in advance If exchange rate, then the second user carries out electronic signature generation to first ciphertext;
The first ciphertext after the electronic signature is write on the shared assets account book on each node of block chain;
The remaining sum and described first of the first user account of the first user under first account book is updated according to first ciphertext The remaining sum of the third account of second user under account book, and second user under second account book is updated according to second ciphertext The remaining sum of the 4th account of first user under the remaining sum of second user account and second account book.
9. electronic device as claimed in claim 8, which is characterized in that described that first account is updated according to first ciphertext The step of the remaining sum of the third account of second user under the remaining sum of the first user account of this lower first user and first account book Suddenly include:
It is detained in the remaining sum of the first user account of the first user under first account book according to the first default remaining sum calculation formula Except the default exchange trading share, the first Xinyu of the first user account of the first user under first account book is calculated Volume, and will be in the first new balance that calculated update to shared assets account book;
Institute is increased in the remaining sum of the third account of second user under first account book according to the second default remaining sum calculation formula Default exchange trading share is stated, calculates the second new balance of the third account of second user under first account book, and will meter In the second new balance update to shared assets account book calculated;
It is described that the remaining sum of the second user account of second user and described is updated under second account book according to second ciphertext Include the step of the remaining sum of the 4th account of the first user under second account book:
Remaining sum calculation formula is preset according to third under second account book to detain in the remaining sum of the second user account of second user Except the default exchange trading share, the third Xinyu of the second user account of second user under second account book is calculated Volume, and will be in the third new balance that calculated update to shared assets account book;
Institute is increased in the remaining sum of the 4th account of the first user under second account book according to the 4th default remaining sum calculation formula Default exchange trading share is stated, calculates the 4th new balance of the 4th account of the first user under second account book, and will meter On the "four news" (new ideas balance updates to shared assets account book calculated.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium based on area More account book fund transfer systems of block chain realize that right such as will when more account book fund transfer systems based on block chain are executed by processor The step of seeking more account book transfer account methods based on block chain described in any one of 1 to 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 true CN108241979A (en) 2018-07-03
CN108241979B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003081A (en) * 2018-07-13 2018-12-14 北京创世智链信息技术研究院 A kind of method of commerce and system based on block chain
CN109102286A (en) * 2018-08-02 2018-12-28 平安科技(深圳)有限公司 Across account book method of commerce and device
CN109257336A (en) * 2018-08-24 2019-01-22 维沃移动通信有限公司 It is a kind of based on the encrypted message processing method of block chain, terminal device
CN110009316A (en) * 2018-12-14 2019-07-12 阿里巴巴集团控股有限公司 Event-handling method and device, electronic equipment based on block chain
CN110033363A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 Event-handling method and device, electronic equipment based on block chain
CN110505046A (en) * 2019-07-29 2019-11-26 深圳壹账通智能科技有限公司 The cross-platform Zero Knowledge method of calibration of more data providing encryption datas, device and medium
WO2019120331A3 (en) * 2019-04-12 2020-02-20 Alibaba Group Holding Limited Retrieving values of digital tickets using smart contracts in blockchain networks
CN111784341A (en) * 2019-02-01 2020-10-16 阿里巴巴集团控股有限公司 Block chain transaction method and device, electronic equipment and storage medium
CN113570373A (en) * 2021-09-23 2021-10-29 北京理工大学 Responsibility pursuing transaction method and system based on block chain
US11797985B2 (en) 2018-10-25 2023-10-24 Tencent Technology (Shenzhen) Company Limited Value transfer method, apparatus, and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11943360B2 (en) 2021-06-22 2024-03-26 International Business Machines Corporation Generative cryptogram for blockchain data management

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

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003081A (en) * 2018-07-13 2018-12-14 北京创世智链信息技术研究院 A kind of method of commerce and system based on block chain
CN109003081B (en) * 2018-07-13 2021-11-02 北京创世智链信息技术研究院 Transaction method, system and storage medium based on block chain
CN109102286A (en) * 2018-08-02 2018-12-28 平安科技(深圳)有限公司 Across account book method of commerce and device
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
CN109257336A (en) * 2018-08-24 2019-01-22 维沃移动通信有限公司 It is a kind of based on the encrypted message processing method of block chain, terminal device
US11797985B2 (en) 2018-10-25 2023-10-24 Tencent Technology (Shenzhen) Company Limited Value transfer method, apparatus, and system
CN110009316A (en) * 2018-12-14 2019-07-12 阿里巴巴集团控股有限公司 Event-handling method and device, electronic equipment based on block chain
CN110033363A (en) * 2018-12-14 2019-07-19 阿里巴巴集团控股有限公司 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
CN111784341A (en) * 2019-02-01 2020-10-16 阿里巴巴集团控股有限公司 Block chain transaction method and device, electronic equipment and storage medium
EP3610446A4 (en) * 2019-04-12 2020-06-10 Alibaba Group Holding Limited Retrieving values of digital tickets using smart contracts in blockchain networks
US11087346B2 (en) 2019-04-12 2021-08-10 Advanced New Technologies Co., Ltd. Retrieving values of digital tickets using smart contracts in blockchain networks
CN111066050B (en) * 2019-04-12 2023-07-28 创新先进技术有限公司 Retrieving value of digital ticket in blockchain networks using smart contracts
CN111066050A (en) * 2019-04-12 2020-04-24 阿里巴巴集团控股有限公司 Using intelligent contracts to retrieve value of digital tickets in blockchain networks
US11379866B2 (en) 2019-04-12 2022-07-05 Advanced New Technologies Co., Ltd. Retrieving values of digital tickets using smart contracts in blockchain networks
WO2019120331A3 (en) * 2019-04-12 2020-02-20 Alibaba Group Holding Limited Retrieving values of digital tickets using smart contracts in blockchain networks
CN110505046A (en) * 2019-07-29 2019-11-26 深圳壹账通智能科技有限公司 The cross-platform Zero Knowledge method of calibration of more data providing encryption datas, device and medium
CN110505046B (en) * 2019-07-29 2020-11-24 深圳壹账通智能科技有限公司 Multi-data provider encrypted data cross-platform zero-knowledge verification method, device and medium
CN113570373A (en) * 2021-09-23 2021-10-29 北京理工大学 Responsibility pursuing transaction method and system based on block chain

Also Published As

Publication number Publication date
CN108241979B (en) 2021-03-16
WO2019119632A1 (en) 2019-06-27

Similar Documents

Publication Publication Date Title
CN108241979A (en) More account book transfer account methods, electronic device and readable storage medium storing program for executing based on block chain
US11941620B2 (en) Multi-path communication of electronic device secure element data for online payments
US20230419310A1 (en) Multi-path communication of electronic device secure element data for online payments
CN106559211B (en) Privacy protection intelligent contract method in block chain
CN108335106A (en) The more account books of Zero Knowledge based on block chain exchange transfer account method, device and storage medium
CA3011600C (en) Information transaction infrastructure
WO2021239104A1 (en) Blockchain-based service processing
EP3210177B1 (en) Transaction messaging
CN104603809B (en) Promote the system and method for transaction using virtual card on the mobile apparatus
CN108564353A (en) Payment system based on block chain and method
US20170221053A1 (en) Digital asset conversion
CN108364223A (en) A kind of method and device of Data Audit
JP2022545145A (en) Dynamic off-chain digital currency transaction processing
CN110060111A (en) Based on the invoice access method and device of block chain, electronic equipment
CN107358440B (en) Method and system for customized tracking of digital currency
KR20180017222A (en) Online payments using a secure element of an electronic device
CN105684346A (en) Method for securing over-the-air communication between a mobile application and a gateway
CN109479001A (en) Exit passageway is established
CN107256484B (en) Mobile payment authorization transfer method and payment system realized by using same
CN104462949B (en) The call method and device of a kind of plug-in unit
CN108876593A (en) A kind of online transaction method and apparatus
CN109615525A (en) Multi-signature shares guard method, system and the electronic equipment of account
CN109716373A (en) Cipher authentication and tokenized transaction
CN104574653A (en) Method and system for realizing online recharging of electronic purse IC (Integrated Circuit) card based on OBU (on board unit)
CN105160776B (en) City one-card card, business platform, card operation system and implementation method

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