id | title | description |
---|---|---|
getting-started |
Getting Started |
Swift Crypto Library For Working With Transactions |
To integrate the ARK Swift Crypto in your project, add the following content to your Podfile
:
'SwiftCrypto', :git => 'https://github.com/ARKEcosystem/swift-crypto.git', :tag => '1.0.1'
Afterward, install it by running pod install
.
-
Fork the package.
-
Clone your forked repository.
git clone https://github.com/<githubusername>/swift-crypto
-
Next, move into the cloned directory.
cd swift-crypto/Crypto
-
Install the dependencies.
pod install
Installing the dependency (BitcointKit) of this SDK will require a good bit of time. So after running
pod install
it might take up to 10 minutes to install the BitcoinKit dependency. This is due to the crypto dependencies it relies on, like secp256k, that are compiled from scratch during the install. Don't be alarmed when it looks like the installation got stuck. It's just the underlying dependencies taking their time.You will also need to install Swiftlint as an additional step, as that is used to lint our code. The easiest way to install this is by using Homebrew:
brew install swiftlint
. -
Dependencies are now installed, you can now run the tests to see if everything is running like it should be opening the
Crypto.xcworkspace
in Xcode.