Skip to content
An implementation of BIP39 used Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CKMnemonic
.gitignore Initial commit Jul 24, 2017
.swift-version
CKMnemonic.podspec for cocoapods Oct 20, 2017
LICENSE Initial commit Jul 24, 2017
README.md

README.md

CKMnemonic

An implementation of BIP39 used Swift

Version License Platform

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

work_cocody@hotmail.com, qiuhongyang@askcoin.org

License

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

You can’t perform that action at this time.