Blockchain transaction address analysis method, medium and device based on centrality algorithm

Through the blockchain transaction address analysis method based on the centrality algorithm, high-risk transaction addresses in the blockchain are identified, which solves the problem of difficulty in identifying high-risk transaction addresses in the existing technology and achieves effective monitoring of risky transactions in the blockchain. and blocking, protecting the security of users and digital assets.

CN118469716BActive Publication Date: 2024-10-29FUJIAN HONGCHUANG TECH INFORMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410941956.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-29
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

High-risk transaction addresses are difficult to identify in existing blockchain technology, and the lack of aggregated address labels makes model training difficult, affecting user rights and digital asset security.

Method used

Using the blockchain transaction address analysis method based on the centrality algorithm, by obtaining and cleaning transaction data, we screen out the account addresses that meet the preset conditions, perform correlation analysis and multiple centrality algorithm analyses, and generate a potential risk account address analysis chart. Determine the final risk transaction address.

Benefits of technology

Effectively identify and monitor high-risk transaction addresses in the blockchain, help prevent illegal transaction activities, and protect user rights and digital asset security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469716B_ABST
    Figure CN118469716B_ABST
Patent Text Reader

Abstract

The present invention discloses a blockchain transaction address analysis method, medium and device based on a centrality algorithm. The method analyzes the capital flow of account addresses in the blockchain, determines the centrality algorithm that finally participates in the calculation according to the change trend of different centrality algorithms in the potential risk account address analysis diagram, outputs the final risk transaction address according to the intersection of the centrality algorithms finally determined to participate in the calculation in the potential risk account address analysis diagram, and can more intuitively see the distribution of high-risk transactions in the current blockchain, which can help monitor, track and prevent illegal transaction activities, and protect the rights and interests of users and the security of digital assets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain, and specifically to a blockchain transaction address analysis method, medium and device based on a centrality algorithm. Background Art

[0002] As a decentralized digital ledger technology, blockchain technology has attracted widespread attention and application in the financial field. It provides participants with a reliable, transparent and highly secure transaction method through distributed accounting, removal of trust dependence on centralized institutions and secure transaction records.

[0003] Although blockchain technology provides users with a certain degree of anonymity and security in the field of cryptocurrency, it also derives a series of potential risks. High-risk transactions refer to those transactions with potential risks. The existence of such transactions in the field of digital currency poses a threat to the stable operation of the entire digital economic ecosystem and the asset security of users.

[0004] At present, digital currency, as one of the applications of blockchain technology, has been widely recognized and used around the world. Due to its widespread use and huge transaction volume, some digital currencies also bring a series of risk issues that need to be resolved. How to identify high-risk transaction addresses in the blockchain is an issue that needs to be urgently resolved in this field, which will be of great benefit to protecting the rights and interests of users and the security of digital assets. Summary of the invention

[0005] In view of the above problems, the present application provides a technical solution for blockchain transaction address analysis based on a centrality algorithm to solve the technical problems in existing blockchains where high-risk transaction addresses are difficult to identify and models are difficult to train due to the lack of aggregated address labels.

[0006] To achieve the above objectives, in a first aspect, the present application provides a blockchain transaction address analysis method based on a centrality algorithm, the method comprising the following steps:

[0007] S1: Obtain transaction data of at least one entry address on the blockchain public chain;

[0008] S2: Cleaning the transaction data of the entry address, screening out the first account address that meets the first preset condition, and performing deduplication processing on the screened out first account address according to the transaction hash value to obtain a primary address data set, wherein the transaction data of the entry address is the transaction data corresponding to all transaction addresses that have transactions with the entry address;

[0009] S3: Acquire transaction data corresponding to all primary addresses in the primary address data set, filter out second account addresses that meet the second preset condition, and obtain a secondary address data set, wherein the transaction data corresponding to the primary address is the transaction data generated by the transaction address that has transaction behavior with the primary address;

[0010] S4: Acquire transaction data corresponding to all secondary addresses in the secondary address data set, filter out account addresses that meet the third preset condition, and obtain the transaction center address, wherein the transaction data corresponding to the secondary address is the transaction data generated by the transaction address that has transaction behavior with the secondary address, and the third preset condition includes any one or more of the number of transactions being greater than the preset number of transactions, the total transaction amount being greater than the preset total amount, and the net amount of the account address being greater than the preset net amount;

[0011] S5: Perform correlation analysis and judgment on all transaction center addresses. If it is determined that the transaction frequency between two account addresses exceeds the first threshold and / or the total transaction amount exceeds the second threshold, the two account addresses are listed as potential risk account addresses and the risk level is marked according to the excess margin; and the above judgment is performed on all transaction center addresses in turn to obtain a potential risk account address data set;

