Skip to main content

Module sync

Expand description

Functionality for syncing the latest account data from the server

StructsΒ§

KeyRotationData πŸ”’
The account keys data needed for key rotation, fetched from the key rotation data endpoint.
SyncedAccountData πŸ”’

EnumsΒ§

SyncError πŸ”’

ConstantsΒ§

UNIFFI_META_CONST_BITWARDEN_USER_CRYPTO_MANAGEMENT_ERROR_SYNCERROR πŸ”’

TraitsΒ§

DebugMapErr πŸ”’

FunctionsΒ§

from_kdf πŸ”’
get_key_rotation_data πŸ”’
Download the key rotation data from the server. This is the public keys for the password reset enrolled organizations and emergency-access grantees, and the encrypted keysets for the trusted devices and PRF-enabled passkeys. The server filters these to only the entries that participate in key rotation, so no client-side filtering is required.
parse_ciphers πŸ”’
parse_folders πŸ”’
parse_kdf_and_salt πŸ”’
Parses the user’s KDF and salt from the sync response. If the user is not a master-password user, returns Ok(None)
parse_sends πŸ”’
sync_current_account_data πŸ”’