0

Can someone clarify?

  • Why is there bitcoin address in the transaction, when the bitcoin script already contains the pubkey hash?
  • Why isn't the amount a part of the script?
  • Why does bitcoin script allow to sign only parts of the transaction?
  • Looking at the type of questions, one might come to the conclusion, that you have ideas behind, that are not stated. Is the“why“ just a statement for wanting to know? I feel like you seem to see additional value, if the amount would be part of the script, or the whole tax would be signed... ? – pebwindkraft Jan 16 '18 at 20:36
1

Why is there bitcoin address in the transaction, when the bitcoin script already contains the pubkey hash?

Contrary to popular belief, this is not true. Addresses are not part of transactions at all, nor are they part of the protocol. The address is only used to encode the pubkey hash or script hash which is then used to create the output script.

Why isn't the amount a part of the script?

It does not need to be. The script is a program, it does not care about the amount.

Why does bitcoin script allow to sign only parts of the transaction?

To allow for special transactions where only part of the transaction needs to be signed. This allows people to do things like anyone-can-pay transactions or for people to sign only for specific outputs created by the transaction.

| improve this answer | |
  • But why isn't the amount signed? – Michael Kruglos Jan 16 '18 at 20:24
  • The amount is signed. It's part of the transaction and the whole transaction except for the signatures themselves is signed. – Andrew Chow Jan 16 '18 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.