CN112202936B - Account address coordinated method and system - Google Patents

Account address coordinated method and system Download PDF

Info

Publication number
CN112202936B
CN112202936B CN202011016349.6A CN202011016349A CN112202936B CN 112202936 B CN112202936 B CN 112202936B CN 202011016349 A CN202011016349 A CN 202011016349A CN 112202936 B CN112202936 B CN 112202936B
Authority
CN
China
Prior art keywords
address
account
coordinate
account address
transaction data
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.)
Active
Application number
CN202011016349.6A
Other languages
Chinese (zh)
Other versions
CN112202936A (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.)
Guangdong Jiuhe Cloud Computing Co ltd
Original Assignee
Guangdong Jiuhe Cloud Computing 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 Guangdong Jiuhe Cloud Computing Co ltd filed Critical Guangdong Jiuhe Cloud Computing Co ltd
Priority to CN202011016349.6A priority Critical patent/CN112202936B/en
Publication of CN112202936A publication Critical patent/CN112202936A/en
Application granted granted Critical
Publication of CN112202936B publication Critical patent/CN112202936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a method and a system for coordinating account addresses. The account address coordinate method comprises the following steps: the node receives transaction data and analyzes account addresses in the transaction data; judging whether a coordinate address corresponding to the account address exists in a preset address mapping list; when the coordinate address corresponding to the account address exists in the address mapping list, the account address coordinate in the transaction data is replaced by the coordinate address, so that the account address is coordinated. The technical scheme of the invention solves the technical problems that the account address occupies too much transaction data space, so that the transaction data occupies too much memory space and the transmission efficiency is lower in the related technology.

Description

Account address coordinated method and system
Technical Field
The invention relates to the technical field of blockchain, in particular to a method and a system for coordinating account addresses.
Background
In the prior art, when a transaction occurs, a node receiving the transaction will put the transaction into a transaction pool, broadcast the transaction to other nodes, and finally package the transaction into a block for transaction persistence storage. The broadcast and stored transaction data will typically include two fields, a transaction sender address and a transaction receiver address, respectively.
However, each account does not have only one transaction, and the sender addresses of the transactions of the same account are the same, so that the transmission and storage of duplicate addresses are avoided for each transaction circulation.
For example, the ethernet house is 42 bytes in length of each address, the transaction body has 84 bytes of address occupation, 34 bytes of each address are less in bit coin, 68 bytes are two, and the total size of address occupation in each transaction is at least 10% through statistics. By the present time, the synchronous data volume of the Ethernet and the bitcoin reaches 300G, and then the memory of at least tens of G is occupied on the cost of the address.
The inventor finds that the length of the address determines the size of the transaction body, and the transaction body is reduced to reduce the memory space occupied by the transaction pool on the one hand, reduce the disk space occupied by persistence on the other hand, and greatly improve the transmission efficiency of the transaction on the other hand.
The inventor also found that the above-mentioned optimization effect is achieved by shortening the address length in the transaction body and reducing the size of the transaction body in the form of account coordinates.
Therefore, a new method and system for coordinating account addresses are needed to solve the above-mentioned problems.
Disclosure of Invention
The invention mainly aims to provide an account address coordinated method, which aims to solve the technical problems that in the related art, account addresses occupy too much transaction data space, so that the transaction data occupy too much memory space and the transmission efficiency is lower.
In order to achieve the above purpose, the present invention provides a method for coordinating account addresses, comprising the following steps:
the node receives transaction data and analyzes account addresses in the transaction data;
judging whether a coordinate address corresponding to the account address exists in a preset address mapping list;
when the coordinate address corresponding to the account address exists in the address mapping list, the account address coordinate in the transaction data is replaced by the coordinate address, so that the account address is coordinated.
Preferably, the method further comprises the following steps:
after carrying out serialization operation on the transaction data, judging whether the account address in the transaction data is coordinated;
when the account address is coordinated, the transaction data is stored in a lasting mode;
and when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordinated algorithm.
And after the account address in the transaction data is replaced by the coordinate address, the transaction data is stored in a lasting mode.
Preferably, after the step of generating the coordinate address corresponding to the account address according to the preset coordinated algorithm, the method further includes the following steps:
and adding the account address, the coordinate address and the corresponding relation between the account address and the coordinate address into the address mapping table.
Preferably, the account address includes a transmitting account address and a receiving account address, and the coordinate address includes a transmitting coordinate address and a receiving coordinate address; the coordinated account address refers to that the sending account address and the receiving account address are respectively replaced by the sending coordinate address and the receiving coordinate address;
the step of judging whether the preset address mapping list has the coordinate address corresponding to the account address or not specifically comprises the following steps:
judging whether a sending coordinate address corresponding to the sending account address exists in the address mapping list or not, and whether a receiving coordinate address corresponding to the receiving account address exists in the address mapping list or not;
when the coordinate address corresponding to the account address exists in the address mapping list, the step of replacing the account address coordinate in the transaction data with the coordinate address to realize the coordinate of the account address specifically comprises the following steps:
when the transmission coordinate address corresponding to the transmission account address exists in the address mapping list, replacing the transmission account address in the transaction data with the transmission coordinate address;
when the transmission coordinate address corresponding to the transmission account address does not exist in the address mapping list, keeping the transmission account address unchanged in the transaction data;
when the received coordinate address corresponding to the received account address exists in the address mapping list, replacing the received account address in the transaction data with the received coordinate address;
and when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address unchanged in the transaction data.
Preferably, the step of determining whether the account address in the transaction data is coordinated after the serializing operation is performed on the transaction data specifically includes the following steps:
trading into a pool and broadcasting the trading pool;
the transaction pool packs the transaction generation block and broadcasts to carry out consensus confirmation;
after block confirmation, determining whether the account address in the transaction data is coordinated.
In order to solve the technical problem, the invention also provides an account address coordinate system, which comprises:
the receiving and analyzing module is used for receiving transaction data and analyzing account addresses in the transaction data;
the first judging module is used for judging whether a coordinate address corresponding to the account address exists in a preset address mapping list or not;
and the coordinated module is used for replacing the coordinates of the account address in the transaction data with the coordinates of the account address when the coordinates corresponding to the account address exist in the address mapping list, so as to realize the coordinated operation of the account address.
Preferably, the method further comprises:
the second judging module is used for judging whether the account address in the transaction data is coordinated after carrying out serialization operation on the transaction data;
when the account address is coordinated, the transaction data is stored in a lasting mode;
when the account address is not coordinated, generating a coordinate address of the transaction data corresponding to the account address according to a preset coordinated algorithm;
the storage module is used for storing the transaction data in a lasting mode after replacing the account address in the transaction data with the coordinate address;
preferably, the method further comprises:
and the mapping module is used for adding the account address, the coordinate address and the corresponding relation between the account address and the coordinate address into the address mapping table.
Preferably, the account address includes a transmitting account address and a receiving account address, and the coordinate address includes a transmitting coordinate address and a receiving coordinate address; the coordinated account address refers to that the sending account address and the receiving account address are respectively replaced by the sending coordinate address and the receiving coordinate address;
the first judging module is specifically configured to:
judging whether a sending coordinate address corresponding to the sending account address exists in the address mapping list or not, and whether a receiving coordinate address corresponding to the receiving account address exists in the address mapping list or not;
the coordinated module is specifically used for:
when the transmission coordinate address corresponding to the transmission account address exists in the address mapping list, replacing the transmission account address in the transaction data with the transmission coordinate address;
when the transmission coordinate address corresponding to the transmission account address does not exist in the address mapping list, keeping the transmission account address unchanged in the transaction data;
when the received coordinate address corresponding to the received account address exists in the address mapping list, replacing the received account address in the transaction data with the received coordinate address;
and when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address unchanged in the transaction data.
Preferably, the second judging module is specifically configured to:
trading into a pool and broadcasting the trading pool;
the transaction pool packs the transaction generation block and broadcasts to carry out consensus confirmation;
after block confirmation, determining whether the account address in the transaction data is coordinated.
The invention provides an account address coordinated method and system capable of reducing transaction data size. Changing account addresses of 30 or 40 bytes in the transaction data into on-chain coordinate representation; the coordinates can be used for knowing which account is the transaction, and the function of reducing the transaction data size can be achieved. Most of bandwidth consumption is saved in the transaction broadcasting process, and the network transmission efficiency of the transaction is effectively improved; and secondly, the occupied space of transaction data is greatly reduced in transaction storage, so that the storage efficiency is faster, and meanwhile, the storage resources of services are saved.
Drawings
FIG. 1 is a workflow diagram of a preferred embodiment of the method for account address based co-ordination provided by the present invention;
fig. 2 is a flowchart of the operation of step S30 shown in fig. 1;
FIG. 3 is a flowchart illustrating the operation of step S40 shown in FIG. 1;
FIG. 4 is an interaction diagram of a client and a node in the method for coordinating account addresses;
fig. 5 is a schematic diagram of a preferred embodiment of the system for coordinating account addresses according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides an account address coordinated method.
Referring to fig. 1-5 in combination, in order to achieve the above objective, in one embodiment of the present invention, an account address coordinating method 100 includes the following steps:
s10, a node receives transaction data and analyzes account addresses in the transaction data;
s20, judging whether a coordinate address corresponding to the account address exists in a preset address mapping list;
specifically, the data structure of the coordinate address is as follows: block number + transaction sequence number in block + transmit receive type. The sending and receiving type is used for identifying the type of the account address, and when the account address is the sending address, the identification of the sending and receiving type is 1; when the account address is the receiving address, the identification of the transmitting-receiving type is 2. The transaction sequence number in the block is the sequence number in the block packed transaction list.
Thus, according to the first two identifiers of the coordinate address, the transaction corresponding to the coordinate address can be obtained, and the transaction in which block can be obtained. It is known from the last identification whether the transaction is a send address or a receive address.
The coordinate address is generated only after transaction occurs and the block is packaged and chained. Thus, the coordinate address is not embodied in the transaction data broadcast for the first transaction. However, the block may be represented by a coordinate address when it is confirmed to be stored in the uplink.
The address mapping list is used for establishing a mapping corresponding mechanism. After the node receives the transaction, the coordinates need to be acquired, so that each node needs to establish a mapping mechanism to map the account address with the corresponding coordinate address.
The mapping list key is the original address of the account, the value is the coordinate address, the mapping relation of the transaction accounts ordered as 2 in the 5 th block of the ethernet is taken as an example, and the generation of the sender address mapping table is as follows: 0x18cf2beddc5153000c622a72fd5b7a5e9a27867 f= >5_2_1; it is understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27867f is a transmission address, and 5_2_1 is a coordinate address.
The receiver address mapping table is: 0x18cf2beddc5153000c622a72fd5b7a5e9a27456 a= >5_2_2. It will be understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27456a is a reception address, and 5_2_1 is a coordinate address.
And S30, when the coordinate address corresponding to the account address exists in the address mapping list, replacing the account address coordinate in the transaction data with the coordinate address so as to realize the coordinate formation of the account address.
Thus, the representation form of the account address in the transaction data is not the long address of the previous 42 bytes, but is changed into the short coordinate address (coordinate number), thereby greatly reducing the space occupied by the transaction data, and secondly, the coordinate address must be identified at intervals so as to be easy to split.
S40, after the serial operation is carried out on the transaction data, judging whether the account address in the transaction data is coordinated;
s50, when the account address is coordinated, the transaction data is stored in a lasting mode;
s60, when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordinated algorithm;
the coordinate algorithm converts and generates a coordinate address of a preset data structure through a preset formula algorithm according to the related information corresponding to the transaction data.
For example, the transaction data corresponds to the 2 nd transaction of the 5 th block, and the generated coordinate address is as follows: then the coordinate address 5_2_1 corresponding to the transmitting address of the transaction, and the coordinate address 5_2_2 corresponding to the receiving address.
S70, after the account address in the transaction data is replaced by the coordinate address, the transaction data is stored in a lasting mode.
After the step S60, the method further includes the following steps:
and S71, adding the account address, the coordinate address and the corresponding relation between the account address and the coordinate address into the address mapping table.
That is, the mapping list key is an account address, and the value is a coordinate address.
It is understood that the step S71 may occur simultaneously with the step S70; or may be preceded by said step S70; or after said step S70. In this embodiment, the step S71 and the step S70 are preferably preceded.
The account address comprises a sending account address and a receiving account address, and the coordinate address comprises a sending coordinate address and a receiving coordinate address; the coordinated account address refers to that the sending account address and the receiving account address in the account address are respectively replaced by the sending coordinate address and the receiving coordinate address;
step S20, determining whether a coordinate address corresponding to the account address exists in a preset address mapping list; the method specifically comprises the following steps:
judging whether a sending coordinate address corresponding to the sending account address exists in the address mapping list or not, and whether a receiving coordinate address corresponding to the receiving account address exists in the address mapping list or not;
referring to fig. 2 again, in step S30, when the coordinate address corresponding to the account address exists in the address mapping list, the account address coordinate in the transaction data is replaced by the coordinate address, so as to implement the coordinate of the account address. The method specifically comprises the following steps:
s301, when the transmission coordinate address corresponding to the transmission account address exists in the address mapping list, replacing the transmission account address in the transaction data with the transmission coordinate address;
s302, when the transmission coordinate address corresponding to the transmission account address does not exist in the address mapping list, keeping the transmission account address unchanged in the transaction data;
s303, when the received coordinate address corresponding to the received account address exists in the address mapping list, replacing the received account address in the transaction data with the received coordinate address;
and S304, when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, the receiving account address in the transaction data is kept unchanged.
Referring to fig. 3 again, the step S40 of determining whether the account address in the transaction data is coordinated after the serializing operation is performed on the transaction data specifically includes the following steps:
s401, putting the transaction into a pool, and broadcasting the transaction pool;
s402, the transaction pool packages the transaction generation block and broadcasts to carry out consensus confirmation;
s403, after block confirmation, judging whether the account address in the transaction data is coordinated.
The invention provides an account address coordinate method capable of reducing the size of transaction data, which is characterized in that account addresses with more than 30 or 40 bytes in the transaction data are changed into on-chain coordinate representation; the coordinates can be used for knowing which account is the transaction, and the function of reducing the transaction data size can be achieved. Most of bandwidth consumption is saved in the transaction broadcasting process, and the network transmission efficiency of the transaction is effectively improved; and secondly, the occupied space of transaction data is greatly reduced in transaction storage, so that the storage efficiency is faster, and meanwhile, the storage resources of services are saved.
The invention provides an account address coordinated system.
Referring to fig. 5, in order to achieve the above object, in an embodiment of the present invention, an account address coordination system includes:
the receiving and analyzing module is used for receiving transaction data and analyzing account addresses in the transaction data;
the first judging module is used for judging whether a coordinate address corresponding to the account address exists in a preset address mapping list or not;
specifically, the data structure of the coordinate address is as follows: block number + transaction sequence number in block + transmit receive type. The sending and receiving type is used for identifying the type of the account address, and when the account address is the sending address, the identification of the sending and receiving type is 1; when the account address is the receiving address, the identification of the transmitting-receiving type is 2. The transaction sequence number in the block is the sequence number in the block packed transaction list.
Thus, according to the first two identifiers of the coordinate address, the transaction corresponding to the coordinate address can be obtained, and the transaction in which block can be obtained. It is known from the last identification whether the transaction is a send address or a receive address.
The coordinate address is generated only after transaction occurs and the block is packaged and chained. Thus, the coordinate address is not embodied in the transaction data broadcast for the first transaction. However, the block may be represented by a coordinate address when it is confirmed to be stored in the uplink.
The address mapping list is used for establishing a mapping corresponding mechanism. After the node receives the transaction, the coordinates need to be acquired, so that each node needs to establish a mapping mechanism to map the account address with the corresponding coordinate address.
The mapping list key is the original address of the account, the value is the coordinate address, the mapping relation of the transaction accounts ordered as 2 in the 5 th block of the ethernet is taken as an example, and the generation of the sender address mapping table is as follows: 0x18cf2beddc5153000c622a72fd5b7a5e9a27867 f= >5_2_1; it is understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27867f is a transmission address, and 5_2_1 is a coordinate address.
The receiver address mapping table is: 0x18cf2beddc5153000c622a72fd5b7a5e9a27456 a= >5_2_2. It will be understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27456a is a reception address, and 5_2_1 is a coordinate address.
And the coordinated module is used for replacing the coordinates of the account address in the transaction data with the coordinates of the account address when the coordinates corresponding to the account address exist in the address mapping list, so as to realize the coordinated operation of the account address.
Thus, the representation form of the account address in the transaction data is not the long address of the previous 42 bytes, but is changed into the short coordinate address (coordinate number), thereby greatly reducing the space occupied by the transaction data, and secondly, the coordinate address must be identified at intervals so as to be easy to split.
The system for the address coordination of the account further comprises:
the second judging module is used for judging whether the account address in the transaction data is coordinated after carrying out serialization operation on the transaction data;
when the account address is coordinated, the transaction data is stored in a lasting mode;
when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordinated algorithm;
the coordinate algorithm converts and generates a coordinate address of a preset data structure through a preset formula algorithm according to the related information corresponding to the transaction data.
For example, the transaction data corresponds to the 2 nd transaction of the 5 th block, and the generated coordinate address is as follows: then the coordinate address 5_2_1 corresponding to the transmitting address of the transaction, and the coordinate address 5_2_2 corresponding to the receiving address.
And the storage module is used for storing the transaction data in a lasting way after replacing the account address in the transaction data with the coordinate address.
And the mapping module is used for adding the account address, the coordinate address and the corresponding relation between the account address and the coordinate address into the address mapping table.
That is, the mapping list key is an account address, and the value is a coordinate address.
The account address comprises a sending account address and a receiving account address, and the coordinate address comprises a sending coordinate address and a receiving coordinate address; the coordinated account address refers to that the sending account address and the receiving account address in the account address are respectively replaced by the sending coordinate address and the receiving coordinate address;
the first judging module is specifically configured to:
judging whether a sending coordinate address corresponding to the sending account address exists in the address mapping list or not, and whether a receiving coordinate address corresponding to the receiving account address exists in the address mapping list or not;
the coordinated module is specifically used for:
s301, when the transmission coordinate address corresponding to the transmission account address exists in the address mapping list, replacing the transmission account address in the transaction data with the transmission coordinate address;
s302, when the transmission coordinate address corresponding to the transmission account address does not exist in the address mapping list, keeping the transmission account address unchanged in the transaction data;
s303, when the received coordinate address corresponding to the received account address exists in the address mapping list, replacing the received account address in the transaction data with the received coordinate address;
and S304, when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, the receiving account address in the transaction data is kept unchanged.
The second judging module is specifically configured to:
s401, putting the transaction into a pool, and broadcasting the transaction pool;
s402, the transaction pool packages the transaction generation block and broadcasts to carry out consensus confirmation;
s403, after block confirmation, judging whether the account address in the transaction data is coordinated.
The invention provides an account address coordinate system capable of reducing the size of transaction data, which is characterized in that account addresses with more than 30 or 40 bytes in the transaction data are converted into on-chain coordinate representation; the coordinates can be used for knowing which account is the transaction, and the function of reducing the transaction data size can be achieved. Most of bandwidth consumption is saved in the transaction broadcasting process, and the network transmission efficiency of the transaction is effectively improved; and secondly, the occupied space of transaction data is greatly reduced in transaction storage, so that the storage efficiency is faster, and meanwhile, the storage resources of services are saved.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part in the form of a software product stored in a computer readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device to enter the method according to the embodiments of the present invention.
In the description of the present specification, the descriptions of the terms "one embodiment," "another embodiment," "other embodiments," or "first through X-th embodiments," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, method steps or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The account address coordinate method is characterized by comprising the following steps of:
the node receives transaction data and analyzes account addresses in the transaction data;
judging whether a coordinate address corresponding to the account address exists in a preset address mapping list;
the data structure of the coordinate address is as follows: block number + transaction sequence number + transmit receive type in block; the sending and receiving type is used for identifying the type of the account address, and when the account address is the sending address, the identification of the sending and receiving type is 1; when the account address is a receiving address, the identification of the sending and receiving type is 2; the transaction sequence number in the block is the sequence number in the block packed transaction list;
when the coordinate address corresponding to the account address exists in the address mapping list, the account address coordinate in the transaction data is replaced by the coordinate address, so that the account address is coordinated.
2. The account address co-ordination method of claim 1, further comprising the steps of:
after carrying out serialization operation on the transaction data, judging whether the account address in the transaction data is coordinated;
when the account address is coordinated, the transaction data is stored in a lasting mode;
when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordinated algorithm;
and after the account address in the transaction data is replaced by the coordinate address, the transaction data is stored in a lasting mode.
3. The method for coordinating account addresses according to claim 2, wherein after the step of generating the coordinate address corresponding to the account address according to a preset coordination algorithm, the method further comprises the steps of:
and adding the account address, the coordinate address and the corresponding relation between the account address and the coordinate address into the address mapping list.
4. The account address co-ordination method of claim 2, wherein the account addresses include a transmit account address and a receive account address, and the coordinate addresses include a transmit coordinate address and a receive coordinate address; the coordinated account address refers to that the sending account address and the receiving account address are respectively replaced by the sending coordinate address and the receiving coordinate address;
the step of judging whether the preset address mapping list has the coordinate address corresponding to the account address or not specifically comprises the following steps:
judging whether a sending coordinate address corresponding to the sending account address exists in the address mapping list or not, and whether a receiving coordinate address corresponding to the receiving account address exists in the address mapping list or not;
when the coordinate address corresponding to the account address exists in the address mapping list, the step of replacing the account address coordinate in the transaction data with the coordinate address to realize the coordinate of the account address specifically comprises the following steps:
when the transmission coordinate address corresponding to the transmission account address exists in the address mapping list, replacing the transmission account address in the transaction data with the transmission coordinate address;
when the transmission coordinate address corresponding to the transmission account address does not exist in the address mapping list, keeping the transmission account address unchanged in the transaction data;
when the received coordinate address corresponding to the received account address exists in the address mapping list, replacing the received account address in the transaction data with the received coordinate address;
and when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address unchanged in the transaction data.
5. The method of claim 4, wherein the step of determining whether the account address is coordinated in the transaction data after the serializing operation is performed on the transaction data comprises the following steps:
trading into a pool and broadcasting the trading pool;
the transaction pool packs the transaction generation block and broadcasts to carry out consensus confirmation;
after block confirmation, determining whether the account address in the transaction data is coordinated.
6. An account address co-ordination system, comprising:
the receiving and analyzing module is used for receiving transaction data and analyzing account addresses in the transaction data;
the first judging module is used for judging whether a coordinate address corresponding to the account address exists in a preset address mapping list or not;
the data structure of the coordinate address is as follows: block number + transaction sequence number + transmit receive type in block; the sending and receiving type is used for identifying the type of the account address, and when the account address is the sending address, the identification of the sending and receiving type is 1; when the account address is a receiving address, the identification of the sending and receiving type is 2; the transaction sequence number in the block is the sequence number in the block packed transaction list;
and the coordinated module is used for replacing the coordinates of the account address in the transaction data with the coordinates of the account address when the coordinates corresponding to the account address exist in the address mapping list, so as to realize the coordinated operation of the account address.
7. The account address co-ordination system of claim 6, further comprising:
the second judging module is used for judging whether the account address in the transaction data is coordinated after carrying out serialization operation on the transaction data;
when the account address is coordinated, the transaction data is stored in a lasting mode;
when the account address is not coordinated, generating a coordinate address of the transaction data corresponding to the account address according to a preset coordinated algorithm;
and the storage module is used for storing the transaction data in a lasting way after replacing the account address in the transaction data with the coordinate address.
8. The account address co-ordination system of claim 7, further comprising:
and the mapping module is used for adding the account address, the coordinate address and the corresponding relation between the account address and the coordinate address into the address mapping list.
9. The account address co-ordination system of claim 7, wherein the account addresses comprise a transmit account address and a receive account address, the coordinate addresses comprising a transmit coordinate address and a receive coordinate address; the coordinated account address refers to that the sending account address and the receiving account address are respectively replaced by the sending coordinate address and the receiving coordinate address;
the first judging module is specifically configured to:
judging whether a sending coordinate address corresponding to the sending account address exists in the address mapping list or not, and whether a receiving coordinate address corresponding to the receiving account address exists in the address mapping list or not;
the coordinated module is specifically used for:
when the transmission coordinate address corresponding to the transmission account address exists in the address mapping list, replacing the transmission account address in the transaction data with the transmission coordinate address;
when the transmission coordinate address corresponding to the transmission account address does not exist in the address mapping list, keeping the transmission account address unchanged in the transaction data;
when the received coordinate address corresponding to the received account address exists in the address mapping list, replacing the received account address in the transaction data with the received coordinate address;
and when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address unchanged in the transaction data.
10. The account address coordination system of claim 9, wherein the second determination module is specifically configured to:
trading into a pool and broadcasting the trading pool;
the transaction pool packs the transaction generation block and broadcasts to carry out consensus confirmation;
after block confirmation, determining whether the account address in the transaction data is coordinated.
CN202011016349.6A 2020-09-24 2020-09-24 Account address coordinated method and system Active CN112202936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011016349.6A CN112202936B (en) 2020-09-24 2020-09-24 Account address coordinated method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011016349.6A CN112202936B (en) 2020-09-24 2020-09-24 Account address coordinated method and system

