Virtual currency address association analysis method, medium and device based on clustering rules

Through the virtual currency address correlation analysis method based on clustering rules, the problem of failing to pay attention to the collaborative behavior characteristics of multiple transaction addresses in blockchain technology is solved, the correlation analysis of virtual currency transaction addresses is realized, and the accuracy of supervision is improved. sex and efficiency.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing blockchain technology fails to effectively pay attention to the collaborative behavior characteristics of multiple transaction addresses when analyzing virtual currency transaction addresses, resulting in the inability to dig out the implicit correlation characteristics of deposit addresses and withdrawal addresses, which brings challenges to the supervision of cryptocurrency difficulty.

Method used

Using the virtual currency address correlation analysis method based on clustering rules, by obtaining the transaction data of the virtual currency contract address on the public blockchain chain, the data is cleaned and collected, and the data is analyzed according to the transaction active time, transaction time span and transaction time distribution, etc. The rules perform correlation analysis, output relevant transaction addresses, and verify the correlation through the neural network model to build an correlation diagram.

Benefits of technology

It effectively unearths the implicit correlation characteristics of deposit and withdrawal addresses in virtual currency transactions, improves the efficiency and accuracy of supervision of cryptocurrency transactions, and provides a solid foundation for strengthening the supervision of virtual currency transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552314B_ABST
    Figure CN118552314B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, medium and device for analyzing the association of virtual currency addresses based on clustering rules, the method comprising: S1: obtaining first transaction data of a virtual currency contract address on a public blockchain; S2: performing data cleaning on the first transaction data, and grouping the first transaction data after data cleaning according to transaction hash values ​​and transaction types, to obtain second transaction data corresponding to the virtual currency contract address, the second transaction data comprising a deposit transaction data set and a withdrawal transaction data set; S3: performing association analysis on the transaction addresses contained in the deposit transaction data set and the withdrawal transaction data set respectively according to clustering rules, and outputting transaction addresses with association. The above scheme analyzes the association of virtual currency transaction addresses with transaction activity time as a dimension, which can mine the implicit association characteristics of deposit and withdrawal addresses in virtual currency transactions, and is helpful to strengthen the supervision of virtual currency transactions.
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 virtual currency address association analysis method, medium and device based on clustering rules. 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. Blockchain technology is now widely used in the field of cryptocurrency.

[0003] The Chinese patent application with publication number CN109087079A provides a method for analyzing digital currency transaction information, including: obtaining multiple digital currency transaction information, the transaction information at least including the transaction address; merging the transaction addresses of multiple transaction information with the same transaction address into an address cluster; marking the address cluster with identity information, and generating address cluster transaction information based on the address cluster and the transaction information. The address cluster is constructed by the transaction address, and the transaction address can select the transaction input or output address, and the associated addresses are merged into an address cluster. The address cluster is marked according to the mixed marking information of the addresses in the address cluster, which can greatly reduce the amount of marking, so that real-name marking can be realized. In addition, by merging address clusters, each address cluster can be verified by multiple transaction addresses, so that erroneous marking information can be filtered, thereby improving the accuracy of real-name marking.

[0004] However, the content disclosed in the above patent does not break the single address association method, and it is impossible to focus on the coordinated transaction behavior characteristics from a large number of transaction addresses, and to explore the implicit association characteristics between deposit addresses and withdrawal addresses in virtual currency transactions. This still brings difficulties and challenges to the supervision of transaction behaviors. Summary of the invention

[0005] In view of the above problems, the present application provides a technical solution for virtual currency address association analysis based on clustering rules to solve the technical problem that the analysis of transaction addresses in the existing blockchain does not pay attention to the behavioral characteristics of the coordination of multiple transaction addresses, and cannot explore the potential correlation of user behaviors behind the transaction addresses, which brings difficulties to the supervision of cryptocurrencies in the blockchain.

[0006] To achieve the above objectives, in a first aspect, the present application provides a virtual currency address association analysis method based on clustering rules, the method comprising the following steps:

[0007] S1: Obtain first transaction data of a virtual currency contract address on a public blockchain, wherein the first transaction data includes transaction data generated by the interaction between multiple different transaction addresses and the virtual currency contract address, and each transaction data generated by the interaction between the transaction address and the virtual currency contract address corresponds to a first transaction information, and each first transaction information includes a transaction type, a transaction hash value, a transaction amount, a transaction address, a called virtual currency contract address, a transaction time, and whether the transaction is confirmed. The transaction type includes a deposit transaction and a withdrawal transaction, and the transaction address is an address for initiating a virtual currency transaction;

[0008] S2: Clean the first transaction data, and group the cleaned first transaction data according to transaction hash values ​​and transaction types to obtain second transaction data corresponding to the virtual currency contract address, where the second transaction data includes a deposit transaction data set and a withdrawal transaction data set;

[0009] S3: performing association analysis on the transaction addresses contained in the deposit transaction data set and the withdrawal transaction data set respectively according to the clustering rule, and outputting the associated transaction addresses;

[0010] The clustering rule includes the transaction active time, and step S3 includes:

[0011] Classifying the transaction data initiated by each transaction address in the deposit transaction data set or the withdrawal transaction data set according to the transaction time, and obtaining a mapping relationship between each transaction address and the time interval range in which the transaction time is located;

[0012] Determine the time interval with the most transactions initiated by each transaction address, and record it as the first time interval;

[0013] A plurality of transaction addresses whose transaction times are concentrated within the same first time interval and whose transaction times are distributed in a consistent manner are listed as associated transaction addresses.

[0014] Furthermore, the clustering rule also includes the transaction time span, and step S3 includes:

[0015] Obtaining the transaction time of the first transaction data and the transaction time of the last transaction data of each transaction address in the deposit transaction data set or the withdrawal transaction data set within a preset time period, and calculating the difference between the two transaction times to obtain the transaction time span corresponding to each transaction address;

[0016] If the difference in the transaction time span between two transaction addresses is within the preset time error range, it is determined that the two transaction addresses are related.

[0017] Furthermore, the method further comprises:

[0018] If the difference between the transaction time spans of two transaction addresses is within the preset time error range, it is further determined whether the number of transactions initiated by the two transaction addresses within the transaction time span is close, and whether the interval distribution of the transaction time of the transaction data initiated within the transaction time span is consistent. If the judgment results are all yes, it is determined that the two transaction addresses have a first-level correlation; otherwise, it is determined that the two transaction addresses have a second-level correlation.

[0019] Furthermore, step S3 also includes:

[0020] Obtaining the transaction time corresponding to each transaction address in the deposit transaction data set, constructing a deposit transaction time matrix corresponding to each transaction address in the deposit transaction data set, and obtaining the transaction time corresponding to each transaction address in the withdrawal transaction data set, constructing a withdrawal transaction time matrix corresponding to each transaction address in the withdrawal transaction data set, wherein the deposit transaction time matrix records the correspondence between the transaction address whose transaction type is a deposit transaction and the second time interval range corresponding thereto, wherein the second time interval range is the time interval range in which the transaction address whose transaction type is a deposit transaction initiates the largest number of transactions, and the withdrawal transaction time matrix records the correspondence between the transaction address whose transaction type is a withdrawal transaction and the third time interval range corresponding thereto, wherein the third time interval range is the time interval range in which the transaction address whose transaction type is a withdrawal transaction initiates the largest number of transactions;

[0021] If, when the second time interval is the same as the third time interval, the distribution of transaction times of a transaction address in a certain deposit transaction data set and a transaction address in a certain withdrawal transaction data set within the current time interval is consistent, then it is determined that the transaction address in the deposit transaction data set is associated with the transaction address in the withdrawal transaction data set.

[0022] Furthermore, the distribution of the transaction time remains consistent including any one of the following situations:

[0023] The transaction times of the plurality of transaction data are continuous within the first time interval;

[0024] A transaction time matrix is ​​constructed based on the transaction times of multiple transactions of each transaction address within the first time interval, and it is determined whether the difference between the transaction time matrices corresponding to the two transaction addresses is within a preset similarity error range.

[0025] Furthermore, the method further comprises:

[0026] Training a neural network model, wherein the input of the neural network model is a plurality of sample transaction data, each of the sample transaction data corresponds to a sample transaction information, the sample transaction information includes a sample transaction time and a sample transaction address, and the output of the neural network model is the correlation between the sample transaction addresses;

[0027] The trained neural network model is used to verify the transaction addresses listed as being associated in step S3. If the verification passes, the identification that the two transaction addresses are associated is retained. If the verification fails, the identification that the two transaction addresses are associated is cancelled.

[0028] Furthermore, the number of the virtual currency contract addresses is multiple, and the method further includes:

[0029] For each virtual currency contract address, execute steps S1-S3 to obtain a list of associated transaction addresses corresponding to each virtual currency contract address;

