Bitcoin Forum
May 10, 2024, 10:05:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Seed phrases or backup files  (Read 144 times)
10_sjdovn_10 (OP)
Member
**
Offline Offline

Activity: 100
Merit: 30

Stay humble, be cool, make world better place.


View Profile
April 02, 2021, 07:52:52 AM
 #1

Hello I am new to this technology, so i find sth interesting about Backup files and Seed phrases, and i'm not sure how good i thought it,
Is it true that with only 12 seed phrases you can recover your private key and other data about wallet in a new device, it's cool, but how technically 12 word save a lot of information?  if so, what is the difference between backup file and seed ? which one is proper ?
1715378732
Hero Member
*
Offline Offline

Posts: 1715378732

View Profile Personal Message (Offline)

Ignore
1715378732
Reply with quote  #2

1715378732
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1512
Merit: 7360


Farewell, Leo


View Profile
April 02, 2021, 08:12:00 AM
Merited by Pmalek (1)
 #2

it's cool, but how technically 12 word save a lot of information?
These twelve words represent a 128-bit entropy in which you derive every other address. Let me explain that to you. Every wallet software, that provides you a mnemonic, follows a standard and most of them follow the BIP39 standard [Try it!]. By generating a random entropy you can simply change some values in the derivation path, and you'll get a different address each time, but with the same entropy.

Thus, if we just keep the entropy we can derive nearly unlimited addresses without having to store their private key every single time. The private keys are derived through the derivation path (and some cryptographic functions) which makes the entire procedure easier for the user. Before that implementation, it was too tedious to write down your private keys when you wanted to have a new address. By knowing that you can derive as many addresses as you want, you're pulling through a lot of time and you also improve your privacy.

But how can you do that with 12 words? As I said before, an entropy is 128 bits. By extending it with its checksum we end up with 132 bits. A perfect number to divide with 12, which leaves us with 12 pairs of 11 bits. So if we found a way to represent every possible combination of these 11 bits to words, we'd have what we want.

All the possible combinations of 11 bits are 211 = 2048. Here's the 2048 words list: english.txt

if so, what is the difference between backup file and seed ? which one is proper ?
Both of them are proper, because both of them recover your coins. The backup contains the mnemonic (or the master private key).

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
NeuroticFish
Legendary
*
Offline Offline

Activity: 3668
Merit: 6383


Looking for campaign manager? Contact icopress!


View Profile
April 02, 2021, 08:13:01 AM
 #3

Hello I am new to this technology, so i find sth interesting about Backup files and Seed phrases, and i'm not sure how good i thought it,
Is it true that with only 12 seed phrases you can recover your private key and other data about wallet in a new device, it's cool, but how technically 12 word save a lot of information?  if so, what is the difference between backup file and seed ? which one is proper ?

It depends on the wallet.
There are wallets that don't show the seed and don't allow recovery by seed.
Also seed works for HD wallets (Hierarchical Deterministic Wallets). Really old wallets didn't "know" this.

So in some cases making backup of the wallet file is the only way.

If the wallet is new, in most cases the 12 or 24 words seed is almost enough.
In theory you should also know the derivation path, that tells some more details, since based on the seed there can be made a lot of addresses in a lot of ways.
If you don't do anything unusual with the wallet (like for example creation of wallet #2, or #3 at Ledger, or 2FA at Electrum), this should simply mean that you have to know the first letter of your address.

Keep in mind that if you know what addresses hold money, saving their private keys is also an option.
Also, a simple way to know if you are keeping the right seed and info is to try to re-create the wallet yourself.

If you want less-generic information, best it to also tell what wallet you plan to use  Wink

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4177



View Profile
April 02, 2021, 08:42:23 AM
 #4

Is it true that with only 12 seed phrases you can recover your private key and other data about wallet in a new device, it's cool, but how technically 12 word save a lot of information?  if so, what is the difference between backup file and seed ? which one is proper ?
It doesn't. A seed phrase is used to generate a BIP32 seed which can then be used to generate the private keys for the addresses that you need. As mentioned, it is one of the variables when generating your addresses and keeping it constant allows the same addresses to be generated again, provided that the way that you're generating it remains the same.

Seed phrase cannot serve as a backup to anything else other than the addresses generated using the seed phrase. Some things that are not covered by this includes your address labels, transaction descriptions, LN channels, etc. If you send funds to and from your addresses and everything else is unimportant, you can choose to only backup your seed phrases using a piece of paper or any other physical backup methods (metal etching). If the labels and other miscellaneous stuff is also important, you can choose to keep another encrypted backup of the wallet file. The wallet file is prone to mechanical failure due to the fact that it's stored on an electronic medium unlike the seed phrase which is usually stored on a physical medium.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Charles-Tim
Legendary
*
Offline Offline

Activity: 1540
Merit: 4856



View Profile
April 02, 2021, 08:47:32 AM
Merited by BlackHatCoiner (1)
 #5

Hello I am new to this technology, so i find sth interesting about Backup files and Seed phrases, and i'm not sure how good i thought it,
Is it true that with only 12 seed phrases you can recover your private key and other data about wallet in a new device, it's cool, but how technically 12 word save a lot of information?
You can use the seed phrase for wallet keys and addresses recovery as BlackHatCoiner explained, that is how HD (hierarchical deterministic) wallets work. The seed phrase generate a seed. From the seed, a master private key is generated which will lead to generation of child keys. The child keys are numerous and each has its own bitcoin address. To understand more about this, you can use mastering bitcoin 'wallet', 'keys and addresses' for it.

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch04.asciidoc
https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05.asciidoc


if so, what is the difference between backup file and seed ? which one is proper ?
Backup file contains information to recover your wallet too, it will even be in a way your wallet name will be recovered along, but if you have password enabled, you will need to input the password during the recovery process. About seed phrase backup, offline backup is also best for safety, once the seed phrase is imported into the wallet on the new device too, it will recover back all the keys and addresses, and synchronized with the blockchain to get back your coins.

These twelve words represent a 128-bit entropy in which you derive every other address.
Yes, you are right, 12 words seed phrase has 128 entropy. But the longer the entropy with the addition of 32 bits, and also with the addition of 1 more checksum, the longer the words that will be generated

CS = ENT / 32
MS = (ENT + CS) / 11

|  ENT  | CS | ENT+CS |  MS  |
+---------+----+---------------+--------+
|   128   |  4 |      132     |  12  |
|   160   |  5 |      165     |  15  |
|   192   |  6 |      198     |  18  |
|   224   |  7 |      231     |  21  |
|   256   |  8 |      264     |  24  |

ENT= Entropy
CS= Checksum
MS= Mnemonic sentence in words

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6735


bitcoincleanup.com / bitmixlist.org


View Profile WWW
April 02, 2021, 09:50:03 AM
 #6

but how technically 12 word save a lot of information?

Using address derivation.

As others have explained above, the 12 words encode a number of bits, which are then ran through the PBKDF2 function which "stretches" the bits to be 256 bits long and this result is called a master private key.

From this key, you can generate arbitrary numbers of what we call "child" private keys using some elaborate elliptic curve cryptography defined in BIP38.

From these private keys it's possible to derive their associated addresses.

if so, what is the difference between backup file and seed ? which one is proper ?

A wallet file usually contains all the private keys and addresses written verbatim so they don't have to be computed again.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!