Publications (2)

Publication Number Publication Date
CN112202936A CN112202936A (en) 2021-01-08
CN112202936B true CN112202936B (en) 2023-12-19

Family

ID=74014632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011016349.6A Active CN112202936B (en) 2020-09-24 2020-09-24 Account address coordinated method and system

Country Status (1)

Country Link
CN (1) CN112202936B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563796A (en) * 2018-05-04 2018-09-21 蔷薇信息技术有限公司 Data compressing method, device and the electronic equipment of block chain
CN108763443A (en) * 2018-05-25 2018-11-06 众安信息技术服务有限公司 block chain account processing method and device
CN109508334A (en) * 2018-11-23 2019-03-22 中科驭数(北京)科技有限公司 For the data compression method of block chain database, access method and system
CN110175758A (en) * 2019-05-08 2019-08-27 杭州宇链科技有限公司 Multilayer is shared in the benefit method automatically on a kind of chain based on block chain
CN110322246A (en) * 2019-07-09 2019-10-11 深圳市网心科技有限公司 A kind of optimization method and relevant device of block chain Transaction Information
CN110460686A (en) * 2019-07-26 2019-11-15 杭州秘猿科技有限公司 A kind of block chain address register method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170228731A1 (en) * 2016-02-09 2017-08-10 Fmr Llc Computationally Efficient Transfer Processing and Auditing Apparatuses, Methods and Systems
US11070231B2 (en) * 2018-12-31 2021-07-20 Palo Alto Research Center Incorporated Reducing storage of blockchain metadata via dictionary-style compression

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563796A (en) * 2018-05-04 2018-09-21 蔷薇信息技术有限公司 Data compressing method, device and the electronic equipment of block chain
CN108763443A (en) * 2018-05-25 2018-11-06 众安信息技术服务有限公司 block chain account processing method and device
CN109508334A (en) * 2018-11-23 2019-03-22 中科驭数(北京)科技有限公司 For the data compression method of block chain database, access method and system
CN110175758A (en) * 2019-05-08 2019-08-27 杭州宇链科技有限公司 Multilayer is shared in the benefit method automatically on a kind of chain based on block chain
CN110322246A (en) * 2019-07-09 2019-10-11 深圳市网心科技有限公司 A kind of optimization method and relevant device of block chain Transaction Information
CN110460686A (en) * 2019-07-26 2019-11-15 杭州秘猿科技有限公司 A kind of block chain address register method and device

