No description
Find a file
Emery Hemingway 4a8bd2e88d Maintenance
- Rearrange files to match new Nimble standards
- Import standard library under std/
- Split tests
- Replace deprecated `<` predecessor operator
2018-07-24 18:00:47 +02:00
src Maintenance 2018-07-24 18:00:47 +02:00
tests Maintenance 2018-07-24 18:00:47 +02:00
.gitignore Maintenance 2018-07-24 18:00:47 +02:00
base58.nimble Maintenance 2018-07-24 18:00:47 +02:00
README.md Export Alphabet string, documentation 2017-10-13 10:55:14 -05:00

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)