BCtopics / EthereumKit

EthereumKit is a free, open-source Swift framework for easily interacting with the Ethereum.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EthereumKit

EthereumKit is a Swift framework that enables you to create Ethereum wallet and use it in your app.

// BIP39: Generate seed and mnemonic sentence.

let mnemonic = Mnemonic.create()
let seed = Mnemonic.createSeed(mnemonic: mnemonic)

// BIP32: Key derivation and address generation

let wallet: Wallet
do {
    wallet = try Wallet(seed: seed, network: .main)
} catch let error {
    fatalError("Error: \(error.localizedDescription)")
}

// Send some ether
let rawTransaction = RawTransaction(ether: "0.15", address: wallet.generateAddress(), nonce: 0)
let tx = try wallet.signTransaction(rawTransaction)

geth.sendRawTransaction(rawTransaction: tx) { result in 
    // Do something...
}

Features

  • Mnemonic recovery phrease in BIP39
  • BIP32/BIP44 HD wallet
  • EIP55 format address encoding
  • EIP155 replay attack protection
  • Sign transaction

Documentations

Requirements

  • Swift 4.0 or later
  • iOS 10.0 or later

Installation

Carthage

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

Made possible by

License

EthereumKit is released under the Apache License 2.0.

About

EthereumKit is a free, open-source Swift framework for easily interacting with the Ethereum.

License:Apache License 2.0


Languages

Language:Swift 95.9%Language:Objective-C 2.8%Language:Shell 1.4%