Also Published As

Publication number Publication date
CN112202936A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN100544295C (en) Multicast routing method and device
US20030095548A1 (en) System for retrieving destination of a packet with plural headers
CN112422489B (en) Service data transmission method, device, computer equipment and storage medium
CN107623643A (en) A kind of data packet forwarding method and device
CN108600074A (en) The retransmission method and device of multicast data message
CN111478829A (en) Pressure testing method, device and system for block chain network
CN105099944A (en) Data caching method and forwarding device
CN114710467B (en) IP address storage method and device and hardware gateway
CN115002016B (en) Message processing system, method, device and storage medium
CN112202936B (en) Account address coordinated method and system
CN1352847A (en) Routing
CN110661895A (en) Network address mapping method and network address mapping equipment of server
KR20060014875A (en) Method and apparatus for transmitting ack frame
CN107241404B (en) Method, device and system for receiving and transmitting messages
CN102420731A (en) Network access control method and system
US8145775B2 (en) Method to receive UDP response messages across multiple incoming UDP ports
CN115211226B (en) Communication method and communication device
CN114584262A (en) Data transmission method and related equipment
CN114579490A (en) Data transmission method and device, electronic equipment and storage medium
CN114467269B (en) Communication method and communication device under multiple connections
CN110674068A (en) Information interaction method among board cards, distributed board card and storage medium
CN110753318A (en) Method and device for intelligently adjusting PC5 interface forwarding terminal
CN109582481A (en) Transmission method, device, equipment and the storage medium of call result
US20060135129A1 (en) System and method for transmitting MIDlet data using SMS
US20240031869A1 (en) Communication method and communication device under multiple links

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231122

Address after: 518000 608, floor 6, building 4, Tianan Yungu Industrial Park, Gangtou community, Bantian street, Longgang District, Shenzhen, Guangdong Province

Applicant after: Guangdong Jiuhe Cloud Computing Co.,Ltd.

Address before: 100123 Room 202, 2 / F, building F1, Dongyi International Media Industrial Park, No.8, Gaojing Cultural Park Road, Chaoyang District, Beijing

Applicant before: Puhua Yunchuang Technology (Beijing) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant