CN112351119B - Probability-based block chain transaction originating IP address determination method and device - Google Patents

Probability-based block chain transaction originating IP address determination method and device Download PDF

Info

Publication number
CN112351119B
CN112351119B CN202110028479.XA CN202110028479A CN112351119B CN 112351119 B CN112351119 B CN 112351119B CN 202110028479 A CN202110028479 A CN 202110028479A CN 112351119 B CN112351119 B CN 112351119B
Authority
CN
China
Prior art keywords
transaction
address
originating
probability
broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110028479.XA
Other languages
Chinese (zh)
Other versions
CN112351119A (en
Inventor
叶茂
李中华
郭巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhifan Technology Co ltd
Original Assignee
Beijing Zhifan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhifan Technology Co ltd filed Critical Beijing Zhifan Technology Co ltd
Priority to CN202110028479.XA priority Critical patent/CN112351119B/en
Publication of CN112351119A publication Critical patent/CN112351119A/en
Application granted granted Critical
Publication of CN112351119B publication Critical patent/CN112351119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a block chain transaction originating IP address determining method and device based on probability, wherein the method comprises the following steps: obtaining a stored transaction hash value from the probe node; carrying out statistical processing on the obtained transaction hash values, and clustering the same transaction hash values; for any clustering result, acquiring a target broadcast IP address corresponding to a transaction hash value contained in the clustering result from the probe node; acquiring the receiving time of the probe node receiving the transaction data corresponding to the transaction hash value from each target broadcast IP address; and determining the probability that each target broadcast IP address is the transaction originating IP address of the corresponding transaction data according to the difference of the receiving time, and taking the target IP address corresponding to the maximum probability as the transaction originating IP address.

Description

Probability-based block chain transaction originating IP address determination method and device
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain transaction originating IP address determining method and device based on probability.
Background
The digital currency is digital encryption currency taking a block chain as an underlying technology, and has the characteristics of decentralization and anonymity, wherein decentralization means that point-to-point transaction based on decentralization credit is realized in a distributed system, and anonymity means that the identity of a buyer and a seller cannot be known when the buyer and the seller carry out transaction.
Due to the characteristics of decentralized and point-to-point networks, all people can deploy digital currency nodes, so that the transaction broadcast occurring at the network level can be detected. However, due to the huge amount of transaction broadcast and IP data, and the random broadcast means such as poisson distribution used by the block nodes, it is difficult to track the transaction originating IP, so a method for determining the transaction originating IP address is urgently needed to be provided to query the transaction source, facilitate the monitoring of the transaction process, and have good social and practical values.
Disclosure of Invention
Therefore, the invention provides a block chain transaction originating IP address determining method and device based on probability to realize the query of transaction source.
According to a first aspect, an embodiment of the present invention discloses a probability-based blockchain transaction originating IP address determining method, used for an originating IP address determining device, the originating IP address determining device is connected in communication with a probe node in a blockchain network, the probe node is used for recording broadcast IP addresses of broadcast transaction data, transaction hash values and receiving time of the transaction data from each broadcast IP address, and the method includes: obtaining a stored transaction hash value from the probe node; carrying out statistical processing on the obtained transaction hash values, and clustering the same transaction hash values; for any clustering result, acquiring a target broadcast IP address corresponding to a transaction hash value contained in the clustering result from the probe node; acquiring the receiving time of the probe node receiving the transaction data corresponding to the transaction hash value from each target broadcast IP address; and determining the probability that each target broadcast IP address is the transaction originating IP address of the corresponding transaction data according to the difference of the receiving time, and taking the target IP address corresponding to the maximum probability as the transaction originating IP address.
Optionally, a plurality of time difference values are obtained according to the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address and the uplink time of the transaction data; comparing each time difference value with a plurality of preset time ranges, wherein different preset time ranges correspond to different originating probability values; and determining the probability that each IP address is a transaction originating IP address according to the comparison result.
Optionally, the method further comprises: and when the number of the same transaction hash values contained in any clustering result is smaller than a preset threshold value, stopping responding to the operation of determining the transaction originating IP address corresponding to the transaction hash value.
Optionally, according to the difference of the receiving time, determining the probability that each target broadcast IP address is the transaction originating IP address of the corresponding transaction data, and after the target IP address corresponding to the maximum probability is taken as the transaction originating IP address, the method further includes: randomly generating a user ID for each clustering result; generating triple data corresponding to the clustering result, wherein the triple data comprise: a user ID, a transaction originating IP address, and a probability value corresponding to the transaction originating IP address.
According to a second aspect, an embodiment of the present invention further discloses a probability-based blockchain transaction originating IP address determining apparatus, configured to originate an IP address determining device, the originating IP address determining device being connected in communication with a probe node in a blockchain network, the probe node being configured to record broadcast IP addresses of broadcast transaction data, transaction hash values, and receiving times of the transaction data received from each broadcast IP address, the apparatus including: a first obtaining module, configured to obtain a stored transaction hash value from the probe node; the clustering module is used for carrying out statistical processing on the obtained transaction hash values and clustering the same transaction hash values; the second acquisition module is used for acquiring a target broadcast IP address corresponding to a transaction hash value contained in any clustering result from the probe node; the third acquisition module is used for acquiring the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address; and the determining module is used for determining the probability that each target broadcast IP address is the transaction originating IP address of the corresponding transaction data according to the difference of the receiving time, and taking the target IP address corresponding to the maximum probability as the transaction originating IP address.
Optionally, the determining module includes: the time difference value acquisition submodule is used for acquiring a plurality of time difference values according to the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address and the uplink time of the transaction data; the comparison submodule is used for comparing each time difference value with a plurality of preset time ranges, and different preset time ranges correspond to different originating probability values; and the determining submodule is used for determining the probability that each IP address is a transaction originating IP address according to the comparison result.
Optionally, the apparatus further comprises: and the response module is used for stopping responding to the operation of determining the transaction starting IP address corresponding to the transaction hash value when the number of the same transaction hash values contained in any clustering result is less than a preset threshold value.
Optionally, the apparatus further comprises: the first generation module is used for randomly generating a user ID for each clustering result; a second generating module, configured to generate triple data corresponding to the clustering result, where the triple data includes: a user ID, a transaction originating IP address, and a probability value corresponding to the transaction originating IP address.
According to a third aspect, an embodiment of the present invention further discloses an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method of determining a probability-based blockchain transaction originating IP address as set forth in the first aspect or any one of the optional embodiments of the first aspect.
According to a fourth aspect, embodiments of the present invention also disclose a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for probability-based blockchain transaction originating IP address determination according to the first aspect or any of the alternative embodiments of the first aspect.
The technical scheme of the invention has the following advantages:
the invention provides a block chain transaction originating IP address determining method/device based on probability, which obtains transaction hash values stored in probe nodes through communication connection with the probe nodes which record broadcast IP addresses and transaction hash values of received transaction data and receive time of the transaction data from each broadcast IP address, clusters the same transaction hash values representing the same transaction to obtain a clustering result, obtains target broadcast IP addresses which broadcast the transaction hash values in the clustering result from the data recorded by the probe nodes for any clustering result, obtains different receive time of the transaction data corresponding to the transaction hash values received by the probe nodes from each target broadcast IP address, determines the probability that each target broadcast IP address is the transaction originating IP address of the corresponding transaction data, and takes the target IP address corresponding to the maximum probability as the transaction originating IP address, the method and the system realize the query of transaction sources in the block chain network, are favorable for realizing the supervision of data on the chain, and have good practical value.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of one specific example of a method for probability-based blockchain transaction originating IP address determination in an embodiment of the present invention;
FIG. 2 is a functional block diagram of one specific example of a probability-based blockchain transaction originating IP address determining apparatus in an embodiment of the present invention;
fig. 3 is a diagram of a specific example of an electronic device in an embodiment of the invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a block chain transaction originating IP address determining method based on probability, which is used for originating IP address determining equipment, wherein the originating IP address determining equipment is in communication connection with a probe node in a block chain network, the probe node is used for recording broadcast IP addresses of broadcast transaction data, transaction hash values and receiving time of the transaction data received from each broadcast IP address, and the receiving time can be determined through timestamps in the block chain. The probe node can be an original node in the blockchain network, and the node bears the basic function of the blockchain and loads a data recording program to realize the data collection function; or a node newly added in the original blockchain network for collecting the broadcasted transaction data. As shown in fig. 1, the method comprises the steps of:
step 101, obtaining a stored transaction hash value from the probe node.
For example, the stored transaction hash value may be obtained from the probe node by sending an information obtaining instruction to the probe node when the originating IP address determination device is communicatively connected to the probe node, so that the probe node sends the recorded transaction hash value of the transaction data to the originating IP address determination device after receiving the information obtaining instruction. The embodiment of the present application does not limit the manner in which the originating IP address determination device obtains the transaction hash value from the probe node, and those skilled in the art can determine the transaction hash value according to actual needs.
And 102, carrying out statistical processing on the obtained transaction hash values, and clustering the same transaction hash values.
Illustratively, the same transaction data corresponds to a unique transaction hash value, all transaction hash values obtained from the probe nodes are subjected to statistical processing, and the same transaction hash values are clustered to obtain a plurality of clustering results.
Step 103, for any clustering result, obtaining a target broadcast IP address corresponding to a transaction hash value contained in the clustering result from the probe node.
Illustratively, the probe node records and stores the transaction hash value of the received transaction data in association with the broadcast IP address from which the transaction data was broadcast. And sending an acquisition instruction containing the transaction hash value to the probe node, so that the probe node sends the broadcast IP address stored in association with the transaction hash value to the originating IP address determining equipment according to the transaction hash value contained in the acquisition instruction, and a target broadcast IP address is obtained.
And 104, acquiring the receiving time of the probe node receiving the transaction data corresponding to the transaction hash value from each target broadcast IP address.
Illustratively, the probe node stores a broadcast IP address of the broadcast transaction data in association with a reception time at which the broadcast transaction data was received from the IP address. When the target broadcast IP address corresponding to the transaction hash value in any clustering result is determined, an acquisition instruction containing the target broadcast IP address or identification information of the target broadcast IP address can be sent to the probe node, so that the probe node sends the associated and stored receiving time to the originating IP address determination device according to the information of the target broadcast IP address contained in the acquisition instruction, and the receiving time of the probe node receiving the transaction data corresponding to the transaction hash value from each target broadcast IP address is obtained.
Step 105, according to the difference of the receiving time, determining the probability that each target broadcast IP address is the transaction originating IP address of the corresponding transaction data, and taking the target IP address corresponding to the maximum probability as the transaction originating IP address.
Illustratively, for any transaction data in the uplink, the transaction data is sent from an originating node first and then continuously broadcasted to the whole network through other nodes, a probe node in a block chain network receives the same transaction data sent to the node from a plurality of nodes, in the embodiment of the present application, the receiving time of the transaction data obtained by the probe node from each target broadcast IP address broadcast is obtained, the obtained receiving times are sorted, the obtained receiving times are input into a pre-trained neural network model, and according to a probability result output by the model, the target IP address corresponding to the maximum probability is used as the transaction originating IP address. The embodiment of the present application does not limit the neural network model, and those skilled in the art can obtain the receiving time of different broadcast IP addresses corresponding to a plurality of transaction data and the receiving time of a transaction originating IP address serving as the transaction data in advance as training data.
The invention provides a block chain transaction originating IP address determining method based on probability, which obtains transaction hash values stored in probe nodes through communication connection with the probe nodes which record broadcast IP addresses and transaction hash values of received transaction data and receive time of the transaction data from each broadcast IP address, clusters the same transaction hash values representing the same transaction to obtain a clustering result, obtains a target broadcast IP address which broadcasts the transaction hash value in the clustering result from the data recorded by the probe nodes for any clustering result, obtains the size of the receive time of the transaction data corresponding to the transaction hash value received by the probe nodes from each target broadcast IP address, determines the probability that each target broadcast IP address is the transaction originating IP address corresponding to the transaction data, and takes the target IP address corresponding to the maximum probability as the transaction originating IP address, the method and the system realize the query of transaction sources in the block chain network, are favorable for realizing the supervision of data on the chain, and have good practical value.
As an alternative embodiment of the present invention, step 105 includes: obtaining a plurality of time difference values according to the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address and the uplink time of the transaction data; comparing each time difference value with a plurality of preset time ranges, wherein different preset time ranges correspond to different originating probability values; and determining the probability that each IP address is a transaction originating IP address according to the comparison result.
Illustratively, the algorithm of the transaction broadcast followed by each blockchain network is different, and the preset time range can be determined according to the specific broadcast algorithm of the corresponding blockchain. For example, a random method of the poisson process is used in the p2p network of bitcoins to increase the anonymity of the broadcast, the transaction originating node broadcasts at intervals expected to be around 5 seconds, and other nodes broadcast the received transaction information in the same way. A plurality of different preset time ranges can be set according to the broadcast time interval. For example, if the receiving time of the probe node receiving any one of the target broadcast IP address broadcast transactions T is set to T1 and the uplink time of the transaction data is T2, the time difference T = T1-T2 may be set as a plurality of predetermined time ranges and the originating probability values corresponding to different predetermined time ranges:
(1) if t < 5s, the probability that the target broadcast IP address is the transaction origination IP address is p 1;
(2) if 5s < t < 6s, the probability that the target broadcast IP address is the transaction originating IP address is p 2;
(3) if 6s < t < 7s, the probability that the target broadcast IP address is the transaction originating IP address is p 3;
(4) if 7s < t < 8s, the probability that the target broadcast IP address is the transaction originating IP address is p 4; the specific probability values of p1, p2, p3, and p4 are not limited in the embodiment of the present application, and those skilled in the art may set according to actual needs, for example, a large number of time difference values and data of whether target IP addresses corresponding to different time difference values are transaction originating IP addresses are obtained in advance, and statistical analysis is performed on the obtained data to obtain a probability value that target IP addresses corresponding to different time difference values are transaction originating IP addresses. In the embodiment of the present application, p1 may take a value of 0.15, p2 may take a value of 0.13, p3 may take a value of 0.10, and p4 may take a value of 0.05. The number, the dividing mode and the corresponding probability value of the preset time range are not limited in the embodiment of the application, and can be determined by a person skilled in the art according to actual needs.
As an optional embodiment of the present invention, the method further comprises: and when the number of the same transaction hash values contained in any clustering result is smaller than a preset threshold value, stopping responding to the operation of determining the transaction originating IP address corresponding to the transaction hash value.
For example, when the number of transaction hash values included in any clustering result is less than a preset threshold, it indicates that the transaction data occurs less frequently, that is, the transaction data is sparse data, the transaction data corresponding to the transaction hash value may still be in a broadcast state, and for the transaction data occurring less frequently, the operation of determining the transaction originating IP address in response to the transaction is stopped. The preset threshold is not limited in the embodiment of the present application, and a person skilled in the art can determine the preset threshold according to actual needs, and the preset threshold in the embodiment of the present application may be 10.
As an alternative embodiment of the present invention, after step 105, the method further comprises: randomly generating a user ID for each clustering result; generating triple data corresponding to the clustering result, wherein the triple data comprise: a user ID, a transaction originating IP address, and a probability value corresponding to the transaction originating IP address.
For example, when the transaction originating IP address corresponding to any one of the clustering results and the probability value of the IP address as the transaction originating IP address are obtained, a user ID may be randomly generated for the clustering result, and triple data consisting of the user ID, the transaction originating IP address and the probability value may be generated.
The embodiment of the present invention also discloses a probability-based device for determining an originating IP address of a blockchain transaction, which is used for an originating IP address determining device, where the originating IP address determining device is in communication connection with a probe node in a blockchain network, and the probe node is used for recording broadcast IP addresses of broadcast transaction data, transaction hash values, and receiving times of the transaction data received from each broadcast IP address, as shown in fig. 2, the device includes:
a first obtaining module 201, configured to obtain a stored transaction hash value from the probe node;
the clustering module 202 is configured to perform statistical processing on the obtained transaction hash values, and cluster the same transaction hash values;
a second obtaining module 203, configured to obtain, from the probe node, a target broadcast IP address corresponding to a transaction hash value included in the clustering result for any clustering result;
a third obtaining module 204, configured to obtain receiving time for the probe node to receive, from each target broadcast IP address, the transaction data corresponding to the transaction hash value;
the determining module 205 is configured to determine, according to the difference of the receiving times, a probability that each target broadcast IP address is a transaction originating IP address of the corresponding transaction data, and use a target IP address corresponding to the maximum probability as the transaction originating IP address.
The invention provides a block chain transaction originating IP address determining device based on probability, which obtains transaction hash values stored in probe nodes through communication connection with the probe nodes which record broadcast IP addresses and transaction hash values of received transaction data and receive time of the transaction data from each broadcast IP address, clusters the same transaction hash values representing the same transaction to obtain a clustering result, obtains a target broadcast IP address which broadcasts the transaction hash value in the clustering result from the data recorded by the probe nodes for any clustering result, obtains the size of the receive time of the transaction data corresponding to the transaction hash value received by the probe nodes from each target broadcast IP address, determines the probability that each target broadcast IP address is the transaction originating IP address corresponding to the transaction data, and takes the target IP address corresponding to the maximum probability as the transaction originating IP address, the method and the system realize the query of transaction sources in the block chain network, are favorable for realizing the supervision of data on the chain, and have good practical value.
As an optional embodiment of the present invention, the determining module 205 includes: the time difference value acquisition submodule is used for acquiring a plurality of time difference values according to the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address and the uplink time of the transaction data; the comparison submodule is used for comparing each time difference value with a plurality of preset time ranges, and different preset time ranges correspond to different originating probability values; and the determining submodule is used for determining the probability that each IP address is a transaction originating IP address according to the comparison result.
As an optional embodiment of the present invention, the apparatus further comprises: and the response module is used for stopping responding to the operation of determining the transaction starting IP address corresponding to the transaction hash value when the number of the same transaction hash values contained in any clustering result is less than a preset threshold value.
As an optional embodiment of the present invention, the apparatus further comprises: the first generation module is used for randomly generating a user ID for each clustering result; a second generating module, configured to generate triple data corresponding to the clustering result, where the triple data includes: a user ID, a transaction originating IP address, and a probability value corresponding to the transaction originating IP address.
An embodiment of the present invention further provides an electronic device, as shown in fig. 3, the electronic device may include a processor 401 and a memory 402, where the processor 401 and the memory 402 may be connected by a bus or in another manner, and fig. 3 takes the connection by the bus as an example.
Processor 401 may be a Central Processing Unit (CPU). The Processor 401 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 402, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the probability-based blockchain transaction originating IP address determination method in the embodiments of the present invention. The processor 401 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 402, namely, implementing the probability-based blockchain transaction originating IP address determination method in the above-described method embodiments.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 401, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to processor 401 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 402 and, when executed by the processor 401, perform a probability-based blockchain transaction originating IP address determination method as in the embodiment shown in fig. 1.
The details of the electronic device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 1, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (8)

1. A probability-based blockchain transaction originating IP address determination method for an originating IP address determination device communicatively connected to a probe node in a blockchain network, the probe node for recording broadcast IP addresses of broadcast transaction data, transaction hash values, and reception times at which the transaction data is received from each broadcast IP address, the method comprising:
obtaining a stored transaction hash value from the probe node;
carrying out statistical processing on the obtained transaction hash values, and clustering the same transaction hash values;
for any clustering result, acquiring a target broadcast IP address corresponding to a transaction hash value contained in the clustering result from the probe node;
acquiring the receiving time of the probe node receiving the transaction data corresponding to the transaction hash value from each target broadcast IP address;
determining the probability that each target broadcast IP address is a transaction originating IP address of corresponding transaction data according to different receiving times, and taking the target broadcast IP address corresponding to the maximum probability as the transaction originating IP address;
determining the probability that each target broadcast IP address is a transaction originating IP address of corresponding transaction data according to the difference of the receiving time, comprising:
obtaining a plurality of time difference values according to the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address and the uplink time of the transaction data;
comparing each time difference value with a plurality of preset time ranges, wherein different preset time ranges correspond to different originating probability values;
and determining the probability that each target broadcast IP address is a transaction originating IP address according to the comparison result.
2. The method of claim 1, further comprising:
and when the number of the same transaction hash values contained in any clustering result is smaller than a preset threshold value, stopping responding to the operation of determining the transaction originating IP address corresponding to the transaction hash value.
3. The method of claim 1, wherein the probability that each target broadcast IP address is the transaction-originating IP address corresponding to the transaction data is determined according to the difference of the receiving time, and after the target IP address corresponding to the maximum probability is used as the transaction-originating IP address, the method further comprises:
randomly generating a user ID for each clustering result;
generating triple data corresponding to the clustering result, wherein the triple data comprise: a user ID, a transaction originating IP address, and a probability value corresponding to the transaction originating IP address.
4. A probability-based blockchain transaction originating IP address determining apparatus for an originating IP address determining device communicatively connected to a probe node in a blockchain network, the probe node for recording broadcast IP addresses of broadcast transaction data, transaction hash values, and reception times at which the transaction data is received from each broadcast IP address, the apparatus comprising:
a first obtaining module, configured to obtain a stored transaction hash value from the probe node;
the clustering module is used for carrying out statistical processing on the obtained transaction hash values and clustering the same transaction hash values;
the second acquisition module is used for acquiring a target broadcast IP address corresponding to a transaction hash value contained in any clustering result from the probe node;
the third acquisition module is used for acquiring the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address;
a determining module, configured to determine, according to the difference in the receiving time, a probability that each target broadcast IP address is a transaction originating IP address of corresponding transaction data, and use a target broadcast IP address corresponding to a maximum probability as a transaction originating IP address;
the determining module includes: the time difference value acquisition submodule is used for acquiring a plurality of time difference values according to the receiving time of the transaction data corresponding to the transaction hash value received by the probe node from each target broadcast IP address and the uplink time of the transaction data; the comparison submodule is used for comparing each time difference value with a plurality of preset time ranges, and different preset time ranges correspond to different originating probability values; and the determining submodule is used for determining the probability that each target broadcast IP address is a transaction originating IP address according to the comparison result.
5. The apparatus of claim 4, further comprising: and the response module is used for stopping responding to the operation of determining the transaction starting IP address corresponding to the transaction hash value when the number of the same transaction hash values contained in any clustering result is less than a preset threshold value.
6. The apparatus of claim 4, further comprising: the first generation module is used for randomly generating a user ID for each clustering result; a second generating module, configured to generate triple data corresponding to the clustering result, where the triple data includes: a user ID, a transaction originating IP address, and a probability value corresponding to the transaction originating IP address.
7. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the probability based block chain transaction originating IP address determination method of any of claims 1-3.
8. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the probability-based blockchain transaction originating IP address determination method according to any one of claims 1 to 3.
CN202110028479.XA 2021-01-11 2021-01-11 Probability-based block chain transaction originating IP address determination method and device Active CN112351119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110028479.XA CN112351119B (en) 2021-01-11 2021-01-11 Probability-based block chain transaction originating IP address determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110028479.XA CN112351119B (en) 2021-01-11 2021-01-11 Probability-based block chain transaction originating IP address determination method and device

Publications (2)

Publication Number Publication Date
CN112351119A CN112351119A (en) 2021-02-09
CN112351119B true CN112351119B (en) 2021-04-02

Family

ID=74428130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110028479.XA Active CN112351119B (en) 2021-01-11 2021-01-11 Probability-based block chain transaction originating IP address determination method and device

Country Status (1)

Country Link
CN (1) CN112351119B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379525A (en) * 2021-06-11 2021-09-10 恒安嘉新(北京)科技股份公司 Financial supervision method and device, electronic equipment and storage medium
CN113706304A (en) * 2021-08-25 2021-11-26 福建宏创科技信息有限公司 Block chain-based digital currency transaction node IP tracing method and system
CN113689219A (en) * 2021-08-25 2021-11-23 福建坛讯信息科技有限公司 Authenticity verification method and system for transaction node of digital currency network based on block chain
CN114841685B (en) * 2022-04-12 2024-01-05 兰州大学 Tracing method and device for bitcoin transaction
CN116389163B (en) * 2023-05-26 2023-08-01 中科链安(北京)科技有限公司 Block chain transaction originating node IP tracking method, risk monitoring method and risk monitoring device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009807A (en) * 2017-10-17 2018-05-08 国家计算机网络与信息安全管理中心 A kind of bit coin transaction identity method
CN109087079A (en) * 2018-07-09 2018-12-25 北京知帆科技有限公司 Digital cash Transaction Information analysis method
WO2019116250A1 (en) * 2017-12-15 2019-06-20 nChain Holdings Limited Security-enhanced origination of blockchain transactions
CN110569408A (en) * 2019-09-04 2019-12-13 广州大学 digital currency tracing method and system
CN111383005A (en) * 2018-12-29 2020-07-07 北京知帆科技有限公司 Digital currency flow direction tracking method and device
CN111383004A (en) * 2018-12-29 2020-07-07 北京知帆科技有限公司 Method for extracting entity position of digital currency, method for extracting information and device thereof
CN111490977A (en) * 2020-03-27 2020-08-04 福建福链科技有限公司 DAG block chain-based ARP spoofing attack prevention method and platform terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009807A (en) * 2017-10-17 2018-05-08 国家计算机网络与信息安全管理中心 A kind of bit coin transaction identity method
WO2019116250A1 (en) * 2017-12-15 2019-06-20 nChain Holdings Limited Security-enhanced origination of blockchain transactions
CN109087079A (en) * 2018-07-09 2018-12-25 北京知帆科技有限公司 Digital cash Transaction Information analysis method
CN111383005A (en) * 2018-12-29 2020-07-07 北京知帆科技有限公司 Digital currency flow direction tracking method and device
CN111383004A (en) * 2018-12-29 2020-07-07 北京知帆科技有限公司 Method for extracting entity position of digital currency, method for extracting information and device thereof
CN110569408A (en) * 2019-09-04 2019-12-13 广州大学 digital currency tracing method and system
CN111490977A (en) * 2020-03-27 2020-08-04 福建福链科技有限公司 DAG block chain-based ARP spoofing attack prevention method and platform terminal

Also Published As

Publication number Publication date
CN112351119A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN112351119B (en) Probability-based block chain transaction originating IP address determination method and device
US11250434B2 (en) Payment method and device
CN107741899B (en) Method, device and system for processing terminal data
US10742482B2 (en) Clustering event records representing anomalous events
CN110677384B (en) Phishing website detection method and device, storage medium and electronic device
CN110928880B (en) Data processing method, device, terminal and medium based on block chain
CN114140713A (en) Image recognition system and image recognition method
EP2897088A1 (en) Method and apparatus for optimum spatial clustering
CN113379176A (en) Telecommunication network abnormal data detection method, device, equipment and readable storage medium
WO2021218385A1 (en) Image identification method, invasion target detection method, and apparatus
CN116108491B (en) Data leakage early warning method, device and system based on semi-supervised federal learning
CN108063685B (en) Log analysis method and device
CN114140710A (en) Monitoring data transmission method and system based on data processing
CN114140712A (en) Automatic image recognition and distribution system and method
CN114139016A (en) Data processing method and system for intelligent cell
CN113727348B (en) Method, device, system and storage medium for detecting user data of User Equipment (UE)
CN106304084B (en) Information processing method and device
CN113645305A (en) Method and system for determining transmission node of data of Internet of things
CN113691483A (en) Method, device and equipment for detecting abnormal user equipment and storage medium
CN114679627B (en) Block chain-based on-demand data processing method and system
WO2022193170A1 (en) Stay identification evaluation method and system for mobile phone signaling data, and terminal and storage medium
CN113076451B (en) Abnormal behavior identification and risk model library establishment method and device and electronic equipment
CN113381891A (en) Internet of things configuration information processing method
CN116821777B (en) Novel basic mapping data integration method and system
CN110430093B (en) Data processing method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant