Creating Raw Transactions Offline for Bitcoin Puzzle

8 replies 390 views
im_viperFull Member
Posts: 35 · Reputation: 336
#1Jul 18, 2022, 04:43 PM
Hey everyone, So after what went down with Bitcoin Puzzle 66, I’m trying to figure out how to make a raw transaction without messing it up. Here’s what I’ve learned so far: 1. Create the Transaction (Online): Set up all the details like recipient address, amount, fees, etc., using an online device or app, but don’t sign it yet. 2. Export Unsigned Data: Save the transaction info in a format that works offline, like JSON, raw bytes, or even a QR code. 3. Transfer to Offline Device: Move that data to a secure computer or hardware wallet that’s never connected to the internet. 4. Sign the Transaction (Offline): Use the private key on that offline device to sign the transaction, which will give you a signature. 5. Export Signed Data: Take the signed transaction back to an online device. 6. Broadcast (Online): Finally, send the signed transaction out to the network using the online device. Let’s kick this off with an example: Recipient address: 1w5aGn4acWJgtJMbnE4bLUDphWnPN9x33 I want to send 1.5 BTC from 1JE12nzegHAEXkd7dJcSfUz5yjL9KTAtiH to 1w5aGn4acWJgtJMbnE4bLUDphWnPN9x33 Fee: 0.0001 Raw Transaction hex: ?? Here’s an online example: https://blockchain.info/rawtx/284abb50eef592bc67df021400acdec80830b416d6bdae0baadbb690f4aaf215?format=hex I’d really appreciate any help on this. Thanks!
5 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#2Jul 18, 2022, 08:36 PM
What exactly are you trying to accomplish here? You're not solving any 6.6 BTC puzzles, so that's irrelevant. Even if you do, signing offline is meant to protect you from exposing your private key on a compromised system. The puzzle funds get stolen because broadcasting it exposes the public key, which makes it much easier to find the private key (given that a large part of it is known already).
2 Reply Quote Share
luckyapeFull Member
Posts: 77 · Reputation: 599
#3Jul 20, 2022, 03:53 AM
Loyce is basically on the money. Offline signing protects your private key from a compromised online machine, but it does not prevent the spend from revealing the public key. For normal wallets that's a non-issue. For puzzle/weak-key stuff, that's exactly the issue, because the spend itself can give others what they need to finish the job faster and publish a conflicting transaction with a better fee. So "offline raw tx" doesn't magically avoid the Puzzle 66 style race, it just avoids leaking the key through malware.
3 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#4Jul 20, 2022, 04:03 AM
It's been mentioned many times. But the solution is either 1. Mine your own block (that include TX that claim puzzle reward). 2. Find miner or mining pool you can trust to include your TX, without broadcasting it on mempool.
2 Reply Quote Share
im_viperFull Member
Posts: 35 · Reputation: 336
#5Jul 20, 2022, 06:37 AM
thanks for replying, i want to learn how to create a raw txt of a transaction. to prevent pubkey from go online. on public pool until it included in a block. (hope you understand me) exactly. offline raw tx is protect you private key. my goal rom is topic is to learn how to create raw hex and send it privatley to  pool to be mine. to hid the public key from poblic bots. viabtc or mara, till now don't know how to generate or create this raw hex to give to them
6 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#6Jul 20, 2022, 11:07 AM
That's not possible. Public pools, like all nodes, broadcast transactions from their mempool. Those are 2 completely separate things. One you can do at home, the other you need connections for. Or try https://slipstream.mara.com/ , the only pool I know that claims to do what you're looking for. Please read and correct your sentences before posting.
3 Reply Quote Share
im_viperFull Member
Posts: 35 · Reputation: 336
#7Jul 20, 2022, 11:43 AM
https://iili.io/fkhu5EG.png
1 Reply Quote Share
ColdLynxMember
Posts: 14 · Reputation: 166
#8Jul 21, 2022, 02:01 AM
The step you described is correct conceptually and is how people sign Bitcoin transactions safely not getting to expose private keys. The major mistake in many previous cases was doing all thing with an online machine. Whichever way, requesting for or creating a raw hex of transaction linked to a real private key in public is risky extremely. Whoever sees a valid key may end up spending those coins immediately. Also, transactions that are raw relies on particular UTXOs, not only an address, therefore you can't create one without haven knowledge of the exact inputs. The right approach is to make use of trusted tool such as Bitcoin core, Electrum, or a hardware wallet to build, sign offline, and equally broadcast. Make sure not to share private keys, WIFs, or data transactions that is not signed publicly.
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#9Jul 22, 2022, 06:20 PM
Is that an answer given to your by AI? It needs a few adjustments: It suggests using an Air-Gap machine, yet it told you to create a transaction which isn't possible without a pair "watch-only" wallet.It specifically mentioned Electrum/Core but the steps to export the serialized raw transaction is generic, not specific to those clients. For the steps, just follow this tutorial except the "broadcast" part: /index.php?topic=5524213.msg64885706#msg64885706 In the last step of "Back to your offline PC" part, instead of exporting it as a '.txn' file, export it as text using "Share->Copy to clipboard" (paste it on a text file or other methods). Then instead of exporting the copied signed raw transaction back to the watch-only only wallet, send that to Mara which has quite the reputation (but I can't vouch for it).
1 Reply Quote Share

Related topics