base58
Base58 encoders and decoders for Bitcoin and CryptoNote addresses.
Summary
| Latest Version | 0.2.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-01 07:18 |
Tags
Authors
- Emery Hemingway
Installation
nimble install base58
choosenim install base58
git clone https://git.sr.ht/~ehmry/nim_base58
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| base58 | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 0.18 | No |
Source
| Repository | https://git.sr.ht/~ehmry/nim_base58 |
|---|---|
| Homepage | https://git.sr.ht/~ehmry/nim_base58 |
| Registry Source | nimble_official |
README
This library contains two sub-libraries, bitcoin and cryptonote,
both containing encode and decode procedures.
let msg = "foobar"
import base58.bitcoin
let b = bitcoin.encode(msg)
echo b # t1Zv2yaZ
doAssert(bitcoin.decode(b) == msg)
import base58.cryptonote
let c = cryptonote.encode(msg)
echo c # 1t1Zv2yaZ
doAssert(cryptonote.decode(c) == msg)
doAssert(b != c)