[0030] The importance of the association is set according to the size of the transaction amount corresponding to the transaction data between the associated transaction addresses, and the association relationship diagram of the associated transaction addresses corresponding to each virtual currency contract address is output according to the importance of the association.

[0031] Furthermore, the method further comprises:

[0032] Setting a time analysis period and an analysis frequency, wherein the time analysis period includes a plurality of unit time periods, and each unit time period includes a plurality of the time interval ranges;

[0033] Analyze the correlation between the transaction addresses using steps S1-S3 within the time analysis period according to the set analysis frequency, and count each time it is determined that two transaction addresses are correlated;

[0034] According to the size of the count value, different identifiers are used to display the strength of the correlation between the transaction addresses in real time.

[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 virtual currency address association analysis method based on clustering rules 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 virtual currency address association analysis method based on clustering rules as described in the first aspect of the present application is implemented.

[0037] Different from the prior art, the above technical solution involves a virtual currency address association analysis method, medium and device based on clustering rules, the method comprising: S1: obtaining the first transaction data of the virtual currency contract address on the public blockchain; S2: performing data cleaning on the first transaction data, and grouping the first transaction data after data cleaning according to the transaction hash value and transaction type to obtain the second transaction data corresponding to the virtual currency contract address, the second transaction data including a deposit transaction data set and a withdrawal transaction data set; S3: performing association analysis on the transaction addresses contained in the deposit transaction data set and the withdrawal transaction data set according to the clustering rules, and outputting the transaction addresses with association. The above solution analyzes the association of virtual currency transaction addresses based on the transaction active time as the dimension, which can mine the implicit association characteristics of deposit and withdrawal addresses in virtual currency transactions, and lay a solid foundation for strengthening the supervision of virtual currency transactions.

[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 flow chart of the virtual currency address association analysis method based on clustering rules described in the first exemplary embodiment of the present application;

[0042] Figure 2 This is a flow chart of a virtual currency address association analysis method based on clustering rules according to a second exemplary embodiment of the present application;

[0043] Figure 3 This is a flow chart of a virtual currency address association analysis method based on clustering rules according to a third exemplary embodiment of the present application;

[0044] Figure 4 This is a flow chart of a virtual currency address association analysis method based on clustering rules according to a fourth exemplary embodiment of the present application;

[0045] Figure 5 This is a flow chart of a virtual currency address association analysis method based on clustering rules according to a fifth exemplary embodiment of the present application;

[0046] Figure 6 This is a flow chart of a virtual currency address association analysis method based on clustering rules according to a sixth exemplary embodiment of the present application;

[0047] Figure 7 This is a flow chart of a virtual currency address association analysis method based on clustering rules according to the seventh exemplary embodiment of the present application;

[0048] Figure 8 A schematic diagram of a module of an electronic device according to an exemplary embodiment of the present application;

[0049] Fig. 9 A system architecture diagram for implementing a virtual currency address association analysis method based on clustering rules as described in an exemplary embodiment of the present application;

[0050] Fig.10 This is a schematic diagram of the architecture of virtual currency address association analysis based on combined clustering rules according to an exemplary embodiment of the present application;

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

[0052] 10. Electronic equipment;

[0053] 101. Processor;

[0054] 102. Storage medium. DETAILED DESCRIPTION

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] 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.

[0062] 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.

[0063] 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.

[0064] In the first aspect, Figure 1 As shown, the present application provides a virtual currency address association analysis method based on clustering rules, the method comprising the following steps:

[0065] S1: Get the first transaction data of the virtual currency contract address on the public blockchain;

[0066] S2: Clean the first transaction data, and group the cleaned first transaction data according to the transaction hash value and the transaction type to obtain second transaction data corresponding to the virtual currency contract address, where the second transaction data includes a deposit transaction data set and a withdrawal transaction data set;

[0067] S3: According to the clustering rules, the transaction addresses contained in the deposit transaction data set and the withdrawal transaction data set are respectively analyzed for association, and the associated transaction addresses are output.

[0068] 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.

[0069] A virtual currency contract address refers to a smart contract address used to mix or shuffle cryptocurrencies in a cryptocurrency project. The purpose of this type of contract address is to enhance the privacy and untraceability of transactions by mixing the cryptocurrencies of multiple users.

[0070] The first transaction data includes transaction data generated by the interaction between multiple different transaction addresses and the virtual currency contract address. Each transaction data generated by the interaction between the transaction address and the virtual currency contract address corresponds to a first transaction information. Each first transaction information includes the transaction type, transaction hash value, transaction amount, transaction address, called virtual currency contract address, transaction time, and whether the transaction is confirmed. The transaction types include deposit transactions and withdrawal transactions. The transaction address is the address that initiates the virtual currency transaction.

[0071] For ease of explanation, the address that initiates a deposit transaction is called the deposit transaction address. The deposit transaction address (Deposit Address) is the target address (such as the virtual currency contract address) required by the user when transferring cryptocurrency to a trading platform or service. The address that initiates a withdrawal transaction is called the withdrawal transaction address. The withdrawal transaction address (WithdrawalAddress) is the target address used when the user withdraws cryptocurrency funds from a trading platform or service. Each cryptocurrency has its own deposit and withdrawal address format. These addresses are generally unique identifiers consisting of a long string of numbers and letters to ensure that the funds are safe and arrive at the target account correctly.

[0072] 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.

[0073] 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.

[0074] In step S2, the purpose of performing data cleaning on the first transaction data is to filter the transaction data fields, retain key fields, and remove failed transactions, that is, transactions that have not been confirmed.

[0075] Specifically, the format of each second transaction data after sorting is as follows:

[0076] tx(hash,timeStamp,from_address,to_address,value_in,value_out,method,gas_used);

[0077] Among them, tx represents a virtual currency transaction, hash represents the transaction hash value, timeStamp represents the transaction time, that is, the time when the current transaction is packaged and uploaded to the chain, from_address represents the address that initiates the virtual currency transaction (that is, the transaction address), to_address represents the virtual currency contract address called, value_in represents the number of tokens input in the transaction (that is, the transaction amount). For the sender, value_in represents the number of tokens sent, value_out represents the number of tokens output in the transaction, and for the receiver, this represents the number of tokens received; method represents the transaction type, which is divided into deposit transaction type and withdrawal transaction type, and gas_used represents the actual handling fee consumed for a transaction.

[0078] After completing the format conversion of the above transaction data, you can use the method field to divide all transaction data into two categories according to the transaction type: deposit and withdraw.

[0079] For each virtual currency contract address, there is a deposit transaction data set and a withdrawal transaction data set. By observing the transaction data set, it can be seen that a single address often deposits or withdraws money from the contract address multiple times. Although each virtual currency contract address corresponds to tens of thousands of transactions, the number of addresses involved is far less than the number of transactions. Therefore, the number of addresses with repeated deposits and withdrawals in each virtual currency contract address is counted separately, and further analysis can be done based on the statistical results to analyze the correlation between transaction addresses, and then speculate on user behavior to strengthen transaction supervision.

[0080] like Figure 2 As shown, the clustering rule includes the transaction active time, and step S3 includes:

[0081] First, enter step S201 to classify the transaction data initiated by each transaction address of the deposit transaction data set or the withdrawal transaction data set according to the transaction time, and obtain a mapping relationship between each transaction address and the time interval range where the transaction time is located;

[0082] Then, step S202 is entered to determine the time interval range with the most transactions initiated by each transaction address, which is recorded as the first time interval range;

[0083] Then, the process proceeds to step S203 to list multiple transaction addresses whose transaction times are concentrated in the same first time interval and whose transaction time distribution is consistent as associated transaction addresses.

[0084] For example, if one hour (1h) is a time interval, one day (24h) is divided into 24 time intervals. The time interval to which each repeated deposit address initiates a deposit operation to the virtual currency contract address (i.e., the value corresponding to the timeStamp field) is counted. The mode of the time interval is taken as the active time of the transaction address, and the transaction addresses with the same active time are divided into a cluster.

[0085] Specifically, for each deposit address A (i.e., the transaction address whose transaction type is a deposit transaction), first count the time interval range of the timestamp timeStamp of each deposit operation, and then calculate the mode of the time interval range of the transaction time of the deposit address A in all deposit operations, i.e., the first time interval range, denoted as Model(A); then divide the transaction addresses with the same active time Model(A) into a cluster Ck.

[0086] When the clustering rule includes the transaction activity time, the clustering rule is expressed as follows:

[0087] ;

[0088] ;

[0089] Among them, T i Indicates different time intervals. For example, 1 hour (1h) is a time interval and 1 day (24h) is divided into 24 time intervals, i=1,2,...,24.

[0090] A represents the deposit address, timeStamp represents the transaction time of the deposit operation, Model(A) represents the mode of the time interval of the transaction active time, C k represents an address cluster, where k = 1, 2, ... represents different address clusters.

[0091] When A is a withdrawal address, the judgment method is similar to that when A is a deposit address, and will not be elaborated here.

[0092] The above scheme analyzes the correlation of virtual currency transaction addresses based on the transaction active time as a dimension, which can explore the implicit correlation characteristics of deposit and withdrawal addresses in virtual currency transactions and lay a solid foundation for strengthening the supervision of virtual currency transactions.

[0093] In some embodiments, the clustering rules also include transaction time span, such as Figure 3As shown, step S3 also includes:

[0094] First, enter step S301 to obtain the transaction time of the first transaction data and the transaction time of the last transaction data of each transaction address in the deposit transaction data set or the withdrawal transaction data set within a preset time period, and calculate the difference between the two transaction times to obtain the transaction time span corresponding to each transaction address;

[0095] Then, the process proceeds to step S302 . If the difference between the transaction time spans of the two transaction addresses is within the preset time error range, it is determined that the two transaction addresses are associated.

[0096] For example, the transaction time span can be the time difference between the first transaction and the last transaction initiated by the repeated deposit address to the contract address. The time span of each transaction address is counted, and addresses with similar time spans are divided into a cluster.

[0097] Specifically, for each deposit address A, calculate the transaction time span of its teammates, and divide addresses with similar time spans into a cluster .

[0098] When the clustering rule includes the transaction span time, the clustering rule is expressed as follows:

[0099] ;

[0100] ;

[0101] ;

[0102] Among them, A is the repeated deposit address, is the transaction time span, Represents an address cluster, where k=1,2,…represents different address clusters.

[0103] For example, if a deposit address A initiates multiple deposit operations to a virtual currency contract address from 8:00 to 12:00 on a certain day, then it can be determined that the time span of deposit address A is four hours. If a deposit address B also has a time span of 4-5 hours on the same day, and a deposit address C has a time span of 1 day and 3 hours, then it can be inferred that there is a greater possibility that deposit address A is associated with deposit address B, and a smaller possibility that deposit address A is associated with deposit address C.

[0104] When A is a withdrawal address, the judgment method is similar to that when A is a deposit address, and will not be elaborated here.

[0105] In some embodiments, the method further comprises:

[0106] If the difference between the transaction time spans of two transaction addresses is within the preset time error range, it is further determined whether the number of transactions initiated by the two transaction addresses within the transaction time span is close, and whether the interval distribution of the transaction time of the transaction data initiated within the transaction time span is consistent. If the judgment results are all yes, it is determined that the two transaction addresses have a first-level correlation; otherwise, it is determined that the two transaction addresses have a second-level correlation.

[0107] In this embodiment, the first-level correlation indicates that the transaction behaviors of the two transaction addresses are strongly correlated, and the second-level correlation indicates that the transaction behaviors of the two transaction addresses are moderately correlated or weakly correlated.

[0108] For example, the transaction time span of all transaction data of a certain deposit transaction address A on a certain day is 4 hours, and the transaction time span of all transaction data of another deposit transaction address B on the same day is also 4 hours, and these two deposit transaction addresses have also initiated multiple deposit operations within these 4 hours. Then, the solution of this embodiment will be used to further determine whether the number of deposit transactions performed by the two transaction addresses within these 4 hours and the time interval distribution of adjacent deposit transaction operations are consistent. Assuming that deposit transaction addresses A and B have 5 transactions within these 4 hours, and 3 transactions are concentrated in the second hour, it can be determined that there is a strong correlation between deposit transaction address A, which is likely to be the operation behavior of the same user. On the contrary, if transaction address A has 6 transactions within these 4 hours, while transaction address B has only 2 transactions, or transaction addresses A and B have 6 transactions, but 4 of the 6 transactions in transaction address A are concentrated in the second hour, and 5 of the 6 transactions in transaction address B are concentrated in the fourth hour, then it is considered that the transaction behaviors of the two transaction addresses are moderately correlated or weakly correlated, and further screening and judgment can be awaited. In the above manner, the accuracy of the analysis and judgment of the associated address can be improved.

[0109] In some embodiments, Figure 4 As shown, step S3 also includes:

[0110] First, enter step S401 to obtain the transaction time corresponding to each transaction address in the deposit transaction data set, construct a deposit transaction time matrix corresponding to each transaction address in the deposit transaction data set, and obtain the transaction time corresponding to each transaction address in the withdrawal transaction data set, and construct a withdrawal transaction time matrix corresponding to each transaction address in the withdrawal transaction data set;

[0111] Then, step S402 is entered. If, when the second time interval is the same as the third time interval, the transaction address in a certain deposit transaction data set and the transaction address in a certain withdrawal transaction data set have consistent distribution of transaction time within the current time interval, then it is determined that the transaction address in the deposit transaction data set is associated with the transaction address in the withdrawal transaction data set.

[0112] In step S401, the deposit transaction time matrix records the correspondence between the transaction address of the transaction type being deposit transaction and the corresponding second time interval range, and the second time interval range is the time interval range with the largest number of transactions initiated by the transaction address of the transaction type being deposit transaction. The withdrawal transaction time matrix records the correspondence between the transaction address of the transaction type being withdrawal transaction and the corresponding third time interval range, and the third time interval range is the time interval range with the largest number of transactions initiated by the transaction address of the transaction type being withdrawal transaction.

[0113] In short, in actual application, the correlation between transaction addresses includes the following situations: there is a correlation between deposit transaction addresses and deposit transaction addresses, there is a correlation between withdrawal transaction addresses and withdrawal transaction addresses, and there is a correlation between deposit transaction addresses and withdrawal transaction addresses. Usually, if a deposit transaction address is associated with a withdrawal transaction address, the transaction time of the two performing deposit operations and withdrawal operations will also show a certain pattern. Therefore, this application compares the distribution of transaction time of transaction data of deposit transaction addresses and withdrawal transaction addresses within the same time interval, and analyzes the correlation between deposit and withdrawal transaction addresses based on the comparison results.

[0114] In some embodiments, maintaining a consistent distribution of transaction times includes any of the following:

[0115] The transaction times of multiple transaction data are continuous within the first time interval;

[0116] A transaction time matrix is ​​constructed based on the transaction times of multiple transactions of each transaction address within the first time interval, and it is determined whether the difference between the transaction time matrices corresponding to the two transaction addresses is within a preset similarity error range.

[0117] In short, the consistent distribution of transaction time of multiple transaction data within a certain time period can mean that multiple consecutive transaction data occurred within the time period, or the intervals between adjacent transaction data show a certain similarity. For example, within a certain time period, a deposit transaction operation occurs every half an hour between two deposit transaction addresses. It can be determined that the two deposit transaction addresses are related and may be operated by the same user.

[0118] In some embodiments, Figure 5 As shown, the method also includes:

[0119] First, enter step S501 to train the neural network model;

[0120] Then, the process proceeds to step S502 to use the trained neural network model to verify the transaction addresses listed as associated in step S3. If the verification passes, the identification that the two transaction addresses are associated is retained. If the verification fails, the identification that the two transaction addresses are associated is cancelled.

[0121] In step S501, the input of the neural network model is a plurality of sample transaction data, each sample transaction data corresponds to a sample transaction information, the sample transaction information includes the sample transaction time and the sample transaction address, and the output of the neural network model is the correlation between the sample transaction addresses.

[0122] In short, the analyzed transaction addresses with correlation can be used as training sets to be input into the trained neural network model for verification. If the verification result is not ideal, the clustering rules can be adaptively modified to make the correlation of each transaction address obtained by analysis more accurate.

[0123] In some embodiments, the number of virtual currency contract addresses is multiple, such as Figure 6 As shown, the method also includes:

[0124] First, enter step S601 and execute steps S1-S3 for each virtual currency contract address to obtain a list of associated transaction addresses corresponding to each virtual currency contract address;

[0125] Then, enter step S602 to set the importance of the association according to the transaction amount corresponding to the transaction data between the associated transaction addresses, and output the association relationship diagram of the associated transaction addresses corresponding to each virtual currency contract address according to the importance of the association.

[0126] In short, the larger the transaction amount, the more important the correlation is. After obtaining the other transaction addresses associated with each transaction address, a correlation diagram of the transaction addresses can be constructed. Regulators can intuitively see the correlation between the various transaction addresses from the correlation diagram of the transaction addresses, as well as the importance of this correlation to the transaction behavior occurring in the entire transaction network.

[0127] In some embodiments, Figure 7 As shown, the method also includes:

[0128] First, enter step S701 to set the time analysis period and analysis frequency. The time analysis period includes multiple unit time periods, and each unit time period includes multiple time interval ranges;

[0129] Then, step S702 is entered to analyze the correlation between the transaction addresses using steps S1-S3 within the time analysis period according to the set analysis frequency, and counts each time it is determined that two transaction addresses are correlated;

[0130] Then, the process proceeds to step S703 to display in real time the strength of the correlation between the transaction addresses using different identifiers according to the size of the count value.

[0131] For example, the time analysis cycle can be set to 1 month, the analysis frequency can be set to 15 times, the unit time cycle can be set to 2 days, and the time interval range can be set to 2 hours. Then, the transaction data generated in these two days can be obtained every two days, and the correlation between each transaction address can be analyzed. If there is a correlation, the count of the two transaction addresses is increased by 1. If after 15 determinations, it is found that the two transaction addresses are associated more than 10 times, the correlation between the two transaction addresses can be set to strong correlation, and marked with a red mark for real-time display. If after 15 determinations, it is found that the two transaction addresses are associated only 2 times, the correlation between the two transaction addresses can be set to weak correlation, and marked with a green mark for real-time display.

[0132] like Fig. 9 As shown, it is a system architecture diagram of implementing a virtual currency address association analysis method based on clustering rules as described in an exemplary embodiment of the present application. The system architecture includes data collection, data analysis, rule design and rule verification.

[0133] The innovation of the present invention is:

[0134] (1) Breaking the traditional thinking of single transaction analysis, focusing on the transaction group, focusing on the behavioral characteristics of multi-address collaboration, and exploring the correlation between deposit and withdrawal addresses in virtual currency transactions.

[0135] (2) The proposed clustering rule is different from the traditional address clustering method, and it provides a more intuitive and effective method to further reveal the address set belonging to the same user in virtual currency transactions.

[0136] (3) The effectiveness of the clustering rules proposed in this invention is verified by using real transaction data sets, which helps to reduce the unlinkability between addresses and improves the regulatory authorities' supervision of transaction entities.

[0137] like Fig.10 FIG. 1 is a schematic diagram of the architecture of virtual currency address association analysis based on combined clustering rules according to an exemplary embodiment of the present application. Fig.10In the example, the input part is the address set C2, i.e., the address set whose withdrawal transaction time is after the deposit transaction time, and the output part is the address set S1, i.e., the address set obtained after verification by the clustering rules including the transaction activity time and / or transaction span time.

[0138] 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 virtual currency address association analysis method based on clustering rules as described in the first aspect of the present invention.

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

[0140] 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.

[0141] 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.

[0142] like Figure 8 As shown, in a third aspect, the present invention provides an electronic device 10, comprising a processor 101 and a storage medium 102, wherein a computer program is stored on the storage medium, and when the computer program is executed by the processor, the virtual currency address association analysis method based on clustering rules as described in the first aspect of the present invention is implemented.

[0143] In some embodiments, the processor can be implemented by software, hardware, firmware or a combination thereof, and can use circuits, single or multiple application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), central processing units (CPU), controllers, microcontrollers, and at least one of microprocessors, so that the processor can execute some or all of the steps or any combination of the steps in the virtual currency address association analysis method based on clustering rules described in the various embodiments of the present application.

[0144] 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 virtual currency address association analysis method based on clustering rules, It is characterized in that The method comprises the following steps: S1: Obtain first transaction data of a virtual currency contract address on a public blockchain, wherein the first transaction data includes transaction data generated by the interaction between multiple different transaction addresses and the virtual currency contract address, and each transaction data generated by the interaction between the transaction address and the virtual currency contract address corresponds to a first transaction information, and each first transaction information includes a transaction type, a transaction hash value, a transaction amount, a transaction address, a called virtual currency contract address, a transaction time, and whether the transaction is confirmed. The transaction type includes a deposit transaction and a withdrawal transaction, and the transaction address is an address for initiating a virtual currency transaction; S2: Clean the first transaction data, and group the cleaned first transaction data according to transaction hash values ​​and transaction types to obtain second transaction data corresponding to the virtual currency contract address, where the second transaction data includes a deposit transaction data set and a withdrawal transaction data set; S3: performing association analysis on the transaction addresses contained in the deposit transaction data set and the withdrawal transaction data set respectively according to the clustering rule, and outputting the associated transaction addresses; The clustering rule includes the transaction active time, and step S3 includes: Classifying the transaction data initiated by each transaction address in the deposit transaction data set or the withdrawal transaction data set according to the transaction time, and obtaining a mapping relationship between each transaction address and the time interval range in which the transaction time is located; Determine the time interval with the most transactions initiated by each transaction address, and record it as the first time interval; Listing multiple transaction addresses whose transaction times are concentrated in the same first time interval and whose transaction times are distributed in a consistent manner as associated transaction addresses; Step S3 also includes: Obtaining the transaction time corresponding to each transaction address in the deposit transaction data set, constructing a deposit transaction time matrix corresponding to each transaction address in the deposit transaction data set, and obtaining the transaction time corresponding to each transaction address in the withdrawal transaction data set, constructing a withdrawal transaction time matrix corresponding to each transaction address in the withdrawal transaction data set, wherein the deposit transaction time matrix records the correspondence between the transaction address whose transaction type is a deposit transaction and the second time interval range corresponding thereto, wherein the second time interval range is the time interval range in which the transaction address whose transaction type is a deposit transaction initiates the largest number of transactions, and the withdrawal transaction time matrix records the correspondence between the transaction address whose transaction type is a withdrawal transaction and the third time interval range corresponding thereto, wherein the third time interval range is the time interval range in which the transaction address whose transaction type is a withdrawal transaction initiates the largest number of transactions; If, when the second time interval is the same as the third time interval, the distribution of transaction times of a transaction address in a deposit transaction data set and a transaction address in a withdrawal transaction data set within the current time interval is consistent, then it is determined that the transaction address in the deposit transaction data set is associated with the transaction address in the withdrawal transaction data set.

2. The virtual currency address association analysis method based on clustering rules as claimed in claim 1, It is characterized in that The clustering rule also includes the transaction time span, and step S3 includes: Obtaining the transaction time of the first transaction data and the transaction time of the last transaction data of each transaction address in the deposit transaction data set or the withdrawal transaction data set within a preset time period, and calculating the difference between the two transaction times to obtain the transaction time span corresponding to each transaction address; If the difference in the transaction time span between two transaction addresses is within the preset time error range, it is determined that the two transaction addresses are related.

3. The virtual currency address association analysis method based on clustering rules as claimed in claim 2, It is characterized in that The method further comprises: If the difference between the transaction time spans of two transaction addresses is within the preset time error range, it is further determined whether the number of transactions initiated by the two transaction addresses within the transaction time span is close, and whether the interval distribution of the transaction time of the transaction data initiated within the transaction time span is consistent. If the judgment results are all yes, it is determined that the two transaction addresses have a first-level correlation; otherwise, it is determined that the two transaction addresses have a second-level correlation.

4. The virtual currency address association analysis method based on clustering rules as claimed in claim 1, It is characterized in that The distribution of transaction time remains consistent including any of the following situations: The transaction times of the plurality of transaction data are continuous within the first time interval; A transaction time matrix is ​​constructed based on the transaction times of multiple transactions of each transaction address within the first time interval, and it is determined whether the difference between the transaction time matrices corresponding to the two transaction addresses is within a preset similarity error range.

5. The virtual currency address association analysis method based on clustering rules as claimed in claim 1, It is characterized in that The method further comprises: Training a neural network model, wherein the input of the neural network model is a plurality of sample transaction data, each of the sample transaction data corresponds to a sample transaction information, the sample transaction information includes a sample transaction time and a sample transaction address, and the output of the neural network model is the correlation between the sample transaction addresses; The trained neural network model is used to verify the transaction addresses listed as being associated in step S3. If the verification passes, the identification that the two transaction addresses are associated is retained. If the verification fails, the identification that the two transaction addresses are associated is cancelled.

6. The virtual currency address association analysis method based on clustering rules as claimed in claim 1, It is characterized in that The number of the virtual currency contract addresses is multiple, and the method further includes: For each virtual currency contract address, execute steps S1-S3 to obtain a list of associated transaction addresses corresponding to each virtual currency contract address; The importance of the association is set according to the size of the transaction amount corresponding to the transaction data between the associated transaction addresses, and the association relationship diagram of the associated transaction addresses corresponding to each virtual currency contract address is output according to the importance of the association.

7. The virtual currency address association analysis method based on clustering rules as claimed in claim 1, It is characterized in that The method further comprises: Setting a time analysis period and an analysis frequency, wherein the time analysis period includes a plurality of unit time periods, and each unit time period includes a plurality of the time interval ranges; Analyze the correlation between the transaction addresses using steps S1-S3 within the time analysis period according to the set analysis frequency, and count each time it is determined that two transaction addresses are correlated; According to the size of the count value, different identifiers are used to display the strength of the correlation between the transaction addresses in real time.

8. 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 virtual currency address association analysis method based on clustering rules as described in any one of claims 1 to 7 is implemented.

9. 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, the virtual currency address association analysis method based on clustering rules as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Analysis Method of Digital Currency Transaction Information

    CN109087079A

  • Heuristic address association method for Ethereum mixed currency contract

    CN113592491A