Weird behavior when scripting electrum's ECPrivkey(...).sign_transaction(...)
Nevermind... Electrum is performing low-value R-grinding and bitcoinlib and CoinBin are not. For anyone interested, the grinding code his here. Nuking the while look makes the sigs the same. A few days ago I used bitcoinlib to create a OP_CLTV transaction. Tonight I did the same with Electrum 4.0.4 via python and my sigs don't match. The TXN I'm trying to match is:
When I try signing the sighash (pre-image hash) using both bitcoinlib and Electrum 4.0.4, I get different results. I coded the TXN through another wallet as well (CoinBin), and bitcoinlib seems to be producing the proper signature, but Electrum's seems off. I'm sure there is something simple I'm missing, but I can't figure it out. Here's a test script to illustrate the differences: ``` from bitcoin.core.key import use_libsecp256k1_for_signing from bitcoin.core import x, b2x from bitcoin.wallet import CBitcoinSecret from electrum.ecc import ECPrivkey from electrum.bitcoin import EncodeBase58Check
I've noticed some redundancy in some of the issues raised on this subreddit, thought I'd start a generic troubleshooting thread of what I've found useful. I'd appreciate any suggestions mods or other experts might have.
A guide to sign a super bitcoin (SBTC) transaction offline with patched Electrum for paranoid. Supports any wallets supported by Electrum (including segwit-p2sh and bech32 and all BIP39 seeds). Later BCD will be added.
This is quite advanced. This guide assumes you have some basic experience with the command line, can run Linux and you understand the basics of keys/signing/broadcasting transactions. And that you can compile and run Bitcoin Core and run Electrum. Also, some JSON experience is also nice. Move you bitcoins to safe addresses first. It is best to use a new seed. Although the procedure in this guide is safe even for hot addresses (containing bitcoins), there is always a risk of a critical mistake. So play it safe. Why such a guide? I followed these steps because I did not want to expose the keys to any online machine at all. Even if the keys do not have any bitcoins, you can some day have bitcoins sent to these addresses or you have a fork that you have not claimed. All can be stolen if you exposed your key. This procedure should work with everything that Electrum supports (except maybe F2A that may be not supported on the SBTC chain), so Electrum seed legacy or segwit, LedgeTrezor with legacy or segiwt-p2sh (m/'49) derivation. Similarly, any BIP39 seeds or a single key. are also fine.
Apply my patch patch -P0 also this article. The guide assumes that you use patched Electrum from now on.
Run the patched Electrum and catch up with your wallets you want to claim (the wallets can and rather should be watch only, or on ledgetrezor, otherwise your keys are exposed). Now go offline or set localhost as your server that Electrum connects to so no connection is performed. It's required so Electrum will not update the wallet after you edit it.
You can manually create a transaction from the command line but you can use Electrum GUI. You need to locate the wallet file and remove all the transactions from the wallet file except for the one that funds the address you want to claim (the wallet obviously must not be encrypted but for watch-only this is OK). This is tricky. You need to make sure, you gave a proper JSON file, so all the final commas must be dropped. So "addr_history":, "transactions": , "tx_fees":, "txi", "txo", and "verified_tx3": should only contain the funding transaction(s), i.e. the one that you want to spend from.
Run Electrum and check if the wallet is OK. Electrum will show an error if not. You will probably make a few errors so go back to editing the wallet.
Compile it and let it sync the blockchain (it will take a long time). Run it it with as large -dbcache= as you can. If you have a Bitcoin blockchain you can copy the blocks up to the fork date and issue sbtcd with -reindex. It will just reindex them and it will be faster.
Generate a sbtc address with sbtc-cli getnewaddress. You can skip this step and send directly to an exchange but this intermediate step is safer.
Create a transaction in Electrum to this address. Select all the bitcoins and use as small fee as possible (SBTC blocks are empty so any fee above 1 SBTCsat/byte should be OK).
Save the transaction to a pendrive
Download and install Kubuntu 16.04 (Kubuntu has all the QT libraries for Electrum) on a pen drive.
Copy patched Electrum and the save the transaction to a pen drive (separate from Kubuntu will be more convenient).
Run Kubuntu from the USB without any network access. Run Electrum from the pendrive. Create a wallet from the seed or private keys. The wallets are stored in RAM so after you reboot the computer, they will be gone. Load the transaction, sign it and save it to the pen drive.
Go back to the SBTC Core on the online machine. Display the raw transaction (starts with the hex=). Check in the SBTC Core if it is correct sbtc-cli decoderawtransaction hex
If it looks fine (and your blockchain got synced), broadcast it sbtc-cli sendrawtransaction hex
If there is no error, congratulations, you sent the transaction to the specified address. If it is to your SBTC Core wallet, wait until it confirms and send it further with sbtc-cli setfee feeperkb sbtc-cli sendtoaddress "addr" value "" "" true true I'm going to update this guide when I figure out the BCD transactions intrinsics. You can download and run the BitcoinDiamond Core clone in the meantime. SBTC tips: 1KjuY8CTrwMhdLt3uF3hCcSgfkHMyo1ELf
Hi! Back in around 2011, I THINK I had 3 bitcoins. I used electrum wallet. It was a ubuntu system whether formatted in ext3 or ext4. I didnt see a value back then in bitcoin, so I just formatted my drive at some point without backing them up. The good thing is, that I did not use this computer a lot back then, so I hope I didnt write too much on the new install, and the data is maybe still intact. The harddisk is at my parents house, who I am going to visit for the holidays now. The first thing I am going to do is to "dd" the drive to my harddisk, so I have it backed up and can play around a bit. I already found this file, regarding how electrum could have saved the file back then: https://github.com/spesmilo/electrum/blob/0.61b/lib/wallet.py#L618 I do not know, if my wallet had a password. If it had one, I can most probably guess it; though the main problem will be finding the file. Do you have some advices how I should continue searching for the file? My guess was to maybe first use "strings" on the .img file that I will make and look for eg. "seed", "fee", "seed-version". How would you approach this? Thanks for your help!
Hi! Back in around 2011, I THINK I had 3 bitcoins. I used electrum wallet. It was a ubuntu system whether formatted in ext3 or ext4. I didnt see a value back then in bitcoin, so I just formatted my drive at some point without backing them up. The good thing is, that I did not use this computer a lot back then, so I hope I didnt write too much on the new install, and the data is maybe still intact. The harddisk is at my parents house, who I am going to visit for the holidays now. The first thing I am going to do is to "dd" the drive to my harddisk, so I have it backed up and can play around a bit. I already found this file, regarding how electrum could have saved the file back then: https://github.com/spesmilo/electrum/blob/0.61b/lib/wallet.py#L618 I do not know, if my wallet had a password. If it had one, I can most probably guess it; though the main problem will be finding the file. Do you have some advices how I should continue searching for the file? My guess was to maybe first use "strings" on the .img file that I will make and look for eg. "seed", "fee", "seed-version". Also, photorec looks like a good tool, unfortunately it doesnt have electrum wallet in the supported files. Is there a possibility I can add this? How would you approach this? Thanks for your help!
A Bitcoin ATM is a kiosk that allows a person to purchase Bitcoin by using cash or debit card. Some Bitcoin ATMs offer bi-directional functionality enabling both the purchase of Bitcoin as well as the sale of Bitcoin for cash. In some cases, Bitcoin ATM providers require user… Bitcoin ATM Map – Find Bitcoin ATM, Online Rates The value of your fork coins are currently worth just over $500k. I can't comment on the code quality of those Electrum forks but I had a quick look and they appear to be genuine. I'd say it's worth the risk considering the situation. Care to explain? I thought that Bitcoin SV was a fork from Bitcoin Cash. You can still claim the coins with ... The value of the first bitcoin transactions were negotiated by individuals on the bitcoin forum with one notable transaction of 10,000 BTC used to indirectly purchase two pizzas delivered by Papa John's. This was the only major security flaw found and exploited in bitcoin's history. Based on bitcoin's open source code, other cryptocurrencies started to emerge. On June 13th, 2011 the first ... Patches exist for Bitcoin Core to support TBC (for example, Luke Dashjr's TBC patch for Bitcoin Core master). Spesmilo, despite its name, could be configured to display TBC. However, it is no longer maintained and does not work with recent versions of Bitcoin Core. Guessing TBC or BTC. Given variable 'value' in base units (uBTCents/TBCᵇ), one can guess whether it is properly Decimal Bitcoin ... Do not store large amounts of value in single signature wallets. Make sure your heirs know how to recover your wallets without you! Note that it is NOT recommended that novices use the Bitcoin Core wallet. If you want to use a wallet backed by a fully validating node you run, read Securing Your Financial Sovereignty. Choose your wallet here - bitcoin.org Choose your wallet here ...
If you are new to Crypto, my suggestion is that you start with buying ~$150 worth of Bitcoin, Ethereum, Litecoin @ Coinbase and get familiar with storing it, moving it around, etc. Coinbase: Brian Armstrong, Bitcoin, Cryptocurrency and More, BTC Price Prediction stay home BLABLATOYS - ΠΑΠΑΔΟΠΟΥΛΟΣ ΣΩΤΗΡΗΣ 3,133 watching Live now This video is unavailable. Watch Queue Queue. Watch Queue Queue For tutoring please call 856.777.0840 I am a registered nurse who helps nursing students pass their NCLEX. I have been a nurse since 1997. I have worked in a lot of nursing fields and I truly love ... Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.