decode
Decodes a Base58-encoded string into its corresponding byte array representation.
This method takes a string encoded in Base58 format and decodes it into a byte array. It first verifies the validity of the input string, processes leading zero characters, and calculates the resulting data using a base conversion based on the specified alphabet. Invalid characters in the input string will result in an exception.
Return
A byte array representing the decoded data. Leading zeros in the Base58-encoded string are preserved in the resulting byte array.
Parameters
The Base58-encoded string to be decoded. It must only contain valid characters from the predefined alphabet.
Throws
If the input string contains invalid Base58 characters.
Decodes the given byte array of data from Base58 encoding into its original form.
This method first converts the byte array into a string, assuming the data is Base58-encoded, and then decodes it back into its original byte array format.
Return
A byte array representing the original data after decoding.
Parameters
The byte array containing Base58-encoded data to decode.