Pages:
Author

Topic: Curious Question (Read 289 times)

HCP
legendary
Activity: 2086
Merit: 4314
November 19, 2021, 07:36:41 PM
#28
I've been plugging it once or twice a year to check the contents for possible corruption.
That would probably be more than enough then... as most of the articles I've read (granted none were written within the last 2 years) would indicate that once or twice a year should be enough to keep the "bit rot" at bay Wink

I have one or two SD cards that I'm fairly sure hadn't been plugged into anything or powered up in any way for a couple of years (sitting in storage) and they were "OK"... not sure I'd do the same for crypto backup storage tho Wink Cheesy
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
November 18, 2021, 02:54:07 AM
#27
-snip-
Although your message implies you may have plugged it in occasionally? Huh
Yes but not-quite-occasionally,
I've been plugging it once or twice a year to check the contents for possible corruption.
HCP
legendary
Activity: 2086
Merit: 4314
November 18, 2021, 02:22:19 AM
#26
For example, I have a dormant USB2.0 thumb drive from 9 years ago and the contents are still intact time I tried, guess it will be broken by the next year Cheesy
I would have thought that having it unpowered for extended periods of time might be tempting "bit rot" in a flash memory based device. This article, although it is specifically talking about SSDs, suggests exactly that: https://www.techadvisor.com/how-to/storage/bit-rot-slow-death-of-hard-drives-ssds-3796137/

Although your message implies you may have plugged it in occasionally? Huh
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
November 11, 2021, 10:14:31 PM
#25
-snip-
SD standards-based memory cards, like most semiconductor cards, store information in flash memory. The current technology along with normal usage typically gives the card a lifespan of 10 years or more, allowing consumers to upgrade their devices for many years and reduce consumer electronic waste. Source : https://www.sdcard.org/consumers/faq/
I believe the statement "along with normal usage" indicates that it's based from a scenario when the flash drive is constantly being used to delete & copy files.
For cold storage purposes, the flash drive wont even be used so it wont "write" any more data so it should last longer than that.
For example, I have a dormant USB2.0 thumb drive from 9 years ago and the contents are still intact time I tried, guess it will be broken by the next year :D

Of course having multiple backup in different portable drives as a failsafe is recommended.
legendary
Activity: 3458
Merit: 1960
Leading Crypto Sports Betting & Casino Platform
November 11, 2021, 09:35:10 AM
#24
Thanks for all the replies.

I tend to make backups of all private keys on a air gapped computer and store them on memory cards that will only ever see the light of day in an emergency should I have issues with wallet software and can't resolve issues via the seed words.  Just call me paranoid.

So from what I gather electrum or other software will allow the recreation of a multisig wallet via the use of both "master private keys" as long as the wallet is a 2 of 2 setup and no more.  

Thank you.



SD standards-based memory cards, like most semiconductor cards, store information in flash memory. The current technology along with normal usage typically gives the card a lifespan of 10 years or more, allowing consumers to upgrade their devices for many years and reduce consumer electronic waste. Source : https://www.sdcard.org/consumers/faq/

So you should replace your memory cards and move the data onto the new memory cards to protect that data. Some people are saying these cards only hold the data for about 5 years.  Roll Eyes
legendary
Activity: 2800
Merit: 2733
Farewell LEO: o_e_l_e_o
November 03, 2021, 11:12:31 AM
#23
It's not impossible to do... it's just a real PITA and requires quite a bit of manual work/console stuff with raw transactions etc. (not to mention having to sync/maintain multiple chains Roll Eyes)
I had extracting fork coin thing in mind but then realized who care about few shitcoins LOL. I prefer long-term hold in an x by y multi-sig wallet.

An old open issue tracks this but hasn't been solved yet.
I think the answer is here which you already talked about.
legendary
Activity: 3444
Merit: 10558
November 03, 2021, 12:59:41 AM
#22
~
This makes sense now. Well let's not make it too hard. We always have option to deal with the HD wallet. I don't think anyone need to access only a single public key when it's x to y multi-sig wallet.
Yeah you don't need to work with a single public key if it was used in a multi-sig scheme since that would be useless, but also unfortunately importing a lone multi-sig address with having all the keys is not an available option in Electrum. An old open issue tracks this but hasn't been solved yet.
HCP
legendary
Activity: 2086
Merit: 4314
November 02, 2021, 10:09:09 PM
#21
This makes sense now. Well let's not make it too hard. We always have option to deal with the HD wallet. I don't think anyone need to access only a single public key when it's x to y multi-sig wallet.
The only time I've had this requirement was when trying to "rescue" fork coins from Electrum MultiSig and/or 2FA wallets, for which a "forked" version of Electrum supporting MultiSig and/or 2FA was not available... and that hasn't really been an issue for years now.

But basically, it involved taking the master keys... identifying the individual private keys that matched the addresses with UTXOs... then essentially recreating the multisig in the "Core" wallet for the particular chain.

It's not impossible to do... it's just a real PITA and requires quite a bit of manual work/console stuff with raw transactions etc. (not to mention having to sync/maintain multiple chains Roll Eyes)
legendary
Activity: 2800
Merit: 2733
Farewell LEO: o_e_l_e_o
November 02, 2021, 09:25:38 AM
#20
However, there is no prefix for it when importing a private key because it makes no sense since P2WSH scripts are created using a redeem-script not a single key like P2WPKH for example.

For example you create it by hashing the following script:
Code:
OP_2 OP_3 OP_CHECKMULTISIG
As you can see you can't even reproduce this script with a single private key.
This makes sense now. Well let's not make it too hard. We always have option to deal with the HD wallet. I don't think anyone need to access only a single public key when it's x to y multi-sig wallet.
legendary
Activity: 3444
Merit: 10558
November 02, 2021, 12:15:28 AM
#19
That's very easy if the wallet is not multi-signature. You only need to add a prefix to specify the address type.
Not a coder and not good at algorithm too. I think the Electrum developers do not have a method to execute p2wsh type yet. So with this prefix the software is crashing. It does not disappear but ask you to report. So they already have the event handler in place.
Electrum does support P2WSH scripts, you can easily create SegWit multi-signature wallets with Electrum that use this script type. However, there is no prefix for it when importing a private key because it makes no sense since P2WSH scripts are created using a redeem-script not a single key like P2WPKH for example.

For example you create it by hashing the following script:
Code:
OP_2 OP_3 OP_CHECKMULTISIG
As you can see you can't even reproduce this script with a single private key.
legendary
Activity: 2800
Merit: 2733
Farewell LEO: o_e_l_e_o
November 01, 2021, 09:40:41 AM
#18
That's very easy if the wallet is not multi-signature. You only need to add a prefix to specify the address type.
Not a coder and not good at algorithm too. I think the Electrum developers do not have a method to execute p2wsh type yet. So with this prefix the software is crashing. It does not disappear but ask you to report. So they already have the event handler in place.
legendary
Activity: 2380
Merit: 5213
October 31, 2021, 09:04:09 AM
#17
I usually go with seed phrase for HD wallet. Never gave a try until yesterday with a single private key. Now it sounds like a lot of work to do with Electrum for a single private key.
That's very easy if the wallet is not multi-signature. You only need to add a prefix to specify the address type. 
When dealing with a multi-signature address, it's not possible to create it using a single private key even with a lot of work.


Consider x of y. You basically need x master private keys to send any coin from the wallet.
You need x master private keys and (x-y) master public keys.
legendary
Activity: 2800
Merit: 2733
Farewell LEO: o_e_l_e_o
October 31, 2021, 08:45:38 AM
#16
It seems that you can't have a non-HD multi-sig wallet in Electrum. In order to create/import one, you're forced to go on Multi-signature wallet which will then either ask you to enter a seed phrase or a master key.
I usually go with seed phrase for HD wallet. Never gave a try until yesterday with a single private key. Now it sounds like a lot of work to do with Electrum for a single private key.

Assuming the wallet is 2 of 2, two master private keys are needed.
Assuming the wallet is 2 of 3, two master private keys and one master public key are needed.
Consider x of y. You basically need x master private keys to send any coin from the wallet.
legendary
Activity: 2268
Merit: 18586
October 31, 2021, 03:41:34 AM
#15
So from what I gather electrum or other software will allow the recreation of a multisig wallet via the use of both "master private keys" as long as the wallet is a 2 of 2 setup and no more.
Correct.

then this below is the master private keys that start with xprv,yprv and zprv
For Electrum multi-sigs, the master private keys will begin with "Zprv" (and the master public keys with "Zpub"). Note that the capitalization of the Z is important. If you try to recover a multi-sig wallet in Electrum using xprvs, yprvs, or zprvs, you will get a "Wrong key type" error.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
October 30, 2021, 11:00:48 PM
#14
So from what I gather electrum or other software will allow the recreation of a multisig wallet via the use of both "master private keys" as long as the wallet is a 2 of 2 setup and no more.  
Electrum can recreate a 2-of-3, 3-of-5 or more as long as you have the "master public key(s)" or "master private key(s)" of the remaining cosigners (m-of-n).
Eg. For 2-of-3, if you already have 2 master private keys, you'll only need the other cosigner's master public key or master private key to recreate the wallet.

If I had the 2 private keys to a electrum multisig wallet but no seed words to recreate the wallets, could I still send the funds from the multisig wallet using those 2 private keys.  The addresses of the private keys are different in a multisig wallet due to the combination of the private keys that created them, so that is why I ask.
Take note that even if this is possible in the console as mentioned, it's currently useless in Electrum since it's not automatically imported and Electrum can't sign a multisig unsigned txn via console
because there's no option to add the redeem script on its 'signtransaction' and 'signtransaction_with_prvkey' commands.
At least it may be implemented in the future (/electrum/issues/5694) or it can be used in Bitcoin Core (or other clients like coinb.in) if an issue occurred with the seed phrases.

You're thinking about the long term, I see.
legendary
Activity: 2380
Merit: 5213
October 30, 2021, 08:01:31 PM
#13
Now if you want to backup all of your private keys then a single master private key or seed should be enough to handle all private keys from your wallet.
OP is talking about a multi-signature wallet and a single master private key isn't enough for recovering the wallet.

Assuming the wallet is 2 of 2, two master private keys are needed.
Assuming the wallet is 2 of 3, two master private keys and one master public key are needed.
legendary
Activity: 3248
Merit: 2971
Block halving is coming.
October 30, 2021, 07:19:16 PM
#12
~snip~

Take note private key and master private key are different.

Base on List of Bitcoin address prefixes this below are a sample of WIF private key compress or uncompress

Code:
5TfQjD9DLFeUFmDiDrzsdtSGQss93o4pvsmQcgmjfcQVLsEgAoM
L1aW4aubDFB7yfras2S1mN3bqg9nwySY8nkoLmJebSLD5BWv3ENZ
KyN4pEfhTKwiMXzsTcpwhLcb6oBqVF9BfzxhNexvGdFiU6JC5kxe

then this below is the master private keys that start with xprv,yprv and zprv

Code:
xprv9s21ZrQH143K24Mfq5zL5MhWK9hUhhGbd45hLXo2Pq2oqzMMo63oStZzF93Y5wvzdUayhgkkFoicQZcP3y52uPPxFnfoLZB21Teqt1VvEHx
yprvAEESwmtyMr98rt1nMM5qT65puefpgouLjVuZtVDBGr4AG8eFvcb7TU9wLAY4t1Fz2HNvexHEGoGA8xJkbQDp5DK3DWbtHpQdMQJEJW7wug2
zprvAfecm94GeBrDyvzNoh8FEiKTkmoTE7Fzyb6w4a7yGXvhaBQpjFZA25FjufNRRNC63ynG4DPeaVMchXEwKZBoTMBc4JFe51K6tmPRennyHWc

Now if you want to backup all of your private keys then a single master private key or seed should be enough to handle all private keys from your wallet.

legendary
Activity: 2380
Merit: 5213
October 30, 2021, 06:16:06 PM
#11
I tend to make backups of all private keys on a air gapped computer...............
What do you mean by "all private keys"?
If you mean the private keys electrum gives you if you select "Wallet" > "Private keys" > "Export", note that they can't be used for recovering a multi-signature wallet.

You must back up the seed phrases or the master private keys.
member
Activity: 81
Merit: 30
October 30, 2021, 06:04:11 PM
#10
Thanks for all the replies.

I tend to make backups of all private keys on a air gapped computer and store them on memory cards that will only ever see the light of day in an emergency should I have issues with wallet software and can't resolve issues via the seed words.  Just call me paranoid.

So from what I gather electrum or other software will allow the recreation of a multisig wallet via the use of both "master private keys" as long as the wallet is a 2 of 2 setup and no more. 

Thank you.

legendary
Activity: 2268
Merit: 18586
October 30, 2021, 05:29:31 PM
#9
It seems that you can't have a non-HD multi-sig wallet in Electrum.
You can generate individual multi-sig addresses from individual private keys, it's just that you have to use the console rather than the GUI, and the whole thing is a bit clunky. Much better to just back up your seed phrases (or at least your master keys) instead.

If we take the following three private keys for example:

Code:
58BA66C5DC6C02DD3B00439E245046FA0329AC0FD61AF50EA774BF89C02F9D60
58BA66C5DC6C02DD3B00439E245046FA0329AC0FD61AF50EA774BF89C02F9D61
58BA66C5DC6C02DD3B00439E245046FA0329AC0FD61AF50EA774BF89C02F9D62

We would then calculate the three corresponding public keys:

Code:
039e14cb6b0dc8b2d2a072ac3c9f9913f9e7c4a76d071f977f3c0a549d328d35b1
0276bd98401b5f6279c131458f3b73498c904d22b9bf6247fd712cd4a18cb5e000
0301ff4016b35fdf19839a4fb78205e96725bc1b5547a9d494f2a21cd31827b1f5

So then in the Electrum console, we would use the following command to create a 2-of-3 address using those three public keys:

Code:
createmultisig(2, ["0276bd98401b5f6279c131458f3b73498c904d22b9bf6247fd712cd4a18cb5e000", "0301ff4016b35fdf19839a4fb78205e96725bc1b5547a9d494f2a21cd31827b1f5", "039e14cb6b0dc8b2d2a072ac3c9f9913f9e7c4a76d071f977f3c0a549d328d35b1"])

Which will create the following multi-sig address:

Code:
3FK3xTDPigWMQDVFEPNBTEmPoJVG3c5zrW

Note that we should order the public keys lexicographically as per BIP45.
Pages:
Jump to: