CN110033370A - Account creation method and device, electronic equipment, storage medium - Google Patents

Account creation method and device, electronic equipment, storage medium Download PDF

Info

Publication number
CN110033370A
CN110033370A CN201910105428.5A CN201910105428A CN110033370A CN 110033370 A CN110033370 A CN 110033370A CN 201910105428 A CN201910105428 A CN 201910105428A CN 110033370 A CN110033370 A CN 110033370A
Authority
CN
China
Prior art keywords
remaining sum
account
block chain
volume
transaction
Prior art date
Application number
CN201910105428.5A
Other languages
Chinese (zh)
Other versions
CN110033370B (en
Inventor
蒋国飞
陈盛龙
胡丹青
陈春伟
马宝利
马环宇
闫雪冰
张文彬
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Priority to CN201910105428.5A priority Critical patent/CN110033370B/en
Publication of CN110033370A publication Critical patent/CN110033370A/en
Application granted granted Critical
Publication of CN110033370B publication Critical patent/CN110033370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING 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/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

This specification one or more embodiment provides a kind of account creation method and device, electronic equipment, storage medium, is applied to block chain node, which comprises receives the transaction of block chain, the type of the block chain transaction is account creation type;The block chain transaction is executed to create the first account, first account includes the expenditure remaining sum of the income remaining sum and plaintext number using ciphertext number, when producing the volume of withholing from the expenditure remaining sum with plaintext version, small change volume is transferred to the income remaining sum with ciphertext form, and wherein small change volume is the difference of volume and turnover of withholing.

Description

Account creation method and device, electronic equipment, storage medium
Technical field
This specification one or more embodiment be related to block chain technical field more particularly to a kind of account creation method and Device, electronic equipment, storage medium.
Background technique
Block chain can be by reaching common understanding, thus between each block chain node altogether between each block chain node With the block chain account book safeguarded unity, permanently to record the Transaction Information occurred in block chain network.Block chain account book is complete It is disclosed, in order to check and verify the historical data traded at any time.
Summary of the invention
In view of this, this specification one or more embodiment provide a kind of account creation method and device, electronic equipment, Storage medium.
It is as follows that this specification one or more embodiment provides technical solution:
According to this specification one or more embodiment in a first aspect, propose a kind of account creation method, it is applied to Block chain node, which comprises
The transaction of block chain is received, the type of the block chain transaction is account creation type;
The block chain transaction is executed to create the first account, first account includes more than the income using ciphertext number The expenditure remaining sum of volume and plaintext number, when producing the volume of withholing from the expenditure remaining sum with plaintext version, small change volume is with ciphertext shape Formula is transferred to the income remaining sum, and wherein small change volume is the difference of volume and turnover of withholing.
According to the second aspect of this specification one or more embodiment, a kind of account creation device is proposed, is applied to Block chain node, described device include:
Receiving unit receives the transaction of block chain, and the type of the block chain transaction is account creation type;
Execution unit executes the block chain transaction to create the first account, and first account includes using ciphertext number The income remaining sum of volume and the expenditure remaining sum of plaintext number, when producing the volume of withholing from the expenditure remaining sum with plaintext version, small change Volume is transferred to the income remaining sum with ciphertext form, and wherein small change volume is the difference of volume and turnover of withholing.
According to the third aspect of this specification one or more embodiment, a kind of electronic equipment is proposed, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize method as described in relation to the first aspect.
According to the fourth aspect of this specification one or more embodiment, a kind of computer readable storage medium is proposed, The step of being stored thereon with computer instruction, method as described in relation to the first aspect realized when which is executed by processor.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram for example context that an exemplary embodiment provides.
Fig. 2 is a kind of schematic diagram for conceptual framework that an exemplary embodiment provides.
Fig. 3 is a kind of flow chart for account creation method that an exemplary embodiment provides.
Fig. 4 is a kind of schematic diagram for block chain structure of accounts that an exemplary embodiment provides.
Fig. 5 is a kind of flow chart for block chain method of commerce that an exemplary embodiment provides.
Fig. 6 is a kind of stream of the money transfer transactions for limited open implemented based on expenditure remaining sum that an exemplary embodiment provides Cheng Tu.
Fig. 7 is the schematic diagram of the account balance situation of change before and after a kind of remittance that an exemplary embodiment provides.
Fig. 8 is the schematic diagram for another block chain structure of accounts that an exemplary embodiment provides.
Fig. 9 is the interaction schematic diagram that a kind of main remaining sum that an exemplary embodiment provides supplements expenditure remaining sum with money.
Figure 10 is a kind of schematic diagram for account balance situation of change for supplementing front and back with money that an exemplary embodiment provides.
Figure 11 is a kind of interaction schematic diagram for union operation that an exemplary embodiment provides.
Figure 12 is the schematic diagram of the account balance situation of change before and after a kind of merging that an exemplary embodiment provides.
Figure 13 is the flow chart for another block chain method of commerce that an exemplary embodiment provides.
Figure 14 is a kind of stream of the money transfer transactions for complete privacy implemented based on main remaining sum that an exemplary embodiment provides Cheng Tu.
Figure 15 is the schematic diagram of the account balance situation of change for another remittance front and back that an exemplary embodiment provides.
Figure 16 is the flow chart for another block chain method of commerce that an exemplary embodiment provides.
Figure 17 is a kind of flow chart for open money transfer transactions implemented based on expenditure remaining sum that an exemplary embodiment provides.
Figure 18 is the schematic diagram of the account balance situation of change for another remittance front and back that an exemplary embodiment provides.
Figure 19 is a kind of structural schematic diagram for equipment that an exemplary embodiment provides.
Figure 20 is a kind of block diagram for block chain the transaction device that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification The example of consistent device and method.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments executes The step of correlation method.In some other embodiments, step included by method can than described in this specification more It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments Description.
Fig. 1 is a kind of schematic diagram for example context that an exemplary embodiment provides.As shown in Figure 1, example context 100 permits Perhaps entity participates in block chain network 102.Block chain network 102 can be the block of publicly-owned type, private type or alliance's type Chain network.Example context 100 may include calculating equipment 104,106,108,110,112 and network 114;In one embodiment, Network 114 may include local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN), Internet or combinations thereof, and it is connected to website, user equipment (such as calculating equipment) and back-end system.In one embodiment, may be used Network 114 is accessed in a manner of through wired and or wireless communications.
In some cases, calculate equipment 106,108 can be cloud computing system node (not shown) or each meter Calculating equipment 106,108 can be individual cloud computing system, including by network interconnection and as distributed processing system(DPS) work Multiple stage computers.
In one embodiment, any computing system appropriate can be run by calculating equipment 104~108, can conduct Node in block chain network 102;For example, calculate equipment 104~108 can include but is not limited to server, desktop computer, Laptop, tablet computer calculate equipment and smart phone.In one embodiment, calculating equipment 104~108 can belong to Related entities simultaneously can be used for for realizing corresponding service, such as the service to the transaction between a certain entity or multiple entities It is managed.
In one embodiment, it calculates equipment 104~108 and is stored with the corresponding block chain account book of block chain network 102 respectively. Calculating equipment 104 can be (or comprising) for providing the network server of browser function, which can be based on net Network 114 provides visual information relevant to block chain network 102.In some cases, area can be not involved in by calculating equipment 104 Block verifying, but block chain network 102 is monitored to determine when other nodes (for example may include calculating equipment 106-108) reach At common recognition, and accordingly generate corresponding block chain visible user interface.
In one embodiment, calculate equipment 104 can receive client device (such as calculate equipment 110 or calculate equipment 112) request initiated for block chain visible user interface.In some cases, the node of block chain network 102 can also be with As client device, for example calculates the user of equipment 108 and the browser that operates in calculate in equipment 108 can be used to calculating Equipment 104 sends above-mentioned request.
In response to above-mentioned request, block chain visualization use can be generated based on the block chain account book of storage by calculating equipment 104 Family interface (such as webpage), and the block chain visible user interface of generation is sent to the client device of request.If block Chain network 102 is the block chain network of private type or alliance's type, be can wrap to the request of block chain visible user interface Authorized user message is included, before generating block chain visible user interface and being sent to the client device of request, Ke Yiyou It calculates equipment 104 to verify the authorized user message, and returns to corresponding block chain visual user after being verified Interface.
Block chain visible user interface, which may be displayed on client device, (such as can be displayed in user shown in FIG. 1 In interface 116).When block chain account book updates, the display content of user interface 116 can also update therewith.This Outside, the interaction of user and user interface 116 may cause the request to other users interface, such as display block list, block Details, transaction List Table, Transaction Details, account list, account details, contract list, contract details or user are to block link network Network implements search and the result of page searching etc. of generation.
Fig. 2 is a kind of schematic diagram for conceptual framework that an exemplary embodiment provides.As shown in Fig. 2, the conceptual framework 200 Including physical layer 202, trusteeship service layer 204 and block link network network layers 206.For example, physical layer 202 may include three entities: Entity 1, entity 2 and entity 3, each entity have respective trade managing system 208.
In one embodiment, trusteeship service layer 204 may include the corresponding interface 210 of each transaction management system 208.Example Such as, each transaction management system 208 using agreement (such as hypertext transfer protocol secure (HTTPS) etc.) by network (such as Network 114 in Fig. 1) it is communicated with respective interface 210.In some instances, each interface 210 can provide corresponding Communication connection between trade managing system 208 and block link network network layers 206;More specifically, interface 210 can be with block chain network The block chain network 212 of layer 206 communicates.In some instances, the communication between interface 210 and block link network network layers 206 can be with It is realized using remote procedure call (Remote Procedure Calls, RPCs).In some instances, interface 210 can be with The api interface for accessing block chain network 212 is provided to trade managing system 208.
As described herein, block chain network 212 is provided in the form of peer-to-peer network, which includes multiple nodes 214, these nodes 214 are respectively used to be formed by block chain data the progress persistence of block chain account book 216;Wherein, in Fig. 2 only A block chain account book 216 is shown, but may exist more parts of block chain account books 216 or its copy in block chain network 212, than As each node 214 can safeguard a block chain account book 216 or its copy respectively.
It is noted that transaction (transaction) described in this specification, refers to that user passes through block chain Client creation, and need finally to be distributed to data in the distributed data base of block chain.Wherein, in block chain Transaction, there are points of the transaction of narrow sense and the transaction of broad sense.The transaction of narrow sense refers to the valence that user issues to block chain Value transfer;For example, transaction can be one that user initiates in block chain and turn in traditional bit coin block chain network Account.And the transaction of broad sense refers to the business datum being intended to business that user issues to block chain;For example, operator can To build alliance's chain based on actual business demand, relies on alliance's chain and dispose some other classes unrelated with value Transfer Type in line service (for example, business of renting a house, vehicle scheduling business, settlement of insurance claim business, credit services, medical services etc.), and In this kind of alliance's chain, transaction can be the service message or industry with business intention that user issues in alliance's chain Business request.
In the technical solution of this specification, by being improved to the structure of accounts in block chain, it may be implemented new Account trading form, so that the concurrent transaction under account model is realized, to promote transaction under the premise of ensureing transaction privacy Handling capacity.
Fig. 3 is a kind of flow chart for account creation method that an exemplary embodiment provides.As shown in figure 3, this method is answered For block chain node, which comprises
Step 302, the transaction of block chain is received, the type of the block chain transaction is account creation type.
In one embodiment, user can generate the transaction of block chain in client, and be handed over block chain by the client It easily is committed to block chain node, to be handled by block chain link point.
In one embodiment, the transaction of block chain includes several fields.Such as in the block chain of ether mill, the transaction of block chain is logical It often may include from field, to field, data field etc., to respectively indicate the account address of transaction initiator, need to call The contract address of intelligent contract, related content of trading etc..And in the technical solution of this specification, it can be set in the transaction of block chain A type field is set, content contained by the type field is used to show the type of Correlation block chain transaction, so that block chain node It can implement corresponding processing accordingly.For example, block chain can be traded is labeled as account creation type, so that block chain node New account can be created accordingly.
Step 304, the block chain transaction is executed to create the first account, and first account includes using ciphertext number Income remaining sum and plaintext number expenditure remaining sum.
Generally use two kinds of Trading Models in block chain network, i.e. UTXO (Unspent Transaction Output, not The transaction of cost exports) model and account model.The typical case scene of UTXO model is bit coin block chain, under the model Assets exist in the form of output of trading on chain, when there is the transaction output not spent in a transaction, the transaction not spent Output returns private key holder all;When in use, the transaction output that one or more can not spent is specified as input One or more output, to form the transaction output that new one or more does not spend.Although UTXO model is by a variety of blocks Chain network is used, but very weak to the support of intelligent contract, to cause larger limitation to application scenarios.And account model Typical case scene is ether mill block chain, and by creating an account under the model, assets on chain that account is held are shown as account Assets can be transferred to another account address from an account address by the corresponding remaining sum in family address, every money transfer transactions, and The amount of money of transaction is directly updated to the corresponding remaining sum in account address.For UTXO model, account model can have been supported Standby intelligent contract function has preferable scene scalability.
For the purpose of transaction secret protection, the improvement to the transaction of block chain is proposed in the related technology.In UTXO model Under, transaction amount can be protected by homomorphic cryptography or Homomorphic Commitment technology, and prove that technology guarantees using section The output of transaction is non-negative etc..And under account model, transaction amount can be carried out by homomorphic cryptography or Homomorphic Commitment technology Protection, and prove that technology guarantees that turnover is non-negative and account balance is paid enough using section.
Under UTXO model, one or more transaction are exported into the input as a money transfer transactions, and complete transferring accounts One or more new transaction outputs are formed afterwards.As it can be seen that a transaction output can be only spent in a money transfer transactions, it can not It is spent by more money transfer transactions, so that proving only to input phase with the money transfer transactions for the section that a money transfer transactions generate It closes, it is unrelated with the input of other money transfer transactions, thus UTXO model natively has high transaction concurrency.And in account model Under, the input of every transaction is the remaining sum of account, and the section proof of every transaction is all related to the remaining sum of account, and account Remaining sum can all update after every transaction, so that the All Activity under same account needs serially to execute in order, i.e., one It, can be real for proving, triggering between next transaction generation area after transaction terminates and the remaining sum of account is caused to update Next transaction is applied, otherwise trade fair is refused to execute because section proves illegal by common recognition node.Therefore, in account model When the lower secret protection technology used with section proof, the handling capacity of transaction can be seriously hindered.
In order to solve the problems, such as the concurrency under account model, it is ensured that the abundant support to intelligent contract function, this specification Improvement is proposed for the structure of accounts under account model in the related technology, allows it to be adapted to the concurrent of high-throughput Transaction.
Account in block chain network may include external account and contract account etc..External account is usually that user is (a People or mechanism) it is all, and contract account then corresponds to the intelligent contract in block chain.The structure of all kinds of accounts is all similar, such as Shown in Fig. 4, Nonce field, Balance field, Code field and Storage field etc. may include.The Nonce of each account The value of field is since 0, and the value of Nonce field is incremented by successively with the transaction that proper account is initiated, so that the account Nonce value contained by each transaction that family is initiated is all different, to avoid Replay Attack.Balance field is remaining for storing Volume.Code field is used to store the code of intelligent contract, thus the Code field of external account is usually sky.Storage field For storing value of the account in State Tree at corresponding node.
In the case where not considering secret protection, the value of Balance field is the plaintext remaining sum that account is held.Considering In the case where secret protection, plaintext remaining sum can be generated as by corresponding ciphertext by such as Pedersen promise mechanism and promised to undertake, Enable and only records that the ciphertext is promised to undertake, ciphertext promise is decrypted in only holder on block chain account book;But it is this In the case of the limitation that is proved due to section, so that it is there is a problem of that concurrency described above is insufficient.And it is directed in this specification Balance field has carried out structure improvement, has done further division to Balance field, for example makes the Balance field packet The remaining sum containing income and expenditure remaining sum, wherein income remaining sum is recorded as ciphertext number, payment of balance in block in block chain account book Plaintext number is recorded as in chain account book.
Based on above-mentioned improved structure of accounts, when the first account as remittance abroad side's account, for as recipient's account When second account at family is transferred accounts, related transfer procedure will be introduced in conjunction with Fig. 5.Fig. 5 is that an exemplary embodiment provides A kind of block chain method of commerce flow chart.As shown in figure 5, this method is applied to remittance abroad method, apparatus, which comprises
Step 502, it according to the limited open turnover that will import recipient's account from remittance abroad side's account, determines corresponding It withholds volume;Wherein, remittance abroad side's account includes the expenditure remaining sum of the income remaining sum and plaintext number using committed amount.
In one embodiment, present description provides the money transfer transactions mode of limited open type, can lead under the mode Cross the income remaining sum using committed amount, the expenditure remaining sum of plaintext number implements the money transfer transactions with secret protection.
In one embodiment, the volume of withholing can be any numerical value for being not less than limited open turnover.For example, remittance abroad side's account Family can be set separately according to the high amount of transferring accounts under each type of scene of transferring accounts predetermined for all kinds of fields of transferring accounts The volume of alternatively withholing of scape, forms volume set of alternatively withholing.Alternatively, can also determine each volume of alternatively withholing according to other modes Value, this specification are limited not to this.Then, it is only necessary to choose one and withhold volume i.e. not less than limited open turnover It can.It is interim to generate one and withhold volume it is of course also possible to according to the numerical value of limited open turnover.Withhold volume value preferably with have It is unrelated to limit open transaction volume itself, otherwise after generating the algorithm of volume of withholing and being leaked, may cause criminal according to withholing The numerical value backstepping of volume goes out the value of limited open turnover.
Step 504, limited open money transfer transactions are submitted to block chain, the limited open money transfer transactions include described limited The corresponding limited open turnover promise of open transaction volume, the volume of withholing, for proving that the turnover is non-negative and the button Amount of money is proved not less than the section of the limited open turnover.
In one embodiment, after the completion of the limited open money transfer transactions, the expenditure remaining sum can be made to complete in transaction Volume, the income remaining sum of withholing described in deducting afterwards withhold described in increasing after completion of transactions and volume and deduct the limited open and trade Volume (increasing small change volume, the value of the small change volume is the difference of volume and limited open turnover of withholing), recipient's account Increase the limited open turnover after completion of transactions.So, from expenditure remaining sum deduct described in withhold volume when, due to expenditure Remaining sum, the volume of withholing are all made of plaintext version, so that the section for not needing to generate remaining sum abundance proves (can directly compare plaintext number Volume), so that unbundlings are realized between money transfer transactions and the remaining sum of remittance abroad side's account, so that can be realized under account model concurrent Transaction.Simultaneously as income remaining sum uses the form of committed amount, thus also uses and hold to increased small change volume in remaining sum of taking in Promise number is recorded, and since limited open turnover also shows as corresponding committed amount, thus in entire process of exchange Only expose the volume of withholing of plaintext, remaining number shows as the committed amount of ciphertext form, so can concurrently be handed over realizing While easy, it is ensured that enough secret protections.
In one embodiment, when recipient's account increases the limited open turnover after completion of transactions, if connect Debit's account uses the structure of accounts of this specification, then the limited open turnover can increase to the income of recipient's account In remaining sum.Specifically, the income remaining sum due to recipient's account uses the form of committed amount, limited open turnover is same Sample can be increased in the income remaining sum of recipient's account in the form of corresponding committed amount.Similarly, when the remittance abroad side When the remittance abroad kelly-up volume of account increases, when for example a certain account is transferred accounts to remittance abroad side's account, the corresponding amount of money is increased To the income remaining sum of remittance abroad side's account.
As it can be seen that by the expenditure remaining sum of income remaining sum and plaintext number that committed amount is respectively set in structure of accounts, Not only the concurrent transaction under account model can be realized, and can be by same account institute while guaranteeing to trade privacy The decoupling between transaction is traded and imported to the remittance abroad of participation, it is ensured that remittance abroad side's account can simultaneously participate in remittance abroad transaction and import and hand over Easily, it is able to ascend transaction handling capacity.
Implementation below by taking the user A as remittance abroad side, the user B as recipient as an example, to limited open transaction Journey is described.Fig. 6 is a kind of money transfer transactions for limited open implemented based on expenditure remaining sum that an exemplary embodiment provides Flow chart;As shown in fig. 6, the interactive process between remittance abroad side, recipient and block chain node may comprise steps of:
Step 601, remittance abroad side determines transfer amounts t.
In one embodiment, remittance abroad side refers to the role that in money transfer transactions the resources such as fund are carried out with remittance abroad, correspondingly connects Debit, which refers in money transfer transactions, carries out received role to resources such as funds.For example, the user equipment that user A is used can be matched It is set to remittance abroad side, and the user equipment that user B is used can be configured as recipient.
In one embodiment, when drafting money transfer transactions, remittance t can be by holding consultation between remittance abroad side and recipient. Certainly, remittance abroad side can also voluntarily determine remittance t, be added their confirmation in the next steps by recipient.
Step 602, remittance abroad side determines the corresponding random number r of remittance t.
In one embodiment, remittance abroad side can be that remittance t generates random number r based on Pedersen promise mechanism, then The corresponding remittance of remittance t promises to undertake T=PC (t, r), and wherein PC () is preset algorithm.
Step 603, (r, t, T) is sent to recipient by chain lower channel by remittance abroad side.
It in one embodiment, can be to avoid remittance by being sent (r, t, T) by chain lower channel rather than block chain network Money random number r and remittance t is recorded into block chain account book, it is ensured that remittance t is unknowable in addition to remittance abroad side and recipient.
Step 604, recipient verifies (r, t, the T) that receives.
In one embodiment, recipient can verify remittance t, to be determined as the remittance number for wishing to collect.
In one embodiment, recipient can promise to undertake that T is verified to remittance, i.e., recipient can pass through Perdersen Promise mechanism calculates random number r and remittance t, is remitted money with verifying and promises to undertake whether T=PC (t, r) be correct, if correct Show to be verified, otherwise verifies and do not pass through.
Step 605, recipient generates after being verified and signs and be back to remittance abroad side.
In one embodiment, after being verified, recipient can use recipient's private key and sign to (A, B:T), It generates signature SigB and is back to remittance abroad side.Signature SigB shows that recipient agrees to from the block chain account 1 of user A to user The money transfer transactions that it is T that the block chain account 2 of B, which is implemented to promise to undertake,.
Step 606, after receiving signature SigB, remittance abroad root, which generates section according to the volume L that withholds, proves PR.
In one embodiment, the volume L that withholds is determined to obtain by remittance abroad root according to transfer amounts t.For example, remittance abroad side can be preparatory Maintenance has several volume L1~Ln that withhold, and remittance abroad side can arbitrarily choose one and withhold volume L, as long as ensuring t≤L≤w, wherein W is the value of the expenditure remaining sum in the block chain account 1 of user A.
In one embodiment, remittance abroad side can determine the volume L that withholds in any time before generating section to prove PR, this Specification is limited not to this.
In one embodiment, in order to ensure money transfer transactions smoothly complete, block chain node is it needs to be determined that remittance t, withhold Volume L meets following conditions: 0≤t≤L;And section proves that technology can make block chain node verify transaction under ciphertext state Whether preset condition is met, it for example can be using Bulletproofs scheme in the related technology, Borromean in this specification Ring signatures scheme etc. realizes that this specification is limited not to this.Remittance abroad side can use section proof technology and generate section PR is proved, for carrying out verifying whether 0≤t of satisfaction≤L by block chain link point in subsequent process.
Step 607, remittance abroad side is to transaction content (A, B:T, L, PR;SigB it) signs, generates signature SigA.
In one embodiment, which can use remittance abroad side's private key to transaction content (A, B:T, L, PR;SigB) into Row signature generates signature SigA.
Step 608, block chain in remittance abroad direction submits transaction.
In one embodiment, remittance abroad side is configured as the client of block chain, and money transfer transactions can be committed to block chain A certain block chain node in network, and it is transferred to all block chain nodes in block chain network in turn, and by each area Block chain node respectively verifies the money transfer transactions, with when being verified execute remittance operation, verifying not by when refuse Remittance absolutely.
Step 609, whether block chain node inspection transaction executed.
In one embodiment, block chain node herein can indicate any one block chain link in block chain network Point, i.e., each block chain node in block chain network will receive above-mentioned money transfer transactions, and real by step 609~612 etc. Apply the operation such as verifying.
In one embodiment, block chain node can use anti-pair in the related technology after receiving above-mentioned money transfer transactions Colored or anti-replay mechanism, verifies whether the money transfer transactions had executed;If executed, can refuse to execute the remittance Transaction, is otherwise transferred to step 610.
Step 610, the inspection of block chain node is signed.
In one embodiment, whether just block chain node can check signature SigA, the SigB for including in the money transfer transactions Really;If incorrect, it can refuse to execute the money transfer transactions, otherwise be transferred to step 611.
Step 611, PR is proved between block chain node test zone.
In one embodiment, the section that block chain node can prove that technology includes to the money transfer transactions based on section proves PR is checked, to determine whether 0≤t of satisfaction≤L.If conditions are not met, can refuse to execute the money transfer transactions, it is otherwise transferred to step Rapid 612.
Step 612, whether block chain node inspection expenditure remaining sum is sufficient.
In one embodiment, since the expenditure remaining sum w of block chain account 1 is recorded in block chain account book with plaintext version In, so that block chain node can be read directly the expenditure remaining sum w of block chain account 1, and by the expenditure remaining sum w and the volume L that withholds It is compared, to determine that expenditure remaining sum is sufficient in w >=L.
Therefore, remittance abroad side, which only needs to generate above-mentioned section for turnover t and the volume L that withholds in step 606, proves PR, It is proved without generating corresponding section for the volume L and expenditure remaining sum w that withholds, can both save the generation of section proof in this way Process, the formation efficiency for promoting transaction, and the verification process of section proof can be saved, promote the execution efficiency of transaction.
Step 613, block chain node updates user A, the corresponding block chain of user B in the block chain account book of maintenance Account.
In one embodiment, after the verifying by step 609~612, block chain node can be respectively to block chain account Block chain account 1, the block chain account 2 recorded in this are updated, as shown in Figure 7:
In the block chain account 1 of user A, the income remaining sum before transaction is v, is registered as accordingly in block chain account book Committed amount PC (v, y), expenditure remaining sum before transaction is w, is registered as plaintext number w in block chain account book.It is trading After the completion, expenditure remaining sum has been deducted the above-mentioned volume L that withholds, thus is registered as plaintext number w-L in block chain account book, and Income remaining sum then increases the difference of small change volume, that is, withhold volume L and remittance t, thus is registered as accordingly in block chain account book Committed amount PC (v, y)+PC (L, 0)-PC (t, r), wherein PC (L, 0) is that the corresponding commitment value of volume L of withholing (is made an appointment and adopted Random number is 0;It is of course also possible to use other numerical value of agreement).
In the block chain account 2 of user B, the income remaining sum before transaction is v ', is registered as phase in block chain account book The committed amount PC (v ', y ') answered, the expenditure remaining sum before transaction are w ', are registered as plaintext number w ' in block chain account book. After completion of transactions, expenditure remaining sum w ' is constant, and takes in remaining sum and then increase remittance t, thus is remembered in block chain account book Record is corresponding committed amount PC (v ', y ')+PC (t, r).
As described above, when account includes above-mentioned income remaining sum and expenditure remaining sum, transaction privacy can be being ensured In the case of, realize that the high concurrent under account model is transferred accounts.But it is converged since the fund for importing account all charges to income remaining sum Fund out is all deducted from expenditure remaining sum, thus the number for paying remaining sum is constantly declining.In order to ensure paying the number of remaining sum Volume is always at sufficient state, completes transaction enough, can periodically or at any time be supplemented with money into expenditure remaining sum.
Although can be supplemented with money from income remaining sum to expenditure remaining sum: since expenditure remaining sum itself is with plaintext shape Formula and exist, part privacy is actually exposed on limited extent (more than showing that remaining sum in related account no less than pays The numerical value of volume), thus user is often not intended to the number for making to pay remaining sum excessively high, to control and limit the exposure model to privacy It encloses.So, it when the transaction of the outside remittance abroad of account is more frequent, turnover is larger, needs frequently to supplement with money to expenditure remaining sum, cause Income remaining sum frequently participates in remittance and remittance abroad (the supplementing with money) of fund, even more so that importing transaction and shadow corresponding between recharging payment It rings, causes efficiency to decline instead.
Therefore, this specification proposes further improvement for structure of accounts shown in Fig. 4.Such as shown in Fig. 8, Ke Yi A main remaining sum is further increased in Balance field, so that Balance field includes three remaining sums in total: more than main remaining sum, income Volume and expenditure remaining sum.Wherein, income remaining sum is exclusively used in collecting the turnover for importing transaction, expenditure remaining sum is exclusively used in participating in remittance abroad handing over Easily, main remaining sum is used to supplement expenditure remaining sum with money, to avoid undertaking the task of supplementing with money by income remaining sum, prevents above The influence.
Fig. 9 is the interaction schematic diagram that a kind of main remaining sum that an exemplary embodiment provides supplements expenditure remaining sum with money.Such as Shown in Fig. 9, which be may comprise steps of:
Step 901, remittance abroad side determines recharge amount m.
In one embodiment, recharge amount m can be any amount of money, as long as the number abundance of the main remaining sum of remittance abroad side is It can.For example, a peak level can be arranged for expenditure remaining sum, and recharge amount m for peak level and can pay the surplus of remaining sum The difference of remainder values.
Step 902, remittance abroad side, which generates section, proves RF.
In one embodiment, be recorded as in block chain account book due to the value u of main remaining sum corresponding committed amount PC (u, X), wherein x be the corresponding random number of u, thus need by generate section prove RF, with the value u for verifying main remaining sum >= m。
Step 903, after remittance abroad side is to transaction Topup (A:m, RF) signature, it is committed to block chain.
In one embodiment, by taking the block chain account 1 of above-mentioned user A as an example, " A " in above-mentioned transaction represents the block chain The account address of account 1 demonstrates the need for supplementing the expenditure remaining sum of the block chain account 1 with money, recharge amount m.
In one embodiment, it can increase by a type field in transaction, and remittance abroad side is when creating each transaction, Ke Yitong It crosses and assignment is carried out to type field, to mark the type of submitted transaction, thus to limited public affairs involved in this specification Open the progress areas such as money transfer transactions, recharging payment and merging described below are traded, main cancellation of balances of accounts is traded, open money transfer transactions Point.For example, in the embodiment shown in fig. 6, limited open money transfer transactions can be marked by value " Transfer ", and this Place can mark recharging payment by value " Topup ".
Step 904, block chain node verification is traded.
In one embodiment, block chain node can verify transaction Topup (A:m, RF) signature it is whether correct;If It is incorrect, it can refuse to execute the transaction.
In one embodiment, whether the recharge amount m that block chain node can verify transaction Topup (A:m, RF) meets m≥0;If incorrect, can refuse to execute the transaction.
In one embodiment, block chain node, which can verify section contained by transaction Topup (A:m, RF), proves RF, with Determine whether 0≤m of satisfaction≤u;If incorrect, can refuse to execute the transaction.
After all verifyings pass through, step 905 can be transferred to.
Step 905, block chain node updates account.
In one embodiment, after through the verifying of step 904, block chain node can be to recording in block chain account book Block chain account 1 is updated, as shown in Figure 10:
In the block chain account 1 of user A, the main remaining sum before transaction is u, is registered as accordingly in block chain account book Committed amount PC (u, x), income remaining sum before transaction is v, be registered as in block chain account book corresponding committed amount PC (v, Y), the expenditure remaining sum before transaction is w, is registered as plaintext number w in block chain account book.
After completion of transactions, main remaining sum deducted it is above-mentioned supplement number m with money, thus be registered as in block chain account book Corresponding committed amount PC (u, x)-PC (m, 0), and pay remaining sum w and increase and supplement number m with money, thus the quilt in block chain account book It is recorded as plaintext number w+m;Meanwhile the value for taking in remaining sum is constant.
As the expenditure remaining sum in account constantly participates in remittance abroad transaction, and main remaining sum is constantly supplemented with money to expenditure remaining sum, It will lead to main remaining sum to gradually reduce;When main remaining sum is reduced to a certain degree or when reducing to 0, will be unable to continue to expenditure remaining sum Remittance abroad transaction is participated in, thus can will take in the fund obtained in remaining sum and be transferred in main remaining sum, in order to maintain account constantly Participate in remittance abroad transaction.
Figure 11 is a kind of interaction schematic diagram for union operation that an exemplary embodiment provides.As shown in figure 11, the interaction Process may comprise steps of:
Step 1101, remittance abroad side, which determines, extracts amount of money n.
In one embodiment, union operation is used for whole funds of the income remaining sum in account, pays the specified of remaining sum Fund is transferred to main remaining sum, and the number of the specified fund can be specified by above-mentioned extraction amount of money n.If extracting amount of money n is 0, phase When in the fund of amount received is only transferred to main remaining sum, or n can be set as to any other numerical value, this specification is not right This is limited.
Step 1102, after remittance abroad side is to transaction Merge (A:n) signature, it is committed to block chain.
In one embodiment, by taking the block chain account 1 of above-mentioned user A as an example, " A " in above-mentioned transaction represents the block chain The account address of account 1 demonstrates the need for implementing union operation to the block chain account 1, and income remaining sum is all specifically transferred to master The fund n paid in remaining sum is transferred to main remaining sum by remaining sum.And Merge shows current type of transaction to merge transaction, to be used for Implement union operation for block chain account 1.
In one embodiment, due to will take in remaining sum be all transferred to main remaining sum rather than part be transferred to, because without for receipts The part for entering remaining sum, which generates section, to be proved;And extracting amount of money n and expenditure remaining sum is plaintext, also not needing generation section proves.
Step 1103, block chain node verification is traded.
In one embodiment, block chain node can verify transaction Merge (A:n) signature it is whether correct;If no Correctly, can refuse to execute the transaction.
In one embodiment, whether the extraction amount of money n that block chain node can verify transaction Merge (A:n) meet 1≤ N≤w, w are the value for paying remaining sum;If incorrect, can refuse to execute the transaction.
After all verifyings pass through, step 1104 can be transferred to.
Step 1104, block chain node updates account.
In one embodiment, after through the verifying of step 1103, block chain node can be to recording in block chain account book Block chain account 1 be updated, as shown in figure 12:
In the block chain account 1 of user A, the main remaining sum before transaction is u, is registered as accordingly in block chain account book Committed amount PC (u, x), income remaining sum before transaction is v, be registered as in block chain account book corresponding committed amount PC (v, Y), the expenditure remaining sum before transaction is w, is registered as plaintext number w in block chain account book.
After completion of transactions, income remaining sum becomes 0;Main remaining sum increases the whole funds and above-mentioned extraction of income remaining sum Amount of money n, thus it is registered as corresponding committed amount PC (u, x)+PC (v, y)+PC (n, 0) in block chain account book, and pay Remaining sum w, which reduces, extracts amount of money n, thus plaintext number w-n is registered as in block chain account book.
Although for main remaining sum contained by account, income remaining sum, paying remaining sum in the embodiment that this specification provides, Can by by expenditure remaining sum participate in remittance abroad transaction, income remaining sum participate in import transaction (income remaining sum also remittance abroad transaction in receive Take small change volume), main remaining sum participate in above-mentioned recharging payment and merge transaction, it is not intended that each remaining sum can only participate in The transaction of the above-mentioned type.For example, the structure of accounts of this specification, can also be compatible with: more than the master for participating in remittance abroad fund by main remaining sum Volume money transfer transactions participate in open money transfer transactions etc. by expenditure remaining sum, are hereafter introduced respectively.
Figure 13 is the flow chart for another block chain method of commerce that an exemplary embodiment provides.As shown in figure 13, should Method is applied to remittance abroad method, apparatus, which comprises
Step 1302, determination will import the turnover of recipient's account, remittance abroad side's account packet from remittance abroad side's account Include remittance abroad side's branch of the main remaining sum in remittance abroad side using committed amount, the remittance abroad side using committed amount income remaining sum and plaintext number Remaining sum out, recipient's account include the main remaining sum of recipient using committed amount, the income of the recipient using committed amount The recipient of remaining sum and plaintext number pays remaining sum.
In one embodiment, remittance abroad side's account, recipient's account are all made of structure of accounts as shown in Figure 8, respectively converge The main remaining sum in remittance abroad side in square account, remittance abroad side's income remaining sum and remittance abroad side pay remaining sum, the recipient in recipient's account out Main remaining sum, recipient take in remaining sum and recipient pays remaining sum.
Step 1304, main cancellation of balances of accounts transaction is submitted to block chain, the main cancellation of balances of accounts transaction includes the turnover Corresponding turnover promises to undertake and for proving that the turnover is non-negative and the main remaining sum in remittance abroad side is not less than the turnover Section proves, so that the main remaining sum in the remittance abroad side deducts the turnover after completion of transactions, the recipient takes in remaining sum and exists Increase the turnover after the completion of transaction.
In one embodiment, since the main remaining sum in remittance abroad side, recipient take in remaining sum in block chain account book to promise to undertake number The form of volume is recorded, thus is traded by above-mentioned main cancellation of balances of accounts, it is ensured that data will not occur in process of exchange Leakage, so that it is guaranteed that the personal secrets of data.
In one embodiment, the alternative button that turnover and volume set of alternatively withholing described above can be included by remittance abroad side Amount of money is compared;If all alternative volumes of withholing are respectively less than turnover, remittance abroad side creates and above-mentioned main remaining sum is submitted to turn Account transaction, if there is any item of alternatively withholing not less than turnover, then remittance abroad side can create and limited open is submitted to turn Account transaction, to pay remaining sum by embodiment as shown in Figure 5 by remittance abroad side and remittance remaining sum participation implementation in remittance abroad side's is limited The transfer operation of open type, helps to realize high concurrent.
In one embodiment, remittance abroad side can determine and above-mentioned main cancellation of balances of accounts is selected to hand over according to the setting operation of user Easily, limited open money transfer transactions or other kinds of money transfer transactions.
In one embodiment, since the main remaining sum in remittance abroad side and remittance abroad side's expenditure remaining sum belong to mutually independent two parts, because And remittance abroad side even can pay remaining sum from remittance abroad side by the main remaining sum in remittance abroad side simultaneously and initiate different transaction respectively.For example, Remaining sum can be paid by remittance abroad side and participates in the lesser limited open money transfer transactions of number, and number is participated in by the main remaining sum in remittance abroad side The biggish main cancellation of balances of accounts transaction of volume, to promote trading efficiency.
Implementation below by taking the user A as remittance abroad side, the user B as recipient as an example, to limited open transaction Journey is described.Figure 14 is a kind of money transfer transactions for complete privacy implemented based on main remaining sum that an exemplary embodiment provides Flow chart;As shown in figure 14, the interactive process between remittance abroad side, recipient and block chain node may comprise steps of:
Step 1401, remittance abroad side determines transfer amounts t.
In one embodiment, remittance abroad side refers to the role that in money transfer transactions the resources such as fund are carried out with remittance abroad, correspondingly connects Debit, which refers in money transfer transactions, carries out received role to resources such as funds.For example, the user equipment that user A is used can be matched It is set to remittance abroad side, and the user equipment that user B is used can be configured as recipient.
In one embodiment, when drafting money transfer transactions, remittance t can be by holding consultation between remittance abroad side and recipient. Certainly, remittance abroad side can also voluntarily determine remittance t, be added their confirmation in the next steps by recipient.
Step 1402, remittance abroad side determines the corresponding random number r of remittance t.
In one embodiment, remittance abroad side can be that remittance t generates random number r based on Pedersen promise mechanism, then The corresponding remittance of remittance t promises to undertake T=PC (t, r), and wherein PC () is preset algorithm.
Step 1403, (r, t, T) is sent to recipient by chain lower channel by remittance abroad side.
It in one embodiment, can be to avoid remittance by being sent (r, t, T) by chain lower channel rather than block chain network Money random number r and remittance t is recorded into block chain account book, it is ensured that remittance t is unknowable in addition to remittance abroad side and recipient.
Step 1404, recipient verifies (r, t, the T) that receives.
In one embodiment, recipient can verify remittance t, to be determined as the remittance number for wishing to collect.
In one embodiment, recipient can promise to undertake that T is verified to remittance, i.e., recipient can pass through Perdersen Promise mechanism calculates random number r and remittance t, is remitted money with verifying and promises to undertake whether T=PC (t, r) be correct, if correct Show to be verified, otherwise verifies and do not pass through.
Step 1405, recipient generates after being verified and signs and be back to remittance abroad side.
In one embodiment, after being verified, recipient can use recipient's private key and sign to (A, B:T), It generates signature SigB and is back to remittance abroad side.Signature SigB shows that recipient agrees to from the block chain account 1 of user A to user The money transfer transactions that it is T that the block chain account 2 of B, which is implemented to promise to undertake,.
Step 1406, after receiving signature SigB, remittance abroad root, which generates section according to main remaining sum u, proves RP.
In one embodiment, in order to ensure money transfer transactions smoothly complete, block chain node is it needs to be determined that more than remittance t, master Volume u meets following conditions: 0≤t≤u;And section proves that technology can make block chain node verify transaction under ciphertext state Whether preset condition is met, it for example can be using Bulletproofs scheme in the related technology, Borromean in this specification Ring signatures scheme etc. realizes that this specification is limited not to this.Remittance abroad side can use section proof technology and generate section RP is proved, for carrying out verifying whether 0≤t of satisfaction≤u by block chain link point in subsequent process.
Step 1407, remittance abroad side is to transaction content PrimaryTransfer (A, B:T, RP;SigB it) signs, generates Sign SigA.
In one embodiment, the remittance abroad side can use remittance abroad side's private key to transaction content PrimaryTransfer (A, B: T,RP;SigB it) signs, generates signature SigA.
Wherein, PrimaryTransfer is for showing that type of transaction be the transaction of main cancellation of balances of accounts (or is that main remaining sum is converged Money transaction).
Step 1408, block chain in remittance abroad direction submits transaction.
In one embodiment, remittance abroad side is configured as the client of block chain, and money transfer transactions can be committed to block chain A certain block chain node in network, and it is transferred to all block chain nodes in block chain network in turn, and by each area Block chain node respectively verifies the money transfer transactions, with when being verified execute remittance operation, verifying not by when refuse Remittance absolutely.
Step 1409, whether block chain node inspection transaction executed.
In one embodiment, block chain node herein can indicate any one block chain link in block chain network Point, i.e., each block chain node in block chain network will receive above-mentioned money transfer transactions, and pass through step 1409~1411 etc. Implement the operation such as verifying.
In one embodiment, block chain node can use anti-pair in the related technology after receiving above-mentioned money transfer transactions Colored or anti-replay mechanism, verifies whether the money transfer transactions had executed;If executed, can refuse to execute the remittance Transaction, is otherwise transferred to step 1410.
Step 1410, the inspection of block chain node is signed.
In one embodiment, whether just block chain node can check signature SigA, the SigB for including in the money transfer transactions Really;If incorrect, it can refuse to execute the money transfer transactions, otherwise be transferred to step 1411.
Step 1411, RP is proved between block chain node test zone.
In one embodiment, the section that block chain node can prove that technology includes to the money transfer transactions based on section proves RP is checked, to determine whether 0≤t of satisfaction≤u.If conditions are not met, can refuse to execute the money transfer transactions, it is otherwise transferred to step Rapid 1412.
Step 1412, block chain node updates user A, the corresponding block of user B in the block chain account book of maintenance Chain account.
In one embodiment, after the verifying by step 1409~1411, block chain node can be respectively to block chain Block chain account 1, the block chain account 2 recorded in account book are updated, as shown in figure 15:
In the block chain account 1 of user A, the main remaining sum before transaction is u, is registered as accordingly in block chain account book Committed amount PC (u, x), income remaining sum before transaction is v, be registered as in block chain account book corresponding committed amount PC (v, Y), the expenditure remaining sum before transaction is w, is registered as plaintext number w in block chain account book.After completion of transactions, main remaining sum quilt Above-mentioned turnover t has been deducted, thus has been registered as corresponding committed amount PC (u, x)-PC (t, r) in block chain account book, And it is constant to take in remaining sum v, expenditure remaining sum w.
In the block chain account 2 of user B, the main remaining sum before transaction is u ', is registered as accordingly in block chain account book Committed amount PC (u ', x '), the income remaining sum before transaction is v ', is registered as corresponding committed amount in block chain account book PC (v ', y '), the expenditure remaining sum before transaction is w ', is registered as plaintext number w ' in block chain account book.After completion of transactions, Main remaining sum is u ', expenditure remaining sum w ' is constant, and takes in remaining sum and then increase remittance t, thus is recorded in block chain account book For corresponding committed amount PC (v ', y ')+PC (t, r).
Figure 16 is the flow chart for another block chain method of commerce that an exemplary embodiment provides.As shown in figure 16, should Method is applied to remittance abroad method, apparatus, which comprises
Step 1602, determination will import the turnover of recipient's account, remittance abroad side's account packet from remittance abroad side's account Include remittance abroad side's branch of the main remaining sum in remittance abroad side using committed amount, the remittance abroad side using committed amount income remaining sum and plaintext number Remaining sum out, recipient's account include the main remaining sum of recipient using committed amount, the income of the recipient using committed amount The recipient of remaining sum and plaintext number pays remaining sum.
In one embodiment, remittance abroad side's account, recipient's account are all made of structure of accounts as shown in Figure 8, respectively converge The main remaining sum in remittance abroad side in square account, remittance abroad side's income remaining sum and remittance abroad side pay remaining sum, the recipient in recipient's account out Main remaining sum, recipient take in remaining sum and recipient pays remaining sum.
Step 1604, open money transfer transactions are submitted to block chain, the open money transfer transactions include the open transaction volume Corresponding open transaction volume, so that remittance abroad side expenditure remaining sum deducts the open transaction volume after completion of transactions, described connects Debit pays remaining sum and increases the open transaction volume after completion of transactions.
It in one embodiment, can be by sacrificing this when the value of remittance abroad side's expenditure remaining sum is recorded as plaintext numerical value One plaintext numerical value exchanges the high concurrents of money transfer transactions for.When remittance abroad side receives above-mentioned setting, show that remittance abroad side is protected in privacy Between shield and trading efficiency, allow to exchange higher trading efficiency for by sacrificing part privacy, thus in some scenes, than Such as part it is independent, the amount of money is lesser transfer accounts for, can be by submitting above-mentioned open money transfer transactions, directly in remittance abroad Side's expenditure remaining sum and recipient pay to implement to transfer accounts between remaining sum, this process is similar to and secret protection is not carried out in the related technology Transfer operation under scene, due to not needing implementation encryption, generation section proves, verifies the processing of the Various Complexes such as section proof Operation, can greatly promote trading efficiency.
In one embodiment, available privacy type set information, the privacy type set information can by user according to Actual demand is temporarily set, or is set as coming into force for a long time.When the privacy type set information is non-secret type, table Bright user relatively more values trading efficiency, thus can be based on above to the block chain submission open money transfer transactions.And work as When privacy type set information is secret type, show that user relatively more values privacy, thus Fig. 5 or Figure 13 institute can be based on The embodiment shown submits limited open money transfer transactions or the transaction of main cancellation of balances of accounts to block chain.
Wherein, limited open money transfer transactions or master are selected under the scene of secret type, user can further be set Cancellation of balances of accounts transaction;Or as described above, limited open money transfer transactions can be preferentially selected, and it is small in remittance abroad side's expenditure remaining sum When turnover, main cancellation of balances of accounts is selected to trade, here can be with reference to embodiment shown in Figure 13, this is repeated no more.
Implementation below by taking the user A as remittance abroad side, the user B as recipient as an example, to limited open transaction Journey is described.Figure 17 is a kind of process for open money transfer transactions implemented based on expenditure remaining sum that an exemplary embodiment provides Figure;As shown in figure 17, the interactive process between remittance abroad side, recipient and block chain node may comprise steps of:
Step 1701, remittance abroad side determines transfer amounts t.
In one embodiment, remittance abroad side refers to the role that in money transfer transactions the resources such as fund are carried out with remittance abroad, correspondingly connects Debit, which refers in money transfer transactions, carries out received role to resources such as funds.For example, the user equipment that user A is used can be matched It is set to remittance abroad side, and the user equipment that user B is used can be configured as recipient.
In one embodiment, when drafting money transfer transactions, remittance t can be by holding consultation between remittance abroad side and recipient. Certainly, remittance abroad side can also voluntarily determine remittance t.
Step 1702, remittance abroad side signs to transaction content OpenTransfer (A, B:t), generates signature SigA, and Submit transaction.
In one embodiment, which can use remittance abroad side's private key to transaction content OpenTransfer (A, B:t) It signs, generates signature SigA.
Wherein, OpenTransfer is for showing that type of transaction is open money transfer transactions (or being open money transfer transactions).
Step 1703, block chain node verification is traded.
In one embodiment, block chain node can use anti-pair in the related technology after receiving above-mentioned money transfer transactions Colored or anti-replay mechanism, verifies whether the money transfer transactions had executed;If executed, can refuse to execute the remittance Transaction, is otherwise transferred to step 1704.
In one embodiment, block chain node can check whether the signature SigA for including in the money transfer transactions is correct;Such as Fruit is incorrect, can refuse to execute the money transfer transactions, otherwise be transferred to step 1704.
Step 1704, block chain node updates user A, the corresponding block of user B in the block chain account book of maintenance Chain account.
In one embodiment, after the verifying by step 1703, block chain node can be respectively in block chain account book Block chain account 1, the block chain account 2 of record are updated, as shown in figure 18:
In the block chain account 1 of user A, the main remaining sum before transaction is u, is registered as accordingly in block chain account book Committed amount PC (u, x), income remaining sum before transaction is v, be registered as in block chain account book corresponding committed amount PC (v, Y), the expenditure remaining sum before transaction is w, is registered as plaintext number w in block chain account book.After completion of transactions, remaining sum w is paid Above-mentioned turnover t has been deducted, thus has been registered as corresponding plaintext number w-t in block chain account book, and has taken in remaining sum V, main remaining sum u is constant.
In the block chain account 2 of user B, the main remaining sum before transaction is u ', is registered as accordingly in block chain account book Committed amount PC (u ', x '), the income remaining sum before transaction is v ', is registered as corresponding committed amount in block chain account book PC (v ', y '), the expenditure remaining sum before transaction is w ', is registered as plaintext number w ' in block chain account book.After completion of transactions, Main remaining sum is u ', income remaining sum is that v ' is constant, and pays remaining sum w ' and then increase remittance t, thus the quilt in block chain account book It is recorded as corresponding plaintext number w '+t.
Figure 19 is a kind of schematic configuration diagram for equipment that an exemplary embodiment provides.Figure 19 is please referred to, in hardware view, The equipment includes processor 1902, internal bus 1904, network interface 1906, memory 1908 and nonvolatile memory 1910, it is also possible that hardware required for other business certainly.Processor 1902 is read from nonvolatile memory 1910 Then corresponding computer program is run into memory 1908, account creation device is formed on logic level.Certainly, in addition to soft Except part implementation, this specification one or more embodiment is not precluded other implementations, for example, logical device or Mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, It can be hardware or logical device.
Figure 20 is please referred to, in Software Implementation, account creating device may include:
Receiving unit 2001 receives the transaction of block chain, and the type of the block chain transaction is account creation type;
Execution unit 2002 executes the block chain transaction to create the first account, and first account includes using close The income remaining sum of literary number and the expenditure remaining sum of plaintext number, when producing the volume of withholing from the expenditure remaining sum with plaintext version, Small change volume is transferred to the income remaining sum with ciphertext form, and wherein small change volume is the difference of volume and turnover of withholing.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media), Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.

