pub fn store_sync_public_key_files(store: &Store, keys: &[Key]) -> Result<()>
Expand description

Sync public key files in store with selected recipients.

  • Removes obsolete keys that are not a selected recipient
  • Adds missing keys that are a recipient

This syncs public key files for all protocols. This is because the public key files themselves don’t specify what protocol they use. All public key files and keys must therefore be taken into consideration all at once.