Can the Same Word Appear Multiple Times in a BIP39 Seed?

20 replies 276 views
LuckyFoxNewbie
Posts: 4 · Reputation: 2
#1Oct 21, 2018, 11:04 AM
Hey folks, I've got a technical question about BIP39. When generating a 24-word seed, is it actually possible for a word to appear more than twice? I know there's a chance for it to repeat, but three times seems wild.
8 Reply Quote Share
defi_2021Member
Posts: 37 · Reputation: 249
#2Oct 23, 2018, 06:58 AM
BIP39 doesn't allow a word to show up more than twice in a seed phrase. With over 30 trillion combinations from the 2000+ word list, repeating words just isn't necessary. At least that's what I remember from my readings.
3 Reply Quote Share
Posts: 3 · Reputation: 23
#3Oct 23, 2018, 10:23 AM
Not sure about that. I think there's nothing stopping a word from appearing multiple times. Sure, having it three times is super unlikely, but it's not impossible.
1 Reply Quote Share
LuckyFoxNewbie
Posts: 4 · Reputation: 2
#4Oct 23, 2018, 02:55 PM
Wait, are you saying BIP39 has some code to stop words from being repeated more than twice? If that's true, why do wallets let phrases with repeats exist? Like, if you used a word three times, how does that even work?
4 Reply Quote Share
lonealphaNewbie
Posts: 105 · Reputation: 5
#5Oct 23, 2018, 08:51 PM
Right? There's no rule preventing duplicates. You can technically have a word show up multiple times in your seed. So, yeah, a valid wallet can exist even with a word repeated thrice.
2 Reply Quote Share
chrisomegaFull Member
Posts: 69 · Reputation: 631
#6Oct 24, 2018, 02:07 AM
Whenever you create a BIP39 seed, it’s based on a random number. So technically, any word can appear more than once, even 3 times or more. But that seems kind of off to me.
2 Reply Quote Share
LuckyFoxNewbie
Posts: 4 · Reputation: 2
#7Oct 24, 2018, 06:54 AM
Got it. So it's possible but really rare for a wallet to generate a seed with a word appearing three times, right? Just curious if it’s a hard rule or more about probability.
3 Reply Quote Share
chrisomegaFull Member
Posts: 69 · Reputation: 631
#8Oct 24, 2018, 08:02 AM
Exactly, it’s theoretically possible. You could even have a single word repeated 24 times in a seed phrase. The odds drop sharply with more repeats, but it can happen.
2 Reply Quote Share
LuckyFoxNewbie
Posts: 4 · Reputation: 2
#9Oct 24, 2018, 10:05 AM
Thanks for clarifying that.
5 Reply Quote Share
defi_2021Member
Posts: 37 · Reputation: 249
#10Oct 24, 2018, 12:03 PM
Glad this topic came up! I thought I knew the answer, but now I realize I was mistaken. So, if we assume that some words are repeated, does that make it easier to guess the seed phrase?
2 Reply Quote Share
CalmMinerFull Member
Posts: 195 · Reputation: 784
#11Oct 26, 2018, 12:33 PM
There’s a chance, sure, but it’s still pretty low. Picking from 2048 words makes it less likely to see repeats. But if a seed has a repeating word, it doesn't make it easier to crack.
3 Reply Quote Share
chrisomegaFull Member
Posts: 69 · Reputation: 631
#12Oct 26, 2018, 05:56 PM
Just remember, the seed phrase isn't just random words picked; it’s encoded from a random number. If done right, even if words repeat, you’re fine.
4 Reply Quote Share
kevin2020Senior Member
Posts: 28 · Reputation: 1249
#13Oct 26, 2018, 10:04 PM
Nope, nothing stops repeated words. Just to throw in some numbers: a 12-word seed has a 3% chance for a repeat. A 24-word seed hits about 12.65% for at least two repeats.
4 Reply Quote Share
Posts: 3 · Reputation: 23
#14Oct 27, 2018, 02:27 AM
You should probably edit your previous reply so you don’t spread that misinformation. A seed phrase with repeated words can still be secure.
2 Reply Quote Share
Posts: 84 · Reputation: 87
#15Oct 27, 2018, 08:06 AM
Here’s a fun example: a valid seed phrase can have repeating words, and that’s all valid if it meets the checksum.
3 Reply Quote Share
wallet_vaultFull Member
Posts: 133 · Reputation: 431
#16Oct 27, 2018, 01:16 PM
Haha, yeah! Makes you wonder how often people just roll with those stats and don’t even realize it. I’ve had some 24-word phrases with repeats myself.
2 Reply Quote Share
Posts: 84 · Reputation: 87
#17Oct 27, 2018, 02:12 PM
For real! I’ve used wallets with repeated words and had transactions. It doesn’t seem to matter much.
4 Reply Quote Share
pr0to88Member
Posts: 460 · Reputation: 235
#18Oct 28, 2018, 06:36 AM
But why would brute force crack it so fast? If someone had a phrase like 1500 repeated 23 times, it would take ages to hit that exact combo.
0 Reply Quote Share
kevin2020Senior Member
Posts: 28 · Reputation: 1249
#19Oct 28, 2018, 11:14 PM
Brute force is about trying combinations, but if someone’s watching for weak seeds, they can sweep funds instantly. Repeated words can make it easier to guess.
6 Reply Quote Share
orbit1337Senior Member
Posts: 161 · Reputation: 941
#20Oct 29, 2018, 05:32 AM
That’s a good point. Limiting duplicate words would just make seed phrases less secure. Randomly generated seeds are just fine.
2 Reply Quote Share

Related topics