CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

CKMnemonic 0.1.7

CKMnemonic 0.1.7

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Cocody.



  • By
  • HongYang Qiu

An implementation of BIP39 used Swift



Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

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)
}

Requirements

Xcode 8.3.2 with Swift 3.0

Installation

CKMnemonic is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "CKMnemonic"

Author

[email protected], [email protected]

License

CKMnemonic is available under the MIT license. See the LICENSE file for more info.