[0012] S6: Screening out a preset number of potential risk account addresses with top risk levels from the potential risk account address data set, using multiple centrality algorithms to analyze the preset number of potential risk account addresses with top risk levels, and deriving a potential risk account address analysis graph, wherein the abscissa of the potential risk account address analysis graph is the risk level ranking order corresponding to the preset number of potential risk account addresses with top rankings, and the potential risk account address analysis graph is the importance of the potential risk account addresses obtained after normalization, and the importance is proportional to the risk level of the potential risk account address;

[0013] S7: Determine the centrality algorithm that will eventually participate in the calculation according to the changing trends of different centrality algorithms in the potential risk account address analysis diagram, and output the final risk transaction address according to the intersection of the centrality algorithms that will eventually participate in the calculation in the potential risk account address analysis diagram.

[0014] As an optional embodiment, the transaction data of the entry address includes: transaction hash value, block height, transaction time, transaction sender address, transaction receiver address, transaction amount, token symbol, token address and whether the transaction is confirmed;

[0015] The first account address that meets the first preset condition is: the token symbol is a preset symbol, the transaction amount is greater than the preset unit transaction amount, and the account address corresponding to the transaction data confirming the success of the transaction.

[0016] As an optional embodiment, the method further includes, after step S2:

[0017] Performing primary processing on the primary addresses in the primary address data set, and grouping the primary addresses after the primary processing according to a first preset grouping condition, to obtain a primary address transaction network filter graph and present it visually;

[0018] The primary processing includes filtering out primary addresses whose transaction data capacity reaches a first preset capacity, and the first preset collection condition is that the transaction time is within a first preset transaction time range and the transaction amount value meets a first specific transaction amount condition.

[0019] As an optional embodiment, the method further includes, after step S3:

[0020] Perform secondary processing on the secondary addresses in the secondary address data set, and group the secondary addresses after the secondary processing according to a second preset grouping condition to obtain a secondary address transaction network filter graph and visualize it;

[0021] The secondary processing includes filtering out secondary addresses whose transaction data capacity reaches a second preset capacity, and the second preset collection condition is that the transaction time of the transaction data is within a first preset transaction time range, the transaction amount value satisfies a first specific transaction amount condition, and the transaction amount value is greater than a preset transaction amount value.

[0022] As an optional embodiment, the centrality algorithm includes at least three of a pangeRank algorithm, an Eigenvector algorithm, a Katz algorithm, a Degree algorithm, a Betweenness algorithm, and a closeness algorithm.

[0023] As an optional embodiment, determining the centrality algorithm finally involved in the calculation according to the change trend of different centrality algorithms in the potential risk account address analysis diagram includes:

[0024] A first number of potential risk account addresses ranked high are further selected from the preset number, and the change trend amplitudes of the selected risk account addresses obtained under the analysis of different centrality algorithms are analyzed, and a score is calculated according to the change trend amplitude, and several centrality algorithms with the highest scores are used as the centrality algorithms finally involved in the calculation;

[0025] The greater the gradient change in the importance degree corresponding to the risk account addresses ranked by adjacent risk levels, the higher the score.

[0026] As an optional embodiment, outputting the final risk transaction address according to the intersection of the potential risk account address analysis graph according to the centrality algorithm finally determined to participate in the calculation includes:

[0027] If the judgment results of multiple centrality algorithms finally determined to participate in the calculation are consistent, then a number of risky transaction addresses with the highest degree of importance determined by the centrality algorithms finally participating in the calculation are selected as the final risky transaction addresses;

[0028] If the judgment results of multiple centrality algorithms finally determined to participate in the calculation are inconsistent, the union of several risky transaction addresses with the highest degree of importance determined by the centrality algorithms finally participating in the calculation is selected as the final risky transaction address.

[0029] As an optional embodiment, if it is determined that the transaction frequency between two account addresses exceeds a first threshold and / or the total transaction amount exceeds a second threshold, the two account addresses are listed as potential risk account addresses and the risk level is marked according to the excess amount, including:

[0030] Obtain all transaction data of a certain transaction account address, calculate a risk score for each transaction data of the transaction account address, and obtain a risk score sequence. The risk score is determined according to the transaction amount and the risk weight. The risk score is proportional to the transaction amount of the current transaction data, and the risk weight is determined according to the distance between the transaction time and the current timestamp;

[0031] A risk sampling threshold is set to filter the risk score sequence, and only the risk scores in the risk score sequence whose risk scores are higher than the risk sampling threshold are retained. A new risk score sequence is obtained, and an association analysis is performed again based on the new risk score sequence to determine all potential risk account addresses corresponding to the current transaction account address, and a first potential risk account address set is obtained and recorded;

