Payment verification method based on block chain

By creating transactions in the blockchain network and packaging them into blocks by miner nodes, the problem of lack of detailed explanation of the internal operation process of the payment verification method in the existing technology and high security costs are solved, and the high security of payment is achieved. Reliability reduces payment costs.

CN119515381APending Publication Date: 2025-02-25AIXIANG TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411341811.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing blockchain-based payment verification method lacks detailed explanation of the internal operation process of the system, and there are problems of security and cost in the payment process.

Method used

By creating transactions in the blockchain network, the payer uses the private key to digitally sign the transactions. The transactions are broadcasted and packaged into blocks by the miner nodes. Compete for accounting rights through hashing operations to ensure the legality and security of the transactions.

Benefits of technology

It realizes a high degree of security and reliability of payment, reduces the cost and intermediate links of payment, and makes the internal operation of the system clear and clear.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119515381A_ABST
    Figure CN119515381A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of payment verification methods, provides a payment verification method based on a block chain, explains an internal operation mode of a system, provides high security and reliability for payment through an encryption technology, also reduces the payment cost and intermediate links, and improves the payment efficiency. Comprising the following steps of: initiating a transaction, when a payer initiates payment, creating a transaction in a block chain network, performing digital signature and transaction broadcasting on the transaction by using a private key of the payer, broadcasting the digitally signed transaction to each node in the block chain network, checking whether the format of the transaction is correct and whether the signature is valid, and if yes, performing transaction processing. The method comprises the following steps that: after one miner successfully finds a solution of a transaction hash value corresponding to a new block, the newly generated block is broadcasted to a network, and after other nodes receive the new block, the new block is verified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of payment verification methods, and in particular to a payment verification method based on blockchain. Background Art

[0002] As we all know, blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism and encryption algorithm. The blockchain-based payment verification method mainly uses the characteristics of blockchain technology to realize digital payment and ensure the security, transparency and non-tamperability of payment.

[0003] After searching, the invention patent with Chinese patent application number CN202410547332.5 discloses a blockchain payment processing method based on blockchain finance, which is roughly described as including account login, transaction request, channel establishment, transaction start, transaction protection and synchronization of transaction information. When in use, by setting account login verification, transaction review and transaction authentication during the transaction process, users need to perform three verifications when using blockchain payment to finally complete the transaction, and the three verification methods are all randomly selected without repetition through the consensus mechanism, so that the transaction needs to adopt at least three different verification methods.

[0004] Although the above-mentioned existing technical solution describes a blockchain payment processing method based on blockchain finance, a detailed study of its overall operation method shows that it is more like an operation process formed for a specific system, and there is no specific operation process within the corresponding system. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a payment verification method based on blockchain, which explains the internal operation mode of the system. The payment verification method based on blockchain provides a high degree of security and reliability for payment through encryption technology, while also reducing the cost and intermediate links of payment.

[0006] To achieve the above object, the present invention provides the following technical solution: a payment verification method based on blockchain, comprising the following steps:

[0007] S1. Transaction initiation: When the payer initiates a payment, a transaction is created in the blockchain network. This transaction contains information such as the payer's address, the payee's address, the payment amount, and the transaction's unique identifier. The payer uses his or her own private key to digitally sign the transaction to prove the authenticity and non-repudiation of the transaction.

[0008] S2. Transaction broadcast: The digitally signed transaction is broadcast to each node in the blockchain network. After receiving the transaction, the corresponding node will conduct a preliminary verification of the transaction to check whether the transaction format is correct and whether the signature is valid.

[0009] S3, Transaction Packaging: Miner nodes select transactions from the transaction pool and pack them into a new block. During the packaging process, miners will further verify the transactions to ensure the legality and validity of the transactions. At the same time, miners need to compete for the right to record the new block through hash operations.

[0010] S4. Block verification and addition: When a miner successfully finds a solution to the transaction hash value corresponding to a new block, it will broadcast the newly generated block to the network. After receiving the new block, other nodes will verify the new block. If the verification passes, the node will add the block to its local blockchain copy. As more and more nodes confirm and add the block, the number of transaction confirmations will continue to increase.

[0011] S5. Payment confirmation: When a transaction is included in a block with enough confirmations, the payment is considered to have been successfully completed. Generally speaking, for some important payments, it is necessary to wait for confirmation from multiple blocks to ensure the security of the payment. The payee can confirm whether he has received the payment by querying the transaction records on the blockchain.

[0012] Preferably, in step S2, if the digital signature verification passes, the node will temporarily store the transaction in the local transaction pool, waiting to be packaged into the block. If the digital signature verification fails, the node will return the transaction to the digital signature page to remind the payer that there is a problem with the private key entered, waiting for the payer's next instruction.

