CN109272403A - A kind of method and apparatus for supporting digital cash to trade - Google Patents

A kind of method and apparatus for supporting digital cash to trade Download PDF

Info

Publication number
CN109272403A
CN109272403A CN201810857626.2A CN201810857626A CN109272403A CN 109272403 A CN109272403 A CN 109272403A CN 201810857626 A CN201810857626 A CN 201810857626A CN 109272403 A CN109272403 A CN 109272403A
Authority
CN
China
Prior art keywords
transaction
transaction record
record
integrated
limit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810857626.2A
Other languages
Chinese (zh)
Inventor
李鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Midoqi Technology Co ltd
Original Assignee
Beijing Bitmain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bitmain Technology Co Ltd filed Critical Beijing Bitmain Technology Co Ltd
Priority to CN201810857626.2A priority Critical patent/CN109272403A/en
Priority to PCT/CN2018/113977 priority patent/WO2020024474A1/en
Publication of CN109272403A publication Critical patent/CN109272403A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

This application provides a kind of method and apparatus for supporting digital cash to trade, and can record and integrate to the available transaction of user, one for obtaining the user according to the result of the integration has integrated transaction record;Wherein, using the transaction record integrated as transaction record to be integrated in the available transaction record.Present invention also provides a kind of digital cash client, the device traded comprising the support digital cash.Present invention also provides a kind of computer readable storage medium, computer program product and electronic equipments, can be realized the execution of the method for above-mentioned support digital cash transaction.

Description

A kind of method and apparatus for supporting digital cash to trade
Technical field
This application involves technical field of data processing, such as are related to a kind of method and apparatus for supporting digital cash to trade.
Background technique
Currently, when user carries out digital cash transaction, it usually needs a certain number of available transaction records are chosen, such as UTXO (the transaction output not spent), to construct the transaction for meeting fund to be transacted.
When the fund in the available transaction of user record is smaller, it is full to construct to need to choose a large amount of available transaction record The transaction of foot fund to be transacted, this causes to contain the available transaction record more than maximum size in the transaction constructed, so that handing over It is easily unable to complete, seriously affects the realization of digital cash transaction.
Summary of the invention
The embodiment of the present disclosure provides a kind of method for supporting digital cash to trade, comprising:
The available transaction of user record is integrated, according to the result of the integration obtain one of the user it is whole Close transaction record;
Wherein, using the transaction record integrated as transaction record to be integrated in the available transaction record.
Carrying out the integration may include: that merging is described wait integrate the fund in transaction record, obtain integrating funds.
It can also include following operation: determine the transaction record to be integrated.
The determination transaction record to be integrated may include:
In available transaction record, the limit for being no more than acceptable theoretical maximum transaction record quantity of trading is handed over Easily record the transaction record to be integrated that transaction record has been integrated as one for obtaining the user;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
The determination transaction record to be integrated may include:
In available transaction record, merge the limit for being no more than acceptable theoretical maximum transaction record quantity of trading Fund in transaction record obtains limit fund, obtains the difference of the limit fund and fund to be transacted;
In non-limit transaction record in available transaction record in addition to the limit transaction record, after merging Total fund meet the non-limit transaction record of the difference and integrated transaction record as one for obtaining the user Transaction record to be integrated;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
The determination transaction record to be integrated may include:
In available transaction record, merge the limit for being no more than acceptable theoretical maximum transaction record quantity of trading Transaction record obtains an occasional trade record;Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as friendship Easily record theoretical limit;
It is recorded based on the occasional trade and in available transaction record in addition to the limit transaction record Non- limit transaction record, select to meet fund to be transacted and be no more than the transaction record of the transaction record theoretical limit as For obtaining one of the user transaction record to be integrated for having integrated transaction record.
Transaction record has been integrated described in obtaining, may include: according to the integrating funds, building has been integrated including described in The transaction of transaction record.
The transaction is constructed, may include: to be inputted the transaction record to be integrated as transaction, integrated friendship for described Easily record carries the integrating funds as transaction output and in described integrated in transaction record, and generating includes the transaction The data format that input, transaction export is as the transaction.
The data format may include character string.
It can also include following operation: generate address pointed by the integrating funds, which is carried on described In transaction output.
It can also include following operation: sign to the transaction.
It can also include following operation: the transaction after sending signature.
It can also include following operation: transaction verification being carried out to the transaction before sending the transaction after signature.
It can also include following operation: the corresponding transaction fee of the transaction be generated before constructing the transaction, according to institute It states transaction fee and updates the integrating funds.
Before carrying out the integration, it can also include following operation: excessive exception (the transactoin too that trades occurs large)。
It can also include following operation: according to for avoiding the reserved value of insufficient funds, determine the result of the integration Validity.
The validity for determining the result of the integration may include: to add the reserved value for the result of the integration, obtain To referring to fund;It is described with reference to fund be more than capital rationing when determine that the result of the integration is invalid.
It can also include following operation: when determining that the result of the integration is invalid, come back for the integration.
The capital rationing is typically not greater than the total fund of the user.
It can also include following operation: lock the transaction record to be integrated.
Can also include following operation: obtain it is described integrated transaction record after, unlock is described wait integrate transaction note Record.
The transaction record to be integrated may include at least one of:
Unacknowledged transaction record;
The transaction record having confirmed that.
The transaction record can be UTXO.
The embodiment of the present disclosure additionally provides a kind of device for supporting digital cash to trade, comprising:
Available transaction recording integrating module is integrated for the available transaction record to user;
Transaction record generation module has been integrated, has been integrated for obtaining one of the user according to the result of the integration Transaction record;
Wherein, using the transaction record integrated as transaction record to be integrated in the available transaction record.
The available transaction recording integrating module, can be used for: wait integrate the fund in transaction record described in merging, obtain Integrating funds.
The available transaction recording integrating module, can be also used for: determine the transaction record to be integrated.
The available transaction recording integrating module is determining when integrating transaction record, can be used for:
In available transaction record, the limit for being no more than acceptable theoretical maximum transaction record quantity of trading is handed over Easily record the transaction record to be integrated that transaction record has been integrated as one for obtaining the user;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
The available transaction recording integrating module is determining when integrating transaction record, can be used for:
In available transaction record, merge the limit for being no more than acceptable theoretical maximum transaction record quantity of trading Fund in transaction record obtains limit fund, obtains the difference of the limit fund and fund to be transacted;
In non-limit transaction record in available transaction record in addition to the limit transaction record, after merging Total fund meet the non-limit transaction record of the difference and integrated transaction record as one for obtaining the user Transaction record to be integrated;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
The available transaction recording integrating module is determining when integrating transaction record, can be used for:
In available transaction record, merge the limit for being no more than acceptable theoretical maximum transaction record quantity of trading Transaction record obtains an occasional trade record;Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as friendship Easily record theoretical limit;
It is recorded based on the occasional trade and in available transaction record in addition to the limit transaction record Non- limit transaction record, select to meet fund to be transacted and be no more than the transaction record of the transaction record theoretical limit as For obtaining one of the user transaction record to be integrated for having integrated transaction record.
It is described to have integrated transaction record generation module, it can be used for: according to the integrating funds, constructing including described in Integrate the transaction of transaction record.
The transaction record generation module of having integrated can be used for when constructing the transaction: by described wait integrate transaction Record as transaction input, using it is described integrated transaction record as transaction output and carried in described integrated in transaction record The integrating funds, generating includes that the transaction inputs, the data format of transaction output is as the transaction.
The data format may include character string.
It is described to have integrated transaction record generation module, it can be also used for: generating address pointed by the integrating funds, The address is carried in the transaction output.
It is described to have integrated transaction record generation module, it can be also used for: signing to the transaction.
It is described to have integrated transaction record generation module, it can be also used for: the transaction after sending signature.
It is described to have integrated transaction record generation module, it can be also used for: to institute before sending the transaction after signature It states transaction and carries out transaction verification.
The available transaction recording integrating module, can be also used for: integrate the building of transaction record generation module described The corresponding transaction fee of the transaction is generated before the transaction, and the integrating funds are updated according to the transaction fee.
The available transaction recording integrating module, can be also used for: before carrying out the integration, the transaction that is occurred Big exception is triggered.
The available transaction recording integrating module, can be also used for: according to for avoiding the reserved value of insufficient funds, determine The validity of the result of the integration.
The available transaction recording integrating module can be used for when determining the validity of result of the integration: for institute The result for stating integration adds the reserved value, obtains with reference to fund;Described in being determined when the reference fund is more than capital rationing The result of integration is invalid.
The available transaction recording integrating module, can be also used for: when determining that the result of the integration is invalid, come back for The integration.
The capital rationing is typically not greater than the total fund of the user.
The available transaction recording integrating module, can be also used for: lock the transaction record to be integrated.
The available transaction recording integrating module, can be also used for: obtain in the transaction record generation module of having integrated It is described integrated transaction record after, unlock the transaction record to be integrated.
The transaction record to be integrated may include at least one of:
Unacknowledged transaction record;
The transaction record having confirmed that.
The transaction record can be UTXO.
The embodiment of the present disclosure additionally provides a kind of digital cash client, and the support digital cash comprising above-described embodiment is handed over Easy device.
The embodiment of the present disclosure additionally provides a kind of computer readable storage medium, is stored with computer executable instructions, institute State the method that computer executable instructions are arranged to carry out the support digital cash transaction of above-described embodiment.
The embodiment of the present disclosure additionally provides a kind of computer program product, and the computer program product includes being stored in meter Computer program on calculation machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is counted When calculation machine executes, the computer is made to execute the method that the support digital cash of above-described embodiment is traded.
The embodiment of the present disclosure additionally provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one When a processor executes, at least one described processor is made to execute the method that the support digital cash of above-described embodiment is traded.
Detailed description of the invention
One or more embodiments are illustrated by corresponding attached drawing, these exemplary illustrations and attached drawing The restriction to embodiment is not constituted, the element with same reference numbers label is expressed as similar element, attached drawing in attached drawing Composition does not limit, and wherein:
Fig. 1 is the method schematic diagram that the support digital cash of the embodiment of the present disclosure is traded;
Fig. 2 is the method schematic diagram of the embodiment of the present disclosure integrated to fund;
Fig. 3 is the method schematic diagram for realizing the integration of digital cash transaction record of the embodiment of the present disclosure;
Fig. 4 is the method schematic diagram of the selection limit transaction record of the embodiment of the present disclosure;
Fig. 5 is the method schematic diagram for realizing the integration of digital cash transaction record of another embodiment of the disclosure;
Fig. 6 is the method schematic diagram of the non-limit transaction record of selection of the embodiment of the present disclosure;
Fig. 7 is the method schematic diagram for realizing the integration of digital cash transaction record of disclosure another embodiment;
Fig. 8 is the method schematic diagram for obtaining occasional trade and recording of the embodiment of the present disclosure;
Fig. 9 is the method schematic diagram that the progress transaction record of the embodiment of the present disclosure reselects;
Figure 10 is the method schematic diagram of the building transaction of the embodiment of the present disclosure;
Figure 11 is the method schematic diagram of the building transaction of another embodiment of the disclosure;
Figure 12 is the method schematic diagram for updating integrating funds of the embodiment of the present disclosure;
Figure 13 is the method schematic diagram of the validity of the determination integrated results of the embodiment of the present disclosure;
Figure 14 is the schematic device that the support digital cash of the embodiment of the present disclosure is traded;
Figure 15 is the schematic device of the embodiment of the present disclosure integrated to fund;
Figure 16 is the schematic device for realizing the integration of digital cash transaction record of the embodiment of the present disclosure;
Figure 17 is the schematic device of the selection limit transaction record of the embodiment of the present disclosure;
Figure 18 is the schematic device for realizing the integration of digital cash transaction record of another embodiment of the disclosure;
Figure 19 is the schematic device of the non-limit transaction record of selection of the embodiment of the present disclosure;
Figure 20 is the schematic device for realizing the integration of digital cash transaction record of disclosure another embodiment;
Figure 21 is the schematic device for obtaining occasional trade and recording of the embodiment of the present disclosure;
Figure 22 is the schematic device that the progress transaction record of the embodiment of the present disclosure reselects;
Figure 23 is the schematic device of the building transaction of the embodiment of the present disclosure;
Figure 24 is the schematic device of the building transaction of another embodiment of the disclosure;
Figure 25 is the schematic device for updating integrating funds of the embodiment of the present disclosure;
Figure 26 is the schematic device of the validity of the determination integrated results of the embodiment of the present disclosure;And
Figure 27 is the structural schematic diagram for the electronic equipment that the embodiment of the present disclosure provides.
Appended drawing reference:
10: supporting the device of digital cash transaction;
110: available transaction recording integrating module;120: having integrated transaction record generation module;
1101: acquiring unit;1102: determination unit;1103: integral unit;
1201: construction unit;
2700: electronic equipment;2701: processor;2702: memory;2703: communication interface;2704: bus.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present disclosure and technology contents, with reference to the accompanying drawing to this public affairs The realization for opening embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the embodiment of the present disclosure. In technical description below, for convenience of explanation for the sake of, disclosed embodiment is fully understood with providing by multiple details. However, one or more embodiments still can be implemented in the case where without these details.It in other cases, is simplification Attached drawing, well known construction and device can simplify displaying.
Referring to Fig. 1, the embodiment of the present disclosure provides a kind of method for supporting digital cash to trade, comprising:
S10: the available transaction record of user is integrated;Wherein, it will integrate in available transaction record Transaction record is used as transaction record to be integrated;
S20: one for obtaining the user according to the result of the integration has integrated transaction record.
The above method can realize by the available transaction record management server of the user, such as: in block chain network Full node, wallet client end of the user etc..
Referring to fig. 2, carrying out the integration may include: that merging is described wait integrate the fund in transaction record, obtain whole Joint gold.
Referring to Fig. 3,5,7, the transaction record to be integrated can also be determined.
Referring to Fig. 3, the determination transaction record to be integrated may include:
S101: the available transaction record of the user is obtained;
Such as: the listunspent interface in the wallet client end of the user is called to obtain the available of the user Transaction record.
As one embodiment, the available transaction record of the user got may include at least one of:
Unacknowledged available transaction record;
The available transaction record having confirmed that.
S102: in available transaction record, acceptable theoretical maximum transaction record quantity of trading will be no more than Limit transaction record has integrated the transaction record to be integrated of transaction record as one for obtaining the user;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
As one embodiment, all available transactions record and the transaction record theoretical limit of the user are not limited Between quantitative relation.
As one embodiment, between all available transactions record of the user and the transaction record theoretical limit There may be quantitative relations, such as: the quantity of all available transactions record of the user is managed less than or equal to the transaction record By twice of limit.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
Referring to fig. 4, the selection of limit transaction record can also be carried out, it may for example comprise:
S1021: according to fund, available transaction record is ranked up;The fund is available transaction record The fund for including;
S1022: the limit transaction record is chosen in available transaction record according to the sequence.
As one embodiment, the sequence can be to sort from large to small according to fund;
The mode for choosing the limit transaction record can be with are as follows: according to fund from big to small in available transaction record Choose the limit transaction record.
As one embodiment, the mode for choosing the limit transaction record can be with are as follows:
The limit transaction record is sequentially chosen in available transaction record according to the sequence, or
According to the sequence, the limit transaction record is chosen in jump in available transaction record.
As one embodiment, the quantity of the limit transaction record can be equal to the transaction record theoretical limit.
As one embodiment, the quantity of the limit transaction record might be less that the transaction record theoretical limit.
As one embodiment, since the transaction record theoretical limit is a theoretical value, it is possible to practical behaviour Transaction record actual limit in work has differences, therefore the quantity of the limit transaction record can also be slightly larger than the friendship Easily record theoretical limit, such as: the quantity of limit transaction record certain proportion bigger than the transaction record theoretical limit, example Such as: within 5%, within 10% or within 5% to 10%.
It can also be according to fund when being ranked up according to fund to available transaction record as one embodiment It is ranked up from small to large;The mode for choosing the limit transaction record accordingly can be with are as follows: according to fund from small to large in institute It states in available transaction record and chooses the limit transaction record.
As one embodiment, the available transaction can not also be recorded and be ranked up, choose the limit accordingly The mode of transaction record can be with are as follows: randomly selects the limit transaction record in available transaction record.
Referring to Fig. 5, the determination transaction record to be integrated may include:
S111: the available transaction record of the user is obtained;
Such as: the listunspent interface in the wallet client end of the user is called to obtain the available of the user Transaction record.
As one embodiment, the available transaction record of the user got may include at least one of:
Unacknowledged available transaction record;
The available transaction record having confirmed that.
S112: in available transaction record, merge and be no more than acceptable theoretical maximum transaction record quantity of trading Limit transaction record in fund obtain limit fund, obtain the difference of the limit fund and fund to be transacted;
S113:, will in the non-limit transaction record in available transaction record in addition to the limit transaction record The non-limit transaction record that total fund after merging meets the difference has integrated friendship as one for obtaining the user The transaction record to be integrated easily recorded;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
As one embodiment, the limit fund can be subtracted with the fund to be transacted to obtain the difference.
As one embodiment, after the fund in a certain number of non-limit transaction records can be merged to be merged Total fund, and when total fund after merging is greater than or equal to the difference, by the non-limit transaction note for the fund that incorporates Record is used as transaction record to be integrated.
As one embodiment, all available transactions record and the transaction record theoretical limit of the user are not limited Between quantitative relation.
As one embodiment, between all available transactions record of the user and the transaction record theoretical limit There may be quantitative relations, such as: the quantity of all available transactions record of the user is managed less than or equal to the transaction record By twice of limit.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
Referring to Fig. 6, the selection of non-limit transaction record can also be carried out, it may for example comprise:
S1131: according to fund, the non-limit transaction record is ranked up;The fund is the non-limit transaction The fund that record includes;
S1132: the non-limit transaction record as transaction record to be integrated is chosen according to the sequence.
As one embodiment, the sequence can be to sort from large to small according to fund;
The mode for choosing the non-limit transaction record can be with are as follows: is chosen from big to small according to fund as wait integrate transaction The non-limit transaction record of record.
As one embodiment, the mode for choosing the non-limit transaction record can be with are as follows:
The non-limit transaction record as transaction record to be integrated is chosen according to the collating sequence, or
The non-limit transaction record as transaction record to be integrated is chosen according to the sequence jump.
It can also be according to money when being ranked up according to fund to the non-limit transaction record as one embodiment Gold is ranked up from small to large;The mode for choosing the non-limit transaction record accordingly can be with are as follows: from small to large according to fund Choose the non-limit transaction record as transaction record to be integrated.
As one embodiment, the non-limit transaction record can not also be ranked up, be chosen accordingly described non- The mode of limit transaction record can be with are as follows: randomly selects the non-limit transaction record as transaction record to be integrated.
As one embodiment, in the case where executing operation as shown in Figure 5, can also carry out above-mentioned as shown in Figure 4 The relevant operations such as the selection of limit transaction record, it may for example comprise:
S1021: according to fund, available transaction record is ranked up;The fund is available transaction record The fund for including;
S1022: the limit transaction record is chosen in available transaction record according to the sequence.
As one embodiment, the sequence can be to sort from large to small according to fund;
The mode for choosing the limit transaction record can be with are as follows: according to fund from big to small in available transaction record Choose the limit transaction record.
As one embodiment, the mode for choosing the limit transaction record can be with are as follows:
The limit transaction record is sequentially chosen in available transaction record according to the sequence, or
According to the sequence, the limit transaction record is chosen in jump in available transaction record.
As one embodiment, the quantity of the limit transaction record can be equal to the transaction record theoretical limit.
As one embodiment, the quantity of the limit transaction record might be less that the transaction record theoretical limit.
As one embodiment, since the transaction record theoretical limit is a theoretical value, it is possible to practical behaviour Transaction record actual limit in work has differences, therefore the quantity of the limit transaction record can also be slightly larger than the friendship Easily record theoretical limit, such as: the quantity of limit transaction record certain proportion bigger than the transaction record theoretical limit, example Such as: within 5%, within 10% or within 5% to 10%.
It can also be according to fund when being ranked up according to fund to available transaction record as one embodiment It is ranked up from small to large;The mode for choosing the limit transaction record accordingly can be with are as follows: according to fund from small to large in institute It states in available transaction record and chooses the limit transaction record.
As one embodiment, the available transaction can not also be recorded and be ranked up, choose the limit accordingly The mode of transaction record can be with are as follows: randomly selects the limit transaction record in available transaction record.
As one embodiment, in the case where executing operation as shown in Figure 3, can also carry out S112 as shown in Figure 5, The relevant operations such as the selection of S113 and non-limit transaction record as shown in FIG. 6, it may for example comprise:
S112: in available transaction record, merge and be no more than acceptable theoretical maximum transaction record quantity of trading Limit transaction record in fund obtain limit fund, obtain the difference of the limit fund and fund to be transacted;
S113:, will in the non-limit transaction record in available transaction record in addition to the limit transaction record The non-limit transaction record that total fund after merging meets the difference has integrated friendship as one for obtaining the user The transaction record to be integrated easily recorded.
As one embodiment, the limit fund can be subtracted with the fund to be transacted to obtain the difference.
As one embodiment, after the fund in a certain number of non-limit transaction records can be merged to be merged Total fund, and when total fund after merging is greater than or equal to the difference, by the non-limit transaction note for the fund that incorporates Record is used as transaction record to be integrated.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
Referring to Fig. 6, the selection of non-limit transaction record is carried out, may include:
S1131: according to fund, the non-limit transaction record is ranked up;The fund is the non-limit transaction The fund that record includes;
S1132: the non-limit transaction record as transaction record to be integrated is chosen according to the sequence.
As one embodiment, the sequence can be to sort from large to small according to fund;
The mode for choosing the non-limit transaction record can be with are as follows: is chosen from big to small according to fund as wait integrate transaction The non-limit transaction record of record.
As one embodiment, the mode for choosing the non-limit transaction record can be with are as follows:
The non-limit transaction record as transaction record to be integrated is chosen according to the collating sequence, or
The non-limit transaction record as transaction record to be integrated is chosen according to the sequence jump.
It can also be according to money when being ranked up according to fund to the non-limit transaction record as one embodiment Gold is ranked up from small to large;The mode for choosing the non-limit transaction record accordingly can be with are as follows: from small to large according to fund Choose the non-limit transaction record as transaction record to be integrated.
As one embodiment, the non-limit transaction record can not also be ranked up, be chosen accordingly described non- The mode of limit transaction record can be with are as follows: randomly selects the non-limit transaction record as transaction record to be integrated.
Referring to Fig. 7, the determination transaction record to be integrated may include:
S121: the available transaction record of the user is obtained;
Such as: the listunspent interface in the wallet client end of the user is called to obtain the available of the user Transaction record.
As one embodiment, the available transaction record of the user got may include at least one of:
Unacknowledged available transaction record;
The available transaction record having confirmed that.
S122: in available transaction record, merge and be no more than acceptable theoretical maximum transaction record quantity of trading Limit transaction record obtain occasional trade record;Wherein, the acceptable theoretical maximum transaction record quantity of transaction As transaction record theoretical limit;
S123: based on the occasional trade record and the available transaction record in except the limit transaction record with Outer non-limit transaction record, selection meet fund to be transacted and are no more than the transaction record of the transaction record theoretical limit The transaction record to be integrated of transaction record has been integrated as one for obtaining the user.
Such as: the transaction record to be integrated is selected using secondary traversal randomized, may include:
In the All Activity record for including occasional trade record and non-limit transaction record, All Activity is remembered Record traverse for the first time to select transaction record;
If traversing picked out transaction record for the first time to meet the fund to be transacted and be no more than the transaction Theoretical limit is recorded, then first time is traversed into picked out transaction record as the transaction record to be integrated;
If traversing picked out transaction record for the first time does not meet the fund to be transacted, not to first time traversal The transaction record picked out carries out second of traversal to select transaction record;
If traversing picked out transaction record twice to meet the fund to be transacted and be no more than transaction note Theoretical limit is recorded, then will traverse picked out transaction record twice as the transaction record to be integrated.
As one embodiment, when carrying out first time traversal, All Activity can be recorded and be arranged by fund descending Column, and begun stepping through from comprising the maximum transaction record of fund.True and false (true or false) can be used when traversing for the first time Random fashion selects transaction record.
As one embodiment, the secondary traversal randomized can be executed repeatedly, such as 1000 times, be met with picking out The fund to be transacted and the transaction record transaction record to be integrated as described in for being no more than the transaction record theoretical limit.
Transaction record quantity to be integrated can be determined by executing repeatedly secondary traversal randomized as one embodiment Least scheme.
As one embodiment, all available transactions record and the transaction record theoretical limit of the user are not limited Between quantitative relation.
As one embodiment, between all available transactions record of the user and the transaction record theoretical limit There may be quantitative relations, such as: the quantity of all available transactions record of the user is managed more than or equal to the transaction record By twice of limit.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
As one embodiment, in the case where executing operation as shown in Figure 7, can also carry out above-mentioned as shown in Figure 4 The relevant operations such as the selection of limit transaction record, it may for example comprise:
S1021: according to fund, available transaction record is ranked up;The fund is available transaction record The fund for including;
S1022: the limit transaction record is chosen in available transaction record according to the sequence.
As one embodiment, the sequence can be to sort from small to large according to fund;
The mode for choosing the limit transaction record can be with are as follows: according to fund from small to large in available transaction record Choose the limit transaction record.
As one embodiment, the mode for choosing the limit transaction record can be with are as follows:
The limit transaction record is sequentially chosen in available transaction record according to the sequence, or
According to the sequence, the limit transaction record is chosen in jump in available transaction record.
As one embodiment, the initial number of the limit transaction record can be greater than 1.
It can also be according to fund when being ranked up according to fund to available transaction record as one embodiment It is ranked up from big to small;The mode for choosing the limit transaction record accordingly can be with are as follows: according to fund from big to small in institute It states in available transaction record and chooses the limit transaction record.
As one embodiment, the available transaction can not also be recorded and be ranked up, choose the limit accordingly The mode of transaction record can be with are as follows: randomly selects the limit transaction record in available transaction record.
Referring to Fig. 8, the occasional trade record is obtained, may include:
S122: merge the fund in the limit transaction record, merged fund;
S123: the fund that merged is contained in newly-generated occasional trade record.
As one embodiment, the occasional trade record is the transaction record additionally generated;It can pre-generate and pre- It stays, it can also be newly-generated.
It is above-mentioned to be related to the operation of the occasional trade record, can obtain it is described integrated transaction record before merge Fund in a certain number of transaction records obtain it is described merged fund and temporarily generated one merged comprising described The transaction record of fund, it may be assumed that the occasional trade record.
Referring to Fig. 9, the operation that transaction record reselects can also be carried out, it may for example comprise: it is super in the transaction record of selection When crossing the transaction record theoretical limit, increases the quantity of the limit transaction record of merging and come back for the selection.
As one embodiment, since the transaction record theoretical limit is a theoretical value, it is possible to practical behaviour Transaction record actual limit in work has differences, therefore the quantity of the transaction record selected can also be slightly larger than described Transaction record theoretical limit, such as: the quantity of the transaction record of selection centainly compares greatly than the transaction record theoretical limit Example, such as: within 5%, within 10% or within 5% to 10% etc..
As one embodiment, increase the quantity of the limit transaction record of merging, may include: will be described in merging The quantity of limit transaction record adds 1.
It, can also will be described in merging when increasing the quantity of the limit transaction record of merging as one embodiment The quantity of limit transaction record adds other quantity in addition to 1 such as 2 or 3.
As one embodiment, can also can be used using described in occasional trade record, the update of non-limit transaction record Transaction record.
For example, occasional trade record, non-limit transaction record are formed a set, the transaction in the set is remembered Record is recorded as the available transaction.
As one embodiment, obtain it is described integrated transaction record when, can be constructed according to the integrating funds Including the transaction for having integrated transaction record.
Referring to Figure 10, the transaction is constructed, may include:
S210: using the transaction record to be integrated as transaction input, using it is described integrated transaction record as transaction it is defeated The integrating funds are carried in transaction record out and in described integrated;
S220: generating includes that the transaction inputs, the data format of transaction output is as the transaction.
Such as: call the createrawtransaction interface in the wallet client end of the user to construct the friendship Easily.
As one embodiment, the data format may include character string.The character string can be 16 systems.
Referring to Figure 11, can also carry out being related to the processing of address when constructing transaction, such as: include:
S30: address pointed by the integrating funds is generated;Such as: it calls in the wallet client end of the user Getnewaddress interface is to obtain the address;
S40: the address is carried in the transaction output.
As one embodiment, can also sign to the transaction.
Such as: call the signrawtransaction interface in the wallet client end of the user with to it is described trade into Row signature;The signature can be private key signature etc..
The transaction as one embodiment, after signature can also be sent.
Such as: the sendrawtransaction interface in the wallet client end of the user is called to send out the transaction It is sent in local node and the network (such as block chain network) of connection.
It, can be with as one embodiment: transaction school being carried out to the transaction before sending the transaction after signature It tests.
Such as: call the decoderawtransaction interface in the wallet client end of the user with after to signature The transaction is decoded, and based on obtained after decoding Transaction Information (may include the integrating funds, transaction input, Transaction output etc., can also include following transaction fees) carry out transaction verification.
Referring to Figure 12, the operation of integrating funds can also be updated, it may for example comprise:
S201: based on the transaction to be constructed, the corresponding transaction fee of the transaction is generated;
Such as: based on the transaction after signature, call the estimatefee interface in the wallet client end of the user To obtain the transaction fee.
S202: the integrating funds are updated according to the transaction fee.
Such as: the transaction fee is subtracted using the integrating funds and obtains fund difference, and uses the fund difference The integrating funds carried in transaction record have been integrated described in updating.
It can be directly with the money when updating the integrating funds using the fund difference as one embodiment Value of the golden difference as new integrating funds.
As one embodiment, the transaction fee can also be carried on to described integrated in transaction record.
As one embodiment, before carrying out the integration, it can also include following operation: excessive exception of trading occurs. In this way, the excessive exception of the transaction that the integration can be occurred triggers.
As one embodiment, the validity of integrated results can also be determined, it may for example comprise: according to for avoiding fund Insufficient reserved value determines the validity of the result of the integration.
Referring to Figure 13, determines the validity of the result of the integration, may include:
S50: the reserved value is added for the result of the integration, is obtained with reference to fund;
S60: it is described with reference to fund be more than capital rationing when determine that the result of the integration is invalid.
As one embodiment, the integration can also be come back for when the result for determining the integration is invalid.
As one embodiment, the capital rationing is typically not greater than the total fund of the user.
As one embodiment, the capital rationing can be less than the total fund of the user.Such as: the capital rationing Equal to the 80% of the total fund or 90% or other ratios.
As one embodiment, the capital rationing can be equal to the total fund of the user.
As one embodiment, the reserved value can be predetermined value, the predetermined value can be it is customized, such as: institute State 10% or other ratios that reserved value is equal to the fund to be transacted.
It is related to the relevant operation of reserved value by above-mentioned, it can be to avoid the transaction constructed according to the result of the integration because of institute Need fund be more than the total fund and there is a situation where insufficient funds.
As one embodiment, the transaction record to be integrated can also be locked.
Such as: it is described wait integrate transaction to lock to call the lockunspent interface in the wallet client end of the user Record can prevent the transaction record to be integrated to be used for other transaction in this way.
As one embodiment, can also obtain it is described integrated transaction record after, unlock is described wait integrate transaction Record.
Such as: the listlockunspent interface in the wallet client end of the user is called to obtain locked institute State transaction record to be integrated;Call the lockunspent interface in the wallet client end of the user that will be locked later The transaction record unlock to be integrated.
As one embodiment, when obtaining the available transaction record of the user, available all of the user can Use transaction record.
As one embodiment, the transaction record to be integrated may include at least one of:
Unacknowledged transaction record;
The transaction record having confirmed that.
As one embodiment, the transaction record can be UTXO.
It can be seen from the above descriptions that the method that digital cash transaction is supported provided by the embodiment of the present disclosure, it can be to user Available transaction record integrated, one for obtaining the user according to the result of the integration has integrated transaction record, because This can effectively reduce the available transaction record quantity of the user.
In this way, the available transaction of maximum size will not be comprised more than in the transaction of building when subsequent needs are constructed and traded Record, ensure that smoothly completing for transaction.
In addition, the available transaction record quantity of the user effectively reduces, so that when subsequent needs are constructed and traded, structure The available transaction record for including in the transaction built can also effectively reduce, therefore can be effectively reduced transaction fee.
It can be seen from the above descriptions that realizing the method for transaction record integration (referring to Fig. 3 to figure provided by the embodiment of the present disclosure 9 and associated description) can effectively determine transaction record to be integrated in the available transaction of user record, therefore can be according to determination Transaction record to be integrated integrated to obtain the one of the user and integrate transaction record, therefore institute can be effectively reduced State the available transaction record quantity of user.
In this way, the available transaction of maximum size will not be comprised more than in the transaction of building when subsequent needs are constructed and traded Record, ensure that smoothly completing for transaction.
In addition, the available transaction record quantity of the user effectively reduces, so that when subsequent needs are constructed and traded, structure The available transaction record for including in the transaction built can also effectively reduce, therefore can be effectively reduced transaction fee.
Referring to Figure 14, the embodiment of the present disclosure additionally provides a kind of device 10 for supporting digital cash to trade, comprising:
Available transaction recording integrating module 110 is integrated for the available transaction record to user;
Transaction record generation module 120 is integrated, for having obtained one of the user according to the result of the integration Integrate transaction record;
Wherein, using the transaction record integrated as transaction record to be integrated in the available transaction record.
It is described support digital cash transaction device 10 can be realized by the available transaction record management server of the user, Such as: the wallet client end etc. of full node, the user in block chain network.
Referring to Figure 15, the available transaction recording integrating module 110 may include integral unit 1103, be used for: to institute It states when being integrated wait integrate transaction record, merges described wait integrate the fund in transaction record, obtain integrating funds.
Referring to Figure 16,18,20, as the device for realizing the integration of digital cash transaction record, the available transaction records whole Block 110 is molded, can be used for: determining the transaction record to be integrated.
As one embodiment, the available transaction recording integrating module 110 is being determined when integrating transaction record, can be with For:
Obtain the available transaction record of the user;In available transaction record, it is acceptable transaction will to be no more than The limit transaction record of theoretical maximum transaction record quantity has integrated transaction record as one for obtaining the user Transaction record to be integrated;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
Referring to Figure 16, the available transaction recording integrating module 110 may include: acquiring unit 1101, determination unit 1102;Wherein
Acquiring unit 1101 can be used for obtaining the available transaction record of user;
Such as: the listunspent interface in the wallet client end of the user is called to obtain the available of the user Transaction record.
As one embodiment, the available transaction record of the user got may include at least one of:
Unacknowledged available transaction record;
The available transaction record having confirmed that.
Determination unit 1102 can be used in available transaction record, will be no more than and trade acceptable theory most The limit transaction record of big transaction record quantity as one for obtaining the user integrated transaction record wait integrate Transaction record.
As one embodiment, all available transactions record and the transaction record theoretical limit of the user are not limited Between quantitative relation.
As one embodiment, between all available transactions record of the user and the transaction record theoretical limit There may be quantitative relations, such as: the quantity of all available transactions record of the user is managed less than or equal to the transaction record By twice of limit.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
Referring to Figure 17, the determination unit 1102 be can be also used for:
According to fund, available transaction record is ranked up;According to the sequence in available transaction record Choose the limit transaction record.The fund is that the available transaction records the fund for including.
As one embodiment, the sequence can be to sort from large to small according to fund;
The determination unit 1102 can be used for when choosing the limit transaction record: exist from big to small according to fund The limit transaction record is chosen in the available transaction record.
As one embodiment, the determination unit 1102 can be used for when choosing the limit transaction record:
The limit transaction record is sequentially chosen in available transaction record according to the sequence, or
According to the sequence, the limit transaction record is chosen in jump in available transaction record.
As one embodiment, the quantity of the limit transaction record can be equal to the transaction record theoretical limit.
As one embodiment, the quantity of the limit transaction record might be less that the transaction record theoretical limit.
As one embodiment, since the transaction record theoretical limit is a theoretical value, it is possible to practical behaviour Transaction record actual limit in work has differences, therefore the quantity of the limit transaction record can also be slightly larger than the friendship Easily record theoretical limit, such as: the quantity of limit transaction record certain proportion bigger than the transaction record theoretical limit, example Such as: within 5%, within 10% or within 5% to 10%.
It can also be according to fund when being ranked up according to fund to available transaction record as one embodiment It is ranked up from small to large;The mode for choosing the limit transaction record accordingly can be with are as follows: according to fund from small to large in institute It states in available transaction record and chooses the limit transaction record.
As one embodiment, the available transaction can not also be recorded and be ranked up, choose the limit accordingly The mode of transaction record can be with are as follows: randomly selects the limit transaction record in available transaction record.
As one embodiment, the available transaction recording integrating module 110 is being determined when integrating transaction record, can be with For:
Obtain the available transaction record of the user;In available transaction record, merge acceptable no more than transaction Theoretical maximum transaction record quantity limit transaction record in fund obtain limit fund, obtain the limit fund with to The difference of transaction funds;
In non-limit transaction record in available transaction record in addition to the limit transaction record, after merging Total fund meet the non-limit transaction record of the difference and integrated transaction record as one for obtaining the user Transaction record to be integrated;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
Referring to Figure 18, the available transaction recording integrating module 110 may include: acquiring unit 1101, determination unit 1102;Wherein
Acquiring unit 1101 can be used for obtaining the available transaction record of user;
Such as: the listunspent interface in the wallet client end of the user is called to obtain the available of the user Transaction record.
As one embodiment, the available transaction record of the user got may include at least one of:
Unacknowledged available transaction record;
The available transaction record having confirmed that.
Determination unit 1102 can be used in available transaction record, merge and be no more than acceptable theory of trading Fund in the limit transaction record of maximum transaction record quantity obtains limit fund, obtains the limit fund and money to be transacted The difference of gold;Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit;And
In non-limit transaction record in available transaction record in addition to the limit transaction record, after merging Total fund meet the non-limit transaction record of the difference and integrated transaction record as one for obtaining the user Transaction record to be integrated.
As one embodiment, the limit fund can be subtracted with the fund to be transacted to obtain the difference.
As one embodiment, after the fund in a certain number of non-limit transaction records can be merged to be merged Total fund, and when total fund after merging is greater than or equal to the difference, by the non-limit transaction note for the fund that incorporates Record is used as transaction record to be integrated.
As one embodiment, all available transactions record and the transaction record theoretical limit of the user are not limited Between quantitative relation.
As one embodiment, between all available transactions record of the user and the transaction record theoretical limit There may be quantitative relations, such as: the quantity of all available transactions record of the user is managed less than or equal to the transaction record By twice of limit.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
Referring to Figure 19, the determination unit 1102 be can be also used for:
According to fund, the non-limit transaction record is ranked up;It is chosen according to the sequence as wait integrate transaction The non-limit transaction record of record.The fund is the fund that the non-limit transaction record includes.
As one embodiment, the sequence can be to sort from large to small according to fund;
The determination unit 1102 can be used for: from big to small according to fund when choosing the non-limit transaction record Choose the non-limit transaction record as transaction record to be integrated.
As one embodiment, the determination unit 1102 can be used for when choosing the non-limit transaction record:
The non-limit transaction record as transaction record to be integrated is chosen according to the collating sequence, or
The non-limit transaction record as transaction record to be integrated is chosen according to the sequence jump.
It can also be according to money when being ranked up according to fund to the non-limit transaction record as one embodiment Gold is ranked up from small to large;The mode for choosing the non-limit transaction record accordingly can be with are as follows: from small to large according to fund Choose the non-limit transaction record as transaction record to be integrated.
As one embodiment, the non-limit transaction record can not also be ranked up, be chosen accordingly described non- The mode of limit transaction record can be with are as follows: randomly selects the non-limit transaction record as transaction record to be integrated.
It can also be used above-mentioned such as Figure 17 institute using setting as shown in figure 18 as one embodiment The setting shown, such as:
The determination unit 1102 is ranked up available transaction record, wherein the fund is institute according to fund It states available transaction and records the fund for including;The limit transaction note is chosen in available transaction record according to the sequence Record.
As one embodiment, the sequence can be to sort from large to small according to fund;
The determination unit 1102 can be used for when choosing the limit transaction record: exist from big to small according to fund The limit transaction record is chosen in the available transaction record.
As one embodiment, the determination unit 1102 can be used for when choosing the limit transaction record:
The limit transaction record is sequentially chosen in available transaction record according to the sequence, or
According to the sequence, the limit transaction record is chosen in jump in available transaction record.
As one embodiment, the quantity of the limit transaction record can be equal to the transaction record theoretical limit.
As one embodiment, the quantity of the limit transaction record might be less that the transaction record theoretical limit.
As one embodiment, since the transaction record theoretical limit is a theoretical value, it is possible to practical behaviour Transaction record actual limit in work has differences, therefore the quantity of the limit transaction record can also be slightly larger than the friendship Easily record theoretical limit, such as: the quantity of limit transaction record certain proportion bigger than the transaction record theoretical limit, example Such as: within 5%, within 10% or within 5% to 10%.
It can also be according to fund when being ranked up according to fund to available transaction record as one embodiment It is ranked up from small to large;The mode for choosing the limit transaction record accordingly can be with are as follows: according to fund from small to large in institute It states in available transaction record and chooses the limit transaction record.
As one embodiment, the available transaction can not also be recorded and be ranked up, choose the limit accordingly The mode of transaction record can be with are as follows: randomly selects the limit transaction record in available transaction record.
It, can also be using as shown in Figure 18,19 using setting as shown in figure 16 as one embodiment Setting, such as:
The determination unit 1102 merges in available transaction record and is no more than acceptable theoretical maximum friendship of trading Fund easily in the limit transaction record of record quantity obtains limit fund, obtains the difference of the limit fund and fund to be transacted Value;It, will be total after merging in non-limit transaction record in available transaction record in addition to the limit transaction record Fund meet the non-limit transaction record of the difference as one for obtaining the user integrated transaction record to Integrate transaction record.
As one embodiment, the limit fund can be subtracted with the fund to be transacted to obtain the difference.
As one embodiment, after the fund in a certain number of non-limit transaction records can be merged to be merged Total fund, and when total fund after merging is greater than or equal to the difference, by the non-limit transaction note for the fund that incorporates Record is used as transaction record to be integrated.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
As one embodiment, the determination unit 1102 can be used for when carrying out the selection of non-limit transaction record: According to fund, the non-limit transaction record is ranked up, wherein the fund non-limit transaction record includes Fund;;The non-limit transaction record as transaction record to be integrated is chosen according to the sequence.
As one embodiment, the sequence can be to sort from large to small according to fund;
The determination unit 1102 can be used for: from big to small according to fund when choosing the non-limit transaction record Choose the non-limit transaction record as transaction record to be integrated.
As one embodiment, the determination unit 1102 can be used for when choosing the non-limit transaction record:
The non-limit transaction record as transaction record to be integrated is chosen according to the collating sequence, or
The non-limit transaction record as transaction record to be integrated is chosen according to the sequence jump.
It can also be according to money when being ranked up according to fund to the non-limit transaction record as one embodiment Gold is ranked up from small to large;The mode for choosing the non-limit transaction record accordingly can be with are as follows: from small to large according to fund Choose the non-limit transaction record as transaction record to be integrated.
As one embodiment, the non-limit transaction record can not also be ranked up, be chosen accordingly described non- The mode of limit transaction record can be with are as follows: randomly selects the non-limit transaction record as transaction record to be integrated.
As one embodiment, the available transaction recording integrating module 110 is being determined when integrating transaction record, can be with For:
Obtain the available transaction record of the user;In available transaction record, merge acceptable no more than transaction The limit transaction record of theoretical maximum transaction record quantity obtain occasional trade record;Wherein, the transaction is acceptable Theoretical maximum transaction record quantity as transaction record theoretical limit;
It is recorded based on the occasional trade and in available transaction record in addition to the limit transaction record Non- limit transaction record, select to meet fund to be transacted and be no more than the transaction record of the transaction record theoretical limit as For obtaining one of the user transaction record to be integrated for having integrated transaction record.
Referring to fig. 20, the available transaction recording integrating module 110 may include: acquiring unit 1101, determination unit 1102;Wherein
Acquiring unit 1101 can be used for obtaining the available transaction record of user;
Such as: the listunspent interface in the wallet client end of the user is called to obtain the available of the user Transaction record.
As one embodiment, the available transaction record of the user got may include at least one of:
Unacknowledged available transaction record;
The available transaction record having confirmed that.
Determination unit 1102 can be used in available transaction record, merge and be no more than acceptable theory of trading The limit transaction record of maximum transaction record quantity obtains an occasional trade record;Wherein, the acceptable theory of transaction Maximum transaction record quantity is as transaction record theoretical limit;And
It is recorded based on the occasional trade and in available transaction record in addition to the limit transaction record Non- limit transaction record, select to meet fund to be transacted and be no more than the transaction record of the transaction record theoretical limit as For obtaining one of the user transaction record to be integrated for having integrated transaction record.
Such as: the transaction record to be integrated is selected using secondary traversal randomized, may include:
In the All Activity record for including occasional trade record and non-limit transaction record, All Activity is remembered Record traverse for the first time to select transaction record;
If traversing picked out transaction record for the first time to meet the fund to be transacted and be no more than the transaction Theoretical limit is recorded, then first time is traversed into picked out transaction record as the transaction record to be integrated;
If traversing picked out transaction record for the first time does not meet the fund to be transacted, not to first time traversal The transaction record picked out carries out second of traversal to select transaction record;
If traversing picked out transaction record twice to meet the fund to be transacted and be no more than transaction note Theoretical limit is recorded, then will traverse picked out transaction record twice as the transaction record to be integrated.
As one embodiment, when carrying out first time traversal, All Activity can be recorded and be arranged by fund descending Column, and begun stepping through from comprising the maximum transaction record of fund.True and false (true or false) can be used when traversing for the first time Random fashion selects transaction record.
As one embodiment, the secondary traversal randomized can be executed repeatedly, such as 1000 times, be met with picking out The fund to be transacted and the transaction record transaction record to be integrated as described in for being no more than the transaction record theoretical limit.
Transaction record quantity to be integrated can be determined by executing repeatedly secondary traversal randomized as one embodiment Least scheme.
As one embodiment, all available transactions record and the transaction record theoretical limit of the user are not limited Between quantitative relation.
As one embodiment, between all available transactions record of the user and the transaction record theoretical limit There may be quantitative relations, such as: the quantity of all available transactions record of the user is managed more than or equal to the transaction record By twice of limit.
As one embodiment, acceptable theoretical maximum transaction record quantity is traded usually in a certain range, such as: 600 to 650 or 550 to 600 etc..In general, the acceptable theoretical maximum transaction record quantity that can also will trade is set as one Particular value, such as: 600.
As one embodiment, using setting as shown in figure 20, can also be set using as shown in figure 17 It sets, such as:
The determination unit 1102 is ranked up available transaction record, wherein the fund is institute according to fund It states available transaction and records the fund for including;The limit transaction note is chosen in available transaction record according to the sequence Record.
As one embodiment, the sequence can be to sort from small to large according to fund;
The determination unit 1102 can be used for when choosing the limit transaction record: exist from small to large according to fund The limit transaction record is chosen in the available transaction record.
As one embodiment, the determination unit 1102 can be used for when choosing the limit transaction record:
The limit transaction record is sequentially chosen in available transaction record according to the sequence, or
According to the sequence, the limit transaction record is chosen in jump in available transaction record.
As one embodiment, the initial number of the limit transaction record can be greater than 1.
It can also be according to fund when being ranked up according to fund to available transaction record as one embodiment It is ranked up from big to small;The mode for choosing the limit transaction record accordingly can be with are as follows: according to fund from big to small in institute It states in available transaction record and chooses the limit transaction record.
As one embodiment, the available transaction can not also be recorded and be ranked up, choose the limit accordingly The mode of transaction record can be with are as follows: randomly selects the limit transaction record in available transaction record.
Referring to fig. 21, the determination unit 1102 can be used for when obtaining occasional trade record:
Merge the fund in the limit transaction record, merged fund, the fund that merged is contained in newly In the occasional trade record generated.
As one embodiment, the occasional trade record is the transaction record additionally generated;It can pre-generate and pre- It stays, it can also be newly-generated.
It is above-mentioned to be related to the operation of the occasional trade record, can obtain it is described integrated transaction record before merge Fund in a certain number of transaction records obtain it is described merged fund and temporarily generated one merged comprising described The transaction record of fund, it may be assumed that the occasional trade record.
Referring to fig. 22, the determination unit 1102 can be also used for:
When the transaction record of selection is more than the transaction record theoretical limit, increase the limit transaction record of merging Quantity simultaneously comes back for the selection.
As one embodiment, since the transaction record theoretical limit is a theoretical value, it is possible to practical behaviour Transaction record actual limit in work has differences, therefore the quantity of the transaction record selected can also be slightly larger than described Transaction record theoretical limit, such as: the quantity of the transaction record of selection centainly compares greatly than the transaction record theoretical limit Example, such as: within 5%, within 10% or within 5% to 10% etc..
As one embodiment, the determination unit 1102 increase merge the limit transaction record quantity when, It can be used for: the quantity of the limit transaction record of merging is added 1.
It, can also will be described in merging when increasing the quantity of the limit transaction record of merging as one embodiment The quantity of limit transaction record adds other quantity in addition to 1 such as 2 or 3.
As one embodiment, the determination unit 1102 be can be also used for:
The available transaction is updated using occasional trade record, non-limit transaction record to record.
For example, occasional trade record, non-limit transaction record are formed a set, the transaction in the set is remembered Record is recorded as the available transaction.
It is described to have integrated transaction record generation module 120 as one embodiment, it can be used for: having been integrated according to described Fund, building include the transaction for having integrated transaction record.
Referring to fig. 23, the transaction record generation module 120 of having integrated may include construction unit 1201, and the building is single Member 1201 can be used for when constructing the transaction: inputting the transaction record to be integrated as transaction, has integrated described Transaction record carries the integrating funds as transaction output and in described integrated in transaction record, generating includes the friendship Easily the data format of input, transaction output is as the transaction.
Such as: call the createrawtransaction interface in the wallet client end of the user to construct the friendship Easily.
As one embodiment, the data format may include character string.The character string can be 16 systems.
Referring to fig. 24, it is described to have integrated transaction record generation module 120, it can be also used for:
Generate address pointed by the integrating funds;Such as: it calls in the wallet client end of the user Getnewaddress interface is to obtain the address;
The address is carried in the transaction output.
It is described to have integrated transaction record generation module 120 as one embodiment, can be also used for: to it is described trade into Row signature.
Such as: call the signrawtransaction interface in the wallet client end of the user with to it is described trade into Row signature;The signature can be private key signature etc..
It is described to have integrated transaction record generation module 120 as one embodiment, it can be also used for: after sending signature The transaction.
Such as: the sendrawtransaction interface in the wallet client end of the user is called to send out the transaction It is sent in local node and the network (such as block chain network) of connection.
It is described to have integrated transaction record generation module 120 as one embodiment, it can be also used for: after sending signature The transaction before transaction verification is carried out to the transaction.
Such as: call the decoderawtransaction interface in the wallet client end of the user with after to signature The transaction is decoded, and based on obtained after decoding Transaction Information (may include the integrating funds, transaction input, Transaction output etc., can also include following transaction fees) carry out transaction verification.
Referring to fig. 25, the available transaction recording integrating module 110 can be also used for being updated the behaviour of integrating funds Make, such as: the corresponding friendship of the transaction the to be constructed generation of transaction record generation module 120 transaction has been integrated based on described It is easy to take, the integrating funds are updated according to the transaction fee.
As one embodiment, can be called in the wallet client end of the user based on the transaction after signature Estimatefee interface is to obtain the transaction fee.
Described integrated can be used when updating the integrating funds according to the transaction fee as one embodiment Fund subtracts the transaction fee and obtains fund difference, and updates described integrated in transaction record using the fund difference and carry The integrating funds.
It can be directly with the money when updating the integrating funds using the fund difference as one embodiment Value of the golden difference as new integrating funds.
As one embodiment, the transaction fee can also be carried on to described integrated in transaction record.
As one embodiment, the available transaction recording integrating module 110 be can be also used for: carry out the integration Before, the excessive exception of the transaction occurred triggers.
As one embodiment, the available transaction recording integrating module 110 can be also used for determining having for integrated results Effect property, such as: according to for avoiding the reserved value of insufficient funds, determine the validity of the result of the integration.
Referring to fig. 26, the available transaction recording integrating module 110, can when determining the validity of result of the integration To be used for: adding the reserved value for the result of the integration, obtain with reference to fund;It is more than capital rationing in the reference fund When determine that the result of the integration is invalid.
As one embodiment, the available transaction recording integrating module 110 can be also used for: determine the integration As a result when invalid, the integration is come back for.
As one embodiment, the capital rationing is typically not greater than the total fund of the user.
As one embodiment, the capital rationing can be less than the total fund of the user.Such as: the capital rationing Equal to the 80% of the total fund or 90% or other ratios.
As one embodiment, the capital rationing can be equal to the total fund of the user.
As one embodiment, the reserved value can be predetermined value, the predetermined value can be it is customized, such as: institute State 10% or other ratios that reserved value is equal to the fund to be transacted.
It is related to the relevant operation of reserved value by above-mentioned, it can be to avoid the transaction constructed according to the result of the integration because of institute Need fund be more than the total fund and there is a situation where insufficient funds.
As one embodiment, the available transaction recording integrating module 110 be can be also used for: locking is described wait integrate Transaction record.
Such as: it is described wait integrate transaction to lock to call the lockunspent interface in the wallet client end of the user Record can prevent the transaction record to be integrated to be used for other transaction in this way.
As one embodiment, the available transaction recording integrating module 110 be can be also used for: integrate friendship described Easily record generation module 120 obtain it is described integrated transaction record after, unlock the transaction record to be integrated.
Such as: the listlockunspent interface in the wallet client end of the user is called to obtain locked institute State transaction record to be integrated;Call the lockunspent interface in the wallet client end of the user that will be locked later The transaction record unlock to be integrated.
As one embodiment, the acquiring unit 1101 can be used for: obtain all available transactions note of the user Record.
As one embodiment, the transaction record to be integrated may include at least one of:
Unacknowledged transaction record;
The transaction record having confirmed that.
As one embodiment, the transaction record can be UTXO.
It can be seen from the above descriptions that the device of digital cash transaction is supported provided by the embodiment of the present disclosure, it can be to user Available transaction record integrated, one for obtaining the user according to the result of the integration has integrated transaction record, because This can effectively reduce the available transaction record quantity of the user.
In this way, the available transaction of maximum size will not be comprised more than in the transaction of building when subsequent needs are constructed and traded Record, ensure that smoothly completing for transaction.
In addition, the available transaction record quantity of the user effectively reduces, so that when subsequent needs are constructed and traded, structure The available transaction record for including in the transaction built can also effectively reduce, therefore can be effectively reduced transaction fee.
It can be seen from the above descriptions that realizing the device of transaction record integration provided by the embodiment of the present disclosure (extremely referring to Figure 16 Figure 22 and associated description) transaction record to be integrated can be effectively determined in the available transaction of user record, therefore being capable of basis Determining transaction record to be integrated is integrated to obtain the one of the user and integrate transaction record, therefore can effectively be subtracted The available transaction of few user records quantity.
In this way, the available transaction of maximum size will not be comprised more than in the transaction of building when subsequent needs are constructed and traded Record, ensure that smoothly completing for transaction.
In addition, the available transaction record quantity of the user effectively reduces, so that when subsequent needs are constructed and traded, structure The available transaction record for including in the transaction built can also effectively reduce, therefore can be effectively reduced transaction fee.
The embodiment of the present disclosure additionally provides a kind of digital cash client, and the support digital cash comprising above-described embodiment is handed over Easy device.
Based on foregoing description it is to be appreciated that the digital cash client also may include the realization number of above-described embodiment The device of word moneytary operations recording integrating.
The embodiment of the present disclosure additionally provides a kind of computer readable storage medium, is stored with computer executable instructions, institute State the method that computer executable instructions are arranged to carry out the support digital cash transaction of above-described embodiment.
Based on foregoing description it is to be appreciated that in the computer readable storage medium, the computer executable instructions It may be set to be the method for realizing the integration of digital cash transaction record for executing above-described embodiment.
The embodiment of the present disclosure additionally provides a kind of computer program product, and the computer program product includes being stored in meter Computer program on calculation machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is counted When calculation machine executes, the computer is made to execute the method that the support digital cash of above-described embodiment is traded.
Based on foregoing description it is to be appreciated that in the computer program product, described program instruction can also make described Computer executes the method for realizing the integration of digital cash transaction record of above-described embodiment.
Above-mentioned computer readable storage medium can be transitory computer readable storage medium, be also possible to non-transient meter Calculation machine readable storage medium storing program for executing.
The embodiment of the present disclosure additionally provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one When a processor executes, at least one described processor is made to execute the method that the support digital cash of above-described embodiment is traded.
The electronic equipment can be as shown in figure 27, and the structure of the electronic equipment 2700 in Figure 27 may include:
In at least one processor (processor) 2701, Figure 27 by taking a processor 2701 as an example;And memory (memory) 2702, it can also include communication interface (Communication Interface) 2703 and bus 2704.Wherein, Processor 2701, communication interface 2703, memory 2702 can complete mutual communication by bus 2704.Communication interface 2703 can be used for information transmission.Processor 2701 can call the logical order in memory 2702, to execute above-mentioned implementation The method of the support digital cash transaction of example.
In addition, the logical order in above-mentioned memory 2702 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.
Memory 2702 is used as a kind of computer readable storage medium, and it is executable to can be used for storing software program, computer Program, such as the corresponding program instruction/module/unit of the method in the embodiment of the present disclosure.Processor 2701 is stored in by operation Software program, instruction and module, unit in memory 2702 are realized thereby executing functional application and data processing The method of support digital cash transaction in above method embodiment.
Memory 2702 may include storing program area and storage data area, wherein storing program area can storage program area, Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal device. In addition, memory 2702 may include high-speed random access memory, it can also include nonvolatile memory.
Based on foregoing description it is to be appreciated that in the electronic equipment, described instruction can also make described at least one Reason device executes the method for realizing the integration of digital cash transaction record of above-described embodiment.
The technical solution of the embodiment of the present disclosure can be embodied in the form of software products, which deposits Storage in one storage medium, including one or more instruction is used so that computer equipment (can be personal computer, Server or the network equipment etc.) execute embodiment of the present disclosure the method all or part of the steps.And storage above-mentioned is situated between Matter can be non-transient storage media, comprising: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), with Machine accesses a variety of Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter is also possible to transitory memory medium.
When in the application, although term " first ", " second " etc. may be used in this application to describe respectively Element, but these elements should not be limited by these terms.These terms are only used to by an element and another element region It does not open.For example, in the case where not changing the meaning of description, first element can be called second element, and same, second Element can be called first element, as long as occurred
" first element " unanimously renames and " second element " occurred unanimously renames.First element and second Element is all element, but can not be identical element.
Word used herein is only used for description embodiment and is not used in limitation claim.Such as embodiment with And used in the description of claim, unless context clearly illustrates, otherwise singular
"one" (a), "one" (an) and " described " (the) is intended to include equally plural form.Similarly, as in this application Used term "and/or" refers to comprising one or more associated any and all possible groups listed It closes.In addition, when in the application, term " includes " (comprise) and its modification " comprising " (comprises) and/or packet Feature, the entirety, step, operation, the presence of element and/or component of the statement such as (comprising) fingers are included, but is not excluded for one Or more than one other feature, entirety, step, operation, element, component and/or these grouping presence or addition.
Various aspects, embodiment, realization or feature in described embodiment can be used alone or in any combination Mode use.Various aspects in described embodiment being implemented in combination with by software, hardware or software and hardware.Described reality Applying example can also be embodied by the computer-readable medium for being stored with computer-readable code, which includes can be by The instruction that at least one computing device executes.The computer-readable medium can be filled with any data-storable data storage Set associated, which can be read by computer system.Computer-readable medium for citing may include read-only memory, Random access memory, CD-ROM, HDD, DVD, tape and optical data storage devices etc..The computer-readable medium may be used also To be distributed in the computer system by net connection, such computer-readable code distributed storage and can be executed.
Above-mentioned technical description can refer to attached drawing, these attached drawings form a part of the application, and by description attached The embodiment according to described embodiment is shown in figure.Although the description of these embodiments is enough in detail so that this field Technical staff can be realized these embodiments, but these embodiments are non-limiting;Other implementations thus can be used Example, and variation can also be made in the case where not departing from the range of described embodiment.For example, described in flow chart Operation order be non-limiting, therefore in flow charts illustrate and according to flow chart description two or more behaviour The sequence of work can be changed according to several embodiments.As another example, in several embodiments, it explains in flow charts It releases and is optional or deletable according to one or more operations that flow chart describes.In addition, certain steps or Function can be added in the disclosed embodiments or more than two sequence of steps are replaced.All these variations are considered Included in the disclosed embodiments and claim.
In addition, using term to provide the thorough understanding of described embodiment in above-mentioned technical description.However, and being not required to Will excessively detailed details to realize described embodiment.Therefore, the foregoing description of embodiment be in order to illustrate and describe and It presents.The embodiment and example disclosed according to these embodiments presented in foregoing description is provided separately, with Addition context simultaneously helps to understand described embodiment.Description above, which is not used in, accomplishes exhaustive or by described reality Apply the precise forms that example is restricted to the disclosure.According to the above instruction, it is several modification, selection be applicable in and variation be feasible.? In some cases, processing step well known is not described in avoid described embodiment is unnecessarily influenced.

Claims (48)

1. a kind of method for supporting digital cash to trade characterized by comprising
The available transaction record of user is integrated, one for obtaining the user according to the result of the integration has integrated friendship Easily record;
Wherein, using the transaction record integrated as transaction record to be integrated in the available transaction record.
2. the method according to claim 1, wherein carrying out the integration includes: that merging is described wait integrate transaction Fund in record obtains integrating funds.
3. according to the method described in claim 2, it is characterized by further comprising: determining the transaction record to be integrated.
4. according to the method described in claim 3, it is characterized in that, determination transaction record to be integrated, comprising:
In available transaction record, the limit for being no more than acceptable theoretical maximum transaction record quantity of trading is traded and is remembered The transaction record to be integrated of transaction record has been integrated in record as one for obtaining the user;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
5. according to the method described in claim 3, it is characterized in that, determination transaction record to be integrated, comprising:
In available transaction record, merge the limit transaction for being no more than acceptable theoretical maximum transaction record quantity of trading Fund in record obtains limit fund, obtains the difference of the limit fund and fund to be transacted;
It, will be total after merging in non-limit transaction record in available transaction record in addition to the limit transaction record Fund meet the non-limit transaction record of the difference as one for obtaining the user integrated transaction record to Integrate transaction record;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
6. according to the method described in claim 3, it is characterized in that, determination transaction record to be integrated, comprising:
In available transaction record, merge the limit transaction for being no more than acceptable theoretical maximum transaction record quantity of trading Record obtains an occasional trade record;Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction note Record theoretical limit;
Non- limit based on occasional trade record and in available transaction record in addition to the limit transaction record Transaction record is spent, select to meet fund to be transacted and no more than the transaction record of the transaction record theoretical limit as being used for Obtain one of the user transaction record to be integrated for having integrated transaction record.
7. according to the described in any item methods of claim 2 to 6, which is characterized in that integrated transaction record described in obtaining, wrapped Include: according to the integrating funds, building includes the transaction for having integrated transaction record.
8. the method according to the description of claim 7 is characterized in that constructing the transaction, comprising: by described wait integrate transaction note Record as transaction input, using it is described integrated transaction record as transaction output and institute is carried in transaction record in described integrated Integrating funds are stated, generating includes that the transaction inputs, the data format of transaction output is as the transaction.
9. according to the method described in claim 8, it is characterized in that, the data format includes character string.
10. according to the method described in claim 8, it is characterized by further comprising: generating ground pointed by the integrating funds The address is carried in the transaction output by location.
11. the method according to the description of claim 7 is characterized in that further include: it signs to the transaction.
12. according to the method for claim 11, which is characterized in that further include: the transaction after sending signature.
13. according to the method for claim 12, which is characterized in that further include: before sending the transaction after signature Transaction verification is carried out to the transaction.
14. the method according to the description of claim 7 is characterized in that further include: the friendship is generated before constructing the transaction Easy corresponding transaction fee updates the integrating funds according to the transaction fee.
15. the method according to claim 1, wherein before carrying out the integration, further includes: traded It is big abnormal.
16. the method according to claim 1, wherein further include: according to for avoiding the reserved of insufficient funds Value, determines the validity of the result of the integration.
17. according to the method for claim 16, which is characterized in that determine the validity of the result of the integration, comprising: be The result of the integration adds the reserved value, obtains with reference to fund;Institute is determined when the reference fund is more than capital rationing The result for stating integration is invalid.
18. according to the method for claim 17, which is characterized in that further include: when determining that the result of the integration is invalid, return Back into the row integration.
19. according to the method for claim 17, which is characterized in that the capital rationing is no more than total money of the user Gold.
20. the method according to claim 1, wherein further include: lock the transaction record to be integrated.
21. according to the method for claim 20, which is characterized in that further include: obtain it is described integrated transaction record it Afterwards, the transaction record to be integrated is unlocked.
22. the method according to claim 1, wherein the transaction record to be integrated includes at least one of:
Unacknowledged transaction record;
The transaction record having confirmed that.
23. the method according to claim 1, wherein the transaction record is the transaction output that UTXO is not spent.
24. a kind of device for supporting digital cash to trade characterized by comprising
Available transaction recording integrating module is integrated for the available transaction record to user;
Transaction record generation module has been integrated, has integrated transaction for obtaining one of the user according to the result of the integration Record;
Wherein, using the transaction record integrated as transaction record to be integrated in the available transaction record.
25. the apparatus according to claim 1, which is characterized in that the available transaction recording integrating module is used for: merging It is described wait integrate the fund in transaction record, obtain integrating funds.
26. the apparatus of claim 2, which is characterized in that the available transaction recording integrating module is also used to: really The fixed transaction record to be integrated.
27. device according to claim 3, which is characterized in that the available transaction recording integrating module is being determined to whole When closing transaction record, it is used for:
In available transaction record, the limit for being no more than acceptable theoretical maximum transaction record quantity of trading is traded and is remembered The transaction record to be integrated of transaction record has been integrated in record as one for obtaining the user;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
28. device according to claim 3, which is characterized in that the available transaction recording integrating module is being determined to whole When closing transaction record, it is used for:
In available transaction record, merge the limit transaction for being no more than acceptable theoretical maximum transaction record quantity of trading Fund in record obtains limit fund, obtains the difference of the limit fund and fund to be transacted;
It, will be total after merging in non-limit transaction record in available transaction record in addition to the limit transaction record Fund meet the non-limit transaction record of the difference as one for obtaining the user integrated transaction record to Integrate transaction record;
Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction record theoretical limit.
29. device according to claim 3, which is characterized in that the available transaction recording integrating module is being determined to whole When closing transaction record, it is used for:
In available transaction record, merge the limit transaction for being no more than acceptable theoretical maximum transaction record quantity of trading Record obtains an occasional trade record;Wherein, the acceptable theoretical maximum transaction record quantity of transaction is as transaction note Record theoretical limit;
Non- limit based on occasional trade record and in available transaction record in addition to the limit transaction record Transaction record is spent, select to meet fund to be transacted and no more than the transaction record of the transaction record theoretical limit as being used for Obtain one of the user transaction record to be integrated for having integrated transaction record.
30. according to the described in any item devices of claim 2 to 6, which is characterized in that the transaction record of having integrated generates mould Block is used for: according to the integrating funds, building includes the transaction for having integrated transaction record.
31. device according to claim 7, which is characterized in that the transaction record generation module of having integrated is in building institute When stating transaction, be used for: using the transaction record to be integrated as transaction input, using it is described integrated transaction record as transaction it is defeated The integrating funds are carried in transaction record out and in described integrated, generating includes the transaction input, transaction output Data format is as the transaction.
32. device according to claim 8, which is characterized in that the data format includes character string.
33. device according to claim 8, which is characterized in that it is described to have integrated transaction record generation module, it is also used to: Address pointed by the integrating funds is generated, which is carried in the transaction output.
34. device according to claim 7, which is characterized in that it is described to have integrated transaction record generation module, it is also used to: It signs to the transaction.
35. device according to claim 11, which is characterized in that it is described to have integrated transaction record generation module, it is also used to: The transaction after sending signature.
36. device according to claim 12, which is characterized in that it is described to have integrated transaction record generation module, it is also used to: Transaction verification is carried out to the transaction before sending the transaction after signature.
37. device according to claim 7, which is characterized in that the available transaction recording integrating module is also used to: Described integrated generates the corresponding transaction fee of the transaction before transaction record generation module constructs the transaction, according to the friendship Easily take the update integrating funds.
38. the apparatus according to claim 1, which is characterized in that the available transaction recording integrating module is also used to: Before carrying out the integration, the excessive exception of the transaction occurred is triggered.
39. the apparatus according to claim 1, which is characterized in that the available transaction recording integrating module is also used to: root According to for avoiding the reserved value of insufficient funds, the validity of the result of the integration is determined.
40. device according to claim 16, which is characterized in that the available transaction recording integrating module is described in the determination It when the validity of the result of integration, is used for: adding the reserved value for the result of the integration, obtain with reference to fund;Described Determine that the result of the integration is invalid when being more than capital rationing with reference to fund.
41. device according to claim 17, which is characterized in that the available transaction recording integrating module is also used to: really When the result of the fixed integration is invalid, the integration is come back for.
42. device according to claim 17, which is characterized in that the capital rationing is no more than total money of the user Gold.
43. the apparatus according to claim 1, which is characterized in that the available transaction recording integrating module is also used to: lock The fixed transaction record to be integrated.
44. device according to claim 20, which is characterized in that the available transaction recording integrating module is also used to: It is described integrated transaction record generation module obtain it is described integrated transaction record after, unlock the transaction record to be integrated.
45. the apparatus according to claim 1, which is characterized in that the transaction record to be integrated includes at least one of:
Unacknowledged transaction record;
The transaction record having confirmed that.
46. the apparatus according to claim 1, which is characterized in that the transaction record is the transaction output that UTXO is not spent.
47. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one When managing device execution, at least one described processor perform claim is made to require the described in any item methods of 1-23.
48. a kind of digital cash client, which is characterized in that include the described in any item devices of claim 24-46.
CN201810857626.2A 2018-07-31 2018-07-31 A kind of method and apparatus for supporting digital cash to trade Pending CN109272403A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810857626.2A CN109272403A (en) 2018-07-31 2018-07-31 A kind of method and apparatus for supporting digital cash to trade
PCT/CN2018/113977 WO2020024474A1 (en) 2018-07-31 2018-11-05 Method and apparatus for supporting digital certificate transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810857626.2A CN109272403A (en) 2018-07-31 2018-07-31 A kind of method and apparatus for supporting digital cash to trade