[0032] The above judgment is performed on all trading center addresses in turn, and the potential risk account address data set obtained includes:

[0033] Select one from the first potential risk account address set as the new current transaction account address, and recalculate the second potential risk account address set in the same way based on the transaction data of the new current transaction account address and record it;

[0034] Repeat the above steps until the potential risk account address set calculated based on the new current transaction account address is empty, count and take the union of the elements in the potential risk account address set corresponding to all transaction account addresses to obtain the potential risk account address data set.

[0035] In a second aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the blockchain transaction address analysis method based on the centrality algorithm as described in the first aspect of the present application.

[0036] In a third aspect, the present application provides an electronic device having a computer program stored thereon, comprising a processor and a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor, the blockchain transaction address analysis method based on the centrality algorithm as described in the first aspect of the present application is implemented.

[0037] Different from the prior art, the blockchain transaction address analysis method, medium and device based on the centrality algorithm in the above technical solution analyzes the flow of funds of the account address in the blockchain, determines the centrality algorithm finally involved in the calculation according to the change trend of different centrality algorithms in the potential risk account address analysis diagram, outputs the final risk transaction address according to the intersection of the centrality algorithms finally determined to participate in the calculation in the potential risk account address analysis diagram, and can more intuitively see the distribution of high-risk transactions in the current blockchain, which can help monitor, track and prevent illegal transaction activities and protect the rights and interests of users and the security of digital assets.

[0038] The above-mentioned records related to the invention content are only an overview of the technical solution of the present application. In order to enable ordinary technicians in the field to more clearly understand the technical solution of the present application, and then implement it according to the text of the specification and the contents recorded in the drawings, and to make the above-mentioned purpose and other purposes, features and advantages of the present application easier to understand, the following is an explanation in combination with the specific implementation mode and drawings of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings are only used to illustrate the principles, implementation methods, applications, characteristics and effects of the specific embodiments of the present invention and other related contents, and shall not be considered as limiting the present application.

[0040] In the drawings of the specification:

[0041] Figure 1 This is a flowchart of the blockchain transaction address analysis method based on the centrality algorithm described in the first exemplary embodiment of this application;

[0042] Figure 2 This is a flowchart of the blockchain transaction address analysis method based on the centrality algorithm described in the second exemplary embodiment of the present application;

[0043] Figure 3 This is a flowchart of the blockchain transaction address analysis method based on the centrality algorithm described in the third exemplary embodiment of the present application;

[0044] Figure 4 This is a flowchart of the blockchain transaction address analysis method based on the centrality algorithm described in the fourth exemplary embodiment of the present application;

[0045] Figure 5 A schematic diagram of an electronic device according to an exemplary embodiment of the present application;

[0046] Figure 6 This is a flowchart of the blockchain transaction address analysis method based on the centrality algorithm described in the fifth exemplary embodiment of the present application;

[0047] Figure 7 This is a schematic diagram of the hierarchical association relationship of transaction addresses involved in an exemplary embodiment of the present application;

[0048] Figure 8 A schematic diagram of visualized all first-level addresses in a first-level address data set involved in an exemplary embodiment of the present application;

[0049] Fig. 9 A schematic diagram of a primary address transaction network filter graph involved in an exemplary embodiment of the present application;

[0050] Fig.10 A schematic diagram of a secondary address transaction network filtering graph involved in an exemplary embodiment of the present application;

[0051] Fig.11 A transaction network diagram of several account addresses with the highest transaction frequency involved in an exemplary embodiment of the present application;

[0052] Fig.12 A schematic diagram of a transaction network of several account addresses with the highest total transaction amounts involved in an exemplary embodiment of the present application;

[0053] Fig.13 A visual schematic diagram of a final risk transaction address involved in an exemplary embodiment of the present application;

[0054] Fig.14 This is a schematic diagram of the changing trends of different centrality algorithms involved in an exemplary embodiment of the present application in the potential risk account address analysis diagram.

[0055] The reference numerals in the above drawings are described as follows:

[0056] 10. Electronic equipment;

[0057] 101. Processor;

[0058] 102. Storage medium. DETAILED DESCRIPTION

[0059] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0060] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.

[0061] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.

[0062] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.

[0063] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.

[0064] Without further limitations, in this application, the words "include", "comprises", "has" or other similar open-ended expressions used in sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.

[0065] Similar to the understanding in the Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.

[0066] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.

[0067] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0068] In the first aspect, Figure 1 As shown, the present application provides a blockchain transaction address analysis method based on a centrality algorithm, the method comprising the following steps:

