Help with codepaths

Hi all, I'm trying to understand the security practices used in ODK collect from the code on github: https://github.com/getodk/collect/tree/master to better understand the encryption when data is being sent to an ODK server and also how the forms are stored at rest.

Could you please show me to the code paths that depict:

  1. Where forms are downloaded and saved to on odk collect
  2. Where finalized forms are saved after their input has been sent to the server
  3. Code paths that show what is explained on this link: https://docs.getodk.org/security-privacy/#identifying-information-transmission-storage

Thanks.
Any help will be most appreciated.