Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for preventing repeated payment

A technology for repeated payments and transactions, applied in the blockchain field, can solve problems affecting the stability of the blockchain system, attacks, etc., and achieve the effects of avoiding the possibility of repeated payments, reducing burdens, and maintaining stability

Inactive Publication Date: 2018-11-23
HANGZHOU FUZAMEI TECH CO LTD
View PDF12 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Valid transactions with low transaction fees or no transaction fees sent repeatedly maliciously may cause distributed denial of service (DDOS) attacks and affect the stability of the blockchain system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for preventing repeated payment
  • Method and system for preventing repeated payment
  • Method and system for preventing repeated payment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 1 , 2 , 3, 4, 5, 6, 7, a method for preventing repeated payment, comprising the following steps:

[0058] S1. Send the transaction; the transaction with validity period is sent to any node of the blockchain network;

[0059] S2. Verify the transaction; whether the transaction is verified by the node is valid, if the verification is valid, the node will propagate the transaction to other nodes connected to the node, and at the same time, the transaction initiator will receive a return message indicating that the transaction is successful; if If the verification is invalid, the node will refuse to accept the transaction and at the same time return a message indicating that the transaction was rejected to the transaction initiator, and return to step S1;

[0060] S3. Processing transactions; successfully verified transactions are put into the pool of nodes, waiting to be processed into valid transactions or invalid transactions;

[0061] Considering that ...

Embodiment 2

[0065] Such as figure 1 , 2 , 3, 4, 5, 6, and 7, a method for preventing repeated payment is further improved on the basis of embodiment 1, and the validity period is time, block number or block height; further , the processing method for the invalidation of the transaction in S3 is: after the validity period expires after the transaction is sent, delete the transaction from the pool of the node; preferably, the processing method for the transaction validation in S3 is: the transaction is integrated into the block within the validity period; The consensus mechanism adopted is workload proof mechanism, equity proof mechanism, share authorization proof mechanism or Poo1 verification pool.

[0066] Further, when the validity period is time T, the method for judging whether the transaction takes effect in S4 is:

[0067] Compare the cumulative time t and T after the transaction is sent, if t≤T, the transaction is integrated into the block, the transaction will take effect, and t...

Embodiment 3

[0074] Such as figure 1 , 2 , 3, 4, 5, 6, and 7, a method for preventing double payment is further improved on the basis of embodiment 1 or 2. In S1, the transaction is assigned a validity period or a counter when it is constructed.

[0075] If the transaction is only assigned a validity period when it is constructed, and there is no counter, then the method for judging whether the transaction is resent is: if the validity period is the number of blocks, the transaction sender or the node of the transaction sender records the block when the transaction was last sent Block height. When the transaction needs to be resent, record the current block height. If the difference between the current block height and the block height when the transaction was sent last time is less than or equal to the number of blocks, it means that the transaction is still valid and still in the node If the difference between the height of the previous block and the height of the block at the time of s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system for preventing repeated payment, and belongs to the technical field of blockchain. The method comprises the steps of: S1, sending a transaction: the transaction with a valid period is sent to a node of any blockchain network; S2, verifying the transaction: whether the transaction is valid is verified by the node; S3, processing the transaction: a transaction which is verified successfully is put into a pool of nodes and waits to be processed into a valid transaction or an invalid transaction; and S4, determining whether the transaction is valid: ifthe transaction is integrated into a block within the valid period, the transaction is valid and the transaction ends; and if the transaction has expired in the pool of nodes, the transaction is invalid, then S1 to S4 is repeated and the transaction does not end until the transaction is valid. The invention further includes a system, a device, and a storage medium. Specific to a case that repeated payment existing in an existing transaction mechanism, repeated payment can be prevented, so as to speed up effective time for a transaction and maintain stability of the blockchain system.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a method and system for preventing repeated payment. Background technique [0002] There is no concept of expiration or timeout in blockchain transactions. If a transaction is valid now, it will be valid forever. However, if a transaction is broadcast only once across the network, it will only be kept in the memory of one mining node. Because the mempool is stored in the storage of the mining node in an unpersisted manner, once the node restarts, the data in the mempool will be completely erased, and even if a valid transaction is propagated to the entire network , if it is left unprocessed for a long time, it will disappear from the memory pool of the mining node. If the transaction should have been processed within a certain period of time but it was not, the wallet software should resend the transaction or repay a higher miner fee. Transaction fees affect transaction pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q20/38G06Q40/04
CPCG06Q20/382G06Q40/04
Inventor 吴思进王志文
Owner HANGZHOU FUZAMEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products