Base58String

0.1.0

An Swift implementation of base 58 string encoding and decoding
cloutiertyler/Base58String

What's New

2017-10-10T04:14:46Z

Swift Base58String

Base58String is based off of go-base58 string, available here.

This library provides an idiomatic Swift version of the go library.

How to Install

Swift Package Manager

Add the following to your Package.swift file in "dependencies".

.package(url: "https://github.com/cloutiertyler/Base58String.git", from: "0.1.0")

Usage

import Foundation
import Base58String

func test() {

    let data = Data([222, 100, 50])
    print("Data: \(Array(data))")

    let encoded = String(base58Encoding: data)
    print("Encoded string: \(encoded)")

    let decoded = Data(base58Decoding: encoded)!
    print("Decoded data: \(Array(decoded))")

}

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

Last updated: Sun Aug 28 2022 22:08:58 GMT-0500 (GMT-05:00)