Claims (12)

1. a kind of account creation method is applied to block chain node, which comprises
The transaction of block chain is received, the type of the block chain transaction is account creation type;
Block chain transaction is executed to create the first account, first account include using ciphertext number income remaining sum and The expenditure remaining sum of plaintext number, when producing the volume of withholing from the expenditure remaining sum with plaintext version, small change volume is turned with ciphertext form Enter the income remaining sum, wherein small change volume is the difference of volume and turnover of withholing.
2. being promised to undertake according to the method described in claim 1, the income remaining sum is registered as corresponding remaining sum;The method is also wrapped It includes:
Receive and import money transfer transactions, the turnover for importing money transfer transactions is characterized as being corresponding turnover and promises to undertake, for from Second account is transferred accounts to first account;
The remittance money transfer transactions are executed, are promised to undertake with being included in the turnover into the income remaining sum, from second account It deducts the turnover or the turnover is promised to undertake.
3. according to the method described in claim 1, first account further includes using the main remaining sum of ciphertext number, more than the master Volume is registered as corresponding remaining sum and promises to undertake;The method also includes:
Recharging payment is received, the recharging payment includes to supplement volume and section with money to prove, the section is proved for proving the master Remaining sum supplements volume with money not less than described;
The recharging payment is executed, is promised to undertake, with subtracting the corresponding volume of supplementing with money of volume of supplementing with money from the main remaining sum to the branch Volume is supplemented with money described in being included in remaining sum out.
4. according to the method described in claim 3, further include:
It receives and merges transaction, the merging transaction includes merging volume;
The merging transaction is executed, it is described to subtract the merging volume from the expenditure remaining sum, be included in into the main remaining sum The corresponding merging volume of merging volume is promised to undertake, and/or the income remaining sum is reset, is included in the income remaining sum into the main remaining sum The remaining sum being registered is promised to undertake.
5. being promised to undertake according to the method described in claim 3, the main remaining sum is registered as corresponding remaining sum;The method is also wrapped It includes:
Main cancellation of balances of accounts transaction is received, the main cancellation of balances of accounts transaction is promised to undertake comprising the corresponding turnover of turnover and section card Bright, the section is proved for proving that the turnover is non-negative and the main remaining sum is not less than the turnover, the main remaining sum Money transfer transactions from the main remaining sum of first account to the second account for transferring accounts;
The main cancellation of balances of accounts transaction is executed, promised to undertake with subtracting the turnover in promising to undertake from the corresponding remaining sum of the main remaining sum, It is included in the turnover into second account or the turnover is promised to undertake.
6. being promised to undertake according to the method described in claim 1, the income remaining sum is registered as corresponding remaining sum;The method is also wrapped It includes:
Limited open money transfer transactions are received, the limited open money transfer transactions include the corresponding turnover promise of turnover, section Prove and withhold volume, and the section is proved for proving that the turnover is non-negative and the volume of withholing is not less than the turnover, The limited open money transfer transactions from the expenditure remaining sum of first account to the second account for transferring accounts;
The limited open money transfer transactions are executed, to subtract the volume of withholing from the expenditure remaining sum, to the income remaining sum The corresponding volume of withholing of volume of withholing described in increase promises to undertake and subtracts the turnover and promises to undertake, is included in the friendship in the second account of Xiang Suoshu Easy volume is promised to undertake.
7. according to the method described in claim 6, the volume of withholing is selected to be derived from the corresponding volume of alternatively withholing of first account Set, the volume set of alternatively withholing include the volume of alternatively withholing of several predetermined values.
8. according to the method described in claim 1, further include:
Open money transfer transactions are received, the open money transfer transactions include turnover;
The open money transfer transactions are executed, to subtract the turnover from the expenditure remaining sum, the second account of Xiang Suoshu is fallen into a trap Enter the turnover.
9. according to the method described in claim 1, first account is external account, contract account or asset account.
10. a kind of account creation device, is applied to block chain node, described device includes:
Receiving unit receives the transaction of block chain, and the type of the block chain transaction is account creation type;
Execution unit executes the block chain transaction to create the first account, and first account includes using ciphertext number Take in remaining sum and plaintext number expenditure remaining sum, when producing the volume of withholing from the expenditure remaining sum with plaintext version, small change volume with Ciphertext form is transferred to the income remaining sum, and wherein small change volume is the difference of volume and turnover of withholing.
11. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize side as claimed in any one of claims 1-9 wherein Method.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, realized such as when which is executed by processor The step of any one of claim 1-9 the method.
CN201910105428.5A 2019-02-01 2019-02-01 Account creation method and device, electronic equipment and storage medium Active CN110033370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910105428.5A CN110033370B (en) 2019-02-01 2019-02-01 Account creation method and device, electronic equipment and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010532071.1A CN111784341A (en) 2019-02-01 2019-02-01 Block chain transaction method and device, electronic equipment and storage medium
CN201910105428.5A CN110033370B (en) 2019-02-01 2019-02-01 Account creation method and device, electronic equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010532071.1A Division CN111784341A (en) 2019-02-01 2019-02-01 Block chain transaction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110033370A true CN110033370A (en) 2019-07-19
CN110033370B CN110033370B (en) 2020-04-24

Family

ID=67235629

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910105428.5A Active CN110033370B (en) 2019-02-01 2019-02-01 Account creation method and device, electronic equipment and storage medium
CN202010532071.1A Pending CN111784341A (en) 2019-02-01 2019-02-01 Block chain transaction method and device, electronic equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010532071.1A Pending CN111784341A (en) 2019-02-01 2019-02-01 Block chain transaction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (2) CN110033370B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021017425A1 (en) * 2019-07-31 2021-02-04 创新先进技术有限公司 Method and apparatus for realizing confidential transaction in blockchain network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549749A (en) * 2016-12-06 2017-03-29 杭州趣链科技有限公司 A kind of block chain method for secret protection encrypted based on additive homomorphism
CN106982205A (en) * 2017-03-01 2017-07-25 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain
CN107483181A (en) * 2017-08-28 2017-12-15 北京金股链科技有限公司 Measure of managing contract, device and terminal
US20180365688A1 (en) * 2017-06-14 2018-12-20 International Business Machines Corporation Transaction execution and validation in a blockchain
CN109257182A (en) * 2018-10-24 2019-01-22 杭州趣链科技有限公司 A kind of block chain method for secret protection that the cryptography promise based on homomorphism is proved with Zero Knowledge range

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549749A (en) * 2016-12-06 2017-03-29 杭州趣链科技有限公司 A kind of block chain method for secret protection encrypted based on additive homomorphism
CN106982205A (en) * 2017-03-01 2017-07-25 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain
US20180365688A1 (en) * 2017-06-14 2018-12-20 International Business Machines Corporation Transaction execution and validation in a blockchain
CN107483181A (en) * 2017-08-28 2017-12-15 北京金股链科技有限公司 Measure of managing contract, device and terminal
CN109257182A (en) * 2018-10-24 2019-01-22 杭州趣链科技有限公司 A kind of block chain method for secret protection that the cryptography promise based on homomorphism is proved with Zero Knowledge range

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021017425A1 (en) * 2019-07-31 2021-02-04 创新先进技术有限公司 Method and apparatus for realizing confidential transaction in blockchain network

Also Published As

Publication number Publication date
CN111784341A (en) 2020-10-16
CN110033370B (en) 2020-04-24

Similar Documents

Publication Publication Date Title
KR101950912B1 (en) Verification system and method for transaction based block chain
US10607285B2 (en) System for managing serializability of resource transfers in a process data network
JP2019506075A (en) Exchange using blockchain-based tokenization
US20180101914A1 (en) Systems, methods and machine-readable mediums for data management and payment processing
US10693658B2 (en) Methods and systems for using digital signatures to create trusted digital asset transfers
US20170236104A1 (en) Peer-to-Peer Financial Transactions Using A Private Distributed Ledger
US10318936B2 (en) System and method for transferring funds
KR20180112061A (en) Registry and automation management methods for smart contracts in block chain enforcement
EP3420669B1 (en) Cryptographic method and system for secure extraction of data from a blockchain
US10157078B2 (en) System for transforming large scale electronic processing using application block chain
JP6813477B2 (en) A device, system, or method that facilitates value transfer between unreliable or unreliable parties.
US10402796B2 (en) Application life-cycle transition record recreation system
US20190052454A1 (en) System and method for controlling asset-related actions via a block chain
US20190050832A1 (en) Method and system for efficient transfer of cryptocurrency associated with a payroll on a blockchain that leads to an automated payroll method and system based on smart contracts
US20160314443A1 (en) Monetary transaction system
US20190379727A1 (en) System for external validation of private-to-public transition protocols
JP2018515833A (en) Blockchain transaction recording system and method
US10387878B2 (en) System for tracking transfer of resources in a process data network
US20160055583A1 (en) Mobile global exchange platform
EP3594884A1 (en) Electronic bill management method, device, and storage medium
US8825547B2 (en) Apparatus, method, and computer program product for data cleansing and/or biller scrubbing
US20170372417A1 (en) Digital asset account management
Asharaf et al. Decentralized Computing Using Blockchain Technologies and Smart Contracts: Emerging Research and Opportunities: Emerging Research and Opportunities
US10535098B2 (en) Recurring money transfer
RU2581784C2 (en) Apparatus and method for bill presentment and payment

Legal Events

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

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co., Ltd

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co., Ltd

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right