10 Commits

Author SHA1 Message Date
Jonas Platte
e1975c2035
Be more consistent about whitespace 2020-10-24 00:44:01 +02:00
poljar
db2f580329
client-api: Make the CrossSigningKey serialization invertible 2020-10-22 16:21:27 +02:00
Amanda Graven
fdc15123b0
Reorganize encyption related code
Some types used for encryption related tasks need to be used across more
internal crates than expected, so a few have been moved and renamed for
clarity.

* Rename the key_algorithms module in ruma-identifiers-validation to crypto_algorithms
* Move ruma_events::Algorithm to ruma-identifiers-validation and rename it EventEncryptionAlgorithm
* Move DeviceKeys from ruma-client-api to ruma-common
2020-08-10 18:38:53 +02:00
Jonas Platte
9384d24d04
Fix last commit not building with the unstable-pre-spec feature 2020-08-08 17:06:14 +02:00
Jonas Platte
a74dddd93b
Borrow strings and identifiers in more endpoints 2020-08-08 16:50:37 +02:00
Isaiah Inuwa
7240184c1d Use DeviceKeyId and DeviceKeyAlgorithm from ruma-identifiers 2020-08-08 15:54:31 +02:00
Ragotzy.devin
24b0068213
Add unstable backup and keys/upload_signing/signature endpoints
Co-authored-by: Timo Kosters <timo@koesters.xyz>
2020-07-15 15:53:35 +02:00
Jonas Platte
a3e5d679a1
Revert making identifier types generic over the underlying string type
At the same time, this commit makes `ServerName` a newtype around str so
other identifier types can borrow out their server name part as a
`&ServerName`. This technique works for `ServerName` because it keeps no
additional metadata. For the other identifier types to support being
created in borrowed form from a string slice, custom DSTs first have to
be added to Rust.
2020-07-14 23:02:51 +02:00
Jonas Platte
50b74e2b76
Rerun cargo fmt 2020-06-05 17:17:35 +02:00
Jonas Platte
6329cd471e Add 'ruma-client-api/' from commit '632eb9d520028816c5fb7224bd0aca8d1e3793f1'
git-subtree-dir: ruma-client-api
git-subtree-mainline: e5233c49f610f866e3c9bf8529a0613171fc2fe4
git-subtree-split: 632eb9d520028816c5fb7224bd0aca8d1e3793f1
2020-06-05 17:11:09 +02:00