CN110378678A - Numerical value integration method, device, system, node device and storage medium - Google Patents

Numerical value integration method, device, system, node device and storage medium Download PDF

Info

Publication number
CN110378678A
CN110378678A CN201910672709.9A CN201910672709A CN110378678A CN 110378678 A CN110378678 A CN 110378678A CN 201910672709 A CN201910672709 A CN 201910672709A CN 110378678 A CN110378678 A CN 110378678A
Authority
CN
China
Prior art keywords
utxo
numerical value
target account
block
denomination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910672709.9A
Other languages
Chinese (zh)
Other versions
CN110378678B (en
Inventor
郭锐
李茂材
王宗友
屠海涛
孔利
周开班
杨常青
王楠
丁勇
时一防
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910672709.9A priority Critical patent/CN110378678B/en
Publication of CN110378678A publication Critical patent/CN110378678A/en
Application granted granted Critical
Publication of CN110378678B publication Critical patent/CN110378678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3678Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes e-cash details, e.g. blinded, divisible or detecting double spending

Abstract

This application discloses a kind of numerical value integration method, device, system, node device and storage mediums, belong to network technique field.The application provides numerical value integrated service by block catenary system, the UTXO information of target account is obtained from the credit of block catenary system, according to UTXO information, when determining that the UTXO in target account meets numerical value integration condition, a fairly large number of UTXO in target account is converted to the UTXO of negligible amounts, to reduce the quantity of the UTXO in target account, so that the occupied memory space of UTXO in target account is reduced, to reduce the load of block catenary system interior joint equipment.

Description

Numerical value integration method, device, system, node device and storage medium
The application be the applying date be on June 20th, 2018, application No. is 201810635826.3, entitled " numerical value The divisional application of integration method, device, electronic equipment and computer readable storage medium "
Technical field
This application involves network technique field, in particular to a kind of numerical value integration method, device, system, node device and Storage medium.
Background technique
With the development of network technology, numerical value transfer is related in more and more scenes.Wherein, e-payment is exactly one Kind numerical value transfer process.E-payment, which refers to, is sent to certain electronic equipment for numerical value transfer request by network for user, by this Numerical value certain in the account of the user is transferred in other accounts by electronic equipment according to the information in numerical value transfer request.
It, usually will by network by user in the scene handled using block chain technology logarithm transfer process Numerical value transfer request is sent to block catenary system, is based on the numerical value transfer request by block catenary system and generates block, and to block It knows together, when common recognition passes through, can export the transaction not spent to be produced of Send only Account in credit (Unspent Transaction Output, UTXO) is deleted, and adds certain numerical value in credit for the collecting account UTXO.For example, user A needs to pay 3 yuan to user B, and not having denomination in the account of user A is 3 yuan of UTXO, then block chain System interior joint equipment can delete the UTXO that denomination in the account of user A is 5 yuan, the face added in the account of user B The UTXO that volume is 3 yuan will also add the UTXO that a new denomination is 2 yuan in the account of user A.
But with increasing for numerical value transfer number, some denomination very littles or irregular UTXO may be not easy to be spent Take, then the UTXO quantity that will lead in account is more and more, and the memory space of occupancy is also increasing, so that block chain interior joint The load of equipment is increasing, therefore, needs a kind of numerical value integration method to reduce the UTXO quantity in account, to reduce account In UTXO shared by memory space.
Summary of the invention
The embodiment of the present application provides a kind of numerical value integration method, device, system, node device and storage medium, can be with It solves the problem of in account in the related technology that UTXO quantity is more and occupies excessive memory space.The technical solution is as follows:
On the one hand, a kind of numerical value integration method is provided, applied to any node equipment in block catenary system, the side Method includes:
The transaction output UTXO information of target account not spent is obtained from the credit of the block catenary system;
When according to the UTXO information, determining that the UTXO in the target account meets numerical value integration condition, according to institute UTXO information and numerical value integration rules are stated, determines the UTXO and to be rotated into of the first quantity to be produced in the target account The UTXO of two quantity, second quantity are less than first quantity;
Numerical value integration request is generated, based on numerical value integration request, generates block;
Into the block catenary system, other node devices send the block, know together to the block;
When the block passes through common recognition, the block is added in block chain;
In the credit in the block catenary system, the UTXO of first quantity in the target account is converted For the UTXO of second quantity.
On the one hand, a kind of numerical value integrating apparatus is provided, described device includes:
Module is obtained, for obtaining the transaction output of target account not spent from the credit of the block catenary system UTXO information;
The acquisition module is also used to work as to determine that the UTXO in the target account meets number according to the UTXO information When being worth integration condition, according to the UTXO information and numerical value integration rules, the first number to be produced in the target account is determined The UTXO of the UTXO of amount and the second quantity to be rotated into, second quantity are less than first quantity;
Module of knowing together, based on numerical value integration request, generates block for generating numerical value integration request;
The common recognition module is also used to other node devices into the block catenary system and sends the block, to described Block is known together;
Adding module, for when the block passes through common recognition, the block to be added in block chain;
Numerical value integrates module, in the credit in the block catenary system, described in the target account The UTXO of first quantity is converted to the UTXO of second quantity.
On the one hand, a kind of block catenary system is provided, the block catenary system includes multiple node devices, the multiple section Any node equipment is used to execute operation performed by the numerical value integration method in point device.
On the one hand, a kind of node device is provided, the node device includes one or more processors and one or more A memory is stored at least one instruction in one or more of memories, and described instruction is by one or more of Reason device is loaded and is executed to realize operation performed by the numerical value integration method.
On the one hand, provide a kind of computer readable storage medium, be stored in the computer readable storage medium to A few instruction, described instruction are loaded as processor and are executed to realize operation performed by the numerical value integration method.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
The embodiment of the present application is by passing through block chain when detecting that the UTXO in target account meets numerical value integration condition System provides numerical value integrated service for it, and a fairly large number of UTXO in the target account is converted to the UTXO of negligible amounts, To reduce the quantity of the UTXO in target account, so that the occupied memory space of UTXO in target account is reduced, To reduce the load of block catenary system interior joint equipment.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of implementation environment of numerical value integration method provided by the embodiments of the present application;
Fig. 2 is a kind of numerical value integration method flow chart provided by the embodiments of the present application;
Fig. 3 is a kind of numerical value integration method flow chart provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of numerical value integrating apparatus provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of numerical value integrating apparatus provided by the embodiments of the present application;
Fig. 6 is the structural block diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Fig. 1 is a kind of implementation environment of numerical value integration method provided by the embodiments of the present application, referring to Fig. 1, the implementation environment In may include terminal 101, server 102 and multiple servers 103, wherein the terminal 101, server 102 and multiple services Device 103 between any two can be by network connection, and to realize data interaction, multiple server 103 is in block catenary system Node device, wherein network composed by multiple server 103 can be reciprocity (Peer to Peer, P2P) network, Node device in the P2P network is fellow, that is to say that status is identical.
The terminal 101 refers to that user equipment, server 102 are the equipment outside block catenary system, which can be direct Data interaction is carried out between block catenary system, is obtained the numerical value integrated service that block catenary system provides, can also be passed through service Device 102, obtains numerical value integrated service from block catenary system, and the embodiment of the present application is not construed as limiting this.
In the embodiment of the present application, each server (node device) all has oneself block in the block catenary system Chain includes multiple blocks in the block chain, can recorde the interior perhaps numerical value of different numerical value transfer requests in each block The content of request is integrated, it is of course also possible to record other contents, the embodiment of the present application is not construed as limiting this.
Noun involved in the application is introduced below:
Intelligent contract: the contract program executed automatically according to specified conditions is that user interacts with block chain, utilizes area The important channel of block chain realization service logic.
Above-mentioned numerical value integration method can be applied in electronic equipment, which can be above-mentioned terminal 101, can also To be above-mentioned server 102, any of above-mentioned multiple servers 103 server 103 can also be, below by shown in Fig. 2 It is illustrated so that terminal 101 or server 102 are interacted with server 103 as an example in embodiment.Fig. 2 is the embodiment of the present application A kind of numerical value integration method flow chart provided, referring to fig. 2, this method may comprise steps of:
201, electronic equipment obtains the UTXO information of target account from the credit of block catenary system.
In the embodiment of the present application, electronic equipment can detecte the UTXO information in target account, meet numerical value in UTXO When integration condition, numerical value integration is carried out to UTXO, so that the quantity of the UTXO in target account is reduced, to reduce in target account The occupied memory space of UTXO.
Wherein, which can be any one user account.It is generally stored in the node device of block catenary system Account table, account table are used to store the UTXO in account.In account table, usually there is oneself corresponding in each account Index information, electronic equipment can get the UTXO information of some account according to the index information.In the embodiment of the present application In, electronic equipment can obtain the target account according to the index information of the target account from the credit of block catenary system UTXO information;Wherein, which is the account address of the target account;Or, the index information is transaction cryptographic Hash.When So, which can also be other and can be not construed as limiting with the information of unique identification target account, the embodiment of the present application to this.
Specifically, which can send information acquisition request to block catenary system, by block catenary system according to this The index information that information acquisition request carries, gets the UTXO information of target account, and the UTXO information is sent to the electricity Sub- equipment, certainly, the electronic equipment can also get the UTXO information by other means, for example, the electronic equipment can be with It accesses and reads the credit that any node equipment stores in block catenary system, and according to the content of reading, be locally generated account Family table copy, so as to get the UTXO information of target account, the embodiment of the present application is not construed as limiting this.
In the embodiment of the present application, which can be the terminal 101 in above-mentioned Fig. 1, be also possible to server 102.When the electronic equipment is server 102, the relationship between the server 102 and terminal 101 may also be different, wherein The terminal 101 refers to user equipment.It can specifically include following three kinds of situations:
In oneainstance, which is above-mentioned terminal 101.
Terminal can obtain the UTXO information of target account from the credit of block catenary system, that is to say that user equipment can To access credit, the UTXO situation of some account is obtained from credit.
In a kind of possible implementation, terminal can by mounted client or pass through web portal access block Node device in catenary system, to get the UTXO information of target account.In one specifically possible embodiment, the client An access interface of the node device can be set in end or in portal website, terminal can be accessed by the access interface Credit on node device.In a kind of possible implementation, which can also be by obtaining target account from credit The UTXO information at family, and the UTXO management function of the target account is provided for user.For example, the terminal can be according to getting The UTXO information of target account provides the denomination summation of the UTXO of the target account for user, that is to say user can by " remaining sum " in oneself some account is known in " wallet " in terminal.
In oneainstance, which is above-mentioned server 102, is stored with terminal 101 in the server 102 and mentions The unique key of the target account of confession.
Terminal can provide the unique key of target account to server, which can be according to the unique key full powers Manage the target account.For example, such case can be account trustship, terminal to server, that is to say target account trustship Terminal has given the administrative power of the target account to server, which can appoint the target account by the unique key What is operated.
In oneainstance, which is above-mentioned server 102, is stored with terminal 101 in the server 102 and mentions The key with the target account part permission supplied.
A part of business function of target account can be entrusted to server by terminal, be completed by server.It specifically can be with It is realized using multi-signature technology, wherein the multi-signature technology can be the multi-signature technology of M-N, wherein N is public key Total quantity, M is at least to need M public key in N number of public key that can just be unlocked.For example, the multi-signature of 1-2 can be used Technology that is to say that terminal is that the target account generates two pairs of keys, wherein there are two private key, two public keys use one of them Public key can be unlocked, and certainly, public key needs are public keys corresponding with used private key is locked.Then terminal can be to clothes Business device provides one pair of them key, the key can also be provided with operating right, that is to say that the key has the target account Part permission.In a kind of possible implementation, terminal may be that the target account generates multiple private keys and a public key, The public key can be used for being unlocked the information that any of multiple private key private key locks, and the embodiment of the present application specifically uses Which kind of possible implementation is not construed as limiting, and is not especially limited to the value using M and N when multi-signature technology.
202, when according to the UTXO information, when determining that the UTXO in the target account meets numerical value integration condition, electronics is set For according to the UTXO information and numerical value integration rules, the UTXO of the first quantity to be produced in the target account is determined and wait rotate into The second quantity UTXO.
The electronic equipment can be according to the UTXO information got, and it is whole whether the UTXO in detection target account meets numerical value Conjunction condition, if it is, the correlation step of following numerical value integration can be executed, if it is not, then can be in the above-mentioned step of subsequent execution Rapid 201 and step 202, it continues to test.In a kind of possible implementation, which can periodically execute above-mentioned steps 201, and the step of whether UTXO in detection target account meets numerical value integration condition executed.
Wherein, the UTXO in target account meet numerical value integration condition the case where may include: in the target account The quantity of UTXO is greater than the first amount threshold;Or, the quantity for the UTXO that the denomination in the target account is less than denomination threshold value is greater than Second amount threshold;Or, memory space shared by UTXO in the target account is greater than preset capacity.Wherein, the first quantity threshold Value, the second amount threshold, denomination threshold value or preset capacity etc. can be preset by related technical personnel, can also be by user It is adjusted according to the actual use demand of itself.It should be noted that the UTXO that above are only in several target accounts meets Numerical value integrates several examples of condition, which integrates condition can be by related technical personnel according to practical business function or demand It presets, or demand setting, in a kind of possible implementation, different accounts is actually used according to the UTXO of itself by user Numerical value integration condition can also be different, the embodiment of the present application is not construed as limiting this.
For example, the upper limit of the number can be provided in the electronic device, electronic equipment detects the quantity of the UTXO in account Very much, the upper limit of the number is had reached, then can determine and need to carry out numerical value integration.Alternatively, electronic equipment detects low-denomination There are many quantity of UTXO, have reached the upper limit of the number, then can determine and need to carry out numerical value integration.Or in the electronic device also Maximum size can be set, electronic equipment can detecte memory space shared by the UTXO in account, if the storage occupied Space is very big, reaches maximum size, then can determine and need to carry out numerical value integration.
Electronic equipment, can be with when according to UTXO information, determining that the UTXO in the target account meets numerical value integration condition Numerical value integration request is sent to block catenary system, wherein numerical value integration request is used to indicate the block catenary system for the target The UTXO of the first quantity in account is converted to the UTXO of the second quantity, which is less than first quantity, in this way can be with The quantity of the UTXO in the target account is reduced, to reduce the occupied memory space of UTXO in the target account, to subtract The load of few block chain interior joint equipment.
Before sending numerical value integration request, electronic equipment can first determine the particular content of numerical value integration request, wherein The particular content may include the UTXO of the first quantity to be produced in the target account and the UTXO of the second quantity to be rotated into. Specifically, which determines numerical value integration rules used by the process of the UTXO of the first quantity and the UTXO of the second quantity It can be preset by related technical personnel, the embodiment of the present application is not especially limited this, only provides several possibilities below Example:
In a kind of possible implementation, electronic equipment can be using all UTXO in the target account as this wait produce The UTXO of the first quantity determine the denomination of the UTXO of second quantity and according to the denomination summation of the UTXO of first quantity Summation.Wherein, electronic equipment determines that the denomination of the UTXO of second quantity is total according to the denomination summation of the UTXO of first quantity The process of sum can be with are as follows: electronic equipment denomination range according to belonging to the denomination of UTXO each in the target account determines each The denomination of maximum value in denomination range as the UTXO of second quantity, second quantity are that one or second quantity are greater than One.
For example, electronic equipment can integrate UTXO all in target account, for the UTXO of the second quantity Denomination, when the second quantity is for the moment, UTXO all in target account can be integrated into a UTXO by electronic equipment, then The denomination of the UTXO of second quantity namely fixation.When second quantity is greater than for the moment, electronic equipment can will be in target account All UTXO are integrated into the UTXO of the second quantity, and different denomination ranges can be set in the electronic equipment, for example, [0,5], (5-10] ... ..., it, can be by 5 and 10 as the if the denomination of the UTXO of the first quantity is respectively 4,6,3 and 2 The UTXO of two quantity.Second quantity can effectively reduce the UTXO in target account less than the first quantity, by numerical value integration Quantity, to reduce the load of node device.
In a kind of possible implementation, which can determine according to the historical transactional information of target account, example Such as, the trade maximum quantity carried out parallel in historical transactional information can be determined as the second quantity.Certainly, second quantity It can be a preset numerical value or second quantity can be according to the denomination of the UTXO of the second quantity of above-mentioned determination and The denomination summation of the UTXO of one quantity determines that the embodiment of the present application is not construed as limiting this.
In a kind of possible implementation, denomination in the target account can be less than the UTXO of denomination threshold value by electronic equipment As the UTXO of the first quantity, and according to the denomination summation of the UTXO of first quantity, the face of the UTXO of second quantity is determined Volume summation.
For example, the denomination for the UTXO for including in the target account is respectively 20,13,8,5,4,1 and 9, with the denomination threshold value For 10, electronic equipment can using denomination less than 10 UTXO as UTXO to be produced, that is to say that the first quantity can be 5, the UTXO of the first quantity can be 8,5,4,1 and 9, same in the determination process of the UTXO of the second quantity and above-mentioned implementation Reason, does not repeat herein.
In a kind of possible implementation, electronic equipment can be according to the historical transactional information of the target account, by the mesh UTXO of the UTXO in account within the scope of the first denomination as the first quantity is marked, using the UTXO within the scope of the second denomination as second The UTXO of quantity, the first denomination range are that the frequency in the historical transactional information as transaction input is less than first frequency threshold value UTXO denomination range, the second denomination range be the historical transactional information in as transaction input frequency be greater than second frequently The denomination range of the UTXO of rate threshold value.
For example, can determine that denomination is commonly used in user in the historical transactional information of the target account is 20,50 or 100 UTXO or user are commonly used denomination range and are the UTXO of [20,100], and the UTXO of [0,20] is rarely employed, then electronics is set The standby UTXO that can be located at denomination range in current account in [0,20] is as UTXO to be produced, by denomination 20,50 or 100 Determine the denomination of UTXO to be transferred to, or the denomination range by [20,100] as UTXO to be transferred to.
In a kind of possible implementation, UTXO of the electronic equipment in the UTXO and the second quantity for determining above-mentioned first quantity When, the size relation of the denomination summation of the UTXO of the denomination summation and the second quantity of the UTXO of first quantity may include two kinds Situation:
In oneainstance, the UTXO of first quantity is identical as the denomination summation of the UTXO of second quantity.
Generally, when block chain interior joint equipment provides numerical value transfer service for user, certain expense can be collected, in this Shen Please embodiment provide numerical value integration method in, in order to reduce the loading condition of block chain interior joint equipment, to the account of user In UTXO carry out numerical value integration, can be the maintenance mode of equipment in a kind of pair of block catenary system, possible user is in fact not Have the wish for actively carrying out numerical value integration, and hence it is also possible to be provided with to target account carry out numerical value integrate when, do not collect number It is worth the expense of integrated service.That is to say the target account carry out numerical value integrate when, the denomination summation for the UTXO for being transferred to and producing It is identical.
Specifically, it can be realized by intelligent contract, or i.e. specified value integrates request when establishing block catenary system It is transferred to identical with the denomination that produces, does not collect the charges, so as to improve the practicability of the numerical value integrated service.Certainly, above-mentioned Process can also be realized by other means, for example, by the account for being transferred to address and being rewritten as target account of fee charged Address, the embodiment of the present application are not construed as limiting this.
In oneainstance, the denomination summation of the UTXO of first quantity be second quantity UTXO denomination summation with Default denomination and value.
The default denomination is to carry out integration required cost by the block catenary system.For example, being counted by block catenary system Value transfer needs service charge, which that is to say a kind of numerical value transfer process, which can be transferred into area In the account of block catenary system.After then a part in the UTXO of the first quantity in the target account is integrated, it can transfer back to The target account, another part are then transferred into the above-mentioned account for collecting default denomination.Wherein, the default denomination is by the relevant technologies Personnel are pre-set in block catenary system, it is, of course, also possible to which the default denomination for the UTXO that the numerical value integration process is collected is arranged Denomination less than the UTXO that numerical value transfer process is collected, the embodiment of the present application are not construed as limiting the specific value for presetting denomination.
Condition and numerical value integration rules are integrated based on above-mentioned numerical value, numerical value integration is carried out to the UTXO in target account, no The quantity of the UTXO in target account can be only reduced, to reduce the load of node device, the UTXO after integration is easier to spend, Also it provides convenience for the UTXO use of user.
203, electronic equipment sends numerical value integration request to block catenary system.
Electronic equipment can send numerical value integration request after the content for determining numerical value integration request to block catenary system. Generally, it can store the address of any node equipment in block catenary system in the electronic equipment, which can be with The address is obtained, numerical value integration request is sent to the address.
In a kind of possible implementation, numerical value integration request can carry the key of the target account, need Bright, which can be used after private key is locked numerical value integration request and is sent to block catenary system, that is to say It is sent after being signed, which can be used corresponding public key and be unlocked to numerical value integration request.
Corresponding to three kinds of situations in above-mentioned steps 201, in first two situation, which is somebody's turn to do for what user equipment provided The unique key of target account.In a kind of finally situation, which has the target account part for what user equipment provided The key of permission.Then if using multi-signature technology, target account is entrusted to server by terminal, then the terminal can be used The private key logarithm integration request of oneself is locked, and weighing with target account part for terminal offer also can be used in server The private key logarithm integration request of limit is locked, then block catenary system can be unlocked using the corresponding public key of private key, then Block catenary system can be subsequent to the storage corresponding with numerical value integration request of used public key is unlocked, so as to know tool Body integrates task by the numerical value who is initiated.
Wherein, it requests to that is to say generation signing messages into line-locked process by the integration of private key logarithm, be integrated by numerical value Request carries the process of the signing messages.If electronic equipment is managed target account using multiple private keys and a public key Mode, then block catenary system can it is subsequent by the numerical value integrate request carry signing messages and the numerical value integration request pair It should store, so as to know the promoter of numerical value integration request.Certainly, in the step 203, numerical value integration request may be used also To include other content, for example, time etc. is initiated in the rule of numerical value integration process institute reference or transaction, the embodiment of the present application is to this It is not construed as limiting.
Above-mentioned steps 202 and step 203 are worked as according to the UTXO information, determine that the UTXO in the target account meets numerical value When integration condition, the process of numerical value integration request is sent to block catenary system, it can be according to the number so that block catenary system is subsequent Value integration request, provides numerical value integrated service for electronic equipment.
204, when receiving numerical value integration request, block catenary system is based on numerical value integration request, block is generated, to this Block is known together, and numerical value integration request meets numerical value integration condition triggering by the UTXO in the target account.
In a kind of possible implementation, electronic equipment can into block catenary system any node equipment send numerical value it is whole Request is closed, after which receives numerical value integration request, block, the block can be generated based on numerical value integration request In include the numerical value integration request content.Certainly, which is also based on multiple numerical value integration requests or numerical value turns Request is moved, block is generated, and broadcast the block to other node devices, so that block catenary system can be total to the block Know.
For example, the process that the node device generates block can be with are as follows: the last one block in current block chain is known as the One block that is to say that the first block is the highest block of block height in current block chain, which generated Block is known as the second block.Node device can obtain all information of the first block from block chain, so as to be based on being somebody's turn to do All information of first block obtain the block head characteristic value of the first block, and the letter for the contract that will be stored in the second block Breath and numerical value integration request carry out characteristic value calculating, obtain the block body feature value of the second block, in turn, node device can be with By the block head characteristic value of the first block, the block body feature value of the second block (can also include version number, difficulty value and when Between stab) store to the block head of the second block, and by the information of contract and numerical value integration request store to the block of the second block Main body, to generate the second block.First block and the second block are related by the block head characteristic value of the first block in this way, The purpose that block is together in series in block chain may be implemented.Certainly, it above are only a kind of example for generating block, the application is real Example is applied to be not construed as limiting the specific generating process of the block.
Wherein, when block catenary system knows together to the block, can determine whether the information of the block is accurate, for this Above-mentioned numerical value integrates the content of request in block, and any node equipment can be in the credit being locally stored in block catenary system Inquiring each UTXO in the UTXO of the first quantity whether there is, and whether each UTXO is previously used, and can determine that numerical value is whole Whether the denomination summation for being transferred to and producing for closing request is identical, wherein the UTXO is required to inquire in credit, and does not have Be previously used, and numerical value integration request the denomination summation for being transferred to producing it is identical when, numerical value integration request may effectively, when So, the identity information etc. that the sender of numerical value integration request can also be verified, in a kind of possible implementation, each node It, can be to other node device verifying broadcasts as a result, pre- when being greater than in the block catenary system after equipment verifies the block If the verification result of the node device of ratio be by when, the block catenary system can determine the block by common recognition, certainly, should The specific implementation process and the preset ratio of verifying broadcasts result can be preset by related technical personnel, can also be by phase It closes technical staff to be adjusted, the embodiment of the present application is not construed as limiting this, is also not especially limited the common recognition process.Block chain System can execute following step 205 to step 206 when determining that the block passes through common recognition.
205, when the block passes through common recognition, which is added in block chain by block catenary system.
206, block catenary system is in the credit of the block catenary system, by first quantity in the target account UTXO is converted to the UTXO of second quantity.
The step 205 and step 206 are when the block passes through common recognition, and block catenary system carries out numerical value integration, and records The process of this numerical value syndicated content.Each node device can be when the block passes through common recognition, by this in the block catenary system Block is added in block chain.The node device can also update the credit information of itself, which can be by first The UTXO of quantity is deleted from account table, and in the UTXO of the second quantity addition in account table, that is to say will have been spent UTXO deleted from account table, and by not used UTXO addition in account table.In this way, including each in account table UTXO in a account, in the block addition step and credit in the block chain in the block catenary system in each node device UTXO information update synchronous carry out, it is ensured that the accuracy of account information.It should be noted that block catenary system can be first Step 205 is executed, then executes step 206, step 206 can also be first carried out, then execute step 205, also may be performed simultaneously step Rapid 205 and step 206, the embodiment of the present application this is not construed as limiting.
It should be noted that, when the block passes through common recognition, node is set for any node equipment in the block catenary system Standby to execute the step 205 and step 206, the information that node device each in this way is recorded is consistent, it is ensured that account The accuracy of family information.
In a kind of possible implementation, in the latter situation in above-mentioned steps 202, the face of the UTXO of the first quantity Volume summation be second quantity UTXO denomination summation and default denomination and value, which can also be in credit In, the UTXO that denomination is the default denomination is added in the account of block catenary system.
207, block catenary system sends successful integration message to electronic equipment.
The successful integration message is used to inform that electronic equipment successfully to convert the UTXO of the first quantity in target account For the UTXO of the second quantity.
208, electronic equipment receives the successful integration message of block catenary system transmission.
Electronic equipment can also show successful integration prompt information when receiving the successful integration message in interface, To prompt the situation of change of the UTXO in ownership goal account.
Above-mentioned steps 204 to step 208 is step performed by block catenary system or electronic equipment when block passes through common recognition Suddenly, in a kind of possible implementation, above-mentioned block may be not over common recognition, when the block is not over common recognition, block Catenary system can ignore numerical value integration request.It that is to say if the block is not over common recognition, block catenary system if can not The block is added in block chain, for example, the block can be abandoned, certainly, block catenary system is carried out without to credit Modification.
Correspondingly, which can also send to electronic equipment and integrate failed message.Wherein, which unsuccessfully disappears Breath is for informing that the UTXO in the electronic equipment target account carries out numerical value integration not successfully.To which electronic equipment can receive The integration failed message that the block catenary system is sent.In a kind of possible implementation, electronic equipment receives integration and unsuccessfully disappears Breath can also show integration failure prompt information, in interface to prompt the integration process of the UTXO in ownership goal account to lose It loses.The electronic equipment can be with display reminding information, to prompt user that can re-start numerical value integrated operation.Certainly, the electricity Sub- equipment can also be triggered without user, re-execute above-mentioned steps 201 to step 203, the embodiment of the present application does not limit this It is fixed.
The embodiment of the present application is by passing through block chain when detecting that the UTXO in target account meets numerical value integration condition System provides numerical value integrated service for it, and a fairly large number of UTXO in the target account is converted to the UTXO of negligible amounts, To reduce the quantity of the UTXO in target account, so that the occupied memory space of UTXO in target account is reduced, To reduce the load of block catenary system interior joint equipment.
Block is sent to by the electronic equipment outside block catenary system above by the integration request of embodiment illustrated in fig. 2 logarithm It is illustrated for any node equipment in catenary system, in a kind of possible implementation, any section in the block catenary system Point device can also generate numerical value integration request when detecting that the UTXO in the target account meets numerical value integration condition, thus Get numerical value integration request.The implementation is described in detail below by embodiment illustrated in fig. 3.Fig. 3 is the application A kind of numerical value integration method flow chart that embodiment provides, in the embodiment of the present application, the numerical value integration method are applied to electronics In equipment, which can be any one server in above-mentioned multiple servers 103, that is to say in block catenary system and appoint One node device, referring to Fig. 3, this method be may comprise steps of:
301, node device obtains the UTXO information of target account from the credit of the block catenary system.
Credit is stored in the block catenary system in each node device, node device can be from the account being locally stored The UTXO information of target account is obtained in the table of family, similarly, the embodiment of the present application is few to this for the step 301 and above-mentioned steps 201 It repeats.
In a kind of possible implementation, which can periodically execute the step 301, and based on getting UTXO information, detects whether the UTXO in target account meets numerical value integration condition, if it is, following step can be executed 302, if it is not, then the step of acquisition can be continued to execute and detected.
302, when according to the UTXO information, when determining that the UTXO in the target account meets numerical value integration condition, node is set For according to the UTXO information and numerical value integration rules, the UTXO of the first quantity to be produced in the target account is determined and wait rotate into The second quantity UTXO.
Node device can also determine that numerical value integration is asked when determining that the UTXO in target account needs to carry out numerical value to integrate The particular content asked, specific determination process and above-mentioned steps 202 similarly, do not repeat herein.
303, node device generates numerical value integration request, and based on numerical value integration request, generates block.
The step 301 to step 303 is the process that node device obtains numerical value integration request, the step 303 and above-mentioned step Unlike rapid 203, which can be generated numerical value integration and ask after the particular content for determining numerical value integration request It asks, block also can be generated, include the content of numerical value integration request in the block, it, will so as to execute following step 304 The block is broadcast to other node devices.
304, node device other node devices into block catenary system send the block.
The block is broadcast to other node devices in block catenary system by node device, so that the block catenary system can be held Row following step 305 knows together to the block.
305, other node devices know together to the block in the node device and block catenary system.
The step 303 to step 305 is to generate block, the mistake known together to the block based on numerical value integration request Journey, wherein similarly, block catenary system can ask numerical value integration in the block generating process and above-mentioned steps 204 of the block The content asked is known together, and can also be known together to other contents in the block, not repeated herein.When the block passes through When common recognition, each node device can execute following step 306 and step 307.
306, when the block passes through common recognition, which is added in block chain by node device.
307, node device is in the credit of the block catenary system, by the UTXO of first quantity in the target account Be converted to the UTXO of second quantity.
The step 306 and step 307 and above-mentioned steps 205 and step 206 similarly, any node equipment in block catenary system The step 306 and step 307 can be executed, is not repeated herein.Similarly with above-mentioned steps 205 and step 206, the application Embodiment is also not construed as limiting the execution sequence of the step 306 and step 307.
In a kind of possible implementation, which is also possible to not over common recognition, and each node is set in block catenary system It is standby to ignore numerical value integration request, and the node device can abandon the block, which is not added in block chain, Also it does not modify to credit.
The embodiment of the present application passes through block catenary system when detecting that the UTXO in target account meets numerical value integration condition, Numerical value integration is directly carried out, a fairly large number of UTXO in the target account is converted to the UTXO of negligible amounts, thus in nothing User's operation is needed, is operated without the equipment outside block catenary system, the quantity of the UTXO in target account can be reduced, thus The occupied memory space of UTXO in target account is reduced, to reduce the load of block catenary system interior joint equipment.
All the above alternatives can form the alternative embodiment of the application, herein no longer using any combination It repeats one by one.
Fig. 4 is a kind of structural schematic diagram of numerical value integrating apparatus provided by the embodiments of the present application, is applied in electronic equipment, Referring to fig. 4, which includes:
Module 401 is obtained, for obtaining the UTXO information of target account from the credit of block catenary system;
Sending module 402 determines that the UTXO in the target account meets numerical value and integrates item for working as according to the UTXO information When part, numerical value integration request is sent to block catenary system, numerical value integration request is used to indicate the block catenary system for the target The UTXO of the first quantity in account is converted to the UTXO of the second quantity, which is less than first quantity;
Receiving module 403, for receiving the successful integration message of block catenary system transmission.
In a kind of possible implementation, the acquisition module 401, for the index information according to the target account, from area The UTXO information of the target account is obtained in the credit of block catenary system;Wherein, which is the account of the target account Address;Or, the index information is transaction cryptographic Hash.
In a kind of possible implementation, the UTXO in the target account meets numerical value integration condition, comprising:
The quantity of UTXO in the target account is greater than the first amount threshold;Or, the denomination in the target account is less than face The quantity of the UTXO of volume threshold value is greater than the second amount threshold;Or, memory space shared by UTXO in the target account be greater than it is default Capacity.
In a kind of possible implementation, the device further include:
Determining module determines that the UTXO in the target account meets numerical value integration condition for working as according to the UTXO information When, according to the UTXO information and numerical value integration rules, determine the UTXO of the first quantity to be produced in the target account and wait turn Into the second quantity UTXO.
In a kind of possible implementation, which is used for:
Using the UTXO of the first quantity all UTXO in the target account to be produced as this, and according to first quantity UTXO denomination summation, determine the denomination summation of the UTXO of second quantity;Or,
Using denomination in the target account be less than denomination threshold value UTXO as the UTXO of the first quantity, and according to this first number The denomination summation of the UTXO of amount determines the denomination summation of the UTXO of second quantity;Or,
According to the historical transactional information of the target account, using the UTXO in the target account within the scope of the first denomination as The UTXO of one quantity, using the UTXO within the scope of the second denomination as the UTXO of the second quantity, which is the history Frequency in Transaction Information as transaction input is less than the denomination range of the UTXO of first frequency threshold value, which is Frequency in the historical transactional information as transaction input is greater than the denomination range of the UTXO of second frequency threshold value;
Wherein, the denomination summation of the UTXO according to first quantity, determines the denomination summation of the UTXO of second quantity, Further include:
According to denomination range belonging to the denomination of UTXO each in the target account, the maximum in each denomination range is determined It is worth the denomination of the UTXO as second quantity, which is one or second quantity is greater than one.
In a kind of possible implementation, the denomination summation phase of the UTXO of the first quantity and UTXO of second quantity Together;Or, the denomination summation of the UTXO of first quantity be second quantity UTXO denomination summation and default denomination and value.
In a kind of possible implementation, numerical value integration request carries the key of the target account, which is to use The unique key for the target account that family equipment provides;Or, the key has the target account part for what user equipment provided The key of permission.
Device provided by the embodiments of the present application by detect the UTXO in target account meet numerical value integrate condition when, There is provided numerical value integrated service by block catenary system for it, by a fairly large number of UTXO in the target account be converted to quantity compared with Few UTXO, to reduce the quantity of the UTXO in target account, so that the UTXO reduced in target account is occupied Memory space, to reduce the load of block catenary system interior joint equipment.
It should be understood that numerical value integrating apparatus provided by the above embodiment is when integrating numerical value, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, numerical value integrating apparatus provided by the above embodiment and numerical value integration method embodiment belong to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
Fig. 5 is a kind of structural schematic diagram of numerical value integrating apparatus provided by the embodiments of the present application, is applied to block catenary system In middle any node equipment, referring to Fig. 5, which includes:
Module 501 is obtained, for obtaining numerical value integration request, numerical value integration request is used to indicate will be in target account The UTXO of first quantity is converted to the UTXO of the second quantity, and numerical value integration request meets numerical value by the UTXO in the target account The triggering of integration condition;
Module 502 of knowing together is generated block, known together to the block for being requested based on numerical value integration;
Adding module 503, for when the block passes through common recognition, which to be added in block chain;
Numerical value integrates module 504, in the credit of the block catenary system, by first number in the target account The UTXO of amount is converted to the UTXO of second quantity.
In a kind of possible implementation, module 501 is obtained, is used for:
It receives the numerical value that electronic equipment is sent and integrates request;Or,
When detecting that the UTXO in the target account meets numerical value integration condition, numerical value integration request is generated.
In a kind of possible implementation, the UTXO in the target account meets numerical value integration condition, comprising:
The quantity of UTXO in the target account is greater than the first amount threshold;Or, the denomination in the target account is less than face The quantity of the UTXO of volume threshold value is greater than the second amount threshold;Or, memory space shared by UTXO in the target account be greater than it is default Capacity.
In a kind of possible implementation, the denomination summation phase of the UTXO of the first quantity and UTXO of second quantity Together.
In a kind of possible implementation, the denomination summation of the UTXO of first quantity is the face of the UTXO of second quantity Volume summation and default denomination and value;
The numerical value is integrated module 504 and is also used to when the block passes through common recognition, in account table, in the block catenary system Account in addition denomination be the default denomination UTXO.
In a kind of possible implementation, numerical value integration request carries the key of the target account, which is to use The unique key for the target account that family equipment provides;Or, the key has the target account part for what user equipment provided The key of permission.
Device provided by the embodiments of the present application by detect the UTXO in target account meet numerical value integrate condition when, There is provided numerical value integrated service by block catenary system for it, by a fairly large number of UTXO in the target account be converted to quantity compared with Few UTXO, to reduce the quantity of the UTXO in target account, so that the UTXO reduced in target account is occupied Memory space, to reduce the load of block catenary system interior joint equipment.
It should be understood that numerical value integrating apparatus provided by the above embodiment is when integrating numerical value, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, numerical value integrating apparatus provided by the above embodiment and numerical value integration method embodiment belong to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
Fig. 6 is the structural block diagram of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment 600 can be provided For a terminal.The electronic equipment 600 may is that smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, pen Remember this computer or desktop computer.Electronic equipment 600 is also possible to referred to as user equipment, portable terminal, laptop terminal, desk-top Other titles such as terminal.
In general, electronic equipment 600 includes: processor 601 and memory 602.
Processor 601 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 601 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 601 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 601 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 601 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 602 may include one or more computer readable storage mediums, which can To be non-transient.Memory 602 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 602 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 601 for realizing this Shen Please in embodiment of the method provide numerical value integration method.
In some embodiments, electronic equipment 600 is also optional includes: peripheral device interface 603 and at least one periphery Equipment.It can be connected by bus or signal wire between processor 601, memory 602 and peripheral device interface 603.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 603.Specifically, peripheral equipment includes: to penetrate At least one in frequency circuit 604, touch display screen 605, camera 606, voicefrequency circuit 607, positioning component 608 and power supply 609 Kind.
Peripheral device interface 603 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 601 and memory 602.In some embodiments, processor 601, memory 602 and peripheral equipment Interface 603 is integrated on same chip or circuit board;In some other embodiments, processor 601, memory 602 and outer Any one or two in peripheral equipment interface 603 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 604 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 604 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 604 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 604 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 604 can by least one wireless communication protocol come with other electronic equipments It is communicated.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), nothing Line local area network and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 604 Can also include NFC (Near Field Communication, wireless near field communication) related circuit, the application to this not It is limited.
Display screen 605 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 605 is touch display screen, display screen 605 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 605.The touch signal can be used as control signal and be input to processor 601 are handled.At this point, display screen 605 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 605 can be one, and the front panel of electronic equipment 600 is arranged;In other realities It applies in example, display screen 605 can be at least two, be separately positioned on the different surfaces of electronic equipment 600 or in foldover design;? In still other embodiments, display screen 605 can be flexible display screen, is arranged on the curved surface of electronic equipment 600 or folds On face.Even, display screen 605 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 605 can be adopted With LCD (Liquid Crystal Display, liquid crystal display), (Organic Light-Emitting Diode, has OLED Machine light emitting diode) etc. materials preparation.
CCD camera assembly 606 is for acquiring image or video.Optionally, CCD camera assembly 606 include front camera and Rear camera.In general, the front panel of electronic equipment is arranged in front camera, the back of electronic equipment is arranged in rear camera Face.In some embodiments, rear camera at least two, be respectively main camera, depth of field camera, wide-angle camera, Any one in focal length camera, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera shooting Head and wide-angle camera fusion realize pan-shot and VR (Virtual Reality, virtual reality) shooting function or its It merges shooting function.In some embodiments, CCD camera assembly 606 can also include flash lamp.Flash lamp can be monochrome Warm flash lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can For the light compensation under different-colour.
Voicefrequency circuit 607 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 601, to be handled, or is input to radio circuit 604 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of electronic equipment 600 to be multiple. Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 601 or radio frequency will to be come from The electric signal of circuit 604 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 607 can be with Including earphone jack.
Positioning component 608 is used for the current geographic position of Positioning Electronic Devices 600, to realize navigation or LBS (Location Based Service, location based service).Positioning component 608 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union The positioning component of Galileo system.
Power supply 609 is used to be powered for the various components in electronic equipment 600.Power supply 609 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 609 includes rechargeable battery, which can support wired Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, electronic equipment 600 further includes having one or more sensors 610.The one or more passes Sensor 610 includes but is not limited to: acceleration transducer 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615 and proximity sensor 616.
Acceleration transducer 611 can detecte the acceleration in three reference axis of the coordinate system established with electronic equipment 600 Spend size.For example, acceleration transducer 611 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 601 acceleration of gravity signals that can be acquired according to acceleration transducer 611, control touch display screen 605 with transverse views or Longitudinal view carries out the display of user interface.Acceleration transducer 611 can be also used for game or the exercise data of user Acquisition.
Gyro sensor 612 can detecte body direction and the rotational angle of electronic equipment 600, gyro sensor 612 can cooperate with acquisition user to act the 3D of electronic equipment 600 with acceleration transducer 611.Processor 601 is according to gyroscope The data that sensor 612 acquires, may be implemented following function: action induction (for example changed according to the tilt operation of user UI), image stabilization, game control and inertial navigation when shooting.
The lower layer of side frame and/or touch display screen 605 in electronic equipment 600 can be set in pressure sensor 613.When When the side frame of electronic equipment 600 is arranged in pressure sensor 613, user can detecte to the gripping signal of electronic equipment 600, Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 613 acquires by processor 601.Work as pressure sensing When the lower layer of touch display screen 605 is arranged in device 613, grasped by processor 601 according to pressure of the user to touch display screen 605 Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control, At least one of icon control, menu control.
Fingerprint sensor 614 is used to acquire the fingerprint of user, collected according to fingerprint sensor 614 by processor 601 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 614 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 601 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Electronics can be set in fingerprint sensor 614 Front, the back side or the side of equipment 600.When being provided with physical button or manufacturer Logo on electronic equipment 600, fingerprint sensor 614 can integrate with physical button or manufacturer Logo.
Optical sensor 615 is for acquiring ambient light intensity.In one embodiment, processor 601 can be according to optics The ambient light intensity that sensor 615 acquires controls the display brightness of touch display screen 605.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 605 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 605 is bright Degree.In another embodiment, the ambient light intensity that processor 601 can also be acquired according to optical sensor 615, dynamic adjust The acquisition parameters of CCD camera assembly 606.
Proximity sensor 616, also referred to as range sensor are generally arranged at the front panel of electronic equipment 600.Proximity sensor 616 for acquiring the distance between the front of user Yu electronic equipment 600.In one embodiment, when proximity sensor 616 is examined When measuring the distance between the front of user and electronic equipment 600 and gradually becoming smaller, touch display screen 605 is controlled by processor 601 Breath screen state is switched to from bright screen state;When proximity sensor 616 detect between user and the front of electronic equipment 600 away from When from becoming larger, touch display screen 605 being controlled by processor 601 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that structure shown in Fig. 6 does not constitute the restriction to electronic equipment 600, it can To include perhaps combining certain components than illustrating more or fewer components or being arranged using different components.
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application, which can be provided For a server, it may include one or one which, which can generate bigger difference because configuration or performance are different, A above processor (central processing units, CPU) 701 and one or more memory 702, In, it is stored at least one instruction in the memory 702, which is loaded by the processor 701 and executed with reality The method that existing above-mentioned each embodiment of the method provides.Certainly, which can also have wired or wireless network interface, key The components such as disk and input/output interface, to carry out input and output, which can also set including other The component of standby function, this will not be repeated here.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the memory for example including instruction, Above-metioned instruction can be executed by processor to complete the numerical value integration method in above-described embodiment.For example, the computer-readable storage Medium can be read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), tape, floppy disk and light data Store equipment etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, which can store in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It above are only the preferred embodiment of the application, it is all in spirit herein and principle not to limit the application Within, any modification, equivalent replacement, improvement and so on should be included within the scope of protection of this application.

