Contents

refreshPIRParameters()

Refetches PIR parameters from the server.

Declaration

func refreshPIRParameters() async throws

Discussion

In most cases, you don’t need to perform an explicit refetch because the PIR system on the device refetches PIR parameters from the server periodically to stay up-to-date with the server side. However, in the case of a significant server database change, PIR parameters may change. In this case, you may want to trigger an explicit refresh to make the new set of PIR parameters effective immediately.

The following events can cause PIR parameters to change:

  • Re-processing the dataset.

  • Changing shard count.

  • Changing encryption parameters.

  • Changing per-shard cuckoo hash table size (note: per-shard entry count can change while the cuckoo hash table stays fixed size).

  • Changing of cuckoo hashing parameters.

See Also

Working with a Private Information Retrieval server