EthereumKit is a Swift framework that enables you to create Ethereum wallet and use it in your app.
- Mnemonic recovery phrease in BIP39
- BIP32/BIP44 HD wallet
- EIP55 format address encoding
- EIP155 replay attack protection
- Sign transaction
- BIP39: Generate seed and mnemonic sentence.
let entropy = Data(hex: "000102030405060708090a0b0c0d0e0f")
let mnemonic = Mnemonic.create(entropy: entropy)
let seed = Mnemonic.createSeed(mnemonic: mnemonic)
- BIP32: Key derivation and address generation
// It generates master key pair from the seed provided.
let wallet = Wallet(seed: seed, network: .main)
let firstAddress = wallet.generateAddress(at: 0)
// 0x83f1caAdaBeEC2945b73087F803d404F054Cc2B7
let secondAddress = wallet.generateAddress(at: 1)
// 0xb3c3D923CFc4d551b38Db8A86BbA42B623D063cE
let thirdAddress = wallet.generateAddress(at: 2)
// 0x82e35B34CfBEB9704E51Eb17f8263d919786E66a
Geth
in EthereumKit communicates with Ethereum via JSONRPC. It connects to Ropsten
for test network and Mainnet
for main network. (Will support localhost soon
To see more about APIs, check the documentations.
- Insert
github "yuzushioh/EthereumKit"
to your Cartfile. - Run
carthage update --platform ios
.
EthereumKit is released under the MIT License.