Claims (15)

1. a kind of numerical value integration method, which is characterized in that applied to any node equipment in block catenary system, the method packet It includes:
The transaction output UTXO information of target account not spent is obtained from the credit of the block catenary system;
When according to the UTXO information, determining that the UTXO in the target account meets numerical value integration condition, according to described UTXO information and numerical value integration rules determine the UTXO and to be rotated into second of the first quantity to be produced in the target account The UTXO of quantity, second quantity are less than first quantity;
Numerical value integration request is generated, based on numerical value integration request, generates block;
Into the block catenary system, other node devices send the block, know together to the block;
When the block passes through common recognition, the block is added in block chain;
In the credit in the block catenary system, the UTXO of first quantity in the target account is converted into institute State the UTXO of the second quantity.
2. the method according to claim 1, wherein described obtain mesh from the credit of the block catenary system Mark the UTXO information of account, comprising:
According to the index information of the target account, the target account is obtained from the credit of the block catenary system UTXO information;Wherein, the index information is the account address of the target account;Or, the index information is transaction Hash Value.
3. the method according to claim 1, wherein the UTXO in the target account, which meets numerical value, integrates item Part, comprising:
The quantity of UTXO in the target account is greater than the first amount threshold;Or, the denomination in the target account is less than face The quantity of the UTXO of volume threshold value is greater than the second amount threshold;Or, memory space shared by UTXO in the target account be greater than it is pre- If capacity.
4. the method according to claim 1, wherein described according to the UTXO information and numerical value integration rules, Determine the UTXO of the first quantity to be produced in the target account and the UTXO of the second quantity to be rotated into, comprising:
Using all UTXO in the target account as the UTXO of first quantity to be produced, and according to first number The denomination summation of the UTXO of amount determines the denomination summation of the UTXO of second quantity;Or,
The UTXO that denomination in the target account is less than denomination threshold value is counted as the UTXO of the first quantity, and according to described first The denomination summation of the UTXO of amount determines the denomination summation of the UTXO of second quantity;Or,
According to the historical transactional information of the target account, using the UTXO in the target account within the scope of the first denomination as The UTXO of one quantity, using the UTXO within the scope of the second denomination as the UTXO of the second quantity, the first denomination range is described Frequency in historical transactional information as transaction input is less than the denomination range of the UTXO of first frequency threshold value, second denomination Range is the denomination range in the historical transactional information as the frequency of transaction input greater than the UTXO of second frequency threshold value;
Wherein, the denomination summation of the UTXO according to first quantity determines that the denomination of the UTXO of second quantity is total With, further includes:
According to denomination range belonging to the denomination of UTXO each in the target account, the maximum value in each denomination range is determined The denomination of UTXO as second quantity, second quantity are that one or described second quantity is greater than one.
5. the method according to claim 1, wherein the UTXO of first quantity and second quantity The denomination summation of UTXO is identical.
6. the method according to claim 1, wherein the denomination summation of the UTXO of first quantity is described the The denomination summation of the UTXO of two quantity and default denomination and value;
The method also includes:
When the block passes through common recognition, in the credit, adding denomination in the account of the block catenary system is institute State the UTXO of default denomination.
7. the method according to claim 1, wherein the method also includes:
It receives the numerical value that electronic equipment is sent and integrates request, the numerical value integration request is used to indicate first in target account The transaction output UTXO of quantity not spent is converted to the UTXO of the second quantity, and the numerical value integration request is by the target account In UTXO meet numerical value integration condition triggering;
It is integrated and is requested based on the numerical value, generated block, know together to the block, include that the numerical value is whole in the block Close the content of request;
When the block passes through common recognition, the block is added in block chain;
In the credit of block catenary system, the UTXO of first quantity in the target account is converted to described second The UTXO of quantity.
8. the method according to the description of claim 7 is characterized in that the numerical value integration request that the electronic equipment is sent carries The key of the target account, the key are the unique key for the target account that user equipment provides;Or, the key The key with target account part permission provided for user equipment.
9. the method according to the description of claim 7 is characterized in that described in the credit of block catenary system, by the mesh After the UTXO of first quantity in mark account is converted to the UTXO of second quantity, the method also includes:
When the block passes through common recognition, Xiang Suoshu electronic equipment sends successful integration message.
10. a kind of numerical value integrating apparatus, which is characterized in that described device includes:
Module is obtained, the transaction not spent for obtaining target account from the credit of the block catenary system exports UTXO Information;
The acquisition module is also used to work as that it is whole to determine that the UTXO in the target account meets numerical value according to the UTXO information When conjunction condition, according to the UTXO information and numerical value integration rules, the first quantity to be produced in the target account is determined The UTXO of UTXO and the second quantity to be rotated into, second quantity are less than first quantity;
Module of knowing together, based on numerical value integration request, generates block for generating numerical value integration request;
The common recognition module is also used to other node devices into the block catenary system and sends the block, to the block It knows together;
Adding module, for when the block passes through common recognition, the block to be added in block chain;
Numerical value integrates module, in the credit in the block catenary system, by described first in the target account The UTXO of quantity is converted to the UTXO of second quantity.
11. device according to claim 10, which is characterized in that the acquisition module is used for:
According to the index information of the target account, the target account is obtained from the credit of the block catenary system UTXO information;Wherein, the index information is the account address of the target account;Or, the index information is transaction Hash Value.
12. device according to claim 10, which is characterized in that the UTXO in the target account meets numerical value and integrates item Part, comprising:
The quantity of UTXO in the target account is greater than the first amount threshold;Or, the denomination in the target account is less than face The quantity of the UTXO of volume threshold value is greater than the second amount threshold;Or, memory space shared by UTXO in the target account be greater than it is pre- If capacity.
13. a kind of block catenary system, which is characterized in that the block catenary system includes multiple node devices, the multiple node Any node equipment is for perform claim requirement 1 to performed by the described in any item numerical value integration methods of claim 9 in equipment Operation.
14. a kind of node device, which is characterized in that the node device includes that one or more processors and one or more are deposited Reservoir is stored at least one instruction in one or more of memories, and described instruction is by one or more of processors It loads and executes to realize the operation as performed by claim 1 to claim 9 described in any item numerical value integration methods.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Item instruction, described instruction are loaded by processor and are executed to realize such as claim 1 to the described in any item numerical value of claim 9 Operation performed by integration method.
CN201910672709.9A 2018-06-20 2018-06-20 Numerical value integration method, device, system, node equipment and storage medium Active CN110378678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910672709.9A CN110378678B (en) 2018-06-20 2018-06-20 Numerical value integration method, device, system, node equipment and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910672709.9A CN110378678B (en) 2018-06-20 2018-06-20 Numerical value integration method, device, system, node equipment and storage medium
CN201810635826.3A CN108805560B (en) 2018-06-20 2018-06-20 Numerical value integration method and device, electronic equipment and computer readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810635826.3A Division CN108805560B (en) 2018-06-20 2018-06-20 Numerical value integration method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110378678A true CN110378678A (en) 2019-10-25
CN110378678B CN110378678B (en) 2021-06-29

Family

ID=64083625

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810635826.3A Active CN108805560B (en) 2018-06-20 2018-06-20 Numerical value integration method and device, electronic equipment and computer readable storage medium
CN201910672709.9A Active CN110378678B (en) 2018-06-20 2018-06-20 Numerical value integration method, device, system, node equipment and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201810635826.3A Active CN108805560B (en) 2018-06-20 2018-06-20 Numerical value integration method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN108805560B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161071A (en) * 2019-12-30 2020-05-15 致信互链(北京)科技有限公司 Data processing method, device, equipment and storage medium based on block chain
CN111598571A (en) * 2020-07-20 2020-08-28 百度在线网络技术(北京)有限公司 Transaction processing method, device, equipment and storage medium of block chain
CN112115498A (en) * 2020-09-28 2020-12-22 上海申铁信息工程有限公司 Block chain-based data access authority control method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109360101A (en) * 2018-12-18 2019-02-19 百度在线网络技术(北京)有限公司 A kind of block chain transaction processing method, device, equipment and medium
MY192336A (en) 2019-07-23 2022-08-17 Advanced New Technologies Co Ltd Managing transactions on blockchain networks
CN110687821B (en) * 2019-11-14 2021-10-29 腾讯科技(深圳)有限公司 Intelligent home control system and method based on block chain
CN111027947B (en) * 2019-12-06 2023-09-19 湖北文理学院 UTXO wallet selection method, device, storage medium and device
CN113409140A (en) * 2021-05-27 2021-09-17 卓尔智联(武汉)研究院有限公司 Block chain data processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170301033A1 (en) * 2016-04-18 2017-10-19 R3 Ltd. System and method for managing transactions in dynamic digital documents
CN107369084A (en) * 2017-06-26 2017-11-21 中国人民银行数字货币研究所 A kind of settlement method and system of interbank digital cash
US20170337534A1 (en) * 2015-11-06 2017-11-23 Cable Television Laboratories, Inc Systems and methods for blockchain virtualization and scalability
CN108171511A (en) * 2017-12-26 2018-06-15 陈晶 A kind of block chain model with privacy protection function

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016164310A1 (en) * 2015-04-05 2016-10-13 Digital Asset Holdings Digital asset intermediary electronic settlement platform
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106982205B (en) * 2017-03-01 2020-05-19 中钞信用卡产业发展有限公司杭州区块链技术研究院 Block chain-based digital asset processing method and device
CN106920169A (en) * 2017-03-07 2017-07-04 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of digital ticket method of commerce and system based on block chain and digital cash
CN107358525B (en) * 2017-06-26 2021-05-25 中国人民银行数字货币研究所 Account transaction method and device
CN107392608B (en) * 2017-07-11 2020-07-07 北京博晨技术有限公司 Block chain system-based digital asset transaction method and block chain system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170337534A1 (en) * 2015-11-06 2017-11-23 Cable Television Laboratories, Inc Systems and methods for blockchain virtualization and scalability
US20170301033A1 (en) * 2016-04-18 2017-10-19 R3 Ltd. System and method for managing transactions in dynamic digital documents
CN107369084A (en) * 2017-06-26 2017-11-21 中国人民银行数字货币研究所 A kind of settlement method and system of interbank digital cash
CN108171511A (en) * 2017-12-26 2018-06-15 陈晶 A kind of block chain model with privacy protection function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161071A (en) * 2019-12-30 2020-05-15 致信互链(北京)科技有限公司 Data processing method, device, equipment and storage medium based on block chain
CN111598571A (en) * 2020-07-20 2020-08-28 百度在线网络技术(北京)有限公司 Transaction processing method, device, equipment and storage medium of block chain
CN112115498A (en) * 2020-09-28 2020-12-22 上海申铁信息工程有限公司 Block chain-based data access authority control method and device
CN112115498B (en) * 2020-09-28 2023-12-01 上海申铁信息工程有限公司 Data access authority control method and device based on blockchain

