swift-base58:快速实施base58

时间:2024-04-20 19:36:39
【文件属性】:

文件名称:swift-base58:快速实施base58

文件大小:6KB

文件格式:ZIP

更新时间:2024-04-20 19:36:39

swift encoding bitcoin decoding 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.


【文件预览】:
swift-base58-master
----Sources()
--------Base58()
----Package.swift(498B)
----LICENSE.md(1KB)
----Tests()
--------Base58Tests()
--------LinuxMain.swift(113B)
----README.md(2KB)

网友评论