forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Feb 23, 2022, 05:43 am

Title: encode/decode Base-58 C++
Post by: Bitcoin on Feb 23, 2022, 05:43 am
encode/decode Base-58 C++

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



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.


Source: encode/decode Base-58 C++ (https://bitcoin.stackexchange.com/questions/76480/encode-decode-base-58-c)