convertLegacyPublicKeys function
If a key is in the legacy format (AM
prefix), then convert it to the new format (PUB_K1_
).
Leaves other formats untouched
Implementation
List<String> convertLegacyPublicKeys(List<String> keys) =>
keys.map((item) => convertLegacyPublicKey(item)).toList();