[0069] S1: Obtain transaction data of at least one entry address on the blockchain public chain;

[0070] S2: Cleaning the transaction data of the entry address, screening out the first account address that meets the first preset condition, and performing deduplication processing on the screened out first account address according to the transaction hash value to obtain a primary address data set, wherein the transaction data of the entry address is the transaction data corresponding to all transaction addresses that have transactions with the entry address;

[0071] S3: Acquire transaction data corresponding to all primary addresses in the primary address data set, filter out second account addresses that meet the second preset condition, and obtain a secondary address data set, wherein the transaction data corresponding to the primary address is the transaction data generated by the transaction address that has transaction behavior with the primary address;

[0072] S4: Acquire transaction data corresponding to all secondary addresses in the secondary address data set, filter out account addresses that meet the third preset condition, and obtain the transaction center address, wherein the transaction data corresponding to the secondary address is the transaction data generated by the transaction address that has transaction behavior with the secondary address, and the third preset condition includes any one or more of the number of transactions being greater than the preset number of transactions, the total transaction amount being greater than the preset total amount, and the net amount of the account address being greater than the preset net amount;

[0073] S5: Perform correlation analysis and judgment on all transaction center addresses. If it is determined that the transaction frequency between two account addresses exceeds the first threshold and / or the total transaction amount exceeds the second threshold, the two account addresses are listed as potential risk account addresses and the risk level is marked according to the excess margin; and the above judgment is performed on all transaction center addresses in turn to obtain a potential risk account address data set;

[0074] S6: Screening out a preset number of potential risk account addresses with top risk levels from the potential risk account address data set, using multiple centrality algorithms to analyze the preset number of potential risk account addresses with top risk levels, and deriving a potential risk account address analysis graph, wherein the abscissa of the potential risk account address analysis graph is the risk level ranking order corresponding to the preset number of potential risk account addresses with top rankings, and the potential risk account address analysis graph is the importance of the potential risk account addresses obtained after normalization, and the importance is proportional to the risk level of the potential risk account address;

[0075] S7: Determine the centrality algorithm that will eventually participate in the calculation according to the changing trends of different centrality algorithms in the potential risk account address analysis diagram, and output the final risk transaction address according to the intersection of the centrality algorithms that will eventually participate in the calculation in the potential risk account address analysis diagram.

[0076] In step S1, blockchain is a distributed database technology that stores data in the form of blocks and uses cryptographic methods to ensure the security and integrity of the data. Each block contains a certain amount of transaction data, and each new block contains the encrypted hash value of the previous block, forming an unalterable chain. The characteristics of blockchain technology include decentralization, transparency, security and traceability, so it is widely used in data management and transaction records in cryptocurrency and other fields. The entry address of a blockchain usually refers to a wallet address or node address in a specific blockchain network, which is used to access and manage assets or data on the blockchain.

[0077] In step S2, the transaction data of the entry address includes: transaction hash value, block height, transaction time, transaction sender address, transaction receiver address, transaction amount, token symbol, token address and whether the transaction is confirmed. The first account address that meets the first preset condition is: the token symbol is the preset symbol, the transaction amount is greater than the preset unit transaction amount and the transaction data confirming the success of the transaction corresponds to the account address.

[0078] Transaction Hash is a unique identifier for each transaction on the blockchain. When a transaction is created and broadcast to the network, it is hashed by an encryption algorithm (such as SHA-256) to generate a fixed-length, unique hash value. This hash value is recorded on the blockchain, and the detailed information of the transaction can be queried through this hash value. In the blockchain, users can query the detailed information of the transaction through the transaction hash value, such as the input and output of the transaction, the number of confirmations, the transaction status, etc.

[0079] Block Height is the number of blocks created on the blockchain, or the position in the chain. The height of the Genesis Block is 0, and the height of each subsequent new block is 1 higher than the previous one. Block Height is usually used to indicate the sequential position of a block in the entire blockchain and is an important technical parameter in the blockchain.

[0080] A token symbol is usually a short combination of letters that uniquely identifies a specific cryptocurrency or token. This symbol is usually defined by the project or token issuer and is used for identification and trading on platforms such as exchanges, wallets, and blockchain browsers.

[0081] A token address is a specific address where a token is stored. These addresses are usually smart contract addresses on a blockchain transaction network or account addresses on other blockchains, which are used to record and manage the ownership and transactions of the token on the blockchain. Each token address is associated with a specific token contract, and tokens can be stored, transferred, and queried through these addresses.

