Skip to content

An implementation of Base58Check in Swift

License

Notifications You must be signed in to change notification settings

anquii/Base58Check

Repository files navigation

Base58Check

Platform Swift Package Manager compatible License

An implementation of Base58Check in Swift. All credit goes to keefertaylor for publishing the implemention here, and to a2hill for fixing this issue.

Platforms

  • macOS 10.15+
  • iOS 13+

Installation

Swift Package Manager

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.

Usage

import Base58Check

let base58Check: Base58CheckCoding = Base58Check()
let encodedString = base58Check.encode(data: data)
let decodedData = try base58Check.decode(string: encodedString)

License

Base58Check is licensed under the terms of the MIT license. See the LICENSE file for more information.