Bitcoin Forum
November 04, 2024, 09:15:34 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is Double Spending and How it can happen?  (Read 1020 times)
BTC786 (OP)
Sr. Member
****
Offline Offline

Activity: 495
Merit: 250


View Profile
June 13, 2015, 03:01:14 PM
 #1

What is Double Spending and How it can happen?

Since when we send the BTC payment it deduct the BTC amount from the balance. If so how it can happen?
Rmcdermott927
Legendary
*
Offline Offline

Activity: 2254
Merit: 1140


View Profile
June 13, 2015, 03:05:10 PM
 #2

What is Double Spending and How it can happen?

Since when we send the BTC payment it deduct the BTC amount from the balance. If so how it can happen?

It is a type of exploit.   The person sends funds without a transaction fee, then sends again with a fee.   The transaction with the fee will get confirmed and the other will eventually get rejected by the network.   It can also happen if a mining pook has then 51% of the global hashrate.   They would technically be able to chose which transaction were confirmed and which weren't.


alani123
Legendary
*
Offline Offline

Activity: 2576
Merit: 1509



View Profile
June 13, 2015, 03:08:40 PM
 #3

Double spending is only an issue if you can exploit it in some way. It's somewhat easy to double spend unconfirmed transactions (0 confirmations). After that, no luck. So if you are accepting BTC payments, make sure that you wait for a confirmation to release products or funds associated with the service you provide.

Now if you are looking to see how a double spend on an unconfirmed transaction is performed, someone has already made a guide:

https://bitcointalk.org/index.php?topic=231309.0

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
 
 Duelbits 
██
██
██
██
██
██
██
██

██

██

██

██

██
TRY OUR UNIQUE GAMES!
    ◥ DICE  ◥ MINES  ◥ PLINKO  ◥ DUEL POKER  ◥ DICE DUELS   
█▀▀











█▄▄
 
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
 
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 KENONEW 
 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀█











▄▄█
10,000x
 
MULTIPLIER
██
██
██
██
██
██
██
██

██

██

██

██

██
 
NEARLY
UP TO
50%
REWARDS
██
██
██
██
██
██
██
██

██

██

██

██

██
[/tabl
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 509


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
June 13, 2015, 03:11:57 PM
 #4

Double-spending is spending same bitcoin more than once. Miners ensure that the inputs for the transaction is not used to prevent double-spending.

Example:

1. Bob send 1BTC to Alice.
2. Bob send same 1BTC to Joe.
3. Miner confirms both transaction and included it in block.

A real example: https://bitcointalk.org/index.php?topic=152348
See https://en.bitcoin.it/wiki/Double-spending for more details.

It is a type of exploit.   The person sends funds without a transaction fee, then sends again with a fee.   The transaction with the fee will get confirmed and the other will eventually get rejected by the network.
 -snip-

Wrong. You can also double-spend a transaction with fee. The transaction which will be confirmed depends on miners. Most of the miners include transaction with higher fee and some includes older transaction.

Hazir
Legendary
*
Offline Offline

Activity: 1596
Merit: 1005


★Nitrogensports.eu★


View Profile
June 13, 2015, 03:29:14 PM
 #5

Prior to confirmation (which takes many minutes) bitcoin transactions are at risk of double spending. This means a fraudulent person could spend the same amount of bitcoin more than once .
I think is not a huge problem for normal bitcoin users, but can be a big problem for some bitcoin companies. If you are just typical bitcoin user I wouldn't worry about it.


           █████████████████     ████████
          █████████████████     ████████
         █████████████████     ████████
        █████████████████     ████████
       ████████              ████████
      ████████              ████████
     ████████     ███████  ████████     ████████
    ████████     █████████████████     ████████
   ████████     █████████████████     ████████
  ████████     █████████████████     ████████
 ████████     █████████████████     ████████
████████     ████████  ███████     ████████
            ████████              ████████
           ████████              ████████
          ████████     █████████████████
         ████████     █████████████████
        ████████     █████████████████
       ████████     █████████████████
▄▄
██
██
██
██
██
██
██
██
██
██     
██
██
▬▬ THE LARGEST & MOST TRUSTED ▬▬
      BITCOIN SPORTSBOOK     
   ▄▄
██
██
██
██
██
██
██
██
██
██     
██
██
             ▄▄▄▄▀▀▀▀▄
     ▄▄▄▄▀▀▀▀        ▀▄▄▄▄          
▄▀▀▀▀                 █   ▀▀▀▀▀▀▀▄▄
█                    ▀▄          █
 █   ▀▌     ██▄        █          █              
 ▀▄        ▐████▄       █        █
  █        ███████▄     ▀▄       █
   █      ▐████▄█████████████████████▄
   ▀▄     ███████▀                  ▀██
    █      ▀█████    ▄▄        ▄▄    ██
     █       ▀███   ████      ████   ██
     ▀▄        ██    ▀▀        ▀▀    ██
      █        ██        ▄██▄        ██
       █       ██        ▀██▀        ██
       ▀▄      ██    ▄▄        ▄▄    ██
        █      ██   ████      ████   ██
         █▄▄▄▄▀██    ▀▀        ▀▀    ██
               ██▄                  ▄██
                ▀████████████████████▀




  CASINO  ●  DICE  ●  POKER  
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   24 hour Customer Support   

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Dalord1
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
June 13, 2015, 05:02:02 PM
 #6

Double spending is only an issue if you can exploit it in some way. It's somewhat easy to double spend unconfirmed transactions (0 confirmations). After that, no luck. So if you are accepting BTC payments, make sure that you wait for a confirmation to release products or funds associated with the service you provide.

Now if you are looking to see how a double spend on an unconfirmed transaction is performed, someone has already made a guide:

https://bitcointalk.org/index.php?topic=231309.0

Thanks for the information and the link you posted. It is really informational and very useful
Mr. Burns
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
June 13, 2015, 05:11:20 PM
 #7

impossible.  illuminati rpevents double speinding attacks
hodlmybtc
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile WWW
June 13, 2015, 05:18:19 PM
 #8

Thank god they are on our side Grin
BTC786 (OP)
Sr. Member
****
Offline Offline

Activity: 495
Merit: 250


View Profile
June 13, 2015, 05:26:29 PM
 #9

How can people do double spending? What wallets is possible to do that?
Amph
Legendary
*
Offline Offline

Activity: 3248
Merit: 1070



View Profile
June 13, 2015, 05:34:21 PM
 #10

How can people do double spending? What wallets is possible to do that?

you need to do an attack

for example if you have a huge hash power like 350 peta, you can just run a bitcoin client locally in solo mode, and thus creating a chain that it will be longer than the actual chain, they you are free to double spend, and do many other malicious activity
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
June 13, 2015, 06:58:14 PM
 #11

How can people do double spending? What wallets is possible to do that?


It's not something that is promoted or information that most will put out there.

There is really only one reason I have seen for legitimate use.  If you forget to pay miner fee and somehow you get some BTC that will not confirm.  But luckily most wallets will prevent this.

But if that happened you could do a double spend to get second transaction to confirm.   This is why you should always wait for a few conformations if doing a deal.
alani123
Legendary
*
Offline Offline

Activity: 2576
Merit: 1509



View Profile
June 13, 2015, 11:49:12 PM
 #12

How can people do double spending? What wallets is possible to do that?

you need to do an attack

for example if you have a huge hash power like 350 peta, you can just run a bitcoin client locally in solo mode, and thus creating a chain that it will be longer than the actual chain, they you are free to double spend, and do many other malicious activity

In order for one to 'double spend' an unconfirmed transaction, he'd just need access tot he wallet/address the transaction was sent from and a wallet like bitcoin core.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
 
 Duelbits 
██
██
██
██
██
██
██
██

██

██

██

██

██
TRY OUR UNIQUE GAMES!
    ◥ DICE  ◥ MINES  ◥ PLINKO  ◥ DUEL POKER  ◥ DICE DUELS   
█▀▀











█▄▄
 
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
 
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 KENONEW 
 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀█











▄▄█
10,000x
 
MULTIPLIER
██
██
██
██
██
██
██
██

██

██

██

██

██
 
NEARLY
UP TO
50%
REWARDS
██
██
██
██
██
██
██
██

██

██

██

██

██
[/tabl
DannyHamilton
Legendary
*
Offline Offline

Activity: 3472
Merit: 4801



View Profile
June 14, 2015, 02:52:31 AM
 #13

How can people do double spending?

A real double spend, where more than one transaction using the same previously unspent output as an input are all confirmed in the blockchain, is completely impossible.  The revolutionary thing about bitcoin was that it found a decentralized way to make a real double spend impossible.

Most people around here mean something different when they use the phrase "double spend". As a matter of slang, many people will use the words "double spend" to describe a situation where a transaction is confirmed in the blockchain which has at least 1 input that has been seen in some other unconfirmed transaction at some time in the past.  That other transaction will never confirm and is considered invalid by the network.

What wallets is possible to do that?

With the right circumstances and expertise the second definition can be accomplished with ANY wallet.  It can be easier with some wallets than others.
cbase
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
June 14, 2015, 04:42:57 AM
 #14

Simple exploitation. Complicated mechanism.
BlackMachine
Full Member
***
Offline Offline

Activity: 208
Merit: 100



View Profile
June 15, 2015, 03:31:29 AM
 #15

What is Double Spending and How it can happen?

Since when we send the BTC payment it deduct the BTC amount from the balance. If so how it can happen?

It is a type of exploit.   The person sends funds without a transaction fee, then sends again with a fee.   The transaction with the fee will get confirmed and the other will eventually get rejected by the network.   It can also happen if a mining pook has then 51% of the global hashrate.   They would technically be able to chose which transaction were confirmed and which weren't.


Not all miner will confirm the one with the fee instead of the one without the fee. Some nodes choose to just relay whichever transaction came first and if the transaction with the same UXTO appears, it will not be included in mempool.

bumm
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
June 15, 2015, 12:01:02 PM
 #16

What is Double Spending and How it can happen?

Since when we send the BTC payment it deduct the BTC amount from the balance. If so how it can happen?

It is a type of exploit.   The person sends funds without a transaction fee, then sends again with a fee.   The transaction with the fee will get confirmed and the other will eventually get rejected by the network.   It can also happen if a mining pook has then 51% of the global hashrate.   They would technically be able to chose which transaction were confirmed and which weren't.



But if the network rejects the transaction, then the funds should get returned to the sender. Eventually it will become a scam as the receiver will be waiting for confirmations which will never get done. Am I correct?
BlackMachine
Full Member
***
Offline Offline

Activity: 208
Merit: 100



View Profile
June 15, 2015, 12:58:43 PM
 #17

What is Double Spending and How it can happen?

Since when we send the BTC payment it deduct the BTC amount from the balance. If so how it can happen?

It is a type of exploit.   The person sends funds without a transaction fee, then sends again with a fee.   The transaction with the fee will get confirmed and the other will eventually get rejected by the network.   It can also happen if a mining pook has then 51% of the global hashrate.   They would technically be able to chose which transaction were confirmed and which weren't.



But if the network rejects the transaction, then the funds should get returned to the sender. Eventually it will become a scam as the receiver will be waiting for confirmations which will never get done. Am I correct?
One of the either transaction should get confirmed and the other will get forgotten. Both of the transactions should be broadcast at the same time. However, it is pretty hard since nodes will not include the other into their mempool once they see the transaction spends the input that is same as the other transaction. You can still broadcast one of the transaction to 50% of the nodes and another transaction to other 50% of node.

If you make a payment but include 0 fee and have a dust output then perhaps, it won't get confirmed either. I doubt merchants would accept these kind of transaction unless they can't wait for a few seconds or check for competing transactions.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!