swift base58:快速实施base58 源码
这是 encode / decode check / uncheck check算法的实现。 例子: import Base58 /// Encoding to Base58 /// 1. convert string to bytes (utf8 format) let bytes = " Hello, World! " . makeBytes () /// 2. encode bytes using base58 algorithm let encodedBytes = Base58. encode (bytes) /// 3. converting bytes back to string let encodedString = try String (encoded) // "72k1xXWG59fYdzSNoA" /// Decoding from Base58 /// 1.
用户评论