Covert communication method based on Bitcoin payment system

By splitting and embedding sub-ciphertext in the Bitcoin payment system, and using hash value matching to construct secret transactions, the problem of insufficient anonymity and stability in blockchain covert communication is solved, and high concealment and high embedding are achieved. Capacity covert communication effects.

CN118573399APending Publication Date: 2024-08-30ENG UNIV OF THE CHINESE PEOPLES ARMED POLICE FORCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410489412.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing technology cannot effectively solve the problems of weak anonymity and weak message stability of both communicating parties. Especially in blockchain secret communication, there are risks of low embedding capacity, high time cost, and the mapping table is easily deciphered.

Method used

By using preprocessing and encryption algorithms in the Bitcoin payment system to split the target message into sub-ciphertexts, and embedding these sub-ciphertexts through ordered addresses in the blockchain network, hash value matching and amount sampling are used to construct portable encryption transactions to ensure the concealment and stability of the message.

Benefits of technology

It achieves long message embedding, high concealment and high embedding capacity, can resist steganalysis based on machine learning, ensures the anonymity of communicating parties and the authenticity of messages, and significantly improves the extraction success rate and security in traditional covert communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573399A
    Figure CN118573399A
Patent Text Reader

Abstract

The invention discloses a covert communication method based on a bitcoin payment system, and the method comprises the steps: obtaining a target message, carrying out the preprocessing of the target message, and obtaining a to-be-transmitted secret message; sending the to-be-sent secret message to a block chain network, and obtaining a to-be-extracted secret message; and the receiver extracts the secret message to be extracted to complete covert communication. The algorithm provided by the invention supports long message embedding, transactions with embedded ciphertexts are consistent with real block chain transactions in characteristics, can be fused into massive transactions of the block chain, has very high concealment, can resist steganography analysis based on machine learning, anonymity of block chain transactions and randomness of transaction addresses, ensures concealment of both communication parties, and improves the security of the communication parties. The receiver can identify the secret-carrying transaction by monitoring the secret address transaction and losslessly extract the ciphertext message carried in the secret-carrying transaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of covert communication of information security, and in particular relates to a covert communication method based on a Bitcoin payment system. Background Art

[0002] Blockchain is a decentralized distributed ledger that connects data blocks in a chain structure and is cryptographically guaranteed. Each block contains the hash value of the previous block. This linking method ensures that the blockchain is tamper-proof and unforgeable. Its data recording, storage, transmission and verification do not rely on a single central node, but are jointly maintained and managed by all participating nodes. In the blockchain, cryptography plays an important role to ensure the traceability, tamper-proof, anti-forgery and anti-repudiation of transactions. Each transaction in the blockchain can be verified by the Merkle tree to be traceable from the genesis block. At the same time, once the data of each transaction is recorded, it cannot be tampered with without modifying subsequent blocks. The sender uses a private key to sign a legitimate transaction to facilitate other nodes to verify the authenticity of the transaction and ensure that the sender cannot deny the signed transaction. Nodes on the blockchain create transactions based on addresses rather than personal identities and broadcast them in the network. The transaction is then verified through the unspent transaction output (UTXO). Once transactions are successfully verified, they will be packaged into blocks and added to the blockchain through the mining process. When other nodes verify that all transactions in a block are valid, the block will be added to the blockchain, and all nodes will record the new block to achieve information synchronization.

[0003] With the rapid development of Internet technology, information security issues have gradually attracted people's attention. Although current covert communication can realize the hidden information transmission between the two communicating parties and prevent the communication signal from being discovered by malicious eavesdroppers, it cannot completely solve the problem of weak anonymity of the two communicating parties and weak message stability.

[0004] Covert communication based on blockchain transactions can effectively solve the above problems. It can not only conceal the content of the communication, but also conceal the sender, receiver, and even the existence of secret communication. This is very necessary in confidential communication, especially military communication. The immutability and decentralization of blockchain ensure the authenticity, non-repudiation, integrity and stability of the message. The massive transaction records and flexible transaction degree of blockchain largely ensure the anonymity of both parties in communication. It is difficult for attackers to identify special transactions from massive transactions. The immutability of blockchain transactions ensures the stability of the message and avoids the possibility of malicious attacks by third parties. Once the transaction amount changes, even a small change will cause a huge change in the hash value of the transaction, which provides a guarantee for the flexibility of embedded messages.

