Author

Topic: How does signrawtransaction know which private key to use? (Read 633 times)

staff
Activity: 4284
Merit: 8808
But if you're offline (and no blockchain access), how can it get the UTXO?
It can't in that case, thats why it has an optional scriptpubkey argument.
full member
Activity: 756
Merit: 101
Oikos.cash | Decentralized Finance on Tron
hash and vout index refer to a UTXO record containing a spend script. the spend script refers to a public address, upon which a private key can be matched.
But if you're offline (and no blockchain access), how can it get the UTXO?
legendary
Activity: 2053
Merit: 1356
aka tonikt
hash and vout index refer to a UTXO record containing a spend script. the spend script refers to a public address, upon which a private key can be matched.
full member
Activity: 756
Merit: 101
Oikos.cash | Decentralized Finance on Tron
It only has a previous output (hash and vout index) but nothing to tell it which address that output was for, so how can it choose the correct private key to sign the transaction?
Jump to: