An implementation of BIP39 used Swift
To run the example project, clone the repo, and run pod install
from the Example directory first.
do {
let language: CKMnemonicLanguageType = .chinese
let mnemonic = try CKMnemonic.generateMnemonic(strength: 128, language: language)
print(mnemonic)
let seed = try CKMnemonic.deterministicSeedString(from: mnemonic, passphrase: "Test", language: language)
print(seed)
} catch {
print(error)
}
Xcode 8.3.2 with Swift 3.0
CKMnemonic is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CKMnemonic"
work_cocody@hotmail.com, qiuhongyang@askcoin.org
CKMnemonic is available under the MIT license. See the LICENSE file for more info.