Author

Topic: Armory Paper Backup missing transaction when exported to Electrum (Read 181 times)

legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
so yeah I have a machine that WAS online and is up to date with the blockchain and my bitcoin-qt wallet,
-snip-
my goal is to extract these coins into electrum without ever going online.
You should consider setting up a cold-storage Electrum (link above) so you won't have to keep your wallet in an online machine.
For the keys, you can export them from Bitcoin Core without going online, do what I've said in my previous reply but in the offline device.

Bitcoin Core's P2SH addresses are actually P2SH-SegWit unlike Armory's P2SH-P2PK, Electrum supports them,
just add p2wpkh-p2sh: before the private key, importing it to an offline Electrum wont allow you to spend and wont have an updated balance.

If you decided to create a Cold Storage set-up, you can "sweep" the key(s) (Wallet->Private keys->Sweep) to the online watch-only Electrum that's paired to the offline Electrum.
That will create a transaction that spends its entire balance to one of the wallet's address.
You can spend from it by following the last few info of the "cold storage" tutorial link: create-an-unsigned-transaction, except the latest version's save is named "export".
newbie
Activity: 17
Merit: 0
I don't want to enter my bitcoin core password on an online machine. 
My ethernet switch was just hacked  Shocked. Had a phantom port lit up despite no cable being connected.
Fortunately it broke my internet connection but obviously cannot trust machine that is online.
At the same time my usb keyboard was randomly type weird control characters.


so yeah I have a machine that WAS online and is up to date with the blockchain and my bitcoin-qt wallet,
but I never typed my bitcoin password on this box.
i need to extract them coins without ever going only
this is the wallet that has the weird p2sh change address

my goal is to extract these coins into electrum without ever going online.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
How can I transfer this bitcoin-core wallet into electrum-offline without going online?
You can export the private key(s) from Bitcoin core by opening the console (Window->Console) and type the command dumpprivkey "address" after unlocking the wallet through walletpassphrase "password" 60.
Then import it to offline imported Electrum wallet...
but Bitcoin core is already online, as said in the reply above, you can just send it to offline standard Electrum wallet (not imported, the one with with a seed phrase backup) through a transaction.
Electrum doesn't need to be online to receive bitcoins, as long as the address is valid and you have its private key, you'll receive it, but won't see the balance unless you're online or have a watch-only pair online.

What you need is a cold-storage set-up Electrum: https://electrum.readthedocs.io/en/latest/coldstorage.html
By creating a watch-only wallet on an online machine using the offline Electrum's master public key, you'll be able to monitor the balance and create transactions without exposing the keys online.
legendary
Activity: 1624
Merit: 2481
Now that my bitcoin-core wallet is fully recovered can I prune the blockchain?

Sure. But in case of a resync being required, the whole blockchain has to be downloaded again.



How can I transfer this bitcoin-core wallet into electrum-offline without going online?

By creating an offline electrum wallet and sending your funds to that new wallet (by creating that transaction in core + broadcasting it from your online device).
newbie
Activity: 17
Merit: 0
I was pretty close to thinking it was hopeless... Thanks for the help!

Now that my bitcoin-core wallet is fully recovered can I prune the blockchain?

How can I transfer this bitcoin-core wallet into electrum-offline without going online?
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
if I am generating offline spends in electrum do I need to worry about change addresses?
No, a standard Electrum wallet is "hierarchical deterministic" which contains addresses and change addresses derived from the seed.
Once the last address in the gap limit was used, newer addresses in the index will be generated, those are also covered by your "seed phrase" backup.
You don't have to worry about renewing backups to include the new change addresses.

I haven't seen any issues with change address aside from corruptions.

armory I was able to move to electrum with the private key export
it turns out
the missing coins were still in my original bitcoin wallet which I recovered by downloading the entire blockchain
Glad it's just a simple "remembrance" issue.
legendary
Activity: 1624
Merit: 2481
is electrum the best modern cold storage plan?

There is no "best" way for cold storage.
But using electrum is absolutely fine.



does electrum have issues with missing change addresses?

No. And neither does armory.

All you need to backup is your seed (mnemonic code in case of electrum and root key in case of armory).
All of your addresses (including change addresses) are derived from that seed.



if I am generating offline spends in electrum do I need to worry about change addresses?

No.
You just have to use an online machine with the imported master public key to create the transactions.
Then let them be signed by your offline wallet.
newbie
Activity: 17
Merit: 0
armory I was able to move to electrum with the private key export
it turns out
the missing coins were still in my original bitcoin wallet which I recovered by downloading the entire blockchain

wow, that goes quickly on a new tower.
my macbook was taking weeks, the new 4 core  i3 took half a day.

so yay, i have all the coins. but i need to move to secure solution
is electrum the best modern cold storage plan?
does electrum have issues with missing change addresses?
I never want to enter my password with an online machine
i have dedicated usb keyboard/mouse fo the offline machine because I am paranoid that way


if I am generating offline spends in electrum do I need to worry about change addresses?
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
I moved bitcoin from bitcoin-qt to armory in 2018.
I have bitcoin wallet.dat from the date of the transfer. It is empty.
 and I have the armory paper wallet all the coins should be in
but it is only showing 1/3 of the coins when I import into electrum
A older backup is still good if your Bitcoin core wallet.dat is HD, that depends on the version of Bitcoin core that you've used.
If you open a copy of that wallet.dat to Bitcoin core (sync or not) and there's an "HD" sign (not slashed out) on the lower-right, it's an HD wallet.

For the Armory paper backup, it must be the "Export key list" result.
Anyways, as explained by Bob, importing private keys to Electrum require a script type prefix if you want to derive SegWit address types,
if there none, it'll derive the legacy '1' address from the private keys.
Your '3' addresses however, I believe they won't be restored correctly even though you'll add p2wpkh-p2sh: to the prv key to import them as '3' addresses.
You can try to import one of your '3' address' prv key (compressed 'K' or 'L' prv key only) if it'll restore the correct address through the prefix above.

Quote from: menopopeye
Does a change address start with a "3"?
It can be any address type, depends on the client or the settings.
Armory for example has a change address "force a script type" setting.

BTW, you need the armory "paper backup" not the "key list"; or a digital backup of your wallet before deciding to sync Armory.
Because AFAIK, those '3' addresses can't be restored either through import private key option (I haven't tested).
newbie
Activity: 17
Merit: 0
Yeah I am thinking to build a linux box and run tests with the entire blockchain handy.
I got pretty far on a rasberry pi but will just go full ubuntu x86
.
I am learning more and now wondering if maybe I lost a change address. Would bitcoin from 2018 have the potential to lose change addresses if I don't have the latest wallet.

I moved bitcoin from bitcoin-qt to armory in 2018.
I have bitcoin wallet.dat from the date of the transfer. It is empty.
 and I have the armory paper wallet all the coins should be in
but it is only showing 1/3 of the coins when I import into electrum

I am going the check everything in the original format with full blockchain.


Does a change address start with a "3"?

I feel an urgency to liquidate some coinz as this NFT shit feels like a top (for the global economy)
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
Tried this but Electrum crashed with an error:
NotImplementedError:  p2sh
You must be talking about Armory's "P2SH-P2PK" which is unique to Armory (CMIIAW).
In any case, Electrum's only options are the 3 listed when you click "Info" in the window where you paste the private keys.

Unfortunately, you need to sync non-pruned Bitcoin Core to connect Armory to be able to spend from those Addresses, unless there's a client that supports that address type.
newbie
Activity: 17
Merit: 0
Tried this but Electrum crashed with an error:
NotImplementedError:  p2sh
legendary
Activity: 1624
Merit: 2481
Thanks!

Can I do this with addresses instead of keys to make a watching-only wallet? [online machine]

or should I do this offline in electrum and then export a watching-only wallet to confirm i still have the funds?

With addresses, you don't need to add any prefix. The address itself already contains the script type (P2SH start with 3.., P2PKH start with 1.., etc..).

If you however only have the private keys, then i'd say you should first create an offline wallet (or two, as described above).
Then you can easily check the funds on an online computer and don't need to do any additional work to actually spend from that wallet.
newbie
Activity: 17
Merit: 0
Thanks!

Can I do this with addresses instead of keys to make a watching-only wallet? [online machine]

or should I do this offline in electrum and then export a watching-only wallet to confirm i still have the funds?
legendary
Activity: 1624
Merit: 2481
You imported the private keys 1 by 1 into electrum, right?
You pasted them one per line in the box which appears after choosing "import private keys" (or similar), didn't you?

Now, import all the private keys which belong to a P2SH address from armory into electrum.
If you don't know which of them should be P2SH and which P2PKH, just create 2 wallet files in electrum.

When creating the first wallet file, add "p2pkh:" in front of every private key.
When creating the second one, add "p2sh:" before every private key.

It should roughly look like this:

Source: btcleak.com

You will end up with 2 wallets, one P2PKH and one P2SH.
This should be the easiest approach to generate all the required addresses.
newbie
Activity: 17
Merit: 0
Fair enough I will stick to this thread.

p2sh:your_private_key_here

where do I run this command? In Armory or Electrum?
Is there a way to know which private key to run it on?  Do the 2 kinds of keys have matching suffixes?

legendary
Activity: 1624
Merit: 2481
You should stick to only 1 thread. There is no reason to create a second one, even if it it seems to be a different issue now. The main problem is still that you are not able to access your coins.

Now, to fix your issue: Import your private keys and choose the corresponding prefix.

For example, if you want to generate P2SH addresses, import your private key as:
Code:
p2sh:your_private_key_here

For p2pkh, do:
Code:
p2pkh:your_private_key_here
newbie
Activity: 17
Merit: 0
My paper backup only show P2PKH addresess but no p2sh addreses

unfortunately when I funded the wallet coins were sent using both a p2pkh and a p2sh address

So when I export to Electrum only 1/3 the balance of the wallet is showing.  I am on a mac. I only managed to get armory working
offline on a raspberry pi.

How do I recover the missing p2sh address and coins?
Jump to: