yeeth / Base58.swift

Base58 implementation in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base58.swift

Build Status License

This repository implements Base58 in Swift, based off of the implementations written by keefertaylor & NeoTeo.

Getting Started

This library is built with the consideration of keeping it easy to include in your projects.

Import

The Base58.swift package can be easily imported into your project using the swift package manager.

dependencies: [
    .package(url: "https://github.com/yeeth/Base58.swift.git", from: "1.0.0"),
],
targets: [
    .target(name: "MyTarget", dependencies: ["Base58"]),
]

Usage

import Base58

print([20].base58EncodedString()!) // print: M
print("M".base58EncodedStringToBytes()) // print: [20]

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Base58 implementation in Swift

License:MIT License


Languages

Language:Swift 100.0%