Skip to content
/ Base58 Public

An implementation of Base58 in Swift

License

Notifications You must be signed in to change notification settings

anquii/Base58

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base58

Platform Swift Package Manager compatible License

An implementation of Base58 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/Base58.git", from: "1.0.0")

...or integrate with Xcode via File -> Swift Packages -> Add Package Dependency... using the URL of the repository.

Usage

import Base58

let base58: Base58Coding = Base58()
let encodedString = base58.encode(data: data)
let decodedData = try base58.decode(string: encodedString)

License

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