Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg committed Jan 9, 2025
1 parent e8c1622 commit f234c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ impl From<LibolmPickleError> for DehydratedDeviceError {
LibolmPickleError::PublicKey(e) => Self::PublicKey(e),
LibolmPickleError::Decode(e) => Self::Decode(e),
LibolmPickleError::Encode(e) => Self::Encode(e),
// Any other errors should not happen when we're dealing with
// dehydrated devices.
_ => panic!("Unexpected libolm pickle error {}", err),
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/olm/account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ impl Account {
/// [`from_dehydrated_device`]) and decrypt the messages sent to the
/// dehydrated device.
///
/// The account must be a newly-created account that does not have any Olm
/// sessions, since the dehydrated device format does not store sessions.
///
/// Returns the ciphertext and nonce. `key` is a 256-bit (32-byte) key for
/// encrypting the device.
///
Expand Down

0 comments on commit f234c45

Please sign in to comment.