Also Published As

Publication number Publication date
CN110378678B (en) 2021-06-29
CN108805560A (en) 2018-11-13
CN108805560B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN110378678A (en) Numerical value integration method, device, system, node device and storage medium
CN109615516B (en) Resource transfer method, device, electronic equipment and storage medium
CN109615515B (en) Credit right certificate transfer method, device, electronic equipment and storage medium
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN109905318A (en) Apparatus control method, device and storage medium
CN110690999B (en) Bandwidth allocation method, device and equipment based on block chain and storage medium
CN111159153B (en) Service data verification method, device, computer equipment and storage medium
CN110213153A (en) Display methods, acquisition methods, device, terminal and the storage medium of unread message
CN110147380A (en) Data-updating method, device, server and storage medium
CN109711832A (en) The methods, devices and systems paid
CN110322151A (en) Platform enters system, method, equipment and storage medium
CN110517032A (en) Resource transfers method, system, device, server and storage medium
CN110677262B (en) Information notarization method, device and system based on blockchain
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN109218751A (en) The method, apparatus and system of recommendation of audio
CN108616835A (en) Internet resources acquisition methods, device, system and storage medium based on browser
CN110365501A (en) The method and device that processing is added in group is carried out based on graphic code
CN110535890A (en) The method and apparatus that file uploads
CN110597840B (en) Partner relationship establishment method, device, equipment and storage medium based on blockchain
CN108495183A (en) The method and apparatus for showing album information
CN110097368A (en) Recognition methods, server, terminal and the service equipment of facial image
CN108829464B (en) Service starting method and device, computer equipment and storage medium
CN111198922A (en) Game resource management method and device based on block chain
CN110134902A (en) Data information generation method, device and storage medium
CN109036463A (en) Obtain the method, apparatus and storage medium of the difficulty information of song

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40016174

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant