Bitcoin Forum
May 07, 2024, 03:37:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Exporting all private keys with Bitcoin Core and upload them to cloud  (Read 825 times)
Lionel (OP)
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
August 12, 2017, 07:13:37 PM
 #1

Suppose you have a business and you have a wallet with thousands of addresses.
This may happen because you may want to generate a unique new address for each payment you receive, and that could lead to creating hundreds of new addresses per month.

Is it sustainable for a wallet to have hundreds/thousands of addresses?
Or should you "split" things to multiple wallets/computers ?

Besides that, you may want to create a backup of your 8546 private keys in a few clicks everyday (for example).

I would prefer to export all my private keys to a file encrypted with a password that i enter, is it possible with Bitcoin Core in just a single step? (not having to do the same procedure for every single key).

Then i could upload this encrypted file in a decentralized blockchain-based file storage like SIA or StorJ : http://sia.tech/
https://bitcoinmagazine.com/articles/storj-vs-dropbox-decentralized-storage-future-1408177107/
Being that cloud storage  decentralized, you have the guarantee that your files will  always be available for download, never blocked or removed.

What do you think ? What blockchain storage do you suggest for that?
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715053076
Hero Member
*
Offline Offline

Posts: 1715053076

View Profile Personal Message (Offline)

Ignore
1715053076
Reply with quote  #2

1715053076
Report to moderator
1715053076
Hero Member
*
Offline Offline

Posts: 1715053076

View Profile Personal Message (Offline)

Ignore
1715053076
Reply with quote  #2

1715053076
Report to moderator
1715053076
Hero Member
*
Offline Offline

Posts: 1715053076

View Profile Personal Message (Offline)

Ignore
1715053076
Reply with quote  #2

1715053076
Report to moderator
cpfreeplz
Legendary
*
Offline Offline

Activity: 966
Merit: 1042


View Profile
August 12, 2017, 07:21:11 PM
 #2

Have you been using HD keys? Are they all part of the same wallet? If you just have your master seed key you're all set. Any address can be derived from it (which is the whole idea with HD wallets). If you have all individual addresses you'll need to back up every private key.
Lionel (OP)
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
August 12, 2017, 07:34:05 PM
 #3

Have you been using HD keys? Are they all part of the same wallet? If you just have your master seed key you're all set. Any address can be derived from it (which is the whole idea with HD wallets). If you have all individual addresses you'll need to back up every private key.

I have a new version of Bitcoin Core, downloaded 2 weeks ago, and it is still synchronizing ( i am opening it just a few hours/day ).

After finished i can tell you if i have HD seed, but i think so since it's a new wallet, right?

Anyway this HD stuff seems magic to me.
How can a single little "seed phrase" can restore  for example all my 15,845 addresses? ?
Wow
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 12, 2017, 10:32:37 PM
 #4

Suppose you have a business and you have a wallet with thousands of addresses.
This may happen because you may want to generate a unique new address for each payment you receive, and that could lead to creating hundreds of new addresses per month.

Is it sustainable for a wallet to have hundreds/thousands of addresses?
Or should you "split" things to multiple wallets/computers ?

Besides that, you may want to create a backup of your 8546 private keys in a few clicks everyday (for example).

I would prefer to export all my private keys to a file encrypted with a password that i enter, is it possible with Bitcoin Core in just a single step? (not having to do the same procedure for every single key).

Then i could upload this encrypted file in a decentralized blockchain-based file storage like SIA or StorJ : http://sia.tech/
https://bitcoinmagazine.com/articles/storj-vs-dropbox-decentralized-storage-future-1408177107/
Being that cloud storage  decentralized, you have the guarantee that your files will  always be available for download, never blocked or removed.

What do you think ? What blockchain storage do you suggest for that?

You can encrypt your wallet.dat file directly from the core.
Using this, you can then upload that wallet.dat file to the cloud and have all of your private keys encrypted.

When encrypting the wallet.dat file:
• Use a secure password with lowercase, UPPERCASE, and numbers at the minimum.
• Use at least 15 characters.
Lionel (OP)
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
August 13, 2017, 12:41:30 AM
 #5

Suppose you have a business and you have a wallet with thousands of addresses.
This may happen because you may want to generate a unique new address for each payment you receive, and that could lead to creating hundreds of new addresses per month.

Is it sustainable for a wallet to have hundreds/thousands of addresses?
Or should you "split" things to multiple wallets/computers ?

Besides that, you may want to create a backup of your 8546 private keys in a few clicks everyday (for example).

I would prefer to export all my private keys to a file encrypted with a password that i enter, is it possible with Bitcoin Core in just a single step? (not having to do the same procedure for every single key).

Then i could upload this encrypted file in a decentralized blockchain-based file storage like SIA or StorJ : http://sia.tech/
https://bitcoinmagazine.com/articles/storj-vs-dropbox-decentralized-storage-future-1408177107/
Being that cloud storage  decentralized, you have the guarantee that your files will  always be available for download, never blocked or removed.

What do you think ? What blockchain storage do you suggest for that?

You can encrypt your wallet.dat file directly from the core.
Using this, you can then upload that wallet.dat file to the cloud and have all of your private keys encrypted.

When encrypting the wallet.dat file:
• Use a secure password with lowercase, UPPERCASE, and numbers at the minimum.
• Use at least 15 characters.

Thanks.

You think a cloud storage blockchain like SIA or Filecoin is safe ?
https://filecoin.io/

I want to be sure my file will always be there for me to download,
so it is not advisable to use centralized services like GDrive, Dropbox, etc. to backup a wallet

That's a related but different topic though
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4623



View Profile
August 13, 2017, 01:22:23 AM
 #6

Anyway this HD stuff seems magic to me.
How can a single little "seed phrase" can restore  for example all my 15,845 addresses? ?
Wow

A private key is nothing more than a very big number.  It can be represented in various formats, but by the time the wallet is using it, it is nothing more than a very big number.

That being said, the "Seed phrase" is nothing more than a way to encode a number (a very big number) using words instead of digits.

The actual HD processes is a bit (but not much) more complicated than this, but here's an example of how a seed phrase can restore 15,845 private keys.

Imagine that you pick a very big number and convert it to a seed phrase.
  • Now imagine that you add 1 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 2 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 3 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 4 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 5 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • ...
  • Now imagine that you keep doing this 15,845 times  (each time you calculate the public key, and then the address from the resulting private key).

When you are done, you have 15,845 different private keys that each have their own public key and address.

As long as nobody knows your seed phrase, they are not able to find your starting point, and are therefore NOT able to generate your sequence of 15,845 private keys.

As long as you DO know your seed phrase, you can figure out your starting point, and therefore ARE able to generate your sequence of 15,845 private keys.

Please note, this is NOT exactly how HD wallets work.  It is just a simplified example of how a single seed phrase could "restore for example all your 15,845 addresses".

subSTRATA
Legendary
*
Offline Offline

Activity: 1288
Merit: 1043


:^)


View Profile
August 13, 2017, 01:33:27 AM
 #7

Anyway this HD stuff seems magic to me.
How can a single little "seed phrase" can restore  for example all my 15,845 addresses? ?
Wow

A private key is nothing more than a very big number.  It can be represented in various formats, but by the time the wallet is using it, it is nothing more than a very big number.

That being said, the "Seed phrase" is nothing more than a way to encode a number (a very big number) using words instead of digits.

The actual HD processes is a bit (but not much) more complicated than this, but here's an example of how a seed phrase can restore 15,845 private keys.

Imagine that you pick a very big number and convert it to a seed phrase.
  • Now imagine that you add 1 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 2 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 3 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 4 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 5 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • ...
  • Now imagine that you keep doing this 15,845 times  (each time you calculate the public key, and then the address from the resulting private key).

When you are done, you have 15,845 different private keys that each have their own public key and address.

As long as nobody knows your seed phrase, they are not able to find your starting point, and are therefore NOT able to generate your sequence of 15,845 private keys.

As long as you DO know your seed phrase, you can figure out your starting point, and therefore ARE able to generate your sequence of 15,845 private keys.

Please note, this is NOT exactly how HD wallets work.  It is just a simplified example of how a single seed phrase could "restore for example all your 15,845 addresses".


so the seed phrase determines both the starting point and the pseudorandom sequence for generating addresses / keys, correct?

theres nothing here. message me if you want to put something here.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 13, 2017, 05:44:26 PM
 #8

Anyway this HD stuff seems magic to me.
How can a single little "seed phrase" can restore  for example all my 15,845 addresses? ?
Wow

A private key is nothing more than a very big number.  It can be represented in various formats, but by the time the wallet is using it, it is nothing more than a very big number.

That being said, the "Seed phrase" is nothing more than a way to encode a number (a very big number) using words instead of digits.

The actual HD processes is a bit (but not much) more complicated than this, but here's an example of how a seed phrase can restore 15,845 private keys.

Imagine that you pick a very big number and convert it to a seed phrase.
  • Now imagine that you add 1 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 2 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 3 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 4 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • Now imagine that you add 5 to that very big number and use the result as a private key (you calculate the public key from it, and then the address from that).
  • ...
  • Now imagine that you keep doing this 15,845 times  (each time you calculate the public key, and then the address from the resulting private key).

When you are done, you have 15,845 different private keys that each have their own public key and address.

As long as nobody knows your seed phrase, they are not able to find your starting point, and are therefore NOT able to generate your sequence of 15,845 private keys.

As long as you DO know your seed phrase, you can figure out your starting point, and therefore ARE able to generate your sequence of 15,845 private keys.

Please note, this is NOT exactly how HD wallets work.  It is just a simplified example of how a single seed phrase could "restore for example all your 15,845 addresses".


so the seed phrase determines both the starting point and the pseudorandom sequence for generating addresses / keys, correct?

If I'm not mistaken, the seed is used to produce a master private key (from this, a master public key can also be generated).
This master private key is then able to produce your addresses (however, in a HD wallet such as Bitcoin Core it may take different disguises and may not be something easily traceable) .

So it what you said, but these are deterministic so you reproduce the private keys in the same order as they were originally produced in.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!