Skip to content

Commit

Permalink
t push
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor committed Feb 13, 2019
2 parents eb59f61 + 1ed4bbc commit 969f14a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ github "keefertaylor/Base58Swift"

## Usage

TODO: Write this section.
Base58Swift provides a static utility class, `Base58`, which provides encoding and decoding functions.

```swift
let bytes: [UInt8] = [255, 254, 253, 252]

let encodedString = Base58.encode(Data(bytes))!
let decodedBytes = [UInt8](Base58.decode(encodedString)!)

print(encodedString) // 7YXVWT
print(decodedBytes) // [255, 254, 253, 252]
```

## Contributing

Expand Down

0 comments on commit 969f14a

Please sign in to comment.