Jonas Platte
12686fe6e3
Clean up std::fmt imports
...
We were pretty inconsistent about them before.
2021-03-25 16:32:08 +01:00
Julian Sparber
00fea9d468
add type for mxc://
2021-03-25 13:04:23 +01:00
Jonas Platte
62135a9630
Fix issues with new key ID / signature types
2020-12-02 13:50:58 +01:00
Jonas Platte
1ceade7b61
identifiers: Add more crypto-related types
...
Co-authored-by: Isaiah Inuwa <isaiah.inuwa@gmail.com>
2020-12-02 13:11:28 +01:00
Jonas Platte
63678df887
identifiers: Stop rejecting unknown crypto algorithms
2020-12-02 13:11:28 +01:00
Jonas Platte
a5c08c8fde
identifiers: Refactor Error enum
2020-11-08 19:32:09 +01:00
Isaiah Inuwa
b793a790db
Rename ServerKeyId to SigningKeyId
2020-11-08 13:21:55 +01:00
Jonas Platte
e1975c2035
Be more consistent about whitespace
2020-10-24 00:44:01 +02:00
Jonas Platte
22ec1710b5
Update ruma-identifiers validation logic
...
* Allow empty localparts
* Simplify some code
2020-09-21 22:34:56 +02:00
Jonas Platte
85e3df7c76
identifiers-validation: Fix docs
2020-09-21 21:57:53 +02:00
Julian Tescher
c3a074059f
Make custom enum variants doc hidden
2020-09-08 01:06:23 +02:00
Jonas Platte
abeb2160ad
Fix formatting
2020-08-11 01:57:53 +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
67154e2c31
Fix key algorithm serde (de)serialization
2020-08-08 18:11:14 +02:00
Jonas Platte
f7ac4e2080
Add tests for key_algorithm parsing
2020-08-08 18:05:54 +02:00
Jonas Platte
1881e45eee
Move ruma-identifiers validation logic into a new crate
2020-08-04 23:23:39 +02:00