Bitcoin Forum
November 05, 2024, 01:42:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Using duplicated of a signed bitcoin transaction more than once (?)  (Read 167 times)
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1122
Merit: 1017


ASMR El Salvador


View Profile WWW
August 10, 2022, 09:12:55 AM
 #1

Since a signed bitcoin transaction is not timestamped until broadcasted and entering the blockchain, does it make sense to keep old signed bitcoin transactions that other people did sign so that one day if those origin addresses have funds again you clear it again, broadcasting those signed transactions again and making them show up again in a new block?
Just imagine, someone keeps all his signed transactions in a drive. And you happen to copy and backup all those files. Could one day you be lucky and have some of them enter the blockchain again if he reuses his addresses and happens to have funds again on those addresses?

 

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
HeRetiK
Legendary
*
Offline Offline

Activity: 3108
Merit: 2177


Playgram - The Telegram Casino


View Profile
August 10, 2022, 09:20:30 AM
Merited by o_e_l_e_o (4)
 #2

Just imagine, someone keeps all his signed transactions in a drive. And you happen to copy and backup all those files. Could one day you be lucky and have some of them enter the blockchain again if he reuses his addresses and happens to have funds again on those addresses?

No. From a technical perspective there's no "balance" that could be spent. A Bitcoin transaction spends previous inputs (ie. incoming transactions), so even if you were to reuse an old outgoing transaction and the address in question had sufficient funds, the inputs required to fund this transactions have already been used for the first original outgoing transaction.

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
[/
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1122
Merit: 1017


ASMR El Salvador


View Profile WWW
August 10, 2022, 10:48:49 AM
 #3

But... a transaction spends previous inputs only when it enters the blockchain.
Before that, you can sign a transaction offline without any knowledge of previous inputs that a bitcoin address may have on the blockchain...

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
franky1
Legendary
*
Offline Offline

Activity: 4396
Merit: 4755



View Profile
August 10, 2022, 11:13:36 AM
Last edit: August 10, 2022, 11:45:45 AM by franky1
 #4

signatures are not just signing an address.. they are signing a txid of tx data. where the txid is a form of the data contents of the tx, where certain rules apply

by adding an input changes the txid. and this invalidates the transaction if the signature does nt match the rules

by this i mean if i had a 'anyonecanspend'
which only counts the first input. and all outputs when forming the txid
the TXID check would only hash the first input with the outputs and check the signature matches the txdata of such and says that the first input can be spent because the key used is also the inputs associated public key when it signed the tx data of input+outputs

but adding another input without a second signature that matches the new txid(created by adding another input). tells validators that the second input cannot be spent because the new txid is not the same as old one(obviously) and there is no second signature to validate the tx containing 2 inputs.
so the entire tx is then rejected.

yes you can have a tx which validates a first input and then keep it unconfirmed for any time you like. but if you want to add another input from a later utxo you then need to sign that second input into being valid in the new txdata of 2inputs and outputs, to then allow the tx of both inputs with both signatures to be a valid tx

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18746


View Profile
August 10, 2022, 11:57:00 AM
Merited by HeRetiK (1)
 #5

Before that, you can sign a transaction offline without any knowledge of previous inputs that a bitcoin address may have on the blockchain...
No, you can't. You can sign a transaction offline only with specific reference to previous transactions which create the UTXOs you want to spend. As soon as those UTXOs are spent, then it does not matter what other coins are present on the address(es) in question. Previously confirmed transactions will not be valid again because the specific UTXOs they spend have been spent.

If it were possible to rebroadcast a transaction and take more bitcoin from the same address, then anyone who withdrew anything from a centralized exchange's hot wallet could just rebroadcast their withdrawal transaction over and over and over until the hot wallet was empty. Obviously this doesn't happen.
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!