Publications (1)

Publication Number Publication Date
CN109272403A true CN109272403A (en) 2019-01-25

Family

ID=65148261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810857626.2A Pending CN109272403A (en) 2018-07-31 2018-07-31 A kind of method and apparatus for supporting digital cash to trade

Country Status (2)

Country Link
CN (1) CN109272403A (en)
WO (1) WO2020024474A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020207090A1 (en) * 2019-04-12 2020-10-15 创新先进技术有限公司 Blockchain-based data processing system and method, computing device and storage medium
US11315115B2 (en) 2019-04-12 2022-04-26 Advanced New Technologies Co., Ltd. Blockchain-based data processing system, method, computing device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170112A1 (en) * 2013-10-04 2015-06-18 Erly Dalvo DeCastro Systems and methods for providing multi-currency platforms comprising means for exchanging and interconverting tangible and virtual currencies in various transactions, banking operations, and wealth management scenarios
CN105681301A (en) * 2016-01-16 2016-06-15 杭州复杂美科技有限公司 Settlement method on block chain
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
CN106815764A (en) * 2017-01-18 2017-06-09 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of management method and system of the digital asset based on alliance's chain
CN107330692A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 The circulation method and device of digital cash
CN107358522A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 One kind exchanges digital cash method and system with deposit
CN107369083A (en) * 2017-06-26 2017-11-21 中国人民银行数字货币研究所 The method and system that a kind of interbank is settled accounts using digital cash

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503053B (en) * 2016-09-26 2019-07-16 江苏通付盾科技有限公司 UTXO querying method and device
CN109863719B (en) * 2016-10-25 2022-08-26 区块链控股有限公司 Method and system for controlling transfer through block chain
CN107147735B (en) * 2017-05-12 2020-08-11 北京博晨技术有限公司 Distributed account book system based on hierarchical structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170112A1 (en) * 2013-10-04 2015-06-18 Erly Dalvo DeCastro Systems and methods for providing multi-currency platforms comprising means for exchanging and interconverting tangible and virtual currencies in various transactions, banking operations, and wealth management scenarios
CN105681301A (en) * 2016-01-16 2016-06-15 杭州复杂美科技有限公司 Settlement method on block chain
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
CN106815764A (en) * 2017-01-18 2017-06-09 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of management method and system of the digital asset based on alliance's chain
CN107330692A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 The circulation method and device of digital cash
CN107358522A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 One kind exchanges digital cash method and system with deposit
CN107369083A (en) * 2017-06-26 2017-11-21 中国人民银行数字货币研究所 The method and system that a kind of interbank is settled accounts using digital cash

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANTHONY TOWNS: "Field Report: Consolidation of 4 Million UTXOs at Xapo", 《HTTPS://BITCOINOPS.ORG/EN/XAPO-UTXO-CONSOLIDATION》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020207090A1 (en) * 2019-04-12 2020-10-15 创新先进技术有限公司 Blockchain-based data processing system and method, computing device and storage medium
US11315115B2 (en) 2019-04-12 2022-04-26 Advanced New Technologies Co., Ltd. Blockchain-based data processing system, method, computing device and storage medium

Also Published As

Publication number Publication date
WO2020024474A1 (en) 2020-02-06

Similar Documents

Publication Publication Date Title
US10635655B2 (en) Device, method and program for securely reducing an amount of records in a database
Abe et al. Associative reinforcement learning using linear probabilistic concepts
US10535026B2 (en) Executing a set of business rules on incomplete data
CN105376192B (en) The reminding method and suggestion device of login account
KR101959153B1 (en) System for efficient processing of transaction requests related to an account in a database
CN109636384A (en) A kind of parallelization executes the method, apparatus and system of block chain transaction
KR102013768B1 (en) System for processing insurance examination based on business rule and method thereof
CN112651724A (en) Cross-chain interaction method, device and system
Solaiman et al. Implementation and evaluation of smart contracts using a hybrid on‐and off‐blockchain architecture
CN110032599A (en) The reading of data structure and update method, device, electronic equipment
Zueger et al. Cost‐effectiveness analysis of sacubitril/valsartan for the treatment of heart failure with reduced ejection fraction in the United States
CN106940639B (en) For can configure the method, system and computer-readable medium of code fingerprint
CN107402821A (en) Access control method, device and the equipment of shared resource
CN105100242A (en) Data processing method and system
CN109272403A (en) A kind of method and apparatus for supporting digital cash to trade
CN109102281A (en) A kind of method and apparatus for realizing the integration of digital cash transaction record
Effendi et al. Discovering process model from event logs by considering overlapping rules
CN107679889B (en) The recognition methods of potential customers a kind of and terminal device
Weber et al. Programmable Money: Next-generation Conditional Payments using Blockchain.
CN109118218A (en) A kind of method and apparatus for realizing the integration of digital cash transaction record
CN109242482A (en) A kind of method and apparatus for realizing the integration of digital cash transaction record
CN112511651B (en) Service access method and device based on block chain
JP2019074874A (en) Computer-assisted name identification system and program
Kraiczy et al. An adaptive and verifiably proportional method for participatory budgeting
CN111857670A (en) Application architecture determination method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200813

Address after: 3a17, 4th floor, building 20, Aobei science and Technology Park, Haidian District, Beijing 100192

Applicant after: Beijing midoqi Technology Co.,Ltd.

Address before: 100192 2 floor, building 25, North Science Park, Haidian District, Beijing.

Applicant before: BITMAIN TECHNOLOGIES Inc.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125