-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Remove the base64 expectation for Olm messages and creating si…
…gnatures (#176) Changelog: The `Account::sign()` method now accepts an `impl AsRef<[u8]>` for the message instead of a `&str`. This has been streamlined to be like most of our other methods accepting a message to be encrypted. This change is mostly backwards compatible as the method will continue to accept a string. The `OlmMessage::from_parts()` and `OlmMessage::to_parts()` methods now accept and return an `&[u8]` and `Vec<u8>` exclusively for the ciphertext. The `base64_encode()` and `base64_decode()` methods can be used to achieve the previous behavior. Signed-off-by: Mathieu Velten <mathieu@velten.xyz>
- Loading branch information
Showing
2 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters