Skip to content

Commit

Permalink
IOS-3059 Add seed generation into Mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Mar 10, 2023
1 parent 458e001 commit c0931ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TangemSdk/TangemSdk/Common/BIP39/Mnemonic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ public struct Mnemonic {
mnemonicComponents = try bip39.parse(mnemonicString: mnemonic)
self.wordlist = try bip39.parseWordlist(from: mnemonicComponents)
}

public func generateSeed(with passphrase: String = "") throws -> Data {
return try bip39.generateSeed(from: mnemonicComponents, passphrase: passphrase)
}
}

0 comments on commit c0931ed

Please sign in to comment.