Summary of the invention
The embodiment of the present application provides a kind of account data processing method and relevant device based on block chain, for optimizing
Process of exchange in block catenary system.
The embodiment of the present application first aspect provides a kind of account data processing method based on block chain, the method packet
It includes:
The incoming instruction of the first account is obtained, first account includes Account positioned at the first block catenary system
Account and/or the sub- account of UTXO, wherein the sub- account of Account and the sub- account of the UTXO include at least one
Token, the incoming instruction include the identification information corresponding to first account;
When the identification information for determining first account meets preset condition, the account letter of first account is obtained
Breath, the account information of first account includes the block height synchronized;
When highest block height of the block height that first account has synchronized less than the first block catenary system, pass through
The full dose node of the first block catenary system, which obtains, does not synchronize block;
The account information of first account is updated according to the not synchronous block.
Optionally, described to obtain first account when determining first account includes the sub- account of the Account
Account information include:
The structural body information of the sub- account of the Account is obtained, the sub- account of Account includes the first token;
The structural body information for parsing the sub- account of the Account obtains the account information of the first token;
The account information that the block synchronous according to updates first account includes:
Parsing is described not to synchronize block, obtains the connected transaction information with the first token;
Utilize the account information with the first token described in the connected transaction information update of the first token.
Optionally, described to obtain first account when determining first account includes the sub- account of the UTXO
Account information includes:
The structural body information of the sub- account of the UTXO is obtained, the sub- account of Account includes the 2nd token;
The structural body information for parsing the sub- account of the UTXO obtains the account information of the 2nd token;
The account information that the block synchronous according to updates first account includes:
Parsing is described not to synchronize block, obtains the connected transaction information with the 2nd token;
Utilize the account information of the 2nd token of connected transaction information update with the 2nd token.
Optionally, the incoming instruction further includes unlocking information, the method also includes:
The key information of first account is obtained according to the key file that the unlocking information unlocks first account;
The account information that the block synchronous according to updates first account includes:
The not synchronous block is parsed using the key information of first account, obtains block information to be updated;
The account information of first account is updated using the block information to be updated.
Optionally, after updating the account information of first account according to the not synchronous block, the method is also
Include:
Obtain initial transaction information;
Transaction procedure is obtained from the full dose node in the first block chain according to the initial transaction information to take;
It is signed using the key information of first account to the initial transaction information and transaction procedure expense
It is packaged, obtains the first Transaction Information;
First Transaction Information is sent to the full dose node of the first block catenary system, so that firstth area
The full dose node of block catenary system broadcasts first Transaction Information.
Optionally, the account information for obtaining first account specifically includes:
Obtain the prestored information of at least two accounts, at least two account includes first account, it is described at least
Two accounts are corresponded at least two block catenary systems, and at least two blocks catenary system includes the first block chain
System;
Described first is obtained in the prestored information of at least two account according to the identification information of first account
The account information of account.
The embodiment of the present application second aspect provides a kind of asset management equipment, and the equipment includes memory and processing
Device is stored with the account data processing routine based on block chain that can be run on the processor on the memory, described
Such as any one of first aspect and embodiment are realized when account data processing routine based on block chain is executed by the processor
The method.
Optionally, the equipment is the node for forming CDN network or block chain network.
The embodiment of the present application third aspect provides a kind of account data processing system based on block chain, the method packet
It includes:
First acquisition unit, for obtaining the incoming instruction of the first account, first account includes being located at the first block
The sub- account of the Account of catenary system and/or the sub- account of UTXO, wherein the sub- account of the Account and the sub- account of the UTXO are equal
Including at least one token, the incoming instruction includes the identification information corresponding to first account;
Second acquisition unit, for when the identification information for determining first account meets preset condition, described in acquisition
The account information of first account, the account information of first account include the block height synchronized;
Third acquiring unit, the block height for having synchronized when first account is most less than the first block catenary system
When high block height, is obtained by the full dose node of the first block catenary system and do not synchronize block;
Updating unit, for updating the account information of first account according to the not synchronous block.
Optionally, when determining first account includes the sub- account of the Account, the second acquisition unit is specific
For:
The structural body information of the sub- account of the Account is obtained, the sub- account of Account includes the first token;
The structural body information for parsing the sub- account of the Account obtains the account information of the first token;
The updating unit is specifically used for:
Parsing is described not to synchronize block, obtains the connected transaction information with the first token;
Utilize the account information with the first token described in the connected transaction information update of the first token.
Optionally, when determining first account includes the sub- account of the UTXO, the second acquisition unit is specifically used
In:
The structural body information of the sub- account of the UTXO is obtained, the sub- account of Account includes the 2nd token;
The structural body information for parsing the sub- account of the UTXO obtains the account information of the 2nd token;
The updating unit is specifically used for:
Parsing is described not to synchronize block, obtains the connected transaction information with the 2nd token;
Utilize the account information of the 2nd token of connected transaction information update with the 2nd token.
Optionally, the incoming instruction further includes unlocking information, the system also includes:
Unlocking unit, the key file for unlocking first account according to the unlocking information obtain first account
The key information at family;
The updating unit is specifically used for:
The not synchronous block is parsed using the key information of first account, obtains block information to be updated;
The account information of first account is updated using the block information to be updated.
Optionally, the system also includes:
4th acquiring unit, for obtaining initial transaction information;
5th acquiring unit, for being obtained from the full dose node in the first block chain according to the initial transaction information
Take transaction procedure expense;
Signature unit, for using the key information of first account to the initial transaction information and the transaction hand
It continues to pay dues and carries out signature packing, obtain the first Transaction Information;
Transmission unit, for first Transaction Information to be sent to the full dose node of the first block catenary system, with
So that the full dose node of the first block catenary system broadcasts first Transaction Information.
Optionally, the second acquisition unit is specifically used for:
Obtain the prestored information of at least two accounts, at least two account includes first account, it is described at least
Two accounts are corresponded at least two block catenary systems, and at least two blocks catenary system includes the first block chain
System;
Described first is obtained in the prestored information of at least two account according to the identification information of first account
The account information of account.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, the computer readable storage medium
On be stored with the account data processing routine based on block chain, the account data processing routine based on block chain can be by one
Or multiple processors execute, to realize the account number based on block chain as described in any one of first aspect and embodiment
According to processing method.
The 5th aspect of the embodiment of the present application provides a kind of computer program product, which is characterized in that refers to including computer
Enable, when run on a computer, allow computer as described in any one of first aspect and embodiment based on
The account data processing method of block chain.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that the access for obtaining the first account refers to
It enables, first account includes the sub- account of Account and/or the sub- account of UTXO positioned at the first block catenary system, wherein described
The sub- account of Account and the sub- account of the UTXO include at least one token, and the incoming instruction includes corresponding to described the
The identification information of one account;When the identification information for determining first account meets preset condition, first account is obtained
Account information, the account information of first account includes the block height synchronized;It has been synchronized when first account
Block height less than the first block catenary system highest block height when, obtained by the full dose node of the first block catenary system
It takes and does not synchronize block;The account information of first account is updated according to the not synchronous block.Wherein, the first account packet
Include the sub- account of Account and/or the sub- account of UTXO positioned at the first block catenary system, and the sub- account of the Account and described
The sub- account of UTXO includes at least one token, therefore can be by the first account come to multiple sub- accounts in the account
Token carries out asset management, compared with obtaining the mode of account information by way of calling intelligent contract in the prior art, leads to
Crossing an account can realize that the processing of multiple token account informations mentions to optimize the management process of token assets
User experience is risen.
Specific embodiment
In block chain technology, Token refer to a kind of token issued by intelligent contract in block chain, integral,
Token etc. can circulate in the block chain ecosystem, when being circulated, generally Token can be considered as generation
Coin, such as bit coin, ether coin etc..In current block catenary system, token is exactly that the assets traded of user prove,
There are mainly two types of preserving type is recorded, that is, the transaction being not used by exports (UTXO, Unspent Transaction for it
Output) mode and Account mode, when being traded, system by block chain node call intelligent contract come pair
It is each to trade, issuing amount, inflation etc. are specified in intelligent contract code.Token has the speciality of exchange toward contact,
The process that token is exchanged among different users also carries out (recording the token of each user in contract all in token contract
Remaining sum).However, an intelligent contract corresponds to a token in the prior art, in addition, the same user is in the same block
When creating multiple accounts in catenary system and being traded respectively, it is necessary to be attached and be needed by multiple client and block catenary system
It login authentication can just trade repeatedly, so that process of exchange of the user in block chain is excessively cumbersome, to influence to use
Family experience.For this purpose, the embodiment of the present application provides a kind of account data processing method and relevant device based on block chain, it is used for
Optimize the process of exchange in block catenary system.
Referring to Fig. 1, a kind of one embodiment of the account data processing method based on block chain in the embodiment of the present application
Include:
101, the incoming instruction of the first account is obtained;
In the present embodiment, asset management equipment obtains the incoming instruction of the first account, wherein first account includes position
In the sub- account of Account and/or the sub- account of UTXO of the first block catenary system, wherein the sub- account of the Account and described
The sub- account of UTXO includes at least one token, and the incoming instruction includes the identification information corresponding to first account.
Specifically, which can be PC (Personal Computer, PC), be also possible to intelligence
It can mobile phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage equipment terminal device.
Operation has software program to execute the correlation step in the embodiment of the present application on the terminal device.With the Assets Reorganization Taking
Manage equipment be smart phone for, only to be by the wallet APP on smart phone in the present embodiment and subsequent embodiment
The local wallet wallet services APP to realize as explanation.Specifically see the system connection framework in Fig. 5-1, wallet sheet
Ground wallet service 505 is communicated by full dose node 504 with block catenary system 503.As a preferred embodiment, this
A full dose node 504 (peer node) can be local peer node made of the code compilation increased income using official, or make
Peer node is disclosed with trusted third parties, can be led to 505 examples of processes of wallet by RPC interface and peer node
Letter.
In addition, the incoming instruction may include the beacon information corresponding to first account, such as it can be first account
The relevant informations such as the account at family and/or password, the beacon information that first account can be used in wallet APP in the next steps are come
Be unlocked equal relevant operations, wherein, the first account include positioned at the first block catenary system the sub- account of Account and/or
The sub- account of UTXO, wherein the sub- account of Account and the sub- account of the UTXO include at least one token, that is,
Say, first account correspond to the first block chain, in the block in the first block chain, include the sub- account of Account and/
Or the corresponding token information of the sub- account of UTXO, illustratively, the sub- account of each Account and/or the sub- account of UTXO can wrap
Include one or more token account.
102, when the identification information for determining first account meets preset condition, the account of first account is obtained
Information, the account information of first account include the block height synchronized;
Specifically, which, which can be, verifies the beacon information of first account according to the data prestored, when this
When the beacon information and prestored information of first account match, it can determine that it meets preset condition.In addition, when determine this first
When the identification information of account meets preset condition, that is, confirm that the access relevant operation of this secondary account is legal, at this point it is possible to the
The account information of first account is loaded in one block catenary system, that is, carries out the initialization operation of account, load wallet operation
Some data, to get the account information of the first account.
In this step, specifically can be user calls the unlock_account interface of wallet so that the equipment obtains
The incoming instruction of first account, wherein the first account includes the corresponding token account of sub- account in a block catenary system
Family.In addition, the equipment can get local data first in this step, that is to say, that the account database from wallet local
In acquire the account information of the first account, wherein the account information of first account includes the block height synchronized,
That is finding the highest block that update is completed in history in the local database, and obtain the height of the block.
103, when highest block height of the block height that first account has synchronized less than the first block catenary system,
It is obtained by the full dose node of the first block catenary system and does not synchronize block;
In the present embodiment, when the equipment finds block height that first account has synchronized less than the first block catenary system
Highest block height when, then obtained by the full dose node of the first block catenary system and do not synchronize block.
That is, the equipment is attached by wallet and the full dose node in the first block catenary system, and inquire
Highest block height in the full dose node, that is, the block of highest block reached common understanding in the first block catenary system
Highly, if the block height that the first account for acquiring has synchronized in discovery step 102 most less than the first block catenary system
It when high block height, is then obtained by the full dose node of the first block catenary system and does not synchronize block, that is to say, that can be from the
It is locally downloading that block will not be synchronized in one block catenary system.
104, the account information of first account is updated according to the not synchronous block.
In the present embodiment, the equipment according to step 103 obtain described in synchronous block update the account of first account
Family information, that is to say, that the account information of the first account in local data base is updated using not synchronous block, thus
So that the corresponding highest block height of the account information of the first account in local data base matches with the first block chain.
In addition, can also include solution in the incoming instruction for the first account that step 101 is got as a preferred embodiment
Unlocking information is locked, to obtain the key information of first account according to the key file for unlocking first account.At this
In step, it specifically can be and parse the not synchronous block using the key information of first account, obtain block to be updated
Then information reuses the account information that the block information to be updated updates first account.
In the present embodiment, the incoming instruction of the first account is obtained, first account includes being located at the first block catenary system
The sub- account of Account and/or the sub- account of UTXO, wherein the sub- account of Account and the sub- account of the UTXO include to
A kind of few token, the incoming instruction include the identification information corresponding to first account;When determining first account
When identification information meets preset condition, the account information of first account is obtained, the account information of first account includes
The block height synchronized;When the block height that first account has synchronized is high less than the highest block of the first block catenary system
When spending, is obtained by the full dose node of the first block catenary system and do not synchronize block;Institute is updated according to the not synchronous block
State the account information of the first account.Wherein, first account includes the sub- account of Account positioned at the first block catenary system
And/or the sub- account of UTXO, and the sub- account of the Account and the sub- account of the UTXO include at least one token, therefore can
To carry out asset management by the first account come the token to multiple sub- accounts in the account, and pass through tune in the prior art
It is compared with the mode that the mode of intelligent contract obtains account information, can realize that multiple token accounts are believed by an account
The processing of breath, to optimize the management process of token assets, the user experience is improved.
Based on embodiment described in Fig. 1, the account information that first account is obtained in wherein step 102 can be further
Ground is loaded according to the Account Type for the sub- account for including in the first account, that is to say, that identify the Account Type of sub- account,
Wherein, Account Type includes UTXO or Account, after this, is not synchronized according to the Account Type of sub- account according to described
Block updates the account information of sub- account.That is, with specific reference to the type progress of at least two token in the first account
Property account processing have a UTXO for common Account Type, Account both, Fig. 2 will be passed through respectively below
It is described with account data treatment process of Fig. 3 specific embodiment to both Account Types.
One, when determining first account includes the sub- account of the Account;
Referring to Fig. 2, based on embodiment described in Fig. 1, in a kind of another embodiment of account data processing method, step
Rapid 102 account informations for obtaining first account include:
201, the structural body information of the sub- account of Account is obtained;
In the present embodiment, which obtains the structural body information of the sub- account of the Account, the sub- account of Account
Including the first token.
Specifically, the available structural body information to the sub- account of Account in the present embodiment, and wherein,
The sub- account of Account may include at least one token, this sentences one of token and is set as the first token.
202, the structural body information for parsing the sub- account of Account, obtains the account information of the first token;
In the present embodiment, the structural body information for the sub- account of Account which obtains is obtained described
The account information of first token.
Specifically, it can directly read and obtain in " Tokens " field in the structural body information of the sub- account of Account
The account information of the first token is got,
The definition of Account structure of accounts:
Wherein, the structural body information of the sub- account of the Account can preserve the account information of at least one token,
That is multiple token can be corresponding in the structural body information of the sub- account of the Account, in the present embodiment wherein only with
First token is as one of those as example.
Step 104 includes: according to the account information that the synchronous block updates first account
203, parsing is described does not synchronize block, obtains the connected transaction information with the first token;
In the present embodiment, parses, can be obtained in the not synchronous block which acquires step 103 wherein
Get the connected transaction information with the first token, that is to say, that obtain the first account the first token historical transaction record,
The connected transaction information such as current remaining sum.
204, the account information with the first token described in the connected transaction information update of the first token is utilized;
In the present embodiment, which is specifically to use the account of the first token of connected transaction information update of the first token
Family information, since the Account Type of the first token is Account account, renewal process can be direct use with it is described
The connected transaction information of first token replaces the account information of the first account acquired in step 202, to complete data
It updates.
Two, when determining first account includes the sub- account of the UTXO;
Referring to Fig. 3, based on embodiment described in Fig. 1, in a kind of another embodiment of account data processing method, step
Rapid 102 account informations for obtaining first account include:
301, the structural body information of the sub- account of UTXO is obtained;
In the present embodiment, which obtains the structural body information of the sub- account of the UTXO, and the sub- account of UTXO includes the
Two token.
Specifically, the available structural body information to the sub- account of UTXO in the present embodiment, and wherein, the sub- account of UTXO
Family may include at least one token, this sentences one of token and is set as the 2nd token.
302, the structural body information for parsing the sub- account of UTXO, obtains the account information of the 2nd token;
In the present embodiment, the structural body information for the sub- account of Account which obtains is obtained described
The account information of first token.
Specifically, it can directly read and get in " Tokens " field in the structural body information of the sub- account of UTXO
The account information of 2nd token,
The definition of UTXO structure of accounts
Wherein,
UTXOOutputDetail transaction detailed construction
Specifically wherein, the structural body information of the sub- account of the UTXO can preserve the account information of at least one token,
That is, multiple token can be corresponding in the structural body information of the sub- account of the UTXO, wherein only in the present embodiment
Two token are as one of those as example.
Step 104 includes: according to the account information that the synchronous block updates first account
303, parsing is described does not synchronize block, obtains the connected transaction information with the 2nd token;
In the present embodiment, parses, can be obtained in the not synchronous block which acquires step 103 wherein
Get the connected transaction information with the first token, that is to say, that obtain the first account the first token historical transaction record,
The connected transaction information such as current remaining sum.
304, the account information with the 2nd token described in the connected transaction information update of the 2nd token is utilized;
In the present embodiment, which is specifically to use the account of the first token of connected transaction information update of the 2nd token
Family information, since the Account Type of the first token is UTXO account, renewal process needs will be with the 2nd token's
The account information of chapter 2 tiger acquired in connected transaction information and step 202 carries out fusion calculation, to calculate this
The data update to the account information of the 2nd token is completed in the account information of corresponding 2nd token of first account.
In the embodiment of the present application, based on embodiment described in Fig. 1 to Fig. 3, block is not specifically synchronized according to described in step 104
After the account information for updating first account, that is to say, that the equipment and complete the first account account information it is same
Step, at this point it is possible to be traded using first account, i.e., token corresponding to account neutron account carries out the behaviour such as transfer accounts
Make.Below referring to Fig. 4, based on embodiment described in Fig. 1 to Fig. 3, in a kind of another embodiment of account data processing method
In, specifically after step 104 updates the account information of first account according to the synchronous block, this method can be with
Include:
401, initial transaction information is obtained;
In the present embodiment, which can be directly obtained the initial transaction information by receiving the input information of user,
It is also possible to get the initial transaction information and then information by receiving the transmission of other terminals, herein without limitation.In addition,
The initial transaction information may include the beneficiary address of the first account, number of transaction, the transaction procedure expense upper limit either other
Transaction related information, herein without limitation.
402, transaction procedure is obtained from the full dose node in the target block chain according to the initial transaction information to take;
In the present embodiment, the initial transaction information which gets according to step 401 is from the target block chain
Transaction procedure is obtained in full dose node to take, specifically, which can establish connection according to normal process and full dose node, and
The related content of the initial transaction information is sent to the full dose node afterwards, so that the full dose node will trade according to normal process
The relevant information of service charge is back to the equipment.
403, progress is taken to the initial transaction information and the transaction procedure using the key information of first account
Signature is packaged, and obtains the first Transaction Information;
In the present embodiment, the equipment is using the key information of the first account obtained in step 104 to initial transaction information
Signature packing is carried out with transaction procedure expense, the first Transaction Information is obtained, with so that pre- ancestor can be used in other nodes
Verifying is decrypted to first Transaction Information in the public key information of cloth.
404, first Transaction Information is sent to the full dose node of the first block catenary system;
In the present embodiment, which is sent to first Transaction Information at the full dose section of the first block catenary system
Point, so that the full dose node of the first block catenary system broadcasts first Transaction Information.
Specifically, which is sent to the first Transaction Information after the full dose node in the first block catenary system, so that
The full dose node can broadcast first Transaction Information, and according to the feedback information of other nodes and then generate for this
The cryptographic Hash of first Transaction Information stateful transaction, and the cryptographic Hash is back to the equipment, so that the equipment gets first
The relevant informations such as the stateful transaction of Transaction Information.
The structure of deal mode in Fig. 5-2 is please referred to, specifically may include in wallet wallet APP in the device
The multiple accounts prestored, wherein the corresponding block catenary system of an account, and an account can correspond to the block linkwork
Multiple token in system.Equipment is before being traded, and specific there may be the processes of a selection confirmation, referring to Fig. 5,
Based on embodiment described in Fig. 1, in a kind of another embodiment of account data processing method, described in acquisition described in step 102
The account information of first account specifically includes:
501, the prestored information of at least two accounts is obtained;
In the present embodiment, which obtains the prestored information of at least two accounts, and at least two account includes described
First account, at least two account are corresponded at least two block catenary systems, at least two blocks catenary system
Including the first block catenary system.
Specifically, equipment can get the prestored information of at least two account in the database of itself, wherein should
Prestored information may include the relevant corresponding informance such as the account of each account, password, wherein at least two account is one by one
Corresponding at least two block catenary systems, and at least two blocks catenary system includes the first block catenary system.
502, described in being obtained in the prestored information of at least two account according to the identification information of first account
The account information of first account.
In the present embodiment, which can be according to the identification information of first account in the pre- of at least two account
It deposits and unlocks first account in information, i.e., can determine that the unlock instruction is corresponding according to the beacon information of first account
Block catenary system, and it being judged according to prestored information, when the beacon information for the first account for determining input meet it is pre-
If when condition, then obtaining the account information of the first account in the prestored information of at least two account, in the next steps may be used
Subsequent data synchronization updating load can be carried out after account information to use the first account and uploads new transaction etc..
In the present embodiment, as shown in fig. 6, asset management equipment 1 can be PC (Personal Computer, personal electricity
Brain), it is also possible to smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage are set
Standby terminal device.
The equipment 1 can be the node of composition CDN network or block chain network.
The asset management equipment 1 may include memory 11, processor 12 and bus 13.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11
It can be the internal storage unit of asset management equipment 1, such as the hard disk of the asset management equipment 1 in some embodiments.It deposits
Reservoir 11 is also possible in further embodiments on the External memory equipment of asset management equipment 1, such as asset management equipment 1
The plug-in type hard disk of outfit, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD)
Card, flash card (Flash Card) etc..Further, memory 11 can also both include the storage inside of asset management equipment 1
Unit also includes External memory equipment.Memory 11 can be not only used for the application software that storage is installed on asset management equipment 1
And Various types of data, such as the code etc. of the account data processing routine 01 based on block chain, it can be also used for temporarily storing
Data through exporting or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11
Code or processing data, such as execute the account data processing routine 01 etc. based on block chain.
The bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation
PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA)
Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 6 only with one slightly
Line indicates, it is not intended that an only bus or a type of bus.
Further, asset management equipment can also include network interface 14 (being not drawn into diagram), and network interface 14 can
Choosing may include wireline interface and/or wireless interface (such as WI-FI interface, blue tooth interface), commonly used in the equipment 1 with
Communication connection is established between other electronic equipments.
Optionally, which can also include user interface, and user interface may include display (Display), input
Unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional
Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED
(Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate
Referred to as display screen or display unit, for being shown in the information handled in asset management equipment 1 and for showing visually
User interface.
Fig. 6 illustrates only the asset management of the account data processing routine 01 with component 11-14 and based on block chain
Equipment 1, it will be appreciated by persons skilled in the art that the structure shown in Fig. 6 does not constitute the restriction to asset management equipment 1,
It may include perhaps combining certain components or different component layouts than illustrating less perhaps more components.
The application is illustrated from the angle of virtual bench below, referring to Fig. 7, one of the embodiment of the present application base
In the account data processing system of block chain, the system comprises:
First acquisition unit 701, for obtaining the incoming instruction of the first account, first account includes being located at the firstth area
The sub- account of the Account of block catenary system and/or the sub- account of UTXO, wherein the sub- account of Account and the sub- account of the UTXO
It include at least one token, the incoming instruction includes the identification information corresponding to first account;
Second acquisition unit 702, for obtaining institute when the identification information for determining first account meets preset condition
The account information of the first account is stated, the account information of first account includes the block height synchronized;
Third acquiring unit 703, the block height for having synchronized when first account is less than the first block catenary system
Highest block height when, obtained by the full dose node of the first block catenary system and do not synchronize block;
Updating unit 704, for updating the account information of first account according to the not synchronous block.
In the present embodiment, first acquisition unit 701, for obtaining the incoming instruction of the first account, the first account packet
Include the sub- account of Account and/or the sub- account of UTXO positioned at the first block catenary system, wherein the sub- account of the Account and institute
Stating the sub- account of UTXO includes at least one token, and the incoming instruction includes the identification information corresponding to first account;
Second acquisition unit 702, for obtaining first account when the identification information for determining first account meets preset condition
The account information at family, the account information of first account include the block height synchronized;Third acquiring unit 703, is used for
When highest block height of the block height that first account has synchronized less than the first block catenary system, pass through described first
The full dose node of block catenary system, which obtains, does not synchronize block;Updating unit 704, for according to the not synchronous block update
The account information of first account.Wherein, first account include positioned at the first block catenary system the sub- account of Account and/
Or the sub- account of UTXO, and the sub- account of the Account and the sub- account of the UTXO include at least one token, therefore can be with
Asset management is carried out come the token to multiple sub- accounts in the account by the first account, and passes through calling in the prior art
The mode that the mode of intelligent contract obtains account information is compared, and can realize multiple token account informations by an account
Processing, to optimize the management process of token assets, the user experience is improved.
As a preferred embodiment, when determining first account includes the sub- account of the Account, described second is obtained
Unit 702 is taken to be specifically used for:
The structural body information of the sub- account of the Account is obtained, the sub- account of Account includes the first token;
The structural body information for parsing the sub- account of the Account obtains the account information of the first token;
The updating unit 704 is specifically used for:
Parsing is described not to synchronize block, obtains the connected transaction information with the first token;
Utilize the account information with the first token described in the connected transaction information update of the first token.
As a preferred embodiment, when determining first account includes the sub- account of the UTXO, described second is obtained
Unit specific 702 is used for:
The structural body information of the sub- account of the UTXO is obtained, the sub- account of Account includes the 2nd token;
The structural body information for parsing the sub- account of the UTXO obtains the account information of the 2nd token;
The updating unit 704 is specifically used for:
Parsing is described not to synchronize block, obtains the connected transaction information with the 2nd token;
Utilize the account information of the 2nd token of connected transaction information update with the 2nd token.
As a preferred embodiment, the incoming instruction further includes unlocking information, the system also includes:
Unlocking unit 705, the key file for unlocking first account according to the unlocking information obtain described
The key information of one account;
The updating unit 704 is specifically used for:
The not synchronous block is parsed using the key information of first account, obtains block information to be updated;
The account information of first account is updated using the block information to be updated.
Optionally, the system also includes:
4th acquiring unit 706, for obtaining initial transaction information;
5th acquiring unit 707, for according to the initial transaction information from the full dose node in the first block chain
Middle acquisition transaction procedure takes;
Signature unit 708, for using the key information of first account to the initial transaction information and the friendship
Easy service charge carries out signature packing, obtains the first Transaction Information;
Transmission unit 709, for first Transaction Information to be sent to the full dose node of the first block catenary system,
So that the full dose node of the first block catenary system broadcasts first Transaction Information.
Optionally, the second acquisition unit 702 is specifically used for:
Obtain the prestored information of at least two accounts, at least two account includes first account, it is described at least
Two accounts are corresponded at least two block catenary systems, and at least two blocks catenary system includes the first block chain
System;
Described first is obtained in the prestored information of at least two account according to the identification information of first account
The account information of account.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.