A privacy communication method based on blockchain

Through the anonymous communication method of blockchain HD wallet technology and GitHub warehouse address, the use of sub-public key encryption and private key decryption mechanisms solves the problem of information leakage during the communication process and achieves effective protection of user privacy.

CN114186998BActive Publication Date: 2024-08-23杨宁波
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111526892.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2024-08-23
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

Existing communication clients are prone to leaking user identity information and bank account information during the transmission process, and third-party services may monitor and steal communication content, resulting in the inability to effectively protect user privacy.

Method used

Using blockchain HD wallet technology, a different sub-public key encryption method is used for each message sent, and anonymous communication is carried out through the GitHub warehouse address to ensure that the message can only be decrypted by the private key to prevent information leakage.

Benefits of technology

It effectively prevents the leakage of communication information, protects the privacy of both communicating parties, and ensures that the main addresses of the message sender and receiver cannot be traced, which greatly protects the privacy of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114186998B
    Figure CN114186998B
Patent Text Reader

Abstract

The present invention discloses a privacy communication method based on blockchain, which specifically relates to the field of financial risk control, and includes the following steps: Step 1, multiple Github warehouse addresses are created by any individual or third party as a message board for anonymous communication; Step 2, before communication, user A and user B agree on a Github warehouse address in advance, and agree on the encryption rules for message board messages; Step 3, user A and user B each create their own HD wallet application, and the HD wallet includes a public key, a private key, multiple sub-public keys and multiple sub-private keys. The present invention utilizes the characteristics of blockchain hierarchical determination of wallets, generates countless sub-public keys, uses sub-public keys to send addresses to send transactions, and encrypts with sub-public keys provided by the other party, effectively preventing the leakage of communication information, and the addresses of each transaction are different, which can protect the communication parties from being traced, and greatly protect the privacy of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial risk control, and more specifically, to a blockchain-based privacy communication method. Background Art

[0002] Communication has become an indispensable part of life. Most of them are communication clients and servers provided by third-party platforms. After the user sends a message using the client, the server matches the object of the user's message and forwards the message to the message recipient. The entire process is provided by the third-party platform.

[0003] When using a third-party communication client, you first need to register your identity information on major platforms. The third-party service needs to verify the user's identity information when the user uses the communication, which may cause the user's identity information to be maliciously leaked. Secondly, during the communication process, the content of the communication may be intercepted and stolen by the third-party service, and the bank account information involved in the communication process may also be stolen. The user's privacy cannot be effectively protected, resulting in privacy leakage.

[0004] The present invention combines blockchain HD wallet technology to solve the pain point that information is easily leaked during communication. HD wallet is called hierarchical deterministic Bitcoin wallet, which refers to an electronic wallet that uses a hierarchical deterministic address mechanism. Hierarchical deterministic wallets use elliptic curve cryptography to ensure that the public key can be directly dispersed into sub-public keys without the participation of private keys, and the dispersed sub-public keys can be authenticated by dispersed sub-private keys. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a privacy communication method based on blockchain. By combining with a blockchain HD wallet, each message is encrypted using a different sub-public key encryption method of the HD wallet and sent to a sub-public key address in the recipient's HD wallet. Since the address of each message is different, it is difficult to be monitored and stolen, and the main address of the sender and receiver of the message cannot be known. The private information of the user who sent the message cannot be queried, and the message can only be decrypted by a private key, which ensures that the information will not be leaked.

[0006] To achieve the above purpose, the present invention provides the following technical solution: a blockchain-based privacy communication method, comprising the following steps:

[0007] Step 1: Any individual or third party creates multiple Github repository addresses as message boards for anonymous communication;

[0008] Step 2: Before communicating, user A and user B agree on a Github repository address and the encryption rules for message board messages.

[0009] Step 3: User A and User B each create their own HD wallet application. The HD wallet contains a public key, a private key, multiple sub-public keys, and multiple sub-private keys.

[0010] Specifically: public key A1, private key A2, public key B1, private key B2, sub-public keys A3, A5...An, sub-private keys A4, A6...A(n+1), sub-public keys B3, B5...Bn, sub-private keys B4, B6...B(n+1);

[0011] Step 4: During communication, user B uses the API interface call method to push a message to the GitHub message board to request communication with A. The message includes user B's wallet sub-public key B3;

[0012] Step 5: User A decrypts the message on the message board using the encryption method agreed upon in advance;

[0013] Decryption is successful. This message is sent by B to request communication. After decryption, B's sub-public key B3 is obtained.

[0014] Decryption failed. This message is an abnormal communication message and will not be processed.

[0015] Step 6: User A sends a transaction to user B through the address of sub-public key B3. The transaction contains an input message, which contains user A's wallet sub-public key A3 and communication information JSON data. The input message is encrypted using user B's sub-public key B3.

[0016] Step 7. After receiving the transaction, user B uses the sub-private key B4 corresponding to the sub-public key B3 to decrypt it, parses the input message in the transaction, and obtains the sub-public key A3 and the communication information JSON data. After processing the communication information, user B sends a new transaction to the address corresponding to the sub-public key A3. The transaction is encrypted using the sub-public key A3 and includes the public key B1 signed by the sub-public key A3 and the reply information to the communication information JSON data. This cycle completes the anonymous communication between user A and user B.

[0017] In a preferred implementation, in step 2, the encryption method agreed upon by the user is AES encryption.

[0018] In a preferred embodiment, starting from step 6, during the process of sending a transaction between user A and user B, a corresponding public key or sub-public key is randomly selected to encrypt the transaction.

[0019] In a preferred embodiment, in the process of selecting a public key or a sub-public key, all public keys and sub-public keys are sequentially encoded as a, a+1...a+n, and then a random number generator is used to generate a corresponding random number, and according to the value of the random number, the corresponding public key or sub-public key is selected to encrypt the transaction.

[0020] In a preferred embodiment, before each private communication, in the process of encoding the public key and the sub-public key, the encoded value can be limited, specifically: the value of a is set to have a range of 10-100, and its specific value is randomly selected by user A or user B, so that the encoded value does not have a range that can be predicted by the external environment.

[0021] Technical effects and advantages of the present invention:

[0022] The present invention utilizes the characteristics of the blockchain layered wallet to generate countless sub-public keys, uses the sub-public keys to send transactions, and encrypts them with the sub-public keys provided by the other party, effectively preventing the leakage of communication information. In addition, the addresses for sending transactions are different each time, which can protect the two parties in communication from being traced, greatly protecting the privacy of users. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a flow chart of the message sending method of the present invention. DETAILED DESCRIPTION

[0024] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments of the present invention are provided for the purpose of illustration and description, and are not intended to be exhaustive or to limit the present invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention, and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.

[0025] Embodiment 1:

[0026] like Figure 1 A blockchain-based privacy communication method is shown, comprising the following steps:

[0027] Step 1: Any individual or third party creates multiple Github repository addresses as message boards for anonymous communication;

[0028] Step 2: Before communicating, user A and user B agree on a Github repository address and the encryption rules for message board messages.

[0029] Step 3: User A and User B each create their own HD wallet application. The HD wallet contains a public key, a private key, multiple sub-public keys, and multiple sub-private keys.

[0030] Specifically: public key A1, private key A2, public key B1, private key B2, sub-public keys A3, A5...An, sub-private keys A4, A6...A(n+1), sub-public keys B3, B5...Bn, sub-private keys B4, B6...B(n+1);

[0031] Step 4: During communication, user B uses the API interface call method to push a message to the GitHub message board to request communication with A. The message includes user B's wallet sub-public key B3;

[0032] Step 5: User A decrypts the message on the message board using the encryption method agreed upon in advance;

[0033] Decryption is successful. This message is sent by B to request communication. After decryption, B's sub-public key B3 is obtained.

[0034] Decryption failed. This message is an abnormal communication message and will not be processed.

[0035] Step 6: User A sends a transaction to user B through the address of sub-public key B3. The transaction contains an input message, which contains user A's wallet sub-public key A3 and communication information JSON data. The input message is encrypted using user B's sub-public key B3.

[0036] Step 7: After receiving the transaction, user B uses the sub-private key B4 corresponding to the sub-public key B3 to decrypt it, parses the input message in the transaction, and obtains the sub-public key A3 and the communication information JSON data. After processing the communication information, user B sends a new transaction to the address corresponding to the sub-public key A3. The transaction is encrypted with the sub-public key A3 and includes the public key B1 signed by the sub-public key A3 and the reply information to the communication information JSON data;

[0037] Step 8. After receiving the above transaction, user A uses the sub-private key A4 corresponding to the sub-public key A3 to decrypt it, parses it to obtain the public key B1 and reply information signed by the sub-public key A3, and makes a receipt for the reply information, and then sends a new transaction to the address corresponding to the public key B1. The transaction includes the receipt information and any sub-public key or public key of user A. After receiving the transaction, user B repeats the above operation, and the anonymous communication between user A and user B is completed in this cycle.

[0038] Furthermore, the encryption method agreed upon by the user is AES encryption.

[0039] Example 2

[0040] On the basis of Example 1, in order to further improve the security of the information of both parties in communication, starting from the above step 6, during the process of sending transactions between user A and user B, the corresponding public key or sub-public key will be randomly selected to encrypt the transaction, that is, the user will receive the transaction information, and after parsing the transaction through the corresponding private key or sub-private key, the communication information will be replied, and the reply information needs to be encrypted, and the public key or sub-public key used for encryption is randomly selected;