[0013] Preferably, in step S3, the miners will evaluate the transactions to determine the priority of the transactions, with the transaction initiation time being the main evaluation factor, and transactions initiated earlier having a certain priority to ensure that the timeliness of the transactions is met, and the transaction size being the secondary evaluation factor, and larger transactions having a certain priority to ensure that large customers are satisfied.

[0014] Preferably, the verification content of the new block by other nodes in step S4 includes whether the structure of the block is correct, whether the transactions included are valid, and whether the miner's solution meets the difficulty requirements.

[0015] Preferably, in step S4, when the number of confirmations for a transaction reaches 6 times, the payment is considered to have been fully confirmed.

[0016] Preferably, in step S5, when the payee queries the transaction records on the blockchain, due to the transparency of the blockchain, all transactions can be publicly viewed, so the payee can easily verify the authenticity and amount of the payment.

[0017] Preferably, the miner node regularly cleans up the transaction pool and removes expired or invalid transactions from the transaction pool. For example, if a transaction is not packaged within a certain period of time, it may be considered expired and deleted from the transaction pool.

[0018] Preferably, when a transaction occurs, the miner node performs a hash operation on the transaction to obtain a transaction hash value, which can be used as a unique identifier of the transaction and to verify the integrity and authenticity of the transaction.

[0019] Preferably, in the process of determining the transaction hash value, miners need to continuously try different random numbers and perform hash operations on candidate blocks until a transaction hash value that meets the target difficulty is found. This process ensures the security and stability of the blockchain.

[0020] Preferably, the transaction hash value is deterministic, unidirectional and unique, and the transaction hash value is calculated as follows:

[0021] Hash(T)=H(T sender , T receiver , T amount , …)

[0022] Where T represents a transaction, which is a tuple containing information such as the payer address, the payee address, and the payment amount.

[0023] Hash(T) represents the transaction hash value of transaction T.

[0024] T sender Indicates the payee address.

[0025] T receiver Indicates the recipient's address.

[0026] T amount Indicates key transaction information such as payment amount;

[0027] The block hash is calculated as follows:

[0028] Hash(B)=H(Hash(B prev ), B timestamp , B difficulty , {Hash(T1), Hash(T2),…Hash(T n )})

[0029] Where B represents a block,

[0030] Hash(B) represents the block hash value of block B.

[0031] Hash(B prev ) represents the block hash value of the previous block,

[0032] B timestamp Indicates the timestamp of the current block,

[0033] B difficulty Indicates the difficulty target,

[0034] {Hash(T1), Hash(T2),…Hash(T n )} represents the transaction hash value set of all transactions included in the block;

[0035] Transaction verification: When a node receives a transaction T, it recalculates the transaction hash value Hash′(T).

[0036] If Hash′(T) = Hash(T), it means that the transaction has not been tampered with during transmission;

[0037] Block verification: For a newly received block B, the node first verifies whether the structure of the block is correct, and then recalculates the block hash value Hash′(B prev ), if Hash′(B prev )=Hash(B prev ), and the block hash value of the previous block is consistent with the block hash value of the previous block stored locally, and the transactions contained in the block are also verified, then the block is considered valid.

[0038] Compared with the prior art, the present invention provides a payment verification method based on blockchain, which has the following beneficial effects:

[0039] In the present invention, a payment verification method based on blockchain is formed as a whole, which explains the internal operation mode of the system. Through the transaction intervention of the miner node based on the hash operation encryption technology of blockchain, a high degree of security and reliability is provided for payment, while also reducing the cost and intermediate links of payment. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] Example

[0043] See also Figure 1, a payment verification method based on blockchain, including the following steps: first, transaction initiation: when the payer initiates a payment, a transaction will be created in the blockchain network. The transaction contains information such as the payer's address, the payee's address, the payment amount, and the unique identifier of the transaction. The payer uses his own private key to digitally sign the transaction to prove the authenticity and non-repudiation of the transaction. Then the transaction is broadcast: the digitally signed transaction is broadcast to each node in the blockchain network. After the corresponding node receives the transaction, it will perform a preliminary verification on the transaction, checking whether the transaction format is correct and whether the signature is valid. If the digital signature verification passes, the node will temporarily store the transaction in the local transaction pool, waiting to be packaged into the block. If the digital signature verification fails, After the transaction is approved, the node will send the transaction back to the digital signature page, reminding the payer that there is a problem with the private key entered, and wait for the payer's next instruction. After that, the transaction is packaged: the miner node selects transactions from the transaction pool and packages these transactions into a new block. During the packaging process, the miner will further verify the transaction to ensure the legality and validity of the transaction. At the same time, the miner needs to compete for the right to record the new block through hash operations. The miner will evaluate the transaction to determine the priority of the transaction. The initiation time of the transaction is the main evaluation factor. The earlier initiated transactions have a certain priority to ensure that the timeliness of the transaction is met. The size of the transaction is a secondary evaluation factor. Larger transactions have a certain priority to ensure that large customers are satisfied. Then the block verification Verification and addition: When a miner successfully finds a solution to the transaction hash value corresponding to a new block, the newly generated block will be broadcast to the network. After receiving the new block, other nodes will verify the new block. If the verification is successful, the node will add the block to its local blockchain copy. As more and more nodes confirm and add the block, the number of transaction confirmations will continue to increase. Other nodes verify the new block, including whether the structure of the block is correct, whether the included transactions are valid, and whether the miner's solution meets the difficulty requirements. When a transaction is confirmed six times, it is considered that the payment has been fully confirmed. In order to further improve the security of the transaction, for payments of large amounts, it can be confirmed based on specific Increase the number of transaction confirmations as appropriate, and finally confirm the payment: When a transaction is included in a block that has received enough confirmations, it is considered that the payment has been successfully completed. Generally speaking, for some important payments, it is necessary to wait for the confirmation of multiple blocks to ensure the security of the payment. The payee can confirm whether he has received the payment by querying the transaction records on the blockchain. When the payee queries the transaction records on the blockchain, due to the transparency of the blockchain, all transactions can be viewed publicly, so the payee can easily verify the authenticity and amount of the payment. The whole forms a payment verification method based on the blockchain, which explains the internal operation mode of the system, and intervenes in the transaction of the miner node based on the hash operation encryption technology of the blockchain.It provides a high degree of security and reliability for payment, while also reducing the cost and intermediate links of payment.

[0044] It should be further explained that the miner node regularly cleans up the transaction pool and removes expired or invalid transactions from the transaction pool. For example, if a transaction is not packaged within a certain period of time, it may be considered expired and deleted from the transaction pool. The time limit can be set according to the specific situation, generally 30 minutes. When a transaction occurs, the miner node will perform a hash operation on the transaction to obtain a transaction hash value, which can be used as a unique identifier of the transaction and used to verify the integrity and authenticity of the transaction. In the process of determining the transaction hash value, miners need to constantly try different random numbers and perform hash operations on candidate blocks until a transaction hash value that meets the target difficulty is found. This process ensures the security and stability of the blockchain. The transaction hash value is deterministic, unidirectional and unique. The transaction hash calculation is calculated as follows:

[0045] Hash(T)=H(T sender , T receiver , T amount , …)

[0046] Where T represents a transaction, which is a tuple containing information such as the payer address, the payee address, and the payment amount. Hash(T) represents the transaction hash value of transaction T. sender Indicates the payee address, T receiver Indicates the recipient address, T amount Indicates key transaction information such as payment amount;

[0047] The block hash is calculated as follows:

[0048] Hash(B)=H(Hash(B prev ), B timestamp , B difficulty , {Hash(T1), Hash(T2),…Hash(T n )})

[0049] Where B represents a block, Hash(B) represents the block hash value of block B, and Hash(B prev ) represents the block hash value of the previous block, B timestamp Indicates the timestamp of the current block, B difficulty represents the difficulty target, {Hash(T1), Hash(T2), …Hash(T n )} represents the transaction hash value set of all transactions included in the block;

[0050] Transaction verification: When a node receives a transaction T, it recalculates the transaction hash value Hash′(T). If Hash′(T) = Hash(T), it means that the transaction has not been tampered with during transmission.

[0051] Block verification: For a newly received block B, the node first verifies whether the structure of the block is correct, and then recalculates the block hash value Hash′(B prev ), if Hash′(B prev )=Hash(B prev ), and the block hash value of the previous block is consistent with the block hash value of the previous block stored locally, and the transactions contained in the block are also verified, then the block is considered valid.

