10 Commits

Author SHA1 Message Date
f8ea86748a Switch from string to []byte slices
The way I'm using the base58 required me to do a lot conversions between
[]byte slices and strings. Not anymore.

Also switching to []byte slices allowed some nice performance
improvements.

Before, with strings:

    BenchmarkEncode-4        3000000               511 ns/op
    BenchmarkDecode-4        5000000               300 ns/op

After, with []byte slices:

    BenchmarkEncode-4        5000000               256 ns/op
    BenchmarkDecode-4       20000000               107 ns/op
2016-07-03 11:14:38 +01:00
785190bf71 Use comments to mark out sections of test file 2016-07-03 00:21:26 +01:00
30449c75ec Clean up tests a bit 2016-07-03 00:21:11 +01:00
4813c34f36 Simplify error message from Decode() 2016-07-02 22:57:16 +01:00
997a6e9e34 Tidy up tests a little bit 2016-06-29 01:31:32 +01:00
64e23a8d0c Simplify exposed method API
This package serves a single purpose, convert between integers and
base58 strings the same as a Flickr does. It has no need for supporting
custom alphabets passed in a runtime.
2016-06-29 01:27:37 +01:00
335c365133 Fix lint complaint in benchmark 2016-06-29 01:08:20 +01:00
1267de7ee5 Add basic benchmarks 2016-06-29 01:06:13 +01:00
ecd92f1412 Improve decode errors 2016-06-29 00:39:30 +01:00
59e744c97a Initial Commit 2016-06-29 00:13:52 +01:00