Bitcoin Forum
May 05, 2024, 07:51:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is the message used as the input of ECDSA the full bitcoin transaction?  (Read 60 times)
eric_rrrr (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 2


View Profile
September 25, 2021, 12:37:45 AM
Merited by NotATether (2)
 #1

As we know that in Bitcoin, now the signature used is ECDSA. The format of ECDSA is: $s=k−1(h(m)+rx)$. My question is: in Bitcoin, when we use ECDSA to sign, is the input m used in the ECDSA the bitcoin transaction? Namely, can we know all the information of transaction(input tx, output tx, amount, etc) from m?
1714895499
Hero Member
*
Offline Offline

Posts: 1714895499

View Profile Personal Message (Offline)

Ignore
1714895499
Reply with quote  #2

1714895499
Report to moderator
1714895499
Hero Member
*
Offline Offline

Posts: 1714895499

View Profile Personal Message (Offline)

Ignore
1714895499
Reply with quote  #2

1714895499
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714895499
Hero Member
*
Offline Offline

Posts: 1714895499

View Profile Personal Message (Offline)

Ignore
1714895499
Reply with quote  #2

1714895499
Report to moderator
1714895499
Hero Member
*
Offline Offline

Posts: 1714895499

View Profile Personal Message (Offline)

Ignore
1714895499
Reply with quote  #2

1714895499
Report to moderator
1714895499
Hero Member
*
Offline Offline

Posts: 1714895499

View Profile Personal Message (Offline)

Ignore
1714895499
Reply with quote  #2

1714895499
Report to moderator
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10546



View Profile
September 25, 2021, 03:26:05 AM
Merited by ABCbits (2)
 #2

in Bitcoin, when we use ECDSA to sign, is the input m used in the ECDSA the bitcoin transaction?
Not directly. Depending on the script type of the UTXO that is being spent a different serialization of the transaction is created then it is hashed (so that e or h(m) is always fixed size) then that hash is used during signing.
Here is the simplest example spending a P2PKH output: https://bitcoin.stackexchange.com/questions/32628/redeeming-a-raw-transaction-step-by-step-example-required

Quote
Namely, can we know all the information of transaction(input tx, output tx, amount, etc) from m?
Yes. The complete transaction containing input, output,... is what is stored in every block or is sent to the mempool and remains there until it is confirmed.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!