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 = try HDWallet(seed: seed, network: .main)
let address = try wallet.generateAddress(at: 0)
// Send some ether
let rawTransaction = RawTransaction(ether: "0.15", address: "0x88b44BC83add758A3642130619D61682282850Df", nonce: 2)
let tx = try wallet.signTransaction(rawTransaction)
geth.sendRawTransaction(rawTransaction: tx) { result in
// Do something...
}
- Mnemonic recovery phrease in BIP39
- BIP32/BIP44 HD wallet
- EIP55 format address encoding
- EIP155 replay attack protection
- Sign transaction
- Swift 4.0 or later
- iOS 10.0 or later
- Insert
github "yuzushioh/EthereumKit"
to your Cartfile. - Run
carthage update --platform ios
.
EthereumKit is released under the MIT License.