yuzushioh / HDWalletKit

Hierarchical Deterministic(HD) wallet for cryptocurrencies 💰

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HDWalletKit

WalletKit is a Swift framwork that enables you to create and use HD wallet(Hierarchical Deterministic Wallets) in your app.

let mnemonic = Mnemonic.create()
// nuclear you cage screen tribe trick limb smart dad voice nut jealous

let seed = Mnemonic.createSeed(mnemonic: mnemonic)
let wallet = HDWallet(seed: seed, network: .main(.bitcoin))

do {
    let privateKey = try wallet.generateExternalPrivateKey(at: 0)
    let publicKey = privateKey.hdPublicKey()
    
} catch let error {
    print("Error: \(error)")
}

Features

Requirements

  • Swift 4.0 or later
  • iOS 8.0 or later

Installation

  • Insert github "yuzushioh/HDWalletKit" to your Cartfile.
  • Run carthage update --platform ios.

License

WalletKit is released under the MIT License.

About

Hierarchical Deterministic(HD) wallet for cryptocurrencies 💰

License:MIT License


Languages

Language:Swift 75.8%Language:Objective-C 16.1%Language:Shell 8.1%