A privacy data transaction method
Through multiple hash value calculations and intelligent time hiding, combined with encryption and registration nodes, the problems of privacy protection and time tampering in blockchain transactions are solved, and the security and reliability of transactions are improved.
Patent Information
- Application Number
- CN202411036719.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-31
AI Technical Summary
There is a risk of information leakage in transaction privacy protection in traditional blockchain networks, and there are loopholes in the hash value calculation algorithm, resulting in insufficient transaction security.
Use multiple hash value calculation methods to generate verification hash values through MD5, SHA1 and SHA256 algorithms, and use preset time intervals and virtual time nodes for intelligent hiding and verification, combined with the use of encryption and registration nodes to ensure transaction requests security.
It significantly improves the security of the transaction process and the reliability of private data, prevents information leakage and malicious time tampering, and enhances the intelligence of transactions.
Smart Images

Figure CN118569992B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and in particular to a privacy data transaction method. Background Art
[0002] In traditional blockchain networks, all institutions involved in transactions use centralized networks to communicate with other institutions. However, during the communication process, failures and restriction policies such as gateways, proxies, and central servers may cause communication interruptions between institutions or increase additional costs in the communication process. In the traditional model, data is owned by each institution, and modification operations are easy to perform, but it is difficult to verify the authenticity and validity of transaction data between institutions. In some industries, because data, sender and receiver information involve a large amount of commercial secrets and interests, it is not feasible to fully disclose data, and the protection of privacy information is particularly important.
[0003] However, the transaction privacy protection method of the above blockchain still has the following shortcomings: although the transaction is fair and cannot be tampered with, the design of transaction authentication does involve privacy transactions. Each transaction directly outputs the transaction party information, and cannot guarantee that the information of the transaction participants will not be leaked. The risk of privacy leakage is high, and there is a problem of maliciously changing the system time or using a virtual machine to set the time. In addition, the existing technology calculates the hash value based on the same algorithm, and it is still possible to find different or unequal input data, so that its output has the same hash value, resulting in verification failure, which allows criminals to take advantage of it, resulting in loopholes in transaction privacy protection security.
[0004] Therefore, the prior art needs to be further developed. Summary of the invention
[0005] The purpose of the present invention is to overcome the above technical deficiencies and provide a privacy data transaction method to solve the problems existing in the prior art.
[0006] In order to achieve the above technical objectives, the present invention provides a privacy data transaction method, the method comprising:
[0007] S100. After the transaction parties sign the transaction contract, perform OCR text extraction on the transaction contract to obtain the target transaction requester name, target transaction requester IP address data, and transaction valid time interval data in the transaction contract. Generate a first verification hash value based on the MD5 algorithm for the target transaction requester name and the target transaction requester IP address data. Generate a second verification hash value set based on the SHA1 algorithm for the year, month, and day data contained in the transaction valid time interval data. Calculate the first virtual transaction valid time interval data based on the first preset time interval data for the hour, minute, and second data contained in the first virtual transaction valid time interval data. Generate a first virtual transaction valid time node set based on seconds as the smallest unit. Generate a third verification hash value set based on the SHA256 algorithm for the first virtual transaction valid time node set.
[0008] S200. Upon receiving a transaction request, obtain transaction requester information and request time node data, wherein the transaction requester information includes actual transaction requester IP address data, actual transaction requester name, and actual request time node data; generate a first actual hash value based on the MD5 algorithm for the actual transaction requester IP address data and actual transaction requester name; generate a second actual hash value based on the SHA1 algorithm for the year, month, and day data included in the actual request time node data; calculate the second virtual transaction valid time node data based on the first preset time interval data for the hour, minute, and second data included in the actual request time node data; and generate a third actual hash value based on the SHA256 algorithm for the second virtual transaction valid time node data;
[0009] S300, determine whether the first verification hash value is the same as the first actual hash value, determine whether the second actual hash value is within the second verification hash value set, determine whether the third actual hash value is within the third verification hash value set, determine whether the transaction request is secure based on the determination result, and determine whether to send the private data to the transaction right party for transaction operations based on the determination result.
[0010] Specifically, the determining whether the first verification hash value is the same as the first actual hash value, determining whether the second actual hash value is within the second verification hash value set, determining whether the third actual hash value is within the third verification hash value set, and determining whether the transaction request is safe according to the determination results include:
[0011] If the first verification hash value is the same as the first actual hash value, and the second actual hash value is within the second verification hash value set, and the third actual hash value is within the third verification hash value set, the transaction request is determined to be secure;
[0012] If the first verification hash value is different from the first actual hash value, or the second actual hash value is not within the second verification hash value set, or the third actual hash value is not within the third verification hash value set, the transaction request is determined to be unsafe.
[0013] Specifically, determining whether the transaction request is safe according to the judgment result, and determining whether to send the private data to the transaction right party for transaction operation according to the judgment result, includes:
[0014] If the transaction request is determined to be safe, the private data will be sent to the transaction rights party for transaction operations;
[0015] If the transaction request is determined to be unsafe, the private data will not be sent to the transaction rights party for transaction operations.
[0016] Specifically, the first preset time interval data is randomly generated within a preset time interval, the minimum value of the preset time interval is 0, the maximum value is 24 hours, and the minimum unit of the first preset time interval data is seconds.
[0017] Specifically, the steps before step S100 include:
[0018] S10, when receiving a transaction request, obtaining transaction requester information and request time node data, and calculating a third virtual request time node data according to the request time node data and the second preset time interval data;
[0019] S20, inputting the transaction requester information into the privacy registration node for registration, obtaining registration data and privacy data, and encrypting the privacy data and the third virtual request time node data to obtain a secret key;
[0020] S30, determining whether the registration data meets the transaction operation authority requirements, if yes, executing step S40; otherwise, not executing the operation;
[0021] S40: Match the transaction operation with the private data of the transaction requester through the secret key to determine whether the match is successful. If so, obtain the third virtual request time node data and the current time node data through the secret key, and calculate the actual time error data between the third virtual request time node data and the current time node data, determine whether the actual time error data is less than or equal to the first preset threshold, and determine whether to continue to execute step S100 based on the judgment result.
[0022] Specifically, the determining whether the actual time error data is less than or equal to a first preset threshold, and determining whether to continue to perform step S100 according to the determination result, includes:
[0023] If the actual time error data is less than or equal to the first preset threshold, continue to execute step S100.
[0024] Specifically, the determining whether the actual time error data is less than or equal to a first preset threshold, and determining whether to continue to perform step S100 according to the determination result, further includes:
[0025] If the actual time error data is greater than the first preset threshold, step S100 is not executed.
[0026] Specifically, the method further includes:
[0027] Before executing step S10, a transaction request operation table is established;
[0028] When executing step S10, when an operation request is received, determine whether the operation request is a transaction request according to the transaction request operation table. If so, obtain the transaction requester information and the request time node data, and calculate the third virtual request time node data according to the request time node data and the second preset time interval data; if not, do not execute the operation.
[0029] Specifically, the method further includes:
[0030] When executing step S20, the privacy data is stored in the privacy registration node, the privacy data and the second virtual request time node data are encrypted to obtain a secret key, and the registration data and the secret key are sent back to the blockchain network.
[0031] Specifically, the registration data includes the transaction record, score and authority of the transaction requester; when executing step S30, it is determined whether the transaction record, score and authority in the registration data meet the transaction operation authority requirements. If so, step S40 is executed; otherwise, no operation is performed.
[0032] Beneficial effects:
[0033] The present invention realizes intelligent segmentation of the target transaction requester name and target transaction requester IP address data of the transaction requester involved in the transaction contract, and then uses the randomly generated first preset time interval data to perform intelligent virtual hiding of the transaction effective time interval data, and then performs multiple intelligent calculations of hash values, and then performs multiple intelligent verifications when receiving the transaction request, and then determines whether the transaction request is safe, which solves the problem that different or unequal input data may still be found when calculating hash values based on the same algorithm, so that the output has the same hash value, causing verification failure, and allowing criminals to still have opportunities, and greatly increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are greatly improved. The present invention also realizes secondary intelligent hiding of request time node data using the second preset time interval data, and when the transaction operation is matched, uses the current time node to determine whether the calculated actual time error data meets the requirements, thereby eliminating the problem of maliciously changing the system time or using a virtual machine to set the time in the transaction process, and further increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of a privacy data transaction method provided in a specific embodiment of the present invention;
[0035] Figure 2 It is a schematic diagram of the system composition of the privacy data transaction system provided in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.
[0037] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.
[0038] See also Figure 1 The present invention provides a privacy data transaction method, comprising:
[0039] S100. After the transaction parties sign the transaction contract, perform OCR text extraction on the transaction contract to obtain the target transaction requester name, target transaction requester IP address data, and transaction valid time interval data in the transaction contract; generate a first verification hash value based on the MD5 algorithm for the target transaction requester name and the target transaction requester IP address data; generate a second verification hash value set based on the SHA1 algorithm for the year, month, and day data contained in the transaction valid time interval data; calculate the first virtual transaction valid time interval data for the hour, minute, and second data contained in the transaction valid time interval data according to the first preset time interval data; generate a first virtual transaction valid time node set based on the hour, minute, and second data contained in the first virtual transaction valid time interval data, with seconds as the smallest unit; and generate a third verification hash value set based on the SHA256 algorithm for the first virtual transaction valid time node set.
[0040] It should be noted here that, before step S100 , the first preset threshold, the first preset time interval data and the second preset time interval data are preset in the control module.
[0041] It can be understood that the first preset threshold, the first preset time interval data and the second preset time interval data can be specifically set according to the actual needs of the user of the present invention, as long as they are applicable to the privacy data transaction method proposed in the present invention.
[0042] Preferably, the first preset time interval data is randomly generated within a preset time interval, the minimum value of the preset time interval is 0, the maximum value is 24 hours, and the minimum unit of the first preset time interval data is seconds.
[0043] Preferably, the present invention sets the second preset time interval to half an hour, and the present invention sets the first preset threshold to 5 seconds. The above settings are obtained by the technicians of the present invention through a large number of tests, and can well implement the privacy data transaction method proposed by the present invention, thereby greatly improving the usability of the present invention.
[0044] Specifically, the steps before step S100 include:
[0045] S10. When a transaction request is received, the transaction requester information and the request time node data are obtained, and the third virtual request time node data is calculated according to the request time node data and the second preset time interval data.
[0046] It can be understood that the third virtual request time node data is calculated based on the request time node data and the second preset time interval data, specifically:
[0047] The sum of the request time node data and the second preset time interval data is calculated to obtain third virtual request time node data, where the time corresponding to the third virtual request time node data is later than the request time node data.
[0048] S20. Input the transaction requester information into the privacy registration node for registration, obtain registration data and privacy data, and encrypt the privacy data and the third virtual request time node data to obtain a secret key.
[0049] Specifically, the method further includes:
[0050] Before executing step S20, a privacy registration node is established in the blockchain network.
[0051] Specifically, the method further includes:
[0052] When executing step S20, the privacy data is stored in the privacy registration node, the privacy data and the third virtual request time node data are encrypted to obtain a secret key, and the registration data and the secret key are sent back to the blockchain network.
[0053] S30, determine whether the registration data meets the transaction operation authority requirements, if so, execute step S40; otherwise, do not execute the operation.
[0054] Specifically, the registration data includes the transaction record, score and authority of the transaction requester; when executing step S30, it is determined whether the transaction record, score and authority in the registration data meet the transaction operation authority requirements. If so, step S40 is executed; otherwise, no operation is performed.
[0055] S40: Match the transaction operation with the private data of the transaction requester through the secret key to determine whether the match is successful. If so, obtain the third virtual request time node data and the current time node data through the secret key, and calculate the actual time error data between the third virtual request time node data and the current time node data, determine whether the actual time error data is less than or equal to the first preset threshold, and determine whether to continue to execute step S100 based on the judgment result.
[0056] Specifically, the determining whether the actual time error data is less than or equal to a first preset threshold, and determining whether to continue to perform step S100 according to the determination result, includes:
[0057] If the actual time error data is less than or equal to the first preset threshold, continue to execute step S100.
[0058] Specifically, the determining whether the actual time error data is less than or equal to a first preset threshold, and determining whether to continue to perform step S100 according to the determination result, further includes:
[0059] If the actual time error data is greater than the first preset threshold, step S100 is not executed.
[0060] It is understandable that if the actual time error data is less than or equal to the first preset threshold value, in the preferred embodiment of the present invention, that is, the actual time error data is less than or equal to 5 seconds, at this time, it is proved that the actual time error data of the third virtual request time node data and the current time node data is small, and the actual time error data is likely to be caused by non-human factors such as network delay. At this time, the actual time error data meets the requirements. At this time, it is safer to continue the transaction operation. Therefore, the present invention continues to execute step S100. In addition, the problem of maliciously changing the system time or using a virtual machine to set the time in the middle of the transaction is eliminated, which greatly increases the security of the middle of the transaction process. The intelligence, security and reliability of privacy data transactions are greatly improved.
[0061] It is understandable that if the actual time error data is greater than the first preset threshold value, in the preferred embodiment of the present invention, that is, the first preset time interval data is greater than 5 seconds, then it is proved that the actual time error data between the third virtual request time node data and the current time node data is large. At this time, the large actual time error data is caused by human factors such as malicious changes to the system time or the use of a virtual machine to set the time. At this time, the actual time error data does not meet the requirements. At this time, it is not safe to continue the transaction operation. Therefore, the present invention does not continue to execute step S100. In addition, the problem of malicious changes to the system time or the use of a virtual machine to set the time in the middle of the transaction is eliminated, which greatly increases the security of the middle of the transaction. The intelligence, security and reliability of privacy data transactions are greatly improved.
[0062] Specifically, the method further includes:
[0063] Before executing step S10, a transaction request operation table is established;
[0064] When executing step S10, when an operation request is received, determine whether the operation request is a transaction request according to the transaction request operation table. If so, obtain the transaction requester information and the request time node data, and calculate the third virtual request time node data according to the request time node data and the second preset time interval data; if not, do not execute the operation.
[0065] Specifically, the method further includes:
[0066] When executing step S20, the privacy data is stored in the privacy registration node, the privacy data and the second virtual request time node data are encrypted to obtain a secret key, and the registration data and the secret key are sent back to the blockchain network.
[0067] Specifically, the registration data includes the transaction record, score and authority of the transaction requester; when executing step S30, it is determined whether the transaction record, score and authority in the registration data meet the transaction operation authority requirements. If so, step S40 is executed; otherwise, no operation is performed.
[0068] S200. When a transaction request is received, the transaction requester information and the request time node data are obtained, wherein the transaction requester information includes the actual transaction requester IP address data, the actual transaction requester name, and the actual request time node data; the actual transaction requester IP address data and the actual transaction requester name are used to generate a first actual hash value based on the MD5 algorithm; the year, month, and day data included in the actual request time node data are used to generate a second actual hash value based on the SHA1 algorithm; the hour, minute, and second data included in the actual request time node data are calculated according to the first preset time interval data to obtain the second virtual transaction valid time node data; and the second virtual transaction valid time node data is used to generate a third actual hash value based on the SHA256 algorithm.
[0069] S300, determine whether the first verification hash value is the same as the first actual hash value, determine whether the second actual hash value is within the second verification hash value set, determine whether the third actual hash value is within the third verification hash value set, determine whether the transaction request is secure based on the determination result, and determine whether to send the private data to the transaction right party for transaction operations based on the determination result.
[0070] Specifically, the determining whether the first verification hash value is the same as the first actual hash value, determining whether the second actual hash value is within the second verification hash value set, determining whether the third actual hash value is within the third verification hash value set, and determining whether the transaction request is safe according to the determination results include:
[0071] If the first verification hash value is the same as the first actual hash value, and the second actual hash value is within the second verification hash value set, and the third actual hash value is within the third verification hash value set, the transaction request is determined to be secure;
[0072] If the first verification hash value is different from the first actual hash value, or the second actual hash value is not within the second verification hash value set, or the third actual hash value is not within the third verification hash value set, the transaction request is determined to be unsafe.
[0073] Specifically, determining whether the transaction request is safe according to the judgment result, and determining whether to send the private data to the transaction right party for transaction operation according to the judgment result, includes:
[0074] If the transaction request is determined to be safe, the private data will be sent to the transaction rights party for transaction operations;
[0075] If the transaction request is determined to be unsafe, the private data will not be sent to the transaction rights party for transaction operations.
[0076] It can be understood that the present invention realizes intelligent segmentation of the target transaction requester name and target transaction requester IP address data of the transaction requester involved in the transaction contract, and then uses the randomly generated first preset time interval data to perform intelligent virtual hiding of the transaction effective time interval data, and then performs multiple intelligent calculations of hash values, and then performs multiple intelligent verifications when receiving the transaction request, and then determines whether the transaction request is safe, which solves the problem that different or unequal input data may still be found when calculating hash values based on the same algorithm, so that the output has the same hash value, causing verification failure, and allowing criminals to still have opportunities, and greatly increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are greatly improved. The present invention also realizes the secondary intelligent hiding of the request time node data using the second preset time interval data, and when the transaction operation is matched, the current time node is used to determine whether the calculated actual time error data meets the requirements, thereby eliminating the problem of maliciously changing the system time or using a virtual machine to set the time in the transaction process, and further increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are further improved.
[0077] See also Figure 2 The present invention provides another embodiment, which provides a privacy data trading system, and the privacy data trading system includes:
[0078] The acquisition module 100 is used to perform OCR text extraction on the transaction contract after the transaction parties sign the transaction contract, and obtain the target transaction requester name, target transaction requester IP address data, and transaction effective time interval data in the transaction contract;
[0079] The control module 200 is used to generate a first verification hash value based on the MD5 algorithm for the target transaction requester name and the target transaction requester IP address data, generate a second verification hash value set based on the SHA1 algorithm for the year, month and day data contained in the transaction effective time interval data, calculate the first virtual transaction effective time interval data for the hour, minute and second data contained in the transaction effective time interval data according to the first preset time interval data, generate a first virtual transaction effective time node set based on the hour, minute and second data contained in the first virtual transaction effective time interval data with seconds as the minimum unit, and generate a third verification hash value set based on the SHA256 algorithm for the first virtual transaction effective time node set; or to obtain the transaction requester information and the request time node data when receiving a transaction request, wherein the transaction requester information includes the actual transaction requester IP address data, the actual transaction requester The actual transaction requester name and actual request time node data are used to generate a first actual hash value based on the MD5 algorithm for the actual transaction requester IP address data and the actual transaction requester name; the year, month and day data contained in the actual request time node data are used to generate a second actual hash value based on the SHA1 algorithm; the hour, minute and second data contained in the actual request time node data are used to calculate the second virtual transaction effective time node data according to the first preset time interval data; the second virtual transaction effective time node data is used to generate a third actual hash value based on the SHA256 algorithm; or it is used to determine whether the first verification hash value is the same as the first actual hash value, whether the second actual hash value is within the second verification hash value set, whether the third actual hash value is within the third verification hash value set, and whether the transaction request is secure according to the judgment result; and whether to send the private data to the transaction right party for transaction operation according to the judgment result.
[0080] It should be noted here that the present invention realizes intelligent segmentation of the target transaction requester name and target transaction requester IP address data of the transaction requester involved in the transaction contract, and then uses the randomly generated first preset time interval data to perform intelligent virtual hiding of the transaction effective time interval data, and then performs multiple intelligent calculations of hash values, and then performs multiple intelligent verifications when receiving the transaction request, and then determines whether the transaction request is safe, which solves the problem that different or unequal input data may still be found when calculating hash values based on the same algorithm, so that its output has the same hash value, causing verification failure, and allowing criminals to still have opportunities, and greatly increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are greatly improved. The present invention also realizes the secondary intelligent hiding of the request time node data using the second preset time interval data, and when the transaction operation is matched, uses the current time node to determine whether the calculated actual time error data meets the requirements, thereby eliminating the problem of maliciously changing the system time or using a virtual machine to set the time in the transaction process, and further increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are further improved.
[0081] In a preferred embodiment, the present application further provides an electronic device, the electronic device comprising:
[0082] A memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the privacy data transaction method is implemented. The computer device can be broadly a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities. In one embodiment, the computer device may include a processor, a memory, a network interface, a communication interface, etc. connected via a system bus. The processor of the computer device can be used to provide necessary computing, processing and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and an internal memory. An operating system, a computer program, etc. may be stored in or on the non-volatile storage medium. The internal memory can provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the computer device can be used to connect and communicate with external devices through a network. When the computer program is executed by the processor, the steps of the method of the present invention are performed.
[0083] The present invention may be implemented as a computer-readable storage medium having a computer program stored thereon, which causes the steps of the method of an embodiment of the present invention to be executed when executed by a processor. In one embodiment, the computer program is distributed on a plurality of computer devices or processors coupled to a network so that the computer program is stored, accessed and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be performed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be performed by one or more computer devices or processors, and one or more other method steps / operations may be performed by one or more other computer devices or processors. One or more computer devices or processors may perform a single method step / operation, or perform two or more method steps / operations.
[0084] It will be appreciated by a person skilled in the art that the method steps of the present invention may be performed by instructing related hardware such as a computer device or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present invention to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, database, or other media herein may include non-volatile and / or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0085] It can be understood that the present invention realizes intelligent segmentation of the target transaction requester name and target transaction requester IP address data of the transaction requester involved in the transaction contract, and then uses the randomly generated first preset time interval data to perform intelligent virtual hiding of the transaction effective time interval data, and then performs multiple intelligent calculations of hash values, and then performs multiple intelligent verifications when receiving the transaction request, and then determines whether the transaction request is safe, which solves the problem that different or unequal input data may still be found when calculating hash values based on the same algorithm, so that the output has the same hash value, causing verification failure, and allowing criminals to still have opportunities, and greatly increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are greatly improved. The present invention also realizes the secondary intelligent hiding of the request time node data using the second preset time interval data, and when the transaction operation is matched, the current time node is used to determine whether the calculated actual time error data meets the requirements, thereby eliminating the problem of maliciously changing the system time or using a virtual machine to set the time in the transaction process, and further increases the security of the transaction process. The intelligence, security and reliability of privacy data transactions are further improved.
[0086] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0087] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A privacy data transaction method, characterized in that: The method comprises the following steps: S100. After the transaction parties sign the transaction contract, perform OCR text extraction on the transaction contract to obtain the target transaction requester name, target transaction requester IP address data, and transaction valid time interval data in the transaction contract. Generate a first verification hash value based on the MD5 algorithm for the target transaction requester name and the target transaction requester IP address data. Generate a second verification hash value set based on the SHA1 algorithm for the year, month, and day data contained in the transaction valid time interval data. Calculate the first virtual transaction valid time interval data based on the first preset time interval data for the hour, minute, and second data contained in the first virtual transaction valid time interval data. Generate a first virtual transaction valid time node set based on seconds as the smallest unit. Generate a third verification hash value set based on the SHA256 algorithm for the first virtual transaction valid time node set. S200. Upon receiving a transaction request, obtain transaction requester information and request time node data, wherein the transaction requester information includes actual transaction requester IP address data, actual transaction requester name, and actual request time node data; generate a first actual hash value based on the MD5 algorithm for the actual transaction requester IP address data and actual transaction requester name; generate a second actual hash value based on the SHA1 algorithm for the year, month, and day data included in the actual request time node data; calculate the second virtual transaction valid time node data based on the first preset time interval data for the hour, minute, and second data included in the actual request time node data; and generate a third actual hash value based on the SHA256 algorithm for the second virtual transaction valid time node data; S300, determine whether the first verification hash value is the same as the first actual hash value, determine whether the second actual hash value is within the second verification hash value set, determine whether the third actual hash value is within the third verification hash value set, determine whether the transaction request is secure based on the determination result, and determine whether to send the private data to the transaction right party for transaction operations based on the determination result.
2. The privacy data transaction method according to claim 1, characterized in that: The determining whether the first verification hash value is the same as the first actual hash value, determining whether the second actual hash value is within the second verification hash value set, determining whether the third actual hash value is within the third verification hash value set, and determining whether the transaction request is safe according to the determination results include: If the first verification hash value is the same as the first actual hash value, and the second actual hash value is within the second verification hash value set, and the third actual hash value is within the third verification hash value set, the transaction request is determined to be secure; If the first verification hash value is different from the first actual hash value, or the second actual hash value is not within the second verification hash value set, or the third actual hash value is not within the third verification hash value set, the transaction request is determined to be unsafe.
3. The privacy data transaction method according to claim 2, characterized in that: The determining whether the transaction request is safe according to the determination result, and determining whether to send the private data to the transaction right party for transaction operation according to the determination result, includes: If the transaction request is determined to be safe, the private data will be sent to the transaction rights party for transaction operations; If the transaction request is determined to be unsafe, the private data will not be sent to the transaction rights party for transaction operations.
4. The privacy data transaction method according to claim 1, characterized in that: The first preset time interval data is randomly generated within a preset time interval, the minimum value of the preset time interval is 0, the maximum value is 24 hours, and the minimum unit of the first preset time interval data is seconds.
5. The privacy data transaction method according to claim 1, characterized in that: The step S100 includes: S10, when receiving a transaction request, obtaining transaction requester information and request time node data, and calculating a third virtual request time node data according to the request time node data and the second preset time interval data; S20, inputting the transaction requester information into the privacy registration node for registration, obtaining registration data and privacy data, and encrypting the privacy data and the third virtual request time node data to obtain a secret key; S30, determining whether the registration data meets the transaction operation authority requirements, if yes, executing step S40; otherwise, not executing the operation; S40: Match the transaction operation with the private data of the transaction requester through the secret key to determine whether the match is successful. If so, obtain the third virtual request time node data and the current time node data through the secret key, and calculate the actual time error data between the third virtual request time node data and the current time node data, determine whether the actual time error data is less than or equal to the first preset threshold, and determine whether to continue to execute step S100 based on the judgment result.
6. The privacy data transaction method according to claim 5, characterized in that: The determining whether the actual time error data is less than or equal to a first preset threshold, and determining whether to continue to execute step S100 according to the determination result, includes: If the actual time error data is less than or equal to the first preset threshold, continue to execute step S100.
7. The privacy data transaction method according to claim 5, characterized in that: The determining whether the actual time error data is less than or equal to the first preset threshold, and determining whether to continue to perform step S100 according to the determination result, further includes: If the actual time error data is greater than the first preset threshold, step S100 is not executed.
8. The privacy data transaction method according to claim 5, characterized in that: The method further comprises: Before executing step S10, a transaction request operation table is established; When executing step S10, when an operation request is received, determine whether the operation request is a transaction request according to the transaction request operation table. If so, obtain the transaction requester information and the request time node data, and calculate the third virtual request time node data according to the request time node data and the second preset time interval data; if not, do not execute the operation.
9. The privacy data transaction method according to claim 5, characterized in that: The method further comprises: When executing step S20, the privacy data is stored in the privacy registration node, the privacy data and the second virtual request time node data are encrypted to obtain a secret key, and the registration data and the secret key are sent back to the blockchain network.
10. The privacy data transaction method according to claim 5, characterized in that: The registration data includes the transaction record, score and authority of the transaction requester; when executing step S30, it is determined whether the transaction record, score and authority in the registration data meet the transaction operation authority requirements. If so, step S40 is executed; otherwise, no operation is performed.
