Author

Topic: Export list of private keys for segwit address (Read 643 times)

legendary
Activity: 3640
Merit: 1345
Armory Developer
September 28, 2017, 04:26:42 AM
#10
I assume that if I use any of the new P2SH-based addresses in Armory, I no longer have that option; i.e. I can get my private keys out of Armory but I cannot make the corresponding scripts in another wallet, and therefore cannot (easily) spend the funds.

The P2SH-P2PK script is most likely unique to Armory. The P2SH-P2WPKH one is actually "standard" as it appears in the original BIP as one of the script types required for SegWit support. Other wallets out to provide that.

Quote
EDIT: I don't think the risk is vanishing.  If goatpig had not picked it up, Armory development would have stopped after etotheipi stopped working on the open source version.  And at least once did the Bitcoin network implement a soft fork that required an Armory update before it could sign transactions again.

1) Someone could just as easily look at the code and make it spit all script variations if support disappears.

2) If the wallet you are using stop being developed, do yourself a favor and move your coins out before the most recent version turns obsolete.

3) Eventually there will be someone who'll figure there's demand for wallet interchangeability and will write an offline tool.
full member
Activity: 159
Merit: 100
September 28, 2017, 03:35:57 AM
#9
For me, an important feature of any wallet is that if the wallet disappears, then I can always get an old version running in a VM and then export my keys to another wallet.

I assume that if I use any of the new P2SH-based addresses in Armory, I no longer have that option; i.e. I can get my private keys out of Armory but I cannot make the corresponding scripts in another wallet, and therefore cannot (easily) spend the funds.

I assume that for segwit a standard will emerge solving this problem.  But until then, I guess I better stay away from both the segwit and the wrapped compressed key features.  Or am I overlooking something?


EDIT: I don't think the risk is vanishing.  If goatpig had not picked it up, Armory development would have stopped after etotheipi stopped working on the open source version.  And at least once did the Bitcoin network implement a soft fork that required an Armory update before it could sign transactions again.

legendary
Activity: 3640
Merit: 1345
Armory Developer
September 26, 2017, 07:31:22 PM
#8
another question related to this, since we are already discussing about segwit address.
If one private key can generate a P2PKH address and a segwit address, when you spend from the P2PKH address, will the spending also reflect on the segwit address? I mean you are spending from the same private key, which hold just one amount of bitcoin right?

That's not how it works. Read up on UTXOs. The wallet won't let you mismatch script types for a given private key anyways.
newbie
Activity: 13
Merit: 0
September 26, 2017, 07:22:52 PM
#7
another question related to this, since we are already discussing about segwit address.
If one private key can generate a P2PKH address and a segwit address, when you spend from the P2PKH address, will the spending also reflect on the segwit address? I mean you are spending from the same private key, which hold just one amount of bitcoin right?
legendary
Activity: 3640
Merit: 1345
Armory Developer
September 26, 2017, 06:51:14 PM
#6
You may want to push the discussion on BIP124, which is the closest proposal to something like this. ATM there's no standard amount wallet services on what script types to process for which derivation scheme and/or private key.

Your target wallet service will most likely not even carry the code to produce the relevant script as it stands.
newbie
Activity: 13
Merit: 0
September 26, 2017, 06:27:02 PM
#5
i want to have the ability to import private keys into whatever wallet from my segwit address. currently i can only do so with the p2pkh addresses.

i guess i can import private keys one by one into another whatever wallet to get all my coin eventually. But having the ability to know exactly which private keys corresponding to my segwit address will make the job easier.
legendary
Activity: 3640
Merit: 1345
Armory Developer
September 26, 2017, 06:06:22 PM
#4
The addresses are p2sh, that's not gonna do you much good if you dont have the hash preimage either. What are you trying to achieve here? Check balances on an explorer?
newbie
Activity: 13
Merit: 0
September 26, 2017, 05:07:37 PM
#3
ahhh i see. Just so it will be less confusing for the general public, can you append the segwit address next to the public key in the export list for the future version?
legendary
Activity: 3640
Merit: 1345
Armory Developer
September 26, 2017, 04:59:37 PM
#2
They're the same keys.
newbie
Activity: 13
Merit: 0
September 26, 2017, 04:51:14 PM
#1
Can team Armory implement this feature in the future versions of Armory? The latest version can only export list of private keys for P2PKH.
Jump to: