Is it possible to use the web3.js libary to do base58 encoding and decoding?
It seems that web3.js includes the bignumber library, but I'm unsure as to whether this can handle the base58 encoding used, for example, by ipfs.
I'm hoping for a function that looks a bit like this (which fails): E.g. (based on this)
web3.utils.toBN('QmXGTaGWTT1uUtfSb2sBAvArMEVLK4rQEcQg5bv7wwdzwU', 58) //web3 v1.x
or
web3.toBigNumber("QmXGTaGWTT1uUtfSb2sBAvArMEVLK4rQEcQg5bv7wwdzwU",58) //web3 v0.x
which returns a bignumber integer from the base58 number. Is it possible to do base58 encoding and decoding using the web3.js library?