base58

Base58 encoders and decoders for Bitcoin and CryptoNote addresses.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

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 - - - - - - -

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)