getAddresses method
- required Iterable<
AddressType> addressTypes, - required UTXONetworkType networkType,
Implementation
List<String> getAddresses({
required Iterable<AddressType> addressTypes,
required UTXONetworkType networkType,
}) {
final pubKey = publicKey;
if (pubKey == null) {
return throw Exception("Cannot get public key from input");
}
return [
for (final addressType in addressTypes)
pubKeyToAddress(pubKey, addressType, networkType)
];
}