CN112202936A - Account address coordinating method and system - Google Patents
Account address coordinating method and system Download PDFInfo
- Publication number
- CN112202936A CN112202936A CN202011016349.6A CN202011016349A CN112202936A CN 112202936 A CN112202936 A CN 112202936A CN 202011016349 A CN202011016349 A CN 202011016349A CN 112202936 A CN112202936 A CN 112202936A
- Authority
- CN
- China
- Prior art keywords
- address
- coordinate
- account
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2596—Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Abstract
The invention discloses an account address coordinating method and system. The method for coordinating the account address comprises the following steps: the node receives transaction data and analyzes an account address in the transaction data; judging whether a coordinate address corresponding to the account address exists in a preset address mapping list or not; and 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 to realize the coordinate of the account address. The technical scheme of the invention solves the technical problems that in the related technology, the account address occupies too much space of the transaction data, so that the transaction data occupies too much memory space and the transmission efficiency is low.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to an account address coordinating method and system.
Background
In the existing block chain technology, when a transaction occurs, a node receiving the transaction puts the transaction into a transaction pool, broadcasts the transaction to other nodes, and finally packs the transaction into a block to perform transaction persistent storage. Both the broadcast and stored transaction data will typically contain two fields, a transaction sender address and a transaction receiver address.
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 circulation of each transaction can not avoid the transmission and storage of repeated addresses.
For example, the length of each address is 42 bytes, and the transaction body has an address occupation of 84 bytes, a bit currency is less, the address occupation is 34 bytes and two 68 bytes, and the total transaction size of the address occupation is at least 10% in each transaction. By now the amount of ether house and bitcoin synchronization data has reached 300 more G, then a minimum of tens of G's of storage is taken up in the cost of the address.
The inventor finds that the size of a transaction body is determined by the length of the address, the transaction body is reduced, on one hand, the memory space occupied by a transaction pool is reduced, on the other hand, the disk space occupied by persistence is reduced, and on the other hand, the transmission efficiency of the transaction is greatly improved.
The inventor also finds that the 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 the account coordinate.
Therefore, there is a need to provide a new method and system for coordinating account addresses to solve the above-mentioned problems.
Disclosure of Invention
The invention mainly aims to provide an account address coordinating method, and aims to solve the technical problems that in the related art, an account address occupies too much space of transaction data, so that the transaction data occupies too much memory space, and the transmission efficiency is low.
In order to achieve the above object, the present invention provides an account address coordinating method, which comprises the following steps:
the node receives transaction data and analyzes an account address in the transaction data;
judging whether a coordinate address corresponding to the account address exists in a preset address mapping list or not;
and 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 to realize the coordinate of the account address.
Preferably, the method further comprises the following steps:
after the transaction data are subjected to serialization operation, judging whether the account address in the transaction data is coordinated or not;
when the account address is coordinated, the transaction data is stored persistently;
and when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordination algorithm.
And after the account address in the transaction data is replaced by the coordinate address, the transaction data is stored persistently.
Preferably, after the step of generating the coordinate address corresponding to the account address according to the preset coordination algorithm, the method further includes the following steps:
and adding the account address, the coordinate address and the corresponding relation between the two into the address mapping table.
Preferably, 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 coordination of the account address means 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 a coordinate address corresponding to the account address exists in a preset address mapping list specifically includes 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 includes the following steps:
when the sending coordinate address corresponding to the sending account address exists in the address mapping list, replacing the sending account address in the transaction data with the sending coordinate address;
when the sending coordinate address corresponding to the sending account address does not exist in the address mapping list, keeping the sending account address in the transaction data unchanged;
when the receiving coordinate address corresponding to the receiving account address exists in the address mapping list, replacing the receiving account address in the transaction data with the receiving coordinate address;
when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address in the transaction data unchanged.
Preferably, the step of judging whether the account address in the transaction data is coordinated after the transaction data is serialized includes the following steps:
trading is put into a pool, and the trading pool is broadcasted;
the transaction pool packs a transaction generation block and broadcasts the transaction generation block for consensus confirmation;
and after the block is confirmed, judging whether the account address in the transaction data is coordinated.
In order to solve the above technical problem, the present invention further provides an account address coordinating system, including:
the receiving and analyzing module is used for receiving transaction data and analyzing an account address in the transaction data;
the first judgment 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 coordination module is used for replacing the account address coordinate in the transaction data with the coordinate address when the coordinate address corresponding to the account address exists in the address mapping list so as to realize coordination of the account address.
Preferably, the method further comprises the following steps:
the second judgment module is used for judging whether the account address in the transaction data is coordinated or not after the transaction data is subjected to serialization operation;
when the account address is coordinated, the transaction data is stored persistently;
when the account address is not coordinated, generating a coordinate address of the transaction data corresponding to the account address according to a preset coordination algorithm;
the storage module is used for storing the transaction data in a persistent mode after the account address in the transaction data is replaced by the coordinate address;
preferably, the method further comprises the following steps:
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 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 coordination of the account address means 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 coordinating module is specifically configured to:
when the sending coordinate address corresponding to the sending account address exists in the address mapping list, replacing the sending account address in the transaction data with the sending coordinate address;
when the sending coordinate address corresponding to the sending account address does not exist in the address mapping list, keeping the sending account address in the transaction data unchanged;
when the receiving coordinate address corresponding to the receiving account address exists in the address mapping list, replacing the receiving account address in the transaction data with the receiving coordinate address;
when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address in the transaction data unchanged.
Preferably, the second determination module is specifically configured to:
trading is put into a pool, and the trading pool is broadcasted;
the transaction pool packs a transaction generation block and broadcasts the transaction generation block for consensus confirmation;
and after the block is confirmed, judging whether the account address in the transaction data is coordinated.
The invention provides an account address coordinating method and system capable of reducing transaction data size. Converting account addresses of more than 30 or more than 40 bytes in the transaction data into coordinate representation on the chain; the coordinate can be used for knowing which account has the transaction, and the function of reducing the size of transaction data can be achieved. Most bandwidth consumption is saved in the transaction broadcasting process, and the network transmission efficiency of the transaction is effectively improved; and secondly, the space occupied by transaction data is greatly reduced in transaction storage, so that the storage efficiency is higher, and meanwhile, the storage resources of services are saved.
Drawings
FIG. 1 is a flowchart of the operation of a preferred embodiment of the method for coordinating an account-based address according to the present invention;
FIG. 2 is a flowchart illustrating 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 account address-based coordination method according to the present invention;
FIG. 5 is an architecture diagram of a preferred embodiment of the account address based coordinating system provided by the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an account address coordinating method.
Referring to fig. 1-5, to achieve the above object, in an embodiment of the present invention, an account address coordinating method 100 includes the following steps:
s10, the node receives the transaction data and analyzes the account address in the transaction data;
s20, 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 number in block + send 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 sending and receiving type is 2. The transaction sequence number in the block is the sorting sequence number in the transaction list packed by the block.
Therefore, according to the first two identifications of the coordinate address, the transaction corresponding to the coordinate address and the transaction number in which block can be known. From the last identification, it is known whether the transaction is addressed for transmission or for reception.
The coordinate address can only be generated after the transaction occurs and the block is packed and linked. Therefore, the coordinate address is not reflected in the transaction data broadcast for the first transaction. However, the coordinate address may be used when a block is acknowledged for uplink storage.
The address mapping list is used for establishing a mapping correspondence mechanism. After the nodes receive the transaction, the coordinates need to be acquired, so each node needs to establish a mapping mechanism to map the account address with the corresponding coordinate address.
The mapping list key is an account original address, value is a coordinate address, and the mapping relation of the transaction accounts ordered as 2 in the 5 th block of the Ethengfang is taken as an example, and the generated sender address mapping table is as follows: 0x18cf2 begdc 5153000c622a72fd5b7a5e9a27867f ═ 5_2_ 1; it is understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27867f is the sending address and 5_2_1 is the coordinate address.
The receiver address mapping table is: 0x18cf2 begdc 5153000c622a72fd5b7a5e9a27456a ═ 5_2_ 2. It is understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27456a is the receiving address, and 5_2_1 is the 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 to realize the coordinate of the account address.
Therefore, the expression form of the account address in the transaction data is not the previous 42 bytes long address, but is changed into a short coordinate address (seat label), so that the space occupied by the transaction data is greatly reduced, and secondly, the coordinate address must have interval identification so as to be easy to split.
S40, after the transaction data are serialized, judging whether the account address in the transaction data is coordinated or not;
s50, when the account address is coordinated, the transaction data is stored persistently;
s60, when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordination algorithm;
and the coordinate algorithm is used for converting and generating a coordinate address of a preset data structure through a preset formula algorithm according to the relevant 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: the coordinate address 5_2_1 corresponding to the sending address of the transaction and the coordinate address 5_2_2 corresponding to the receiving address.
And S70, after the account address in the transaction data is replaced by the coordinate address, the transaction data is stored persistently.
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 two into the address mapping table.
That is, the mapping list key is the account address, and the value is the coordinate address.
It is understood that the step S71 may occur simultaneously with the step S70; or before the step S70; or may follow said step S70. In this embodiment, it is preferable that the step S71 and the step S70 are performed before.
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 coordination of the account address means 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 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 coordinate of the account address in the transaction data is replaced with the coordinate address, so as to coordinate the account address. The method specifically comprises the following steps:
s301, when the sending coordinate address corresponding to the sending account address exists in the address mapping list, replacing the sending account address in the transaction data with the sending coordinate address;
s302, when the sending coordinate address corresponding to the sending account address does not exist in the address mapping list, keeping the sending account address in the transaction data unchanged;
s303, when the receiving coordinate address corresponding to the receiving account address exists in the address mapping list, replacing the receiving account address in the transaction data with the receiving coordinate address;
s304, when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address in the transaction data unchanged.
Referring to fig. 3 again, in S40, after performing a serialization operation on the transaction data, determining whether the account address in the transaction data is coordinated includes the following steps:
s401, entering a pool for trading, and broadcasting the trading pool;
s402, packaging a transaction generation block by a transaction pool, and broadcasting to perform consensus confirmation;
and S403, after the block is confirmed, judging whether the account address in the transaction data is coordinated.
The invention provides an account address coordinating method capable of reducing transaction data size, which is characterized in that account addresses with more than 30 or more than 40 bytes in transaction data are converted into coordinate representation on a chain; the coordinate can be used for knowing which account has the transaction, and the function of reducing the size of transaction data can be achieved. Most bandwidth consumption is saved in the transaction broadcasting process, and the network transmission efficiency of the transaction is effectively improved; and secondly, the space occupied by transaction data is greatly reduced in transaction storage, so that the storage efficiency is higher, and meanwhile, the storage resources of services are saved.
The invention provides an account address coordinating system.
Referring to fig. 5, 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 an account address in the transaction data;
the first judgment 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 number in block + send 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 sending and receiving type is 2. The transaction sequence number in the block is the sorting sequence number in the transaction list packed by the block.
Therefore, according to the first two identifications of the coordinate address, the transaction corresponding to the coordinate address and the transaction number in which block can be known. From the last identification, it is known whether the transaction is addressed for transmission or for reception.
The coordinate address can only be generated after the transaction occurs and the block is packed and linked. Therefore, the coordinate address is not reflected in the transaction data broadcast for the first transaction. However, the coordinate address may be used when a block is acknowledged for uplink storage.
The address mapping list is used for establishing a mapping correspondence mechanism. After the nodes receive the transaction, the coordinates need to be acquired, so each node needs to establish a mapping mechanism to map the account address with the corresponding coordinate address.
The mapping list key is an account original address, value is a coordinate address, and the mapping relation of the transaction accounts ordered as 2 in the 5 th block of the Ethengfang is taken as an example, and the generated sender address mapping table is as follows: 0x18cf2 begdc 5153000c622a72fd5b7a5e9a27867f ═ 5_2_ 1; it is understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27867f is the sending address and 5_2_1 is the coordinate address.
The receiver address mapping table is: 0x18cf2 begdc 5153000c622a72fd5b7a5e9a27456a ═ 5_2_ 2. It is understood that 0x18cf2beddc5153000c622a72fd5b7a5e9a27456a is the receiving address, and 5_2_1 is the coordinate address.
And the coordination module is used for replacing the account address coordinate in the transaction data with the coordinate address when the coordinate address corresponding to the account address exists in the address mapping list so as to realize coordination of the account address.
Therefore, the expression form of the account address in the transaction data is not the previous 42 bytes long address, but is changed into a short coordinate address (seat label), so that the space occupied by the transaction data is greatly reduced, and secondly, the coordinate address must have interval identification so as to be easy to split.
The system for coordinating account addresses further comprises:
the second judgment module is used for judging whether the account address in the transaction data is coordinated or not after the transaction data is subjected to serialization operation;
when the account address is coordinated, the transaction data is stored persistently;
when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordination algorithm;
and the coordinate algorithm is used for converting and generating a coordinate address of a preset data structure through a preset formula algorithm according to the relevant 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: the coordinate address 5_2_1 corresponding to the sending 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 persistent mode after the account address in the transaction data is replaced by 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 the account address, and the value is the 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 coordination of the account address means 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 coordinating module is specifically configured to:
s301, when the sending coordinate address corresponding to the sending account address exists in the address mapping list, replacing the sending account address in the transaction data with the sending coordinate address;
s302, when the sending coordinate address corresponding to the sending account address does not exist in the address mapping list, keeping the sending account address in the transaction data unchanged;
s303, when the receiving coordinate address corresponding to the receiving account address exists in the address mapping list, replacing the receiving account address in the transaction data with the receiving coordinate address;
s304, when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address in the transaction data unchanged.
The second judgment module is specifically configured to:
s401, entering a pool for trading, and broadcasting the trading pool;
s402, packaging a transaction generation block by a transaction pool, and broadcasting to perform consensus confirmation;
and S403, after the block is confirmed, judging whether the account address in the transaction data is coordinated.
The invention provides an account address coordinating system capable of reducing transaction data size, which is characterized in that account addresses with more than 30 or more than 40 bytes in transaction data are converted into coordinate representation on a chain; the coordinate can be used for knowing which account has the transaction, and the function of reducing the size of transaction data can be achieved. Most bandwidth consumption is saved in the transaction broadcasting process, and the network transmission efficiency of the transaction is effectively improved; and secondly, the space occupied by transaction data is greatly reduced in transaction storage, so that the storage efficiency is higher, and meanwhile, the storage resources of services are saved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device to enter the method according to the embodiments of the present invention.
In the description herein, references to the description of the term "one embodiment," "another embodiment," or "first through xth 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 invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. 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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An account address coordinating method is characterized by comprising the following steps:
the node receives transaction data and analyzes an account address in the transaction data;
judging whether a coordinate address corresponding to the account address exists in a preset address mapping list or not;
and 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 to realize the coordinate of the account address.
2. The account address coordinating method of claim 1, further comprising the steps of:
after the transaction data are subjected to serialization operation, judging whether the account address in the transaction data is coordinated or not;
when the account address is coordinated, the transaction data is stored persistently;
and when the account address is not coordinated, generating a coordinate address corresponding to the account address according to a preset coordination algorithm.
And after the account address in the transaction data is replaced by the coordinate address, the transaction data is stored persistently.
3. The method of claim 2, wherein after the step of generating the coordinate address corresponding to the account address according to the preset coordination algorithm, the method further comprises the following steps:
and adding the account address, the coordinate address and the corresponding relation between the two into the address mapping table.
4. The account address coordinating method of claim 2, wherein the account address comprises a sending account address and a receiving account address, the coordinate address comprises a sending coordinate address and a receiving coordinate address; the coordination of the account address means 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 a coordinate address corresponding to the account address exists in a preset address mapping list specifically includes 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 includes the following steps:
when the sending coordinate address corresponding to the sending account address exists in the address mapping list, replacing the sending account address in the transaction data with the sending coordinate address;
when the sending coordinate address corresponding to the sending account address does not exist in the address mapping list, keeping the sending account address in the transaction data unchanged;
when the receiving coordinate address corresponding to the receiving account address exists in the address mapping list, replacing the receiving account address in the transaction data with the receiving coordinate address;
when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address in the transaction data unchanged.
5. The account address coordinating method of claim 4, wherein the step of determining whether the account address in the transaction data is coordinated after the transaction data is serialized comprises the steps of:
trading is put into a pool, and the trading pool is broadcasted;
the transaction pool packs a transaction generation block and broadcasts the transaction generation block for consensus confirmation;
and after the block is confirmed, judging whether the account address in the transaction data is coordinated.
6. An account address coordinating system, comprising:
the receiving and analyzing module is used for receiving transaction data and analyzing an account address in the transaction data;
the first judgment 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 coordination module is used for replacing the account address coordinate in the transaction data with the coordinate address when the coordinate address corresponding to the account address exists in the address mapping list so as to realize coordination of the account address.
7. The account address coordinating system of claim 6, further comprising:
the second judgment module is used for judging whether the account address in the transaction data is coordinated or not after the transaction data is subjected to serialization operation;
when the account address is coordinated, the transaction data is stored persistently;
when the account address is not coordinated, generating a coordinate address of the transaction data corresponding to the account address according to a preset coordination algorithm;
and the storage module is used for storing the transaction data in a persistent mode after the account address in the transaction data is replaced by the coordinate address.
8. The account address coordinating 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 table.
9. The account address coordinating system of claim 7, wherein the account address comprises a send account address and a receive account address, the coordinate address comprising a send coordinate address and a receive coordinate address; the coordination of the account address means 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 coordinating module is specifically configured to:
when the sending coordinate address corresponding to the sending account address exists in the address mapping list, replacing the sending account address in the transaction data with the sending coordinate address;
when the sending coordinate address corresponding to the sending account address does not exist in the address mapping list, keeping the sending account address in the transaction data unchanged;
when the receiving coordinate address corresponding to the receiving account address exists in the address mapping list, replacing the receiving account address in the transaction data with the receiving coordinate address;
when the receiving coordinate address corresponding to the receiving account address does not exist in the address mapping list, keeping the receiving account address in the transaction data unchanged.
10. The account address coordinating system of claim 9, wherein the second determination module is specifically configured to:
trading is put into a pool, and the trading pool is broadcasted;
the transaction pool packs a transaction generation block and broadcasts the transaction generation block for consensus confirmation;
and after the block is confirmed, judging whether the account address in the transaction data is coordinated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011016349.6A CN112202936A (en) | 2020-09-24 | 2020-09-24 | Account address coordinating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011016349.6A CN112202936A (en) | 2020-09-24 | 2020-09-24 | Account address coordinating method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112202936A true CN112202936A (en) | 2021-01-08 |
Family
ID=74014632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011016349.6A Pending CN112202936A (en) | 2020-09-24 | 2020-09-24 | Account address coordinating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112202936A (en) |
Citations (8)
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 |
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 |
US20200212932A1 (en) * | 2018-12-31 | 2020-07-02 | Palo Alto Research Center Incorporated | Reducing storage of blockchain metadata via dictionary-style compression |
-
2020
- 2020-09-24 CN CN202011016349.6A patent/CN112202936A/en active Pending
Patent Citations (8)
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 |
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 |
US20200212932A1 (en) * | 2018-12-31 | 2020-07-02 | Palo Alto Research Center Incorporated | Reducing storage of blockchain metadata via dictionary-style compression |
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2819359C (en) | Using text messages to interact with spreadsheets | |
CN1231029C (en) | Data transmission protocol using short information service | |
CN101841520A (en) | Domain name system and information processing method and device for domain name system | |
CN110796545A (en) | Batch processing method, equipment and storage medium for blockchain transaction | |
CN112115133A (en) | Distributed global unique ID generation method and system, storage medium and device | |
CN112202936A (en) | Account address coordinating method and system | |
CN1197321C (en) | Routing | |
CN1165846C (en) | Method of raising message processing capacity of short message dispatching center | |
US11409646B2 (en) | Method for releasing memory | |
US6708338B1 (en) | Apparatus and method for generating broadcast interoperable protocol message | |
CN111930675B (en) | Data transmission management method, system and device | |
CN103617299A (en) | Method and system for setting table attribute | |
CN107241404B (en) | Method, device and system for receiving and transmitting messages | |
CN110769049A (en) | Power distribution terminal and SOE data uploading method thereof | |
CN110674068A (en) | Information interaction method among board cards, distributed board card and storage medium | |
CN106844502B (en) | Data consistency processing method and equipment | |
CN1754343A (en) | Method and system for handoff to a destination base station by measuring signal strength of carrier signals during at least one csma-backoff time | |
CN105072047A (en) | Message transmitting and processing method | |
CN111479307A (en) | Data transmission method, device, AP and storage medium | |
CN105933092B (en) | Data transmission method and system based on circuit switching | |
US20020083209A1 (en) | Method and system for registering binary data | |
US8799351B1 (en) | Communicating multiple files in markup language documents | |
CN1747455A (en) | System and method for sending e-mail by user identify code | |
CN110932980B (en) | Communication method, terminal, and computer-readable storage medium | |
CN110278177B (en) | IP packet header detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |