Skip to content

multi: Add 12 and 24 word seed restoration. - #33

Merged
JoeGruffins merged 2 commits into
decred:masterfrom
JoeGruffins:moreseeds
Oct 24, 2025
Merged

multi: Add 12 and 24 word seed restoration.#33
JoeGruffins merged 2 commits into
decred:masterfrom
JoeGruffins:moreseeds

Conversation

@JoeGruffins

Copy link
Copy Markdown
Member

closes#32

@JoeGruffinsJoeGruffins changed the title multi: Add 12 and 24 seed restoration.multi: Add 12 and 24 word seed restoration.Oct 21, 2025
Comment threadcgo/walletloader.go Outdated
Comment threaddcr/wallet.go Outdated
@JoeGruffins

Copy link
Copy Markdown
MemberAuthor

Comment threadcgo/walletloader.go
switch nWords {
case 15:
seed, birthday, err = dexmnemonic.DecodeMnemonic(cfg.Mnemonic)
seedType = dcr.STFifteenWords

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe doesn't even need the type... If this is how we tell in the beginning, can just always do this I guess

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving the type for now. I guess could have more types in the future that are the same length as current. This also reads better later.

@JoeGruffins
JoeGruffins merged commit 29c832e into decred:masterOct 24, 2025
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BIP39 seed support

2 participants

@JoeGruffins@jrick