[0041] Specifically: in the process of selecting a public key or a sub-public key, all public keys and sub-public keys are encoded in sequence, and are encoded as a, a+1...a+n, respectively. Then, a random number generator is used to generate the corresponding random number. According to the value of the random number, the public key or sub-public key corresponding to the same code as the random number is selected to encrypt the transaction.

[0042] Example 3

[0043] On the basis of Example 2, before each private communication, in the process of encoding the public key and the sub-public key, the encoded value can be limited, and the value of a is set to have a range of 10-100, and its specific value is randomly selected by user A or user B, so that the encoded value does not have a predictable range;

[0044] In one embodiment, user A sets the value of a to 60, then the codes of the public key and sub-public key created by user A are 61, 62...60+n, and user B sets the value of a to 70, then the codes of the public key and sub-public key created by user B are 71, 72...70+n, respectively;

[0045] When user A needs to encrypt a transaction, the system will randomly generate a random number C, but the value of random number C may not fall within the coding range of user A. When random number C is not within its coding range, random number C1 will be generated again, and the cycle will continue until random number Cn is within the coding range of 61-60+n. At this time, the public key or sub-public key corresponding to random number Cn is selected, and the transaction is encrypted using the public key or sub-public key;

[0046] On the basis of the above, user B also repeats the above operations during the transaction process, so that the address of sending messages each time is different, which is difficult to be monitored and stolen, and the main address of the sender and receiver of the message cannot be known. The private information of the user who sent the message cannot be queried, and the message can only be decrypted by the corresponding private key, ensuring that the information will not be leaked.

[0047] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field and related fields without creative work should fall within the scope of protection of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention are implemented according to the conventional means in the field unless otherwise specified and limited.

Claims

1. A blockchain-based privacy communication method, characterized in that: The following steps are involved: Step 1: Any individual or third party creates multiple Github repository addresses as message boards for anonymous communication; Step 2: Before communicating, user A and user B agree on a Github repository address and the encryption rules for message board messages. Step 3: User A and User B each create their own HD wallet application. The HD wallet contains a public key, a private key, multiple sub-public keys, and multiple sub-private keys. Specifically: public key A1, private key A2, public key B1, private key B2, sub-public keys A3, A5...An, sub-private keys A4, A6...A(n+1), sub-public keys B3, B5...Bn, sub-private keys B4, B6...B(n+1); Step 4: During communication, user B uses the API interface call method to push a message to the GitHub message board to request communication with A. The message includes user B's wallet sub-public key B3; Step 5: User A decrypts the message on the message board using the encryption method agreed upon in advance; Decryption is successful. This message is sent by B to request communication. After decryption, B's sub-public key B3 is obtained. Decryption failed. This message is an abnormal communication message and will not be processed. Step 6: User A sends a transaction to user B through the address of sub-public key B3. The transaction contains an input message, which contains user A's wallet sub-public key A3 and communication information JSON data. The input message is encrypted using user B's sub-public key B3. Step 7. After receiving the transaction, user B uses the sub-private key B4 corresponding to the sub-public key B3 to decrypt it, parses the input message in the transaction, and obtains the sub-public key A3 and the communication information JSON data. After processing the communication information, user B sends a new transaction to the address corresponding to the sub-public key A3. The transaction is encrypted using the sub-public key A3 and includes the public key B1 signed by the sub-public key A3 and the reply information to the communication information JSON data. This cycle completes the anonymous communication between user A and user B.

2. A blockchain-based privacy communication method according to claim 1, characterized in that: In step 2, the encryption method agreed upon by the user is AES encryption.

3. A blockchain-based privacy communication method according to claim 1, characterized in that: Starting from step 6, when sending transactions between user A and user B, the corresponding public key or sub-public key will be randomly selected to encrypt the transaction.

4. A blockchain-based privacy communication method according to claim 3, characterized in that: In the process of selecting a public key or a sub-public key, all public keys and sub-public keys are encoded in sequence, namely a, a+1...a+n, and then a random number generator is used to generate the corresponding random number. According to the value of the random number, the corresponding public key or sub-public key is selected to encrypt the transaction.

5. A blockchain-based privacy communication method according to claim 4, characterized in that: Before each private communication, in the process of encoding the public key and the sub-public key, the encoded value can be limited, specifically: the value of a is set to have a range of 10-100, and its specific value is randomly selected by user A or user B, so that the encoded value does not have a range that can be predicted by the external environment.

Citation Information

Patent Citations

  • Single private chat and group private chat method and system based on block chain

    CN106506505A

  • Secure two-party collaboration SM2 signature method

    CN108667626A

  • Distributed social contact method based on block chain

    CN109981584A

  • Block chain private key management method and system based on elliptic curve offset, and storage medium

    CN111325535A

  • KR20190080592A