Allow for 25th Word Passphrases in Mnemonics (#7645)

* advanced functionality, enable 25th word mnemonic passphrase

* 25th word passphrase

* add test

* added test to ensure differences when using the mnemonic 25th word

* better message

* passing tests

* fix up logic
This commit is contained in:
Raul Jordan
2020-10-27 15:51:29 -05:00
committed by GitHub
parent 4f5726b3af
commit 8c2fff3a75
34 changed files with 314 additions and 67 deletions

View File

@@ -21,5 +21,10 @@ type Wallet interface {
WriteFileAtPath(ctx context.Context, pathName string, fileName string, data []byte) error
WriteEncryptedSeedToDisk(ctx context.Context, encoded []byte) error
// Method for initializing a new keymanager.
InitializeKeymanager(ctx context.Context, skipMnemonicConfirm bool) (keymanager.IKeymanager, error)
InitializeKeymanager(ctx context.Context, cfg *InitializeKeymanagerConfig) (keymanager.IKeymanager, error)
}
type InitializeKeymanagerConfig struct {
SkipMnemonicConfirm bool
Mnemonic25thWord string
}