Base58Swift is a Swift library that implements Base58 / Base58Check encodings for cryptocurrencies. It is based off of go-base-58 with some added functions.
Installation
CocoaPods
Base58Swift supports installation via CocoaPods. You can depend on Base58Swift by adding the following to your Podfile:
pod "Base58Swift"
Carthage
If you use Carthage to manage your dependencies, simply add
Base58Swift to your Cartfile:
github "keefertaylor/Base58Swift"
If you use Carthage to build your dependencies, make sure you have added BigInt.framework and SipHash.framework, to the “Linked Frameworks and Libraries“ section of your target, and have included them in your Carthage framework copying build phase.
Swift Package Manager
Add the following to the dependencies section of your Package.swift file:
Base58Swift
Base58Swift is a Swift library that implements Base58 / Base58Check encodings for cryptocurrencies. It is based off of go-base-58 with some added functions.
Installation
CocoaPods
Base58Swift supports installation via CocoaPods. You can depend on Base58Swift by adding the following to your Podfile:
Carthage
If you use Carthage to manage your dependencies, simply add Base58Swift to your
Cartfile
:If you use Carthage to build your dependencies, make sure you have added
BigInt.framework
andSipHash.framework
, to the “Linked Frameworks and Libraries“ section of your target, and have included them in your Carthage framework copying build phase.Swift Package Manager
Add the following to the
dependencies
section of yourPackage.swift
file:Usage
Base58Swift provides a static utility class,
Base58
, which provides encoding and decoding functions.To encode / decode in Base58:
To encode / decode in Base58Check:
Contributing
Pull requests are welcome.
To get set up:
License
MIT