mirror of
https://git.sr.ht/~ehmry/nim_base58
synced 2026-01-02 16:54:47 +00:00
No description
- Rearrange files to match new Nimble standards - Import standard library under std/ - Split tests - Replace deprecated `<` predecessor operator |
||
|---|---|---|
| src | ||
| tests | ||
| .gitignore | ||
| base58.nimble | ||
| README.md | ||
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)