Skip to content

Kingpin-Apps/swift-mnemonic

Repository files navigation

GitHub Workflow Status

SwiftMnemonic - Reference implementation of BIP-0039: Mnemonic code for generating deterministic keys

SwiftMnemonic is an implementation of BIP39 in Swift. It supports 12 languages specified in the BIP39 standard.

Usage

To add SwiftMnemonic as dependency to your Xcode project, select File > Swift Packages > Add Package Dependency, enter its repository URL: https://github.com/Kingpin-Apps/swift-mnemonic.git and import SwiftMnemonic.

Then, to use it in your source code, add:

import SwiftMnemonic
            
let mnemonic = try Mnemonic(language: .english)
let phrase = try mnemonic.generate(wordCount: .twentyFour)

Available Languages

  • Chinese (Simplified)
  • Chinese (Traditional)
  • Czech
  • English
  • French
  • Italian
  • Japanese
  • Korean
  • Portuguese
  • Russian
  • Spanish
  • Turkish

About

An implementation of BIP39 in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published