[0082] Whether a transaction is confirmed refers to whether a transaction has been verified by the verification nodes in the blockchain network and included in a block, forming a confirmation record on the blockchain. On the blockchain, once a transaction is included in a block and has enough confirmations (usually confirmations of multiple blocks), the transaction is considered safe and valid.

[0083] By setting the first preset condition, all transaction addresses in the blockchain can be preliminarily screened, narrowing the scope of analysis and judgment, and facilitating further analysis. For example, the first preset condition can be set as the token symbol is A (for example only), the transaction amount is greater than 50, and the transaction is confirmed to be successful. Then, the transaction data that meets the first preset condition is deduplicated according to the transaction hash value. The resulting diagram of all the first-level addresses in the first-level address data set after visualization is as follows: Figure 8 shown.

[0084] In some embodiments, the method further includes, after step S2: performing primary processing on the primary addresses in the primary address data set, and grouping the primary addresses after the primary processing according to a first preset grouping condition, to obtain a primary address transaction network filter graph and present it visually; the primary processing includes filtering out primary addresses whose transaction data capacity reaches a first preset capacity, and the first preset grouping condition is that the transaction time is within a first preset transaction time range and the transaction amount value satisfies a first specific transaction amount condition.

[0085] For example, the first preset collection condition can be set as transaction addresses with transaction amounts that are integer multiples of 100, transaction times within the past six months, and transaction data capacity exceeding 2MB (this is to ensure that the center of the transaction network will not shift to such addresses). The first-level address transaction network filter diagram obtained after filtering is as follows: Fig. 9 shown.

[0086] In step S3, the second preset condition is similar to the first preset condition, except that the preset unit transaction amount set in the second preset condition is higher than that in the first preset condition. For example, an account address with a total transaction amount exceeding 10,000 can be selected.

[0087] Preferably, after step S3, the method further includes: performing secondary processing on the secondary addresses in the secondary address data set, and grouping the secondary addresses after the secondary processing according to a second preset grouping condition, obtaining a secondary address transaction network filter diagram and visually presenting it; the secondary processing includes filtering out secondary addresses whose transaction data capacity reaches a second preset capacity, and the second preset grouping condition is that the transaction time of the transaction data is within a first preset transaction time range, the transaction amount value satisfies a first specific transaction amount condition, and the transaction amount value is greater than a preset transaction amount value. The secondary address transaction network filter diagram is shown in FIG. Fig.10 shown.

[0088] like Fig.10 As shown, it can be found that although the transaction network is relatively concentrated, there is still relatively marginalized transaction information around the transaction network. In order to better extract the central transaction network, the account address is further screened by setting the third preset condition, specifically, the transaction flow, transaction number and net amount in the account of each address in the transaction network are counted, and through the statistical analysis of these three dimensions, it is found that the distribution difference in the data is large, such as 99.98% of the address transaction times are less than 30 times, but the top three values ​​of the account transaction times are 1919, 1519 and 588 respectively. Therefore, in order to capture the central network, the third preset condition can be set to account addresses with more than 30 transactions, more than 10,000 total transaction flow amount and more than 5,000 net amount, and the selected account addresses can be combined to obtain 171 addresses, which are used as the transaction center address. After the transaction center address is obtained, the central address with a transaction data capacity greater than the third preset capacity in the transaction center address can also be filtered to prevent the transaction center from shifting to such addresses.

[0089] Taking a certain digital currency transaction scenario as an example, the distribution of the top 26 transaction nodes with the highest transaction frequency is as follows: Fig.11 As shown in the figure, the distribution of the top 24 transaction nodes with the highest total transaction amount is as follows: Fig.12 As shown. Fig.11 and Fig.12 The comparison also shows that addresses with more active transactions and more transaction flows are connected, and have a higher probability of being addresses of high-risk transactions. This also verifies the feasibility of the method of using statistical information to extract the central network in this application.

[0090] Preferably, the filtered transaction center address network can be further filtered and analyzed in step S5, specifically filtering out account addresses with transaction time ranges within the past six months and transaction amounts that are integer multiples of 100 or transaction amounts greater than 5,000. The transaction center network distribution obtained after screening is as follows: Fig.13 shown.

[0091] In step S6, the centrality algorithm includes at least three of the following: pangeRank algorithm, Eigenvector algorithm, Katz algorithm, Degree algorithm, Betweenness algorithm, and closeness algorithm.

[0092] In some embodiments, Figure 2 As shown, the centrality algorithm finally involved in the calculation is determined according to the changing trend of different centrality algorithms in the potential risk account address analysis diagram, including:

[0093] First, enter step S201 to further select a first number of potential risk account addresses ranked high from the preset number, and analyze the change trend amplitude of the selected risk account addresses obtained under different centrality algorithm analyses;

[0094] Then, step S202 is entered to calculate a score according to the magnitude of the change trend, and several centrality algorithms with higher scores are used as the centrality algorithms finally involved in the calculation; the greater the gradient change of the importance degree corresponding to the risk account addresses ranked by adjacent risk levels, the higher the score.

[0095] Taking the transaction data of a certain digital currency in the past six months as an example, the edge between transaction nodes represents a transaction, each node is an account address, and the weight of the edge is the transaction amount. The importance of each node can be determined according to the weight, and several nodes with the highest importance are exported. In order to compare the changing trends of various centrality algorithms, the importance of the top 10 nodes calculated by the previous centrality algorithms is normalized using maximum and minimum normalization. The results are as follows: Fig.14 shown.

[0096] from Fig.14 It can be analyzed that the three algorithms, pangeRank algorithm, Eigenvector centrality and Katz centrality, have the largest changes in the top three nodes, but the importance of Eigenvector centrality algorithm changes less obviously from the third node, Degreecentrality and Betweenness centrality algorithms decrease more steadily, and closeness algorithm changes the least obviously. Therefore, pangeRank, Eigenvectorcentrality and Katz centrality algorithms are used preferentially to determine the suspicious collection address. At the same time, the first-ranked address of the three algorithms is the same, so the address is considered to be more suspicious.

[0097] In some embodiments, the outputting of the final risk transaction address according to the intersection of the potential risk account address analysis graph based on the finally determined centrality algorithm involved in the calculation comprises:

[0098] If the judgment results of multiple centrality algorithms finally determined to participate in the calculation are consistent, then a number of risky transaction addresses with the highest degree of importance determined by the centrality algorithms finally participating in the calculation are selected as the final risky transaction addresses;

[0099] If the judgment results of multiple centrality algorithms finally determined to participate in the calculation are inconsistent, the union of several risky transaction addresses with the highest degree of importance determined by the centrality algorithms finally participating in the calculation is selected as the final risky transaction address.

[0100] In some embodiments, Figure 3 As shown, if it is determined that the transaction frequency between two account addresses exceeds the first threshold and / or the total transaction amount exceeds the second threshold, the two account addresses are listed as potential risk account addresses and the risk level is marked according to the excess range, including:

[0101] First, enter step S301 to obtain all transaction data of a certain transaction account address, calculate a risk score for each transaction data of the transaction account address, and obtain a risk score sequence. The risk score is determined according to the transaction amount and the risk weight. The risk score is proportional to the transaction amount of the current transaction data, and the risk weight is determined according to the distance between the transaction time and the current timestamp;

[0102] Then, step S302 is entered to set a risk sampling threshold, and the risk score sequence is screened, and only the risk scores in the risk score sequence whose risk scores are higher than the risk sampling threshold are retained, and a new risk score sequence is obtained. According to the new risk score sequence, an association analysis is performed again to determine all potential risk account addresses corresponding to the current transaction account address, and a first potential risk account address set is obtained and recorded;

[0103] like Figure 4 As shown, the above judgment is performed on all transaction center addresses in turn, and the potential risk account address data set obtained includes:

[0104] First, enter step S401 to select one from the first potential risk account address set as the new current transaction account address, and recalculate and record the second potential risk account address set in the same manner according to the transaction data of the new current transaction account address;

[0105] Then, step S402 is entered to repeat the above steps until the potential risk account address set calculated based on the new current transaction account address is empty, and the elements in the potential risk account address set corresponding to all transaction account addresses are counted and the union is taken to obtain the potential risk account address data set.

[0106] In step S401, after the new current transaction account address is determined, a second potential risk account address set may be determined and recorded in a manner similar to steps S301-S302.

[0107] In step S402, "repeat the above steps" means selecting the next account address as the current transaction account address, and determining and recording the current potential risk account address set in a similar manner as steps S301-S302.

[0108] Through Figure 3 and Figure 4 The method shown can further improve the accuracy of screening potential risk account addresses.

[0109] The purpose of this invention is to propose a method for analyzing and obtaining suspicious collection addresses of high-risk transaction funds, using the centrality algorithm to deeply analyze and mine transaction information, and solve the problem of a large number of transaction addresses and complex networks in the high-risk transaction network on TRON. The overall functional flow chart is as follows Figure 6 As shown:

[0110] (1) Crawl transaction data from digital currency trading websites.

[0111] High-risk transaction analysis mainly starts from one or more entry addresses. The entry address in this example is single. The relevant transaction data packets of the entry address can be crawled by crawler technology.

[0112] (2) Preprocess the transaction data (i.e., the data cleaning operations mentioned above) to obtain a preliminary transaction network, and then filter it according to the number of transactions, transaction flow, and account net balance to obtain the central transaction network.

[0113] (3) Analyze the central transaction network of each quarter and use the centrality algorithm to further analyze the suspicious collection address set.

[0114] like Figure 7 As shown, for the analysis of transaction addresses in the transaction network, in addition to analyzing the entry address and the first-level address ( Figure 7 ) and the second-level address ( Figure 7 In addition to the three levels of address analysis ( Figure 7The third-level address is the account address with transaction data with the second-level address. Through more levels of address analysis, the screening coverage of suspicious collection addresses can be wider.

[0115] In a second aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the blockchain transaction address analysis method based on the centrality algorithm as described in the first aspect of the present invention.

[0116] The computer-readable storage medium may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.

[0117] The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD ROM); the magnetic surface memory can be a disk memory or a tape memory.

[0118] The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The computer-readable storage medium described in the embodiments of the present invention is intended to include these and any other suitable types of memory.

[0119] like Figure 5 As shown, in the third aspect, the present invention provides an electronic device 10, including a processor 101 and a storage medium 102, on which a computer program is stored, and when the computer program is executed by the processor, the blockchain transaction address analysis method based on the centrality algorithm as described in the first aspect of the present invention is implemented.

[0120] In some embodiments, the processor can be implemented by software, hardware, firmware or a combination thereof, and can use a circuit, a single or multiple application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, at least one of a microprocessor, so that the processor can execute some or all of the steps in the blockchain transaction address analysis method based on the centrality algorithm described in the various embodiments of the present application, or any combination of the steps therein.

[0121] In summary, this application is based on the centrality algorithm, and proposes a method for analyzing and determining the collection address of high-risk transactions on TRON, which belongs to the field of blockchain application technology. It mainly uses algorithms such as pangeRank, Eigenvector centrality, and Katz centrality to analyze the central nodes in the transaction network, and also uses a large number of case analysis to analyze the characteristics of the collection address to analyze and process the transaction data. The present invention uses a variety of centrality algorithms and combines them with the collection address features obtained from a large number of case summaries to analyze, solving the problem of difficulty in training models due to lack of collection address labels.

[0122] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.

Claims

1. A blockchain transaction address analysis method based on centrality algorithm, It is characterized in that The method comprises the following steps: S1: Obtain transaction data of at least one entry address on the blockchain public chain; S2: Cleaning the transaction data of the entry address, screening out the first account address that meets the first preset condition, and performing deduplication processing on the screened out first account address according to the transaction hash value to obtain a primary address data set, wherein the transaction data of the entry address is the transaction data corresponding to all transaction addresses that have transactions with the entry address; S3: Acquire transaction data corresponding to all primary addresses in the primary address data set, filter out second account addresses that meet the second preset condition, and obtain a secondary address data set, wherein the transaction data corresponding to the primary address is the transaction data generated by the transaction address that has transaction behavior with the primary address; S4: Acquire transaction data corresponding to all secondary addresses in the secondary address data set, filter out account addresses that meet the third preset condition, and obtain the transaction center address, wherein the transaction data corresponding to the secondary address is the transaction data generated by the transaction address that has transaction behavior with the secondary address, and the third preset condition includes any one or more of the number of transactions being greater than the preset number of transactions, the total transaction amount being greater than the preset total amount, and the net amount of the account address being greater than the preset net amount; S5: Perform correlation analysis and judgment on all transaction center addresses. If it is determined that the transaction frequency between two account addresses exceeds the first threshold and / or the total transaction amount exceeds the second threshold, the two account addresses are listed as potential risk account addresses and the risk level is marked according to the excess margin; and the above judgment is performed on all transaction center addresses in turn to obtain a potential risk account address data set; S6: Screening out a preset number of potential risk account addresses with top risk levels from the potential risk account address data set, using multiple centrality algorithms to analyze the preset number of potential risk account addresses with top risk levels, and deriving a potential risk account address analysis graph, wherein the abscissa of the potential risk account address analysis graph is the risk level ranking order corresponding to the preset number of potential risk account addresses with top rankings, and the potential risk account address analysis graph is the importance of the potential risk account addresses obtained after normalization, and the importance is proportional to the risk level of the potential risk account address; S7: Determine the final centrality algorithm involved in the calculation according to the change trend of different centrality algorithms in the potential risk account address analysis diagram, and output the final risk transaction address according to the intersection of the final centrality algorithm involved in the calculation in the potential risk account address analysis diagram; The centrality algorithm finally involved in the calculation is determined according to the changing trend of different centrality algorithms in the potential risk account address analysis diagram, including: A first number of potential risk account addresses ranked high are further selected from the preset number, and the change trend amplitudes of the selected risk account addresses obtained under the analysis of different centrality algorithms are analyzed, and a score is calculated according to the change trend amplitude, and several centrality algorithms with the highest scores are used as the centrality algorithms finally involved in the calculation; The greater the gradient change in the importance of risk account addresses in adjacent risk level rankings, the higher the score; The intersection of the centrality algorithm involved in the calculation in the potential risk account address analysis graph according to the final determination, outputting the final risk transaction address includes: If the judgment results of multiple centrality algorithms finally determined to participate in the calculation are consistent, then a number of risky transaction addresses with the highest degree of importance determined by the centrality algorithms finally participating in the calculation are selected as the final risky transaction addresses; If the judgment results of multiple centrality algorithms finally determined to participate in the calculation are inconsistent, then the intersection of several risky transaction addresses with the highest degree of importance determined by the centrality algorithms finally participating in the calculation is selected as the final risky transaction address; If it is determined that the transaction frequency between two account addresses exceeds the first threshold and / or the total transaction amount exceeds the second threshold, the two account addresses are listed as potential risk account addresses and the risk level is marked according to the excess, including: Obtain all transaction data of a certain transaction account address, calculate a risk score for each transaction data of the transaction account address, and obtain a risk score sequence. The risk score is determined according to the transaction amount and the risk weight. The risk score is proportional to the transaction amount of the current transaction data, and the risk weight is determined according to the distance between the transaction time and the current timestamp; A risk sampling threshold is set to filter the risk score sequence, and only the risk scores in the risk score sequence whose risk scores are higher than the risk sampling threshold are retained. A new risk score sequence is obtained, and an association analysis is performed again based on the new risk score sequence to determine all potential risk account addresses corresponding to the current transaction account address, and a first potential risk account address set is obtained and recorded; The above judgment is performed on all trading center addresses in turn, and the potential risk account address data set obtained includes: Select one from the first potential risk account address set as the new current transaction account address, and recalculate the second potential risk account address set in the same way based on the transaction data of the new current transaction account address and record it; Repeat the above steps until the potential risk account address set calculated based on the new current transaction account address is empty, count and take the union of the elements in the potential risk account address set corresponding to all transaction account addresses to obtain the potential risk account address data set.

2. The blockchain transaction address analysis method based on the centrality algorithm as claimed in claim 1, It is characterized in that The transaction data of the entry address includes: transaction hash value, block height, transaction time, transaction sender address, transaction receiver address, transaction amount, token symbol, token address and whether the transaction is confirmed; The first account address that meets the first preset condition is: the token symbol is a preset symbol, the transaction amount is greater than the preset unit transaction amount, and the account address corresponding to the transaction data confirming the success of the transaction.

3. The blockchain transaction address analysis method based on the centrality algorithm as claimed in claim 1, It is characterized in that The method further comprises, after step S2: Performing primary processing on the primary addresses in the primary address data set, and grouping the primary addresses after the primary processing according to a first preset grouping condition, to obtain a primary address transaction network filter graph and present it visually; The primary processing includes filtering out primary addresses whose transaction data capacity reaches a first preset capacity, and the first preset collection condition is that the transaction time is within a first preset transaction time range and the transaction amount value meets a first specific transaction amount condition.

4. The blockchain transaction address analysis method based on the centrality algorithm as claimed in claim 1, It is characterized in that The method further comprises, after step S3: Perform secondary processing on the secondary addresses in the secondary address data set, and group the secondary addresses after the secondary processing according to a second preset grouping condition to obtain a secondary address transaction network filter graph and visualize it; The secondary processing includes filtering out secondary addresses whose transaction data capacity reaches a second preset capacity, and the second preset collection condition is that the transaction time of the transaction data is within a first preset transaction time range, the transaction amount value satisfies a first specific transaction amount condition, and the transaction amount value is greater than a preset transaction amount value.

5. The blockchain transaction address analysis method based on the centrality algorithm as claimed in claim 1, It is characterized in that The centrality algorithm includes at least three of a pangeRank algorithm, an Eigenvector algorithm, a Katz algorithm, a Degree algorithm, a Betweenness algorithm, and a closeness algorithm.

6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the blockchain transaction address analysis method based on the centrality algorithm as described in any one of claims 1 to 5 is implemented.

7. An electronic device having a computer program stored thereon, It is characterized in that It includes a processor and a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by the processor, a blockchain transaction address analysis method based on a centrality algorithm as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Risk prediction method and device based on classification tree, equipment and medium

    CN113256191A

  • Transaction risk assessment method and device, electronic equipment and storage medium

    CN115034788A