Bitcoin Forum
November 18, 2024, 01:53:31 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Resubmit raw transactions  (Read 815 times)
bg002h (OP)
Donator
Legendary
*
Offline Offline

Activity: 1466
Merit: 1048


I outlived my lifetime membership:)


View Profile WWW
May 28, 2013, 02:19:00 AM
 #1

My apologies if this is the wrong forum.

If I send money to Bob using my 1SendtoBobAddressL0r3mIp5umD0lr address and Alice sends me money to that same address, could Bob rebroadcast my raw transaction to get double paid?


Hardforks aren't that hard. It’s getting others to use them that's hard.
1GCDzqmX2Cf513E8NeThNHxiYEivU1Chhe
bg002h (OP)
Donator
Legendary
*
Offline Offline

Activity: 1466
Merit: 1048


I outlived my lifetime membership:)


View Profile WWW
May 28, 2013, 02:51:18 AM
 #2

The answer has got to be no...right?  I mean, I could scan the block chain and look for all repeatable transactions and wreak no small amount of havoc otherwise...

That sure would teach folks not to re-use addresses!


Hardforks aren't that hard. It’s getting others to use them that's hard.
1GCDzqmX2Cf513E8NeThNHxiYEivU1Chhe
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
May 28, 2013, 02:51:40 AM
 #3

No.*

Transactions involve previous transactions.  There are no accounts, no addresses, no balances.

Once upon a time, it was possible to create identical chains of transactions.  The door has been closed, and if I recall correctly, it was never used for evil.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
bg002h (OP)
Donator
Legendary
*
Offline Offline

Activity: 1466
Merit: 1048


I outlived my lifetime membership:)


View Profile WWW
May 28, 2013, 02:53:53 AM
 #4

No.*

Transactions involve previous transactions.  There are no accounts, no addresses, no balances.

*  Once upon a time, it was possible to create identical chains of transactions.  The door has been closed, and if I recall correctly, it was never used for evil.

This is the part I find confusing; inputs are different than addresses?  I suppose they must be, by what you're saying.  

What if the change address was the same as the sending address?

Hardforks aren't that hard. It’s getting others to use them that's hard.
1GCDzqmX2Cf513E8NeThNHxiYEivU1Chhe
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
May 28, 2013, 03:43:29 AM
 #5

There are no addresses.

A transaction is just two lists.  The first list is a list of past transactions that are being redeemed (the inputs), the second list is a set of outputs and the conditions necessary to redeem them in the future.  In a standard transaction, the redemption conditions are constructed from the address.

The input list is composed of {txhash,seq} pairs.  The txhash is the hash of the transaction, and seq is the position in the list.  txhashes are unique (with a few historic exceptions that users are safe to ignore), so the second transaction to that address will be different from the old one.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
May 28, 2013, 12:30:26 PM
 #6

*  Once upon a time, it was possible to create identical chains of transactions.

Wow, got a link to this?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
May 28, 2013, 12:46:39 PM
 #7

*  Once upon a time, it was possible to create identical chains of transactions.

Wow, got a link to this?

Not off the top of my head, but look for the discussion around BIP 34.

The whole point of adding the height to the coinbase was the make each generate transaction unique.  Prior to that, it was possible to create duplicates.  And since duplicate generations would have identical hashes, you could, in theory, make a chain of transactions starting from one generate, and then duplicate the entire chain later.

It would be difficult to trick someone using this quirk, but not impossible.  Also, it was ugly.  Which is why it got fixed.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
May 28, 2013, 02:39:18 PM
 #8

Not off the top of my head, but look for the discussion around BIP 34.

And BIP 30 too. Thank you!
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!