An implementation of Base58 in Swift. All credit goes to keefertaylor for publishing the implemention here, and to a2hill for fixing this issue.
- macOS 10.15+
- iOS 13+
Add the following line to your Package.swift
file:
.package(url: "https://github.com/anquii/Base58.git", from: "1.0.0")
...or integrate with Xcode via File -> Swift Packages -> Add Package Dependency...
using the URL of the repository.
import Base58
let base58: Base58Coding = Base58()
let encodedString = base58.encode(data: data)
let decodedData = try base58.decode(string: encodedString)
Base58
is licensed under the terms of the MIT license. See the LICENSE file for more information.