Sjors / libwally-swift

Swift wrapper for LibWally, a collection of useful primitives for cryptocurrency wallets
MIT License
40 stars 18 forks source link

Base58 support #15

Closed Sjors closed 4 years ago

Sjors commented 4 years ago

Uses wally_base58_to_bytes and wally_base58_from_bytes to convert base58 strings back and forth to Data.

Data("01234567890abcde") -> "2FEDkTt23zPwhDwc")
Data(base58: "2FEDkTt23zPwhDwc")?.hexString -> "01234567890abcde"