splitForPubKeys method

Filter splitForPubKeys(
  1. List<PubkeyMapping> pubKeyMappings
)

todo: this should not be here, since it is lib code and not spec stuff

Implementation

Filter splitForPubKeys(List<PubkeyMapping> pubKeyMappings) {
  Map<String, dynamic> map = toMap();
  map['authors'] = pubKeyMappings.map((e) => e.pubKey).toList();
  return Filter.fromJson(map);
}