An implementation of Base58Check 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/Base58Check.git", from: "1.0.0")
...or integrate with Xcode via File -> Swift Packages -> Add Package Dependency...
using the URL of the repository.
import Base58Check
let base58Check: Base58CheckCoding = Base58Check()
let encodedString = base58Check.encode(data: data)
let decodedData = try base58Check.decode(string: encodedString)
Base58Check
is licensed under the terms of the MIT license. See the LICENSE file for more information.