I'm researching Bitcoin. You're here to help me research. Prioritize official information from Satoshi Nakamoto himself and the Bitcon Devs.
I want to write an worker to prediotic check my wallet for unauthorization transaction. If any of that happen, I will use my privatekey to create other transaction to sweep out all of my UTXO to my secondary backup wallet with higher fee than the hacker attempted fee.
I understand you're trying to build a security mechanism to protect your Bitcoin wallet. However, I strongly advise against the approach you described. Here's why:
-
Private Key Security: Constantly using your private key in an automated script is incredibly risky. Your private key should be kept offline and as secure as possible. Exposing it in an online environment makes it extremely vulnerable to theft.
-
Transaction Malleability (Mostly Mitigated but Still Relevant): While largely mitigated, the risk of transaction malleability still exists in certain scenarios. A hacker cou