We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1511e73 commit f110fa0Copy full SHA for f110fa0
1 file changed
api/src/main/java/com/getcode/crypt/MnemonicPhrase.kt
@@ -16,7 +16,7 @@ class MnemonicPhrase(val kind: Kind, val words: List<String>) {
16
17
fun getSolanaKeyPair(context: Context, path: DerivePath = DerivePath.primary): Ed25519.KeyPair {
18
val mnemonicCode = MnemonicCode(context.resources)
19
- val mnemonicSeed = MnemonicCode.toSeed(words, "")
+ val mnemonicSeed = MnemonicCode.toSeed(words, path.password.orEmpty())
20
mnemonicCode.check(words)
21
22
return Derive.path(mnemonicSeed, path)
0 commit comments