pub async fn restore_from_cloud(
store_id: &str,
store_root: StoreRootRef,
founder_pubkey: &str,
serialized_keyring: Option<&str>,
store_name: &str,
synced_tables: &[SyncedTable],
migrations: &[Migration],
expected_write_policy: WritePolicy,
custody: Arc<dyn MasterKeyCustody>,
identity_custody: Arc<dyn DeviceIdentityCustody>,
source: RestoreSource,
membership_floor: &MembershipFloor,
keypair: &UserKeypair,
authority: &RestoreAuthority,
continuation_device_signer: Option<&UserKeypair>,
layout: &StoreLayout,
clock: ClockRef,
ids: IdRef,
on_status: impl Fn(&str),
cancel: &Receiver<bool>,
) -> Result<Config, BootstrapError>Expand description
Restore a store from cloud storage.
Validates inputs, constructs the cloud home from the source, runs the sync
protocol, and sets the store as active. keypair is the restored device’s
signing identity (recovered from the restore code); the storage signs the
control objects it writes with it, and it is the same key the caller imports
once restore succeeds.