Bitcoin Forum
May 05, 2024, 03:37:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Decode a signed transaction and the private key?  (Read 156 times)
JasonSato (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 4


View Profile
May 05, 2022, 03:35:29 PM
Last edit: May 06, 2022, 04:35:40 PM by JasonSato
 #1

I want to send 0.1 BTC to my friend but he wants to broadcast it himself.
If I sign a transaction with Electrum and send the raw text to someone, can he decode it to find my private key? or make another tx with that?
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714880251
Hero Member
*
Offline Offline

Posts: 1714880251

View Profile Personal Message (Offline)

Ignore
1714880251
Reply with quote  #2

1714880251
Report to moderator
hosseinimr93
Legendary
*
Offline Offline

Activity: 2394
Merit: 5235



View Profile
May 05, 2022, 03:51:12 PM
Merited by pooya87 (2), ABCbits (2), BlackHatCoiner (2), Pmalek (1)
 #2

If I sign a transaction with Electrum and send the raw text to someone, can he decode it to find my private key?
No. Your raw transaction doesn't include your private key. Instead, it includes a digital signature which can be used only for that transaction and becomes invalid if transaction data is changed.
By the way, why doesn't your friend let you broadcast the transaction yourself?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
JasonSato (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 4


View Profile
May 05, 2022, 04:22:14 PM
 #3

No. Your raw transaction doesn't include your private key. Instead, it includes a digital signature which can be used only for that transaction and becomes invalid if transaction data is changed.
By the way, why doesn't your friend let you broadcast the transaction yourself?
Thanks for your explanation.
He just wants to broadcast two transactoions at a time.
So there is no possibility of hacking a wallet by decoding a raw transaction.
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1512
Merit: 7351


Farewell, Leo


View Profile
May 05, 2022, 04:30:48 PM
Merited by pooya87 (1)
 #4

So there is no possibility of hacking a wallet by decoding a raw transaction.
No, that's what is contained in blocks publicly anyways. Take a random transaction and search it on a block explorer, such as mempool.space: https://mempool.space/api/tx/da526ae2f1d8b58253dc9e26810a8e76c8eb11a8ebe995e132a4b22740b38773/hex

This is how public key cryptography works. You can verify one owns the private key without knowing it.

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

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

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

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

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

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











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











▄▄▄▄█
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
May 05, 2022, 11:49:31 PM
 #5

Thanks for your explanation.
He just wants to broadcast two transactoions at a time.
So there is no possibility of hacking a wallet by decoding a raw transaction.

So you mean he wants to combine two transactions with your sign raw transaction?

He won't be able to do that what he can do only is to broadcast the transaction. The generated raw transaction is unique for every transaction and private keys are not included in this.

Why don't you just broadcast it instead of giving it to him for safety purposes?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10546



View Profile
May 06, 2022, 02:39:12 AM
Merited by Pmalek (2), DireWolfM14 (1)
 #6

Make sure your transaction is signed otherwise if it is unsigned it could contain your master public key which would let your friend have all your current and future public keys (and addresses). You may not want them to know that for privacy reasons.

Otherwise when the transaction is signed, it is broadcasted to the network and everyone sees it and the transaction will be included in a block and remains there forever; so there is nothing risky about sending a signed transaction to someone else to broadcast although I have to say it makes no sense to do that.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
JasonSato (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 4


View Profile
May 06, 2022, 12:37:14 PM
 #7

So you mean he wants to combine two transactions with your sign raw transaction?

He won't be able to do that what he can do only is to broadcast the transaction. The generated raw transaction is unique for every transaction and private keys are not included in this.

Why don't you just broadcast it instead of giving it to him for safety purposes?
No! He is just a newbie who wants to get into all the features of Electrum and test all types of transactions, RBF and CPFP.
NeuroticFish
Legendary
*
Offline Offline

Activity: 3668
Merit: 6376


Looking for campaign manager? Contact icopress!


View Profile
May 06, 2022, 12:41:44 PM
Merited by Pmalek (1), DireWolfM14 (1)
 #8

No! He is just a newbie who wants to get into all the features of Electrum and test all types of transactions, RBF and CPFP.

For that purpose, best is to use Electrum on testnet, maybe multiple wallets too, get free funds from testent faucets and learn for free how the things work.
Then there's no risk at all. And if you're nice enough, after the tests you'll send back to the faucet the remaining testnet bitcoins.

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

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

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

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

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

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











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











▄▄▄▄█
JasonSato (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 4


View Profile
May 06, 2022, 12:46:03 PM
 #9

Make sure your transaction is signed otherwise if it is unsigned it could contain your master public key which would let your friend have all your current and future public keys (and addresses). You may not want them to know that for privacy reasons.

Otherwise when the transaction is signed, it is broadcasted to the network and everyone sees it and the transaction will be included in a block and remains there forever; so there is nothing risky about sending a signed transaction to someone else to broadcast although I have to say it makes no sense to do that.
Thanks for your good advice.
So there is no risk if I send him a signed transaction in a .txn file or a raw text.

For that purpose, best is to use Electrum on testnet, maybe multiple wallets too, get free funds from testent faucets and learn for free how the things work.
Then there's no risk at all. And if you're nice enough, after the tests you'll send back to the faucet the remaining testnet bitcoins.
Thanks for the tip.
He prefers to do all the tests with 0.001 BTC in Electrum.
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7132



View Profile
May 07, 2022, 09:13:15 AM
 #10

He prefers to do all the tests with 0.001 BTC in Electrum.
It might not seem like a lot of money today, but those $35 in BTC can one day be worth $135 or $335 that your friend is just wasting for no reason. You wouldn't be doing that with fiat, why do it with a currency far more valuable? I understand that he won't waste the whole amount, but only the required transaction fees, however, there is still the possibility that he makes a mistake and the coins get lost.

Since your friend is a newbie, he might not know much about testnet. All the features from the mainnet can be played around with in a testing environment and you don't have to spend your real coins. Wallet addresses are different and you need to get your hands on some testnet coins, but it's a great learning ground.   

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
JasonSato (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 4


View Profile
May 07, 2022, 01:04:38 PM
 #11

It might not seem like a lot of money today, but those $35 in BTC can one day be worth $135 or $335 that your friend is just wasting for no reason. You wouldn't be doing that with fiat, why do it with a currency far more valuable? I understand that he won't waste the whole amount, but only the required transaction fees, however, there is still the possibility that he makes a mistake and the coins get lost.

Since your friend is a newbie, he might not know much about testnet. All the features from the mainnet can be played around with in a testing environment and you don't have to spend your real coins. Wallet addresses are different and you need to get your hands on some testnet coins, but it's a great learning ground.  
Thanks, I know everything about the testnet and have shown him how to run Electrum on testnet, but he wanted to start on the mainnet and learn everything about all types of wallets, addresses and transactions.
Cricktor
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1111


Crypto Swap Exchange


View Profile
May 18, 2022, 01:04:03 AM
 #12

Thanks, I know everything about the testnet and have shown him how to run Electrum on testnet, but he wanted to start on the mainnet and learn everything about all types of wallets, addresses and transactions.
I apologize to be frank but your newbie friend is plain stupid not to use testnet for his initial Bitcoin exploration journey. He could explore everything (except interaction with crypto exchanges) within testnet without any costs and fear of making mistakes and harming sats. I don't get it why he insists on mainnet but who am I to judge...

Free testnet coins available e.g. at https://testnet.coinfaucet.eu

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!