5e8103f007Run cargo-audit on CI.
Jimmy Cuadra
2019-07-23 09:58:36 -07:00
8b92689750Run cargo-audit on CI.
Jimmy Cuadra
2019-07-23 09:57:42 -07:00
87a608b9f0Run cargo-audit on CI.
Jimmy Cuadra
2019-07-23 09:56:54 -07:00
db709e2fddRun cargo generate-lockfile on CI before running cargo-audit.
Jimmy Cuadra
2019-07-23 09:47:56 -07:00
fd8367be4cRun cargo-audit on CI.
Jimmy Cuadra
2019-07-23 09:47:17 -07:00
f59d9d1fb1Run cargo-audit on CI.
Jimmy Cuadra
2019-07-23 09:46:13 -07:00
a930395896Bump version to 0.13.0.
Jimmy Cuadra
2019-07-23 01:33:19 -07:00
38492dd09eSplit presence serialization/deserialization tests into two test cases.
Jimmy Cuadra
2019-07-23 01:31:03 -07:00
9bc2de3200Mention that supporting types for event impl Deserialize.
Jimmy Cuadra
2019-07-23 01:21:42 -07:00
dbadf52da8Add tests for m.room.create.
Jimmy Cuadra
2019-07-23 01:16:43 -07:00
9dbf00b12dEvent traits --> Event kinds
Jimmy Cuadra
2019-07-23 01:03:09 -07:00
41ef94a617Mention that TryFrom can be used just as FromStr.
Jimmy Cuadra
2019-07-23 01:00:47 -07:00
abac13a7ddBound Event by FromStr.
Jimmy Cuadra
2019-07-23 00:44:20 -07:00
b88c621214impl Display for Action
Jimmy Cuadra
2019-07-23 00:26:46 -07:00
ed47f9eb1cruma-federation-api
Jimmy Cuadra
2019-07-23 00:36:26 -07:00
4c7156b187Clarify when FromStrErr is used.
Jimmy Cuadra
2019-07-23 00:26:35 -07:00
2d2e29f349Add serialization/deserialization section to crate docs.
Jimmy Cuadra
2019-07-23 00:25:55 -07:00
23a946c8dfSimplify the Endpoint trait by using the Request type as Self
Jonas Platte
2019-07-21 01:20:49 +02:00
de23971ee4Deny and address all warnings.
Jimmy Cuadra
2019-07-19 15:47:14 -07:00
95c3b929a5Use the published version of ruma-events-macros.
Jimmy Cuadra
2019-07-19 15:10:35 -07:00
cea0421523Reword some documentation.
Jimmy Cuadra
2019-07-19 15:06:47 -07:00
7eadc017a5Convert collections modules to the new API.
Jimmy Cuadra
2019-07-19 14:22:50 -07:00
bce1e91469Add FromStr and TryFrom impls for m.ignored_user_list types.
Jimmy Cuadra
2019-07-19 14:08:34 -07:00
b003699048Remove unnecessary crate:: prefixes.
Jimmy Cuadra
2019-07-13 06:12:45 -07:00
ebc6579d81Convert the stripped mod to the new API.
Jimmy Cuadra
2019-07-13 06:10:34 -07:00
30c58ab563Update m.key.verification.mac to work without ruma-signatures.
Jimmy Cuadra
2019-07-13 04:09:18 -07:00
d5b38354d0Convert m.room.member to the new API. Remove dependency on ruma-signatures.
Jimmy Cuadra
2019-07-13 04:04:13 -07:00
596fc3c3dfConvert m.push_rules to the new API.
Jimmy Cuadra
2019-07-08 17:48:23 -07:00
7d1701ccceImplement FromStr for content types.
Jimmy Cuadra
2019-07-08 03:55:16 -07:00
8c8f1790f1Clarify how InvalidInput differs from InvalidEvent.
Jimmy Cuadra
2019-07-08 03:55:12 -07:00
0f55729478Handle both deserialization and validation errors in FromStr impls.
Jimmy Cuadra
2019-07-08 03:41:28 -07:00
4e363bc2c5Convert m.key.verification.start to the new API.
Jimmy Cuadra
2019-07-08 03:25:01 -07:00
5c2e0e62a9Implement Serialize for EncryptedEventContent.
Jimmy Cuadra
2019-07-08 02:02:06 -07:00
3e58ad7a8fConvert m.room.message to the new API.
Jimmy Cuadra
2019-06-28 13:53:31 -07:00
8b59318629Sort the unsigned field alphabetically in Serialize impls.
Jimmy Cuadra
2019-06-28 13:28:56 -07:00
21351aaff0Convert m.room.encrypted to the new API.
Jimmy Cuadra
2019-06-22 00:50:40 -07:00
0f49c5e7f6Convert m.room.create to the new API.
Jimmy Cuadra
2019-06-22 00:10:03 -07:00
5b505cc501Convert m.room.canonical_alias to the new API. Reorder additional fields alphabetically. Remove unused serde attributes.
Jimmy Cuadra
2019-06-22 00:01:51 -07:00
71646445d5Sort fields of ServerAclEvent alphabetically.
Jimmy Cuadra
2019-06-21 17:13:38 -07:00
406a007678Add more tests.
Jimmy Cuadra
2019-06-21 17:12:23 -07:00
cc107106f0Continue implementation of m.room.power_levels and add tests.
Jimmy Cuadra
2019-06-21 16:02:53 -07:00
090a91f78bAdd new macros for implementing event traits. Fix Serialize impl for NameEventContent. Convert m.room.power_levels to the new API.
Jimmy Cuadra
2019-06-21 15:33:15 -07:00
03099b9a8bAdd InvalidInput type and convert m.room.name to the new API.
Jimmy Cuadra
2019-06-21 04:58:59 -07:00
afe44b4ddaConvert m.room.server_acl to the new API.
Jimmy Cuadra
2019-06-20 23:14:43 -07:00
eaddc6dce2Use str::parse for conversion from JSON.
Jimmy Cuadra
2019-06-20 22:41:26 -07:00
4212c9f619Convert m.room.{aliases ,avatar ,encryption ,guest_access, history_visibility, join_rules, member, pinned_events, third_party_invite, tombstone, topic} to the new API.
Jimmy Cuadra
2019-06-20 22:10:36 -07:00
22c15277a7Convert m.call.*, m.room.message.feedback, and m.room.redaction to the new API.
Jimmy Cuadra
2019-06-20 17:37:55 -07:00
20d2482108Convert m.key.verification.{accept,cancel,key,mac,request} and m.room_key to the new API.
Jimmy Cuadra
2019-06-20 17:20:03 -07:00
3c70dac634Convert m.fully_read to the new API.
Jimmy Cuadra
2019-06-20 03:23:56 -07:00
4be050b19aConvert m.tag and m.typing to the new API.
Jimmy Cuadra
2019-06-20 03:19:05 -07:00
1f3e33c77dConvert m.dummy, m.forwarded_room_key, m.presence, m.room_key_request, and m.sticker to the new API.
Jimmy Cuadra
2019-06-20 02:15:31 -07:00
11493dede4Bump version to 0.6.0.
Jimmy Cuadra
2019-07-19 14:02:53 -07:00
Merge pull request #19 from ruma/fewer-deps
Jimmy Cuadra
2019-07-19 12:29:30 -07:00
169b6cb9f9Remove futures and hyper dependencies
Jonas Platte
2019-07-18 23:22:53 +02:00
dce3f62e81Bump version to 0.5.0.
Jimmy Cuadra
2019-07-12 04:19:32 -07:00
c2ad08a9f6Update dependencies.
Jimmy Cuadra
2019-07-12 04:18:06 -07:00
798a2387cfAdd example for canonical_json.
Jimmy Cuadra
2019-07-12 04:10:44 -07:00
31d5c42a75Remove docs about signatures, maps, and sets.
Jimmy Cuadra
2019-07-12 04:04:17 -07:00
b867e3230aRemove serde dependency.
Jimmy Cuadra
2019-07-12 03:56:09 -07:00
daf160324cAdd PublicKey{Map,Set} and make the Signature versions private.
Jimmy Cuadra
2019-07-12 03:50:49 -07:00
593d0e469bDetermine Verifier automatically so verifier types don't need to be public.
Jimmy Cuadra
2019-07-12 03:23:49 -07:00
8da921cffaAlways use the term "public key" instead of "verify key."
Jimmy Cuadra
2019-07-12 03:09:44 -07:00
04004547daRemove references to "server names."
Jimmy Cuadra
2019-07-12 03:05:13 -07:00
972388a019Document error conditions for redact.
Jimmy Cuadra
2019-07-12 02:55:49 -07:00
d578292471Rename to_canonical_json to canonical_json.
Jimmy Cuadra
2019-07-12 02:53:21 -07:00
a8b8e70c2dCheck content hash during event verification.
Jimmy Cuadra
2019-07-12 02:16:26 -07:00
fe90cdabf9Change verify_json to use the same interface as verify_event.
Jimmy Cuadra
2019-07-11 01:08:34 -07:00
e64df47d23Make SignatureMap and SignatureSet type aliases for HashMap.
Jimmy Cuadra
2019-07-10 19:55:30 -07:00
efbea86fe5Move the constructor for key pairs out of the trait.
Jimmy Cuadra
2019-07-10 03:53:38 -07:00
f1d9eba728Move code examples onto relevant functions/types and rewrite the crate documentation to be a more general overview.
Jimmy Cuadra
2019-07-10 01:04:38 -07:00
bca31bfbd4Add test for verifying an event.
Jimmy Cuadra
2019-07-10 00:24:03 -07:00
c7aca45094Make all the doc examples runnable.
Jimmy Cuadra
2019-07-10 00:17:24 -07:00
490ac1c4d3Add verify_event function.
Jimmy Cuadra
2019-07-09 23:38:51 -07:00
b85d0fc22cReimplement SignatureSet as a map so signatures can be efficiently looked up by key ID.
Jimmy Cuadra
2019-07-09 17:01:57 -07:00
eaeb1a66c7Remove an unnecessary layer of JSON conversion.
Jimmy Cuadra
2019-07-09 16:33:31 -07:00
8c756141e1Ensure key ID version contains only valid characters.
Jimmy Cuadra
2019-07-09 16:29:45 -07:00
30f830bd5eBe more clear about the Base64 encoding of signatures and hashes.
Jimmy Cuadra
2019-07-09 15:33:03 -07:00
8c102d11bbUpdate doc examples for new APIs.
Jimmy Cuadra
2019-07-09 04:20:43 -07:00
14ede0c145Use unwrap in docs to make examples more succinct.
Jimmy Cuadra
2019-07-09 04:06:40 -07:00
152458707cSimplify extraction of JSON object from event content.
Jimmy Cuadra
2019-07-09 04:00:21 -07:00
935407c805Document parameters and return conditions.
Jimmy Cuadra
2019-07-09 03:55:20 -07:00
4e7bc994ebAdd a test for signing a redacted event.
Jimmy Cuadra
2019-07-09 03:39:57 -07:00
0d26b74051Rework hash_and_sign_event to mutate JSON.
Jimmy Cuadra
2019-07-09 03:34:44 -07:00
66f35cd12aUpdate tests to verify new API.
Jimmy Cuadra
2019-07-09 03:01:36 -07:00
ad3b4401f0Rework sign_json to mutate the JSON the signature will be added to.
Jimmy Cuadra
2019-07-09 02:50:37 -07:00
fb222b8e82Add entry method to SignatureMap.
Jimmy Cuadra
2019-07-09 02:49:43 -07:00
49f3208e7fAdd get and get_mut methods to SignatureMap.
Jimmy Cuadra
2019-07-09 01:52:10 -07:00
d7d098ba35Clarify what reference hashes are used for.
Jimmy Cuadra
2019-07-09 00:13:58 -07:00
47c6de7a1bAdd hash_and_sign_event function.
Jimmy Cuadra
2019-07-09 00:05:01 -07:00
202b3ed402Add content_hash and reference_hash functions and move all functions into a module.
Jimmy Cuadra
2019-07-08 23:35:09 -07:00
9a56e2b0a6Add tests for canonical JSON.
Jimmy Cuadra
2019-07-08 22:01:15 -07:00
07295b11bbRename SignaturesSignatureMap.
Jimmy Cuadra
2019-07-08 21:22:17 -07:00
97ee073e11Split the library into modules.
Jimmy Cuadra
2019-07-08 21:10:50 -07:00
03fcf7281dUse constants from base64.
Jimmy Cuadra
2019-07-08 20:45:27 -07:00
302e401a80Remove unnecessary constructor for Ed25519Verifier.
Jimmy Cuadra
2019-07-08 18:53:29 -07:00
6ffd73b312Make Error::new private to the crate.
Jimmy Cuadra
2019-07-08 18:51:15 -07:00
c0d10881a2Implement Clone and PartialEq for all types.
Jimmy Cuadra
2019-07-08 18:47:11 -07:00