encode/decode Base-58 C++

encode/decode Base-58 C++

I'm not an experienced programmer.

I have built a base-58 encoder using this formula: https://www.youtube.com/watch?v=GedV3S9X89c&feature=youtu.be

However it is not always correct, and I have no idea how to decode.

Is there a smarter way to encode/decode with base-58? I read somewhere that you need a bignum library which I use Boost for.

My goal is to convert between these two:

008D4D508F5BF2C28B20A3863405F05D3CD374B045E4B316E7
1Dt8ty59tU9LkrXG2ocWeSzKFAY8fu6jga

Which so easily this website do: http://lenschulwitz.com/base58

I know bitcoin source code have a base-58 encoder/decoder, but I do not know how to implement it successfully.

If anyone would have time to explain, please do so thoroughly so one can understand what is happening.

https://ift.tt/2MLRMcD

Comments

Popular posts from this blog

Bitcoin Core errors with database block

Bitfinex & Market Synergy To Offer Institutional Calibre Cryptocurrency Connectivity