[0052] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A payment verification method based on blockchain, characterized in that: The steps include: S1. Transaction initiation: When the payer initiates a payment, a transaction is created in the blockchain network. This transaction contains the payer's address, the payee's address, the payment amount, and the transaction's unique identifier information. The payer uses his or her own private key to digitally sign the transaction to prove the authenticity and non-repudiation of the transaction. S2. Transaction broadcast: The digitally signed transaction is broadcast to each node in the blockchain network. After receiving the transaction, the corresponding node will conduct a preliminary verification of the transaction to check whether the transaction format is correct and whether the signature is valid; S3, Transaction Packaging: Miner nodes select transactions from the transaction pool and pack them into a new block. During the packaging process, miners will further verify the transactions to ensure the legality and validity of the transactions. At the same time, miners need to compete for the right to record the new block through hash operations. S4. Block verification and addition: When a miner successfully finds a solution to the transaction hash value corresponding to a new block, it will broadcast the newly generated block to the network. After receiving the new block, other nodes will verify the new block. If the verification passes, the node will add the block to its local blockchain copy. As more and more nodes confirm and add the block, the number of transaction confirmations will continue to increase. S5. Payment confirmation: When a transaction is included in a block with enough confirmations, the payment is considered to have been successfully completed. Generally speaking, for some important payments, it is necessary to wait for confirmation from multiple blocks to ensure the security of the payment. The payee can confirm whether he has received the payment by querying the transaction records on the blockchain.

2. A payment verification method based on blockchain according to claim 1, characterized in that: If the digital signature verification passes in step S2, the node will temporarily store the transaction in the local transaction pool, waiting to be packaged into the block. If the digital signature verification fails, the node will return the transaction to the digital signature page to remind the payer that there is a problem with the private key entered, waiting for the payer's next instruction.

3. A payment verification method based on blockchain according to claim 2, characterized in that: In step S3, the miners will evaluate the transactions to determine the priority of the transactions. The transaction initiation time is the main evaluation factor, and transactions initiated earlier have a certain priority to ensure that the timeliness of the transactions is met. The transaction size is a secondary evaluation factor, and larger transactions have a certain priority to ensure that large customers are satisfied.

4. A payment verification method based on blockchain according to claim 3, characterized in that: In step S4, other nodes verify the new block including whether the structure of the block is correct, whether the transactions contained therein are valid, and whether the miner's solution meets the difficulty requirements.

5. A payment verification method based on blockchain according to claim 4, characterized in that: In step S4, when the number of confirmations for a transaction reaches 6 times, it is considered that the payment has been fully confirmed.

6. A payment verification method based on blockchain according to claim 5, characterized in that: In step S5, when the payee queries the transaction records on the blockchain, due to the transparency of the blockchain, all transactions can be publicly viewed, so the payee can easily verify the authenticity and amount of the payment.

7. A payment verification method based on blockchain according to claim 6, characterized in that: The miner node regularly cleans up the transaction pool and removes expired or invalid transactions from the transaction pool.

8. A payment verification method based on blockchain according to claim 7, characterized in that: When a transaction occurs, the miner node will perform a hash operation on the transaction to obtain a transaction hash value, which can be used as a unique identifier of the transaction and to verify the integrity and authenticity of the transaction.

9. A payment verification method based on blockchain according to claim 8, characterized in that: In the process of determining the transaction hash value, miners need to continuously try different random numbers and perform hash operations on candidate blocks until a transaction hash value that meets the target difficulty is found. This process ensures the security and stability of the blockchain.

10. A payment verification method based on blockchain according to claim 9, characterized in that: The transaction hash value is deterministic, unidirectional and unique. The transaction hash value is calculated as follows: Hash(T)=H(T sender ,T receiver ,T amount ,…) Where T represents a transaction, which is a tuple containing information such as the payer address, the payee address, and the payment amount. Hash(T) represents the transaction hash value of transaction T. T sender Indicates the payee address. T receiver Indicates the recipient's address. T amount Indicates key transaction information such as payment amount; The block hash is calculated as follows: Hash(B)=H(Hash(B prev ),B timnestamp ,B difficulty ,{Hash(T1),Hash(T2),…Hash(T n )}) Where B represents a block, Hash(B) represents the block hash value of block B. Hash(B prev ) represents the block hash value of the previous block, B timestamp Indicates the timestamp of the current block, B difficulty Indicates the difficulty target, {Hash(T1), Hash(T2),…Hash(T n )} represents the transaction hash value set of all transactions included in the block; Transaction verification: When a node receives a transaction T, it recalculates the transaction hash value Hash′(T). If Hash′(T) = Hash(T), it means that the transaction has not been tampered with during transmission; Block verification: For a newly received block B, the node first verifies whether the structure of the block is correct, and then recalculates the block hash value Hash′(B prev ), if Hash′(B prev )=Hash(B prev ), and the block hash value of the previous block is consistent with the block hash value of the previous block stored locally, and the transactions contained in the block are also verified, then the block is considered valid.

Citation Information

Patent Citations

  • Block chain payment processing method based on block chain finance

    CN118365325A

  • Transaction verification processing method, apparatus and node device

    CN107077674A