JBIpfsDecoder
Utilities to decode an IPFS hash.
This is fairly gas intensive due to multiple nested loops. Onchain IPFS hash decoding is not advised – storing them as a string might be more efficient for that use-case.
State Variables
ALPHABET
Just a kind reminder to our readers.
Used in base58ToString
bytes internal constant ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
Functions
decode
function decode(string memory baseUri, bytes32 hexString) internal pure returns (string memory);