Keystore.swift makes it easy to extract private keys from Ethereum keystore files and generate keystore files from existing private keys.
This library belongs to our Swift Crypto suite. For a pure Swift Ethereum Web3 library check out Web3.swift!
This library also supports EIP 2335 (BLS/ETH2) keystores.
Check the usage below or look through the repositories tests.
We only support Swift Package Manager. Everything else is outdated.
Keystore is compatible with Swift Package Manager v5 (Swift 5 and above). Simply add it to the dependencies in your Package.swift
.
dependencies: [
.package(url: "https://github.com/Boilertalk/Keystore.swift.git", from: "0.3.0")
]
And then add it to your target dependencies:
targets: [
.target