convertLegacyPublicKeys function

List<String> convertLegacyPublicKeys(
  1. List<String> keys
)

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();