Bitcoin Forum
May 07, 2024, 12:02:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Does a bitcoin transaction have a source address?  (Read 111 times)
Egii Nna (OP)
Full Member
***
Online Online

Activity: 294
Merit: 159



View Profile
October 11, 2023, 06:26:19 AM
Merited by vapourminer (1)
 #1

Good day, my fellow members in this forum. I need some clarification about bitcoin transactions.

I am aware that UTXO, which includes an input script and an output script, is the foundation of a bitcoin transaction. However, I recently discovered that Bitcoin Explorer lists source addresses for transactions. I wonder if the source address indicated there is the same as the one in the output script from the previous transaction, which also serves as the input script for this transaction.
 

1715083338
Hero Member
*
Offline Offline

Posts: 1715083338

View Profile Personal Message (Offline)

Ignore
1715083338
Reply with quote  #2

1715083338
Report to moderator
1715083338
Hero Member
*
Offline Offline

Posts: 1715083338

View Profile Personal Message (Offline)

Ignore
1715083338
Reply with quote  #2

1715083338
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715083338
Hero Member
*
Offline Offline

Posts: 1715083338

View Profile Personal Message (Offline)

Ignore
1715083338
Reply with quote  #2

1715083338
Report to moderator
1715083338
Hero Member
*
Offline Offline

Posts: 1715083338

View Profile Personal Message (Offline)

Ignore
1715083338
Reply with quote  #2

1715083338
Report to moderator
bitmover
Legendary
*
Online Online

Activity: 2296
Merit: 5921


bitcoindata.science


View Profile WWW
October 11, 2023, 06:31:59 AM
 #2

Good day, my fellow members in this forum. I need some clarification about bitcoin transactions.

I am aware that UTXO, which includes an input script and an output script, is the foundation of a bitcoin transaction. However, I recently discovered that Bitcoin Explorer lists source addresses for transactions. I wonder if the source address indicated there is the same as the one in the output script from the previous transaction, which also serves as the input script for this transaction.
 

Yes it is.

In good block explorers such as mempool.space you can see individual utxo in every transaction,  and the address associated with it.

For example, you can see here that this transaction spend 2 inputs from the same address

https://mempool.space/pt/tx/2e899ccdbc99c57c0c3b2266f057da5c68f0ab5e34689d27893786771a0e424d


.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
October 11, 2023, 07:52:37 AM
Merited by ABCbits (3), FatFork (1)
 #3

However, I recently discovered that Bitcoin Explorer lists source addresses for transactions. I wonder if the source address indicated there is the same as the one in the output script from the previous transaction, which also serves as the input script for this transaction.
The input doesn't contain the parent transaction's scriptPubKey which is where the address is encoded from.
In the actual raw transaction, the input contains either the 'scriptSig' and/or 'Witness' which could contain the 'pubKey' or 'redeemScript' depending on the script type. (aside from the signature)
Basically, a script that solves the scriptPubKey, but not the scriptPubKey itself.

For reference check the structure of a raw transaction here: https://learnmeabitcoin.com/technical/transaction-data
In the "Input(s)", there's no "scriptPubKey".

But how can they derive the address from those info?
Since it contains the pubKey or RedeemScript, they can easily derive the appropriate address type from it.
The script type is based from the scriptSig or Witness which is different per script type.
Or just base it from the parent transaction's output script. (methods to get the input's address mostly depends on their parser)

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

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

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

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

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

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











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!