toLegacyAddress method
Converts cashAddr format to legacy address
Implementation
static String toLegacyAddress(String cashAddress) {
final decoded = _decodeCashAddress(cashAddress);
final testnet = decoded['prefix'] == "bchtest";
final version = !testnet ? Network.bchPublic : Network.bchTestnetPublic;
return toBase58Check(decoded["hash"], version);
}