Note, this method does not enforce error handling via the type system. The
returned string will not be a valid Base58Address if hash is not exactly 20
bytes. If needed, validate the length of hash before calling this method.
For other standards that use the Base58Address format but have other version
or length requirements, use encodeCashAddressFormat.
Encode a hash as a Base58Address.
Note, this method does not enforce error handling via the type system. The returned string will not be a valid Base58Address if
hash
is not exactly 20 bytes. If needed, validate the length ofhash
before calling this method.For other standards that use the Base58Address format but have other version or length requirements, use encodeCashAddressFormat.
To decode a Base58Address, see decodeBase58Address.