Bitcoin Forum
June 22, 2024, 02:14:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Armory / Re: Convert keys from P2SH-P2PK to p2wpkh-p2sh on: August 24, 2020, 06:01:14 PM
There is no such thing as "conversion", you have to spend the coins from one script type to another.

Ok I see. I'm trying to import the keys into electrum. However some of my keys is in the "wrong" script type so I can't import them :/ 
2  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 24, 2020, 05:55:05 PM
Yeah, if you just want a full history of all your transactions, and don't need the ability to spend any funds and/or sign any transactions... importing addresses into a watching-only wallet would give you that info.
Full history and sign transactions is the only purpose for this wallet further on. I don't know if I ever need but I think it's good to at least have the possibility.

Signing messages with P2SH addresses is "a bit of a mess"™... The primary reason being that there is no guarantee that a P2SH address actually has a private key to sign the message with... as they are a "Script Hash"... and the script doesn't necessarily involve private/public keys. Some wallets like Electrum, Mycelium and Trezor support signing/verifying using P2SH addresses... but it can be very inconsistent across implementations as there is no real "standard" Undecided

Indeed, if you attempt to sign a message within Armory using one of the P2SH-P2PK addresses, it will give you a warning that this is not supported:


So, "Proving ownership" is going to be difficult... I would suspect that if you needed to do so, you would have to deposit some funds into that address and then send a transaction from the address to prove that you have control over it.

That's a good option! Only downside of this is that I can't get away from armory (a full node with a growing blockchain). Because the problem with importing some of the private keys
3  Bitcoin / Armory / Convert keys from P2SH-P2PK to p2wpkh-p2sh on: August 23, 2020, 08:19:32 PM
Is it possible to convert keys as P2SH-P2PK to p2wpkh-p2sh in some way? My problem is that I want to export my private keys into another wallet. However there isn't any other wallet that supports P2SH-P2PK so I need to convert them if possible.
(My balance is 0 so it isn't possible to create a transaction manually as recommended in this post https://bitcointalk.org/index.php?topic=2605402.msg27777791#msg27777791)
4  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 23, 2020, 10:34:00 AM
The problem is that the "P2SH-P2PK" addresses are fairly unique to Armory. There is no way that I know of to import these into Electrum or any other wallet for that matter.

They are not P2SH-P2WPKH addresses...

2 new script types have been introduced on top of legacy P2PKH:
 - P2SH-P2PK: nested P2PK script. Uses compressed public keys.
 - P2SH-P2WPKH: nested P2WPKH SegWit single sig output script.


You can see goatpig's description of how these addresses work, and what you'd need to do to be able to spend from them (ie. manually create the raw transaction, then sign it using the private key), here: https://bitcointalk.org/index.php?topic=2605402.msg27777791#msg27777791

(NOTE: for anyone interested in the code, the link that goatpig provided to the code that creates the P2SH-P2PK script in his post above, is slightly outdated... and the getP2PKScript() function is now a few lines further down. The link to the current code is: https://github.com/goatpig/BitcoinArmory/blob/master/cppForSwig/Wallets.cpp#L2707)

I got a 0 balance in my armory wallet. So I can't spend anything in it. My only reason for this thread is because I want my history in a place that doesn't take up so much space. That's why I want to import it all to electrum.
And I want to have the possibility to sign a message / prove that it's my wallet / address. I can do that in armory, but as I said it takes up to mutch space :/

I don't know if it's a solution but what if I imported all the private keys and then the addresses for the transaction that I can't see trough my private key because the WIF problem. Can I still prove that all of the transactions belongs to me even if I only import some of the addresses as a "watch only" address?
5  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 22, 2020, 08:11:27 PM
But I guess I need to find what private key that is and add the prefix "P2SH-P2PK:privatkey", but how will I know which private key it is? Do you know that HCP?
There isn't a way to distinguish a P2SH private key from a P2PKH private key; the WIF is exactly the same and they can be used to generate both.
In other case I can create a new wallet and import the private key one by one and see which one that hasn't any transaction and add the prefix to it?
Yes, that's the most ideal way unless you can write a script to screen through all the private keys using the different formats.

The prefix is "p2wpkh-p2sh:".

I do select a change address that starts with 3 and it has 2 transactions. One incoming and one outgoing. I do get the base58 private key from that address and the private key starts with a 5. When I importing it to electrum I do write p2wpkh-p2sh:privatekey but the next button is still not enabled. However if I add "p2pkh:" as a prefix it's get enabled. But that doesn't show any transactions.
6  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 22, 2020, 12:35:34 PM
Electrum will import the legacy address (P2PKH) derived from the private key by default.
If some of those addresses aren't legacy, you'll have to add a prefix when importing the keys to Electrum.

Using this format (will show when you click 'info'):


Ok so I found the transaction as a "P2SH-P2PK" change address. But I guess I need to find what private key that is and add the prefix "P2SH-P2PK:privatkey", but how will I know which private key it is? Do you know that HCP?

In other case I can create a new wallet and import the private key one by one and see which one that hasn't any transaction and add the prefix to it?

Edit: Tried to take one private key that didn't have any transaction when importing it and add the prefix "P2SH-P2PK:" but the "next" button wasn't enabled...
7  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 22, 2020, 11:37:01 AM
It sounds like your Armory might have been configured to use a different type of "Change" address...

Is it set to "Auto Change" or is "Force a script type" set? If "Force Type", what is the "type" that it is set to? Huh


"Auto" will create change outputs that will try to match the recipient type in an effort to increase privacy (it makes it harder to determine what the change output is)... so it's possible that while your "receive" address types were "Legacy", your change outputs were going to "P2SH-P2PK" addresses or "Nested SegWit" (P2SH-P2WPKH) addresses.


I have "Auto". I do have a lot of transactions below "P2SH-P2PK" and none below "P2SH-P2WPKH".

so there are lots of contradictory things in this thread. you say the balance is correct but also say certain transactions are missing.

it would be best if you simply created a new deterministic electrum wallet and sent all your coins to an address in that using armory. exporting and importing private keys can be error prone as you've discovered.

I moved my coins when I had armory to another wallet. Then I imported the "old" armory wallet private keys into electrum. The balance is zero in both armory and electrum  Wink
8  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 21, 2020, 09:57:54 PM
It seems to be something with the change that I got back. Can't see the transaction when sending the change that I previously got.

Edit: Finally I found I solution. When I exported the addresses (not the private keys), did I get all of the transactions. Anyone got an answer for this? Smiley
9  Bitcoin / Armory / Am I exporting my keys correctley on: August 21, 2020, 08:52:36 PM
I exported my keys as base58 and imported them into electrum. However not all of my transactions show up. Do I have to do anything with changes that returns to my wallet?

I did ask the question in the electrum forum https://bitcointalk.org/index.php?topic=5270496.0:
10  Bitcoin / Electrum / Re: Can't see all of my transactions on: August 21, 2020, 08:41:38 PM
Check the Armory transaction details of the one does not exist on Electrum and look for the address if it's the same as what you import from Electrum wallet.

It could be a different address? If that's the case it won't show in your Electrum. So you will need to take the private key from Armory and import it to Electrum if you want to add the transaction history of this address.

Well I did exported my private keys as base58. Don't know if there is anything more to get out of it, perhaps I should check in the armory forum. Or if it was something that went wrong when I imported the keys into electrum.


In electrum I can only see the first one and the size is the outputs not the amount in btc that I did send, is it possible to change that as well?
What do you mean by the bolded part? Can you please send a screenshot if you don't mind?

I'll try explain again, and this is what I think about the problem, I'm not sure.
Eg I will send 1 btc to bob and let say that I don't have any address with the correct amount of btc. Because I only received 0.5 btc and 3 btc. So to send 1 btc I need to send 3 btc + 0.5 btc (don't know why the 3 btc transaction is enough). So my output will be 3.5 btc and my change will be 2,5 btc.
The transaction amount in armory is 1 btc, but in electrum it is 3.5 btc.
11  Bitcoin / Electrum / Can't see all of my transactions on: August 21, 2020, 06:27:18 PM
Not all of my transaction is visible on electrums history tab. I imported all of the private keys into electrum from armory. But I did notice that there are some transactions that I can't see.
I don't have a clue why and I can't find any setting that seems to help me.

For an example I made 3 transactions in armory. The second was made after one hour, the third was made after two days.
In electrum I can only see the first one and the size is the outputs not the amount in btc that I did send, is it possible to change that as well?

(The balance is equal with the balance in armory)
12  Bitcoin / Armory / Sign message with another wallet on: August 19, 2020, 08:38:53 PM
Unfortunately I need to change wallet to a non full node wallet. But I still need to have the possibility to verify that I'm the owner of the wallet/transactions. I guess I do that by verify a message? However if I "Export key list" and import it to another wallet, will that message be equal with the message from armory?
13  Bitcoin / Wallet software / Bitcoin gold wallet for linux on: August 18, 2020, 08:36:43 PM
I saw that electrumG isn't avalible for linux. And I doesn't want to run a full node with BTG core wallet. Is there any other safe wallet for linux?
14  Bitcoin / Armory / Re: Using Armory on the BCH chain on: November 11, 2019, 08:03:56 PM
I'm not sure if it's possible to access the coins anymore, at least via Armory. Bcash has had several hard forks, and has one scheduled for later this month, actually. You may have to export your keys and try another tool.

Yes, I've read all the post and it's a good option for me anyway.
15  Bitcoin / Armory / Re: Using Armory on the BCH chain on: November 03, 2019, 11:12:19 PM
I want to move all off my BTC and BCH (in chunks if possible) from my wallet and I havn't any transaction since 2014. What is the easiest way to do this?
To not mess it up with my BTC, can I begin to make transaction(s) to move my BTC to another wallet or do I need to begin with BCH?

Since I will move to a new wallet without any need of bitcoin core, is it then possible to
1. move my BTC from current armory installation
2. remove bitcoin core, armory and the blockchain (or use another user).
3. install BCH node and armory again
4. restore my wallet from a backup
5. move coins and sign it with bitcoin cash signer
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!