[0005] At present, researchers have begun to study blockchain secret communication. In 2018, Partala proposed a blockchain secret communication method called BLOCCE, which is considered to be the first attempt to combine blockchain and secret communication. Since then, many researchers have designed various secret communication schemes based on blockchain. OP RETURN is used for secret communication, which is easy to expose the content of communication. Transaction sequences are used to embed information, which can hide communication behavior but has high risks. Then, signatures are used to hide information, which has low risks but only a relatively single way. Secret information is embedded in the transaction address. This method has multiple forms, low risks and good concealment, but it has the disadvantages of low embedding capacity and high time cost. In the literature of 2024, it is proposed to use the ciphertext of the secret message to construct a mapping table of amounts, so as to use transactions carrying specific amounts to transmit secret messages. This method has strong embedding capacity and operability. However, the mapping table belongs to a single-table substitution cipher. For attackers who can collect a large amount of ciphertext, this type of cipher can be used to infer the mapping relationship based on the frequency of occurrence of different codes in common languages ​​and the frequency of different fields in ciphertext, thereby greatly reducing the amount of exhaustive analysis of all mapping relationships, thereby deciphering the mapping table and obtaining the message content. It can be seen that it is still impossible to completely solve the problem of weak anonymity of both parties in communication and weak message stability. Therefore, a covert communication method based on the Bitcoin payment system is urgently needed. Summary of the invention

[0006] In order to solve the above technical problems, the present invention proposes a covert communication method based on the Bitcoin payment system, which can solve the problems of low anonymity of the communicating parties and low message stability.

[0007] To achieve the above object, the present invention provides a covert communication method based on a Bitcoin payment system, comprising:

[0008] Obtaining a target message, preprocessing the target message, and obtaining a secret message to be sent, wherein the secret message to be sent includes a secret transaction record;

[0009] Sending the secret message to be sent to the blockchain network to obtain the secret message to be extracted;

[0010] The receiving party extracts the secret message to be extracted to complete the covert communication.

[0011] Optionally, before obtaining the target message, the method includes: initializing a Bitcoin payment system;

[0012] The initialization includes: distributing secret keys and determining main system parameters, wherein the main parameters include: encryption function, decryption function, public key generation function, embedding length of additional information in a transaction record, message terminator, ECC curve parameters, private key and private key extension function.

[0013] Optionally, preprocessing the target message includes:

[0014] Encrypting the target message to obtain a ciphertext;

[0015] Splitting the ciphertext to obtain a preset number of sub-ciphertexts;

[0016] Obtain a corresponding number of ordered addresses, embed the sub-ciphertexts in sequence, and obtain a hidden address set.

[0017] Optionally, obtaining the hidden address set includes:

[0018] For the private key sk i Expand and obtain the private key sequence;

[0019] The private keys sk in the private key sequence are sequentially i , input the ECC encryption function and get the public key pk i :

[0020] pk i =PKgen_ECC(sk i )

[0021] Then the public key pk i Converted from address generation function to hidden address Ad i :

[0022] Ad i =AdGen(pk i )

[0023] Based on the hidden address, the hidden address set is obtained.

[0024] Optionally, for the private key sk i The expansion method is:

[0025] sk i+1 =(k×sk i +sk i-1 )mod n

[0026] Among them, sk i+1 is the private key of the next round of transaction records to be generated, k is the pre-shared key, sk i-1 The private key used for the previous round of transaction records, sk1=k, sk0=0.

[0027] Optionally, sending the secret message to be sent to the blockchain network, and obtaining the secret message to be extracted includes:

[0028] Send the secret message to be sent to the blockchain network, perform hash value matching on the secret message to be sent, and obtain a secret transaction;

[0029] The secret transaction is sent to the blockchain to obtain the secret message to be extracted.

[0030] Optionally, performing hash value matching on the secret message to be sent to obtain the leaked transaction includes:

[0031] The hidden address Ad i As the sending address, any address Ad r As the receiving address, randomly sample the transaction amount Amount, and output a transaction Tx_m through the transaction generation function. i ;

[0032] Calculate the transaction Tx_m i Hash value, get the hash value Txhash_m i ;

[0033] The hash value Txhash_m i The specific bits of the sub-ciphertext c i Bit-by-bit comparison and matching;

[0034] If the match is complete, the embedding is considered complete and the secret transaction Tx_m is obtained. i ;

[0035] Otherwise, repeat the matching process until a match is successful.

[0036] Optionally, the hash value Txhash_m i The specific bits of the sub-ciphertext c i The bit-by-bit matching method is:

[0037] Txhash_m i (257-l e :256)=c i

[0038] Among them, Txhash_m i is the hash value, l e is the embedding length, c i It is the sub-ciphertext.

[0039] Optionally, the receiving party extracts the secret message to be extracted, and completing the covert communication includes:

[0040] The receiving party extracts the sub-ciphertext of the secret transaction to obtain the sub-ciphertext carried in the hash value;

[0041] splicing the sub-ciphertexts according to the generation order of the hidden addresses to obtain a spliced ​​ciphertext;

[0042] The concatenated ciphertext is decrypted using the secret words of the sender and the receiver to obtain the secret message.

[0043] Compared with the prior art, the present invention has the following advantages and technical effects:

[0044] 1. The algorithm proposed in this invention supports long message embedding. The transaction embedded with ciphertext is consistent with the characteristics of real blockchain transactions, and will be integrated into the massive transactions of blockchain. It has high concealment and can resist steganalysis based on machine learning. The anonymity of blockchain transactions and the randomness of transaction addresses ensure the concealment of both parties in communication. The receiver can identify secret transactions by monitoring hidden address transactions and extract the ciphertext messages carried therein without loss. The amount sampling method makes the amount data have good randomness, and it is impossible to analyze the reliable association between the amount and the message through transaction records, which ensures the reliability of covert communication.

[0045] 2. The decentralization and tamper-proof nature of the blockchain of the present invention makes it almost impossible for attackers to change the original secret transaction, and the recipient can completely extract the ciphertext in the secret transaction, ensuring the authenticity of the message. In traditional covert communications, before the message is uploaded to the public channel, it may be compressed, add noise, and change size, which greatly affects the success rate of ciphertext extraction.

[0046] 3. The present invention ensures the stability of messages by constructing real transactions on the blockchain that carry secrets. If an attacker wants to obtain secret messages, he must not only break the key expansion algorithm and message embedding algorithm proposed by the present invention, but also break the AES encryption algorithm. If an attacker wants to tamper with secret messages, he must have more than 50% of the computing power of the entire network to destroy the anti-tampering mechanism of the blockchain, which is almost impossible in reality. In summary, the present invention has high security.

[0047] 4. The present invention has a high embedding capacity, embedding success rate and extraction success rate. The diffusion of the hash algorithm greatly expands the diversity of embedded secret messages, and the anti-collision property of the hash ensures that the message can be accurately extracted. As long as the secret transaction is successfully published on the blockchain, the recipient can accurately extract the secret message. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0049] Figure 1 is a flow chart of a covert communication method based on a Bitcoin payment system according to an embodiment of the present invention;

[0050] Figure 2 This is a diagram of the Bitcoin transaction record structure of an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of a transaction record structure according to an embodiment of the present invention;

[0052] Figure 4 is an embedding schematic diagram of an embodiment of the present invention;

[0053] Figure 5 A schematic diagram of an address generation function in Bitcoin according to an embodiment of the present invention;

[0054] Figure 6 A schematic diagram of a key expansion and ordered address set generation function according to an embodiment of the present invention;

[0055] Figure 7 An embedded diagram of a fixed sending address according to an embodiment of the present invention;

[0056] Figure 8 This is an embedded diagram of a fixed receiving address according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0058] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0059] The present invention proposes a covert communication method based on the Bitcoin payment system. Figure 1 As shown, the specific steps include:

[0060] Obtaining a target message, preprocessing the target message, and obtaining a secret message to be sent;

[0061] Send the secret message to be sent to the blockchain network and obtain the secret message to be extracted;

[0062] The receiver extracts the secret message to be extracted and completes the covert communication.

[0063] Furthermore, before obtaining the target message, the process includes: initializing the Bitcoin payment system;

[0064] Initialization includes: distributing secret keys and determining the main system parameters, among which the main parameters include: encryption function, decryption function, public key generation function, embedded length of additional information in a transaction record, message terminator, ECC curve parameters, private key and private key extension function.

[0065] Specifically, the two parties in covert communication share the following information in advance:

[0066] (1) Encryption related: encryption key k, encryption and decryption function, public key generation function (the Bitcoin system uses the elliptic curve public key encryption algorithm), private key sk0, the embedding length of additional information in a transaction record (denoted as l e ), message terminator (suffixed at the end of the embedded data bits to mark the end of secret information transmission);

[0067] (2) Blockchain related: ECC curve parameters, private key sk1, private key extension function.

[0068] Furthermore, preprocessing the target message includes:

[0069] (1) Encrypted secret message: The secret message m is a binary sequence m∈{0,1} of length l l , which contains a lt-bit message terminator, encrypts m with key k to obtain the ciphertext c∈{0,1} l

[0070] c=Enc k (m) (1)

[0071] c=c\\c termi (2)

[0072] (2) Ciphertext splitting: The ciphertext c is split into sub-ciphertexts {c1,c2,...,c t}. The proposed algorithm embeds a sub-ciphertext in a transaction record.

[0073] (3) Address expansion: In order to embed all sub-ciphertexts, t addresses are required to be generated in order. Transaction records are generated in sequence and embedded in the sub-ciphertexts. The addresses are recorded as Ad i i∈{0,1,...,t}. In the blockchain system, the transaction address Ad i Use private key sk i Generate, the specific steps are:

[0074] a) Using sk i , input ECC encryption function and get the public key pk i ,

[0075] pki =PKgen_ECC(sk i ) (3)

[0076] b) Then pk i Converted from address generation function to hidden address Ad i

[0077] Ad i =AdGen(pk i ) (4)

[0078] Therefore, it is necessary to generate t private keys in sequence, and the private key expansion algorithm is as follows:

[0079] sk i+1 =(k×sk i +sk i-1 )modn (5)

[0080] Then we get a set of t ordered hidden addresses.

[0081] Specifically, in order to apply the above embedding process in the Bitcoin network, the present invention constructs a covert communication ordered address set based on the system. The reason is that when there is too much embedded information, it is impossible to embed all the information in one transaction record. Therefore, it is necessary to divide the data to be embedded into short sequences and embed them in different records in sequence. In order to achieve orderly transmission and lossless data extraction, different transaction records use different hidden addresses, and these addresses constitute an ordered covert communication address set. The generation process of the address set is introduced below.

[0082] The address generation function in the original Bitcoin system is to generate a public key by calculating the private key. The public key is encoded through a series of hash functions, such as SHA256 and Base58, to obtain a usable address. Figure 5 shown.

[0083] Therefore, in order to obtain an ordered address set for covert communication, it is necessary to use the pre-shared key (PSK) distributed by the communicating parties to generate a private key sequence. For this purpose, the present invention designs a private key expansion function and an ordered covert address set generation method. The framework is as follows: Figure 6 shown.

[0084] Furthermore, sending the secret message to be sent to the blockchain network, and obtaining the secret message to be extracted includes:

[0085] (1) Definition, transaction generation function: Tx_m i =TxGen(Ad i ,Amount,Ad r ), where the input is the sending address, payment amount and receiving address. The output is a legal Bitcoin transaction record.

[0086] Tx_m i =TxGen(Ad i ,Amount,Ad r ) (6)

[0087] (2) Amount sampling and hash matching embedding: embed the hidden address Ad i As the sending address, any address Ad r As the receiving address, randomly sample the transaction amount Amount, and output a transaction Tx_m through the transaction generation function. i . Calculate the transaction Tx_m i The hash value is recorded as Txhash_m i .Txhash_m i The specific bit of (Txhash_m is used in this algorithm i l e least significant bits) and the sub-ciphertext c i The bit-by-bit comparison is successful. If the complete match is successful, the embedding is considered complete and the transaction Tx_m i It is a secret transaction. If there are mismatched bits, the amount value is resampled to generate a new transaction, and the above matching process is repeated until the embedding is completed.

[0088] (3) Publish the confidential transaction record to the blockchain. The transaction satisfies its binary hash value (the algorithm in the present invention uses SHA256, and the hash value is 256 bits), the transaction hash value Txhash_m i After l e The bit is the sub-ciphertext c i ,i∈{0,1,...,t}

[0089] Txhash_m i (257-l e :256)=c i (7)

[0090] The pseudo code for amount sampling and hash matching embedded in 1 bit of a transaction record is as follows:

[0091]

[0092] (4) In order to embed all sub-ciphertexts c i , it is necessary to generate t transaction records in sequence, and each transaction carries a length of l e The sub-ciphertext c i . With hidden address Ad i is the input address, any address is the output address, and the secret transaction Tx_m is generated by changing the transaction amount i, so that it carries the sub-ciphertext c i .

[0093] Furthermore, the receiving party extracts the secret message to be extracted, and the covert communication includes:

[0094] (1) Sub-ciphertext extraction: The receiver monitors the transaction Tx_m sent from the hidden address i , extract the sub-ciphertext c carried in the binary hash value of the secret transaction in turn i ,i∈{0,1,...,t}

[0095] c s =Txhash_m i (257-l e :256) (8)

[0096] (2) Ciphertext reorganization: The receiver reorganizes all the extracted sub-ciphertexts c i According to the hidden address Ad i The generated sequence is spliced, and when the transaction terminator is obtained, it can be considered that the information reception is completed. Then, the spliced ​​ciphertext c is obtained in order according to the ordered address set. s

[0097]

[0098] (3) Recover the secret message: The receiver uses the key k to concatenate the ciphertext c s Decrypt, excluding the transaction terminator c in the ciphertext termi , get the plaintext m s At this time m s Secret message

[0099] m s =Dec k (c s ) (10)

[0100] Example

[0101] The embedding method of the proposed algorithm is to realize covert communication between the two communicating parties based on the transaction records in the Bitcoin network. In the Bitcoin system, the data structure of the transaction record is as follows: Figure 2 The input and output data structures can ensure the immutability of transactions and the credibility of payments. In addition, the payer address and the payee address contained therein are generated by a cryptographic algorithm and have no task association with the user's real identity, so the payment behavior is completely anonymous. The main data structures used in the transaction records are shown in Tables 1 and 2.

[0102] Table 1. Bitcoin transaction record input structure

[0103]

[0104] Table 2. Overall structure of Bitcoin transaction records

[0105]

[0106] The above structure can be simply divided into several main parts ( Figure 3 ):

[0107] Figure 3 Among all the parts, the payment address and payment amount are the main ones that can be modified independently by the transaction parties. This is also the main implementation path for covert communication solutions based on blockchain technology in this field.

[0108] However, the existing covert communication algorithms based on the above two fields have certain problems. The method of embedding secret information into the payer (or payee) address is complicated, and the embedding amount in a unit record is only a few bits, and the transmission amount is small. In terms of security, the method based on address construction is easy to lock the address and identify a specific secret record.

[0109] The latest method is to use the payee's amount to construct a mapping table from message to amount, thereby embedding the message. This method has strong embedding capacity and operability. However, once the attacker collects a large amount of amount data in the records carrying secret messages, it is easy to carry out a known plaintext attack to decipher the mapping table and obtain the message content.

[0110] The algorithm of the present invention mainly uses the method of changing the payment amount to embed the secret message. By randomly sampling the amount data, the hash value of the entire transaction record changes randomly. According to the diffusion property of the hash function, when the function input changes, its bits will randomly flip. Therefore, by continuously sampling the amount data, the hash value carrying the secret message can be obtained, and the information embedding is completed. Figure 4 The characteristic of this method is that there is no specific mapping table from amount to message, the amount data is obtained by random sampling, and each sampling result has a probability of being embedded. Even if the attacker accumulates a large number of confidential records, he cannot predict the sampling pattern or reconstruct the mapping relationship between message and amount to launch an attack.

[0111] The two parties in covert communication pre-distribute keys to each other, and after expanding the private key, an ordered set of covert addresses is obtained, and secret information is embedded in sequence according to the set. In actual application, the use mode of covert addresses can be divided into two situations:

[0112] One is to use the addresses in the hidden address set as the sending addresses in the transaction record in turn, such as Figure 7In this mode, the sender of information can use his own address as the broadcast source and publicly transmit secret information in the blockchain network.

[0113] The second is to use the addresses in the hidden address set as the receiving addresses in the transaction record in sequence, such as Figure 8 In this method, the sender sends secret information back to a specific receiver.

[0114] The sender of the secret information embeds different information in different transaction records based on an ordered list of hidden addresses, constructs a secret transaction record, and then uploads it to the blockchain network. Once the transaction record is successfully packaged and uploaded to the chain, it will be publicly released on the Bitcoin network.

[0115] The receiver can also obtain the hidden address set through PSK, and monitor the transaction records in the public blockchain in the Bitcoin network based on this set. Once a transaction containing a hidden address is found, it is considered that a secret transaction has been received. All secret transactions are obtained in sequence according to the address set. Then, information is extracted from the hash value of the transaction record in turn.

[0116] The main variables and functions involved in this embodiment are shown in Table 3:

[0117] Table 3

[0118]

[0119]

[0120] In order to communicate long messages, this embodiment requires that after the initial wallet private key is entered, the number of new private keys generated by the key expansion algorithm is sufficient. Since the new private key must meet the ECC private key requirements, that is, sk∈[0,n-1] (n is the order of the generator), the order of the selected generator point G is required to be large enough.

[0121] Long message communication requires a sufficient number of wallet private keys while ensuring the security of communication. This embodiment is set as follows:

[0122] (1) Parameter selection, select a, b, p, and the curve is y 2 =x 3 +ax+b(modp), the parameters selected in this algorithm are a=82, b=169, p=25003.

[0123] (2) Select a generator point. Here, the generator point G = (0, 13) is selected, and the order of the calculation point G is n = 1797.

[0124] (3) Generate the initial wallet private key: randomly select from [0, n-1].

[0125] This embodiment uses the AES algorithm to encrypt the secret message to obtain the bits to be embedded, where c termi ='011111110'. To ensure the security of the encryption algorithm, the key k=197 is selected in this embodiment.

[0126] Key expansion algorithm parameter selection

[0127] sk i+1 =(k×sk i +sk i-1 )modn

[0128] Where k is the encryption key, which is used as a parameter of the key expansion algorithm to reduce the amount of pre-shared information off-chain and improve the security of the algorithm. n is the order of the generator selected by the ECC elliptic curve, (k×sk i +sk i-1 ) modulo n to ensure that the calculated private key meets the ECC private key requirements. The main information of a transaction record under the above parameter settings is obtained in the experiment, as shown in Table 4:

[0129] Table 4

[0130] Transaction Fields Example Sender's private key 1733 Sender's public key 4514,2880 Sender address 025bc4225232cd32 Transaction amount 0000000000000064 Recipient Address 8503992af85f1184 Sender's signature 00000387000004e8

[0131] This embodiment embeds 6 bits of additional information in a transaction, and generates a legal transaction as shown in the second column of Table 5, but the hash value matching result of the transaction fails. The encrypted transaction that can be finally obtained by resampling the amount value is shown in the third column of Table 5.

[0132] Table 5

[0133]

[0134] The experimental environment configuration is shown in Table 6.

[0135] Table 6 Test environment

[0136]

[0137] As the number of bits embedded in a transaction increases, the number of times the amount of a secret transaction is sampled increases, and the calculation time also increases. The reason is that the embedding implementation mainly relies on the avalanche effect of the hash value generation process. The probability of different results is different. The more secret bits are required, the greater the restriction on specific bits, the smaller the probability of occurrence, and the more times the amount needs to be sampled. Table 7 records the embedded bit value and the final extraction accuracy when a single transaction is embedded in different bits when 8 bits of additional information 10001011 are embedded.

[0138] Table 7. Example of data embedding extraction results

[0139]

[0140] This example conducts 6 different experiments (each generating 100 transactions). In each experiment, a single transaction record is embedded with additional information of different lengths. The table records the average number of times the amount needs to be sampled to complete the embedding in a transaction record in each experiment, recorded as q; and the average time (seconds / s) to complete the embedding in a transaction record, recorded as t e . Record q, t at different l e , as shown in Table 8.

[0141] Table 8 Transactions with different numbers of embedded bits

[0142] <![CDATA[l e ]]> 1 2 3 4 5 6 q 2.34 3.97 6.88 15.37 37.34 85.30 <![CDATA[t e ]]> 3.62 5.44 11.6 22.91 52.64 119.52

[0143] This embodiment uses secret messages of the same length but different contents to embed. By comparing the number of sample times for generating a secret transaction and the time required to complete the embedding, it can be seen that when the number of ciphertext bits embedded in a transaction is the same, the embedded content has little effect on the number of trials and calculation time.

[0144] As the transaction amount changes, the hash value of the transaction will change dramatically due to the diffusion of the hash function. Table 9 shows the number of bits of the hash value that are reversed when the transaction amount is different and the other fields of the transaction record remain unchanged during the sampling process of a record, compared with the amount value of 0. It can be seen that the change in the amount has a good diffusion effect on the hash value, and the probability of each hash bit flipping is close to 0.5, which has good randomness and can support the implementation of embedded information.

[0145] Table 9 Hash diffusion test

[0146] Amount value Number of flipped bits in the hash value Hash value flip ratio 1 133 51.95% 2 130 50.78% 3 119 46.48% 4 135 52.73% 5 129 50.39% 6 112 43.75% 7 132 51.56% 8 129 50.39% 9 140 54.69% 10 102 39.84% 11 128 50% 12 131 51.17% 13 126 49.22% 14 124 48.44% 15 134 52.34%

[0147] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A covert communication method based on the Bitcoin payment system, It is characterized in that include: Obtaining a target message, preprocessing the target message, and obtaining a secret message to be sent, wherein the secret message to be sent includes a secret transaction record; Sending the secret message to be sent to the blockchain network to obtain the secret message to be extracted; The receiving party extracts the secret message to be extracted to complete the covert communication.

2. A covert communication method based on a Bitcoin payment system according to claim 1, It is characterized in that Before obtaining the target message, the method includes: initializing the Bitcoin payment system; The initialization includes: distributing secret keys and determining main system parameters, wherein the main parameters include: encryption function, decryption function, public key generation function, embedding length of additional information in a transaction record, message terminator, ECC curve parameters, private key and private key extension function.

3. A covert communication method based on a Bitcoin payment system according to claim 2, It is characterized in that Preprocessing the target message includes: Encrypting the target message to obtain a ciphertext; Splitting the ciphertext to obtain a preset number of sub-ciphertexts; Obtain a corresponding number of ordered addresses, embed the sub-ciphertexts in sequence, and obtain a hidden address set.

4. A covert communication method based on a Bitcoin payment system according to claim 3, It is characterized in that Acquiring the hidden address set includes: For the private key sk i Expand and obtain the private key sequence; The private keys sk in the private key sequence are sequentially i , input the ECC encryption function and get the public key pk i : pk i =PKgen_ECC(sk i ) Then the public key pk i Converted from address generation function to hidden address Ad i : Ad i =AdGen(pk i ) Based on the hidden address, the hidden address set is obtained.

5. A covert communication method based on a Bitcoin payment system according to claim 4, It is characterized in that For the private key sk i The expansion method is: sk i+1 =(k×sk i +sk i-1 )to n Among them, sk i+1 is the private key of the next round of transaction records to be generated, k is the pre-shared key, sk i-1 The private key used for the previous round of transaction records, sk 1 =k,sk 0 =0.

6. A covert communication method based on a Bitcoin payment system according to claim 1, It is characterized in that Sending the secret message to be sent to the blockchain network, and obtaining the secret message to be extracted includes: Send the secret message to be sent to the blockchain network, perform hash value matching on the secret message to be sent, and obtain a secret transaction; The secret transaction is sent to the blockchain to obtain the secret message to be extracted.

7. A covert communication method based on a Bitcoin payment system according to claim 6, It is characterized in that Performing hash value matching on the secret message to be sent to obtain the leaked transaction includes: The hidden address Ad i As the sending address, any address Ad r As the receiving address, randomly sample the transaction amount Amount, and output a transaction Tx_m through the transaction generation function. i ; Calculate the transaction Tx_m i Hash value, get the hash value Txhash_m i ; The hash value Txhash_m i The specific bits of the sub-ciphertext c i Bit-by-bit comparison and matching; If the match is complete, the embedding is considered complete and the secret transaction Tx_m is obtained. i ; Otherwise, repeat the matching process until a match is successful.

8. A covert communication method based on a Bitcoin payment system according to claim 7, It is characterized in that The hash value Txhash_m i The specific bits of the sub-ciphertext c i The bit-by-bit matching method is: Txhash_m i (257-l e :256)=c i Among them, Txhash_m i is the hash value, l e is the embedding length, c i It is the sub-ciphertext.

9. A covert communication method based on a Bitcoin payment system according to claim 7, It is characterized in that The receiving party extracts the secret message to be extracted, and the covert communication is completed including: The receiving party extracts the sub-ciphertext of the secret transaction to obtain the sub-ciphertext carried in the hash value; splicing the sub-ciphertexts according to the generation order of the hidden addresses to obtain a spliced ​​ciphertext; The concatenated ciphertext is decrypted using the secret words of the sender and the receiver to obtain the secret message.