Commit Graph

  • 5e8103f007 Run cargo-audit on CI. Jimmy Cuadra 2019-07-23 09:58:36 -07:00
  • 8b92689750 Run cargo-audit on CI. Jimmy Cuadra 2019-07-23 09:57:42 -07:00
  • 87a608b9f0 Run cargo-audit on CI. Jimmy Cuadra 2019-07-23 09:56:54 -07:00
  • db709e2fdd Run cargo generate-lockfile on CI before running cargo-audit. Jimmy Cuadra 2019-07-23 09:47:56 -07:00
  • fd8367be4c Run cargo-audit on CI. Jimmy Cuadra 2019-07-23 09:47:17 -07:00
  • f59d9d1fb1 Run cargo-audit on CI. Jimmy Cuadra 2019-07-23 09:46:13 -07:00
  • a930395896 Bump version to 0.13.0. Jimmy Cuadra 2019-07-23 01:33:19 -07:00
  • 38492dd09e Split presence serialization/deserialization tests into two test cases. Jimmy Cuadra 2019-07-23 01:31:03 -07:00
  • 9bc2de3200 Mention that supporting types for event impl Deserialize. Jimmy Cuadra 2019-07-23 01:21:42 -07:00
  • dbadf52da8 Add tests for m.room.create. Jimmy Cuadra 2019-07-23 01:16:43 -07:00
  • 9dbf00b12d Event traits --> Event kinds Jimmy Cuadra 2019-07-23 01:03:09 -07:00
  • 41ef94a617 Mention that TryFrom can be used just as FromStr. Jimmy Cuadra 2019-07-23 01:00:47 -07:00
  • abac13a7dd Bound Event by FromStr. Jimmy Cuadra 2019-07-23 00:44:20 -07:00
  • b88c621214 impl Display for Action Jimmy Cuadra 2019-07-23 00:26:46 -07:00
  • ed47f9eb1c ruma-federation-api Jimmy Cuadra 2019-07-23 00:36:26 -07:00
  • 4c7156b187 Clarify when FromStrErr is used. Jimmy Cuadra 2019-07-23 00:26:35 -07:00
  • 2d2e29f349 Add serialization/deserialization section to crate docs. Jimmy Cuadra 2019-07-23 00:25:55 -07:00
  • 23a946c8df Simplify the Endpoint trait by using the Request type as Self Jonas Platte 2019-07-21 01:20:49 +02:00
  • de23971ee4 Deny and address all warnings. Jimmy Cuadra 2019-07-19 15:47:14 -07:00
  • 95c3b929a5 Use the published version of ruma-events-macros. Jimmy Cuadra 2019-07-19 15:10:35 -07:00
  • cea0421523 Reword some documentation. Jimmy Cuadra 2019-07-19 15:06:47 -07:00
  • 7eadc017a5 Convert collections modules to the new API. Jimmy Cuadra 2019-07-19 14:22:50 -07:00
  • bce1e91469 Add FromStr and TryFrom impls for m.ignored_user_list types. Jimmy Cuadra 2019-07-19 14:08:34 -07:00
  • b003699048 Remove unnecessary crate:: prefixes. Jimmy Cuadra 2019-07-13 06:12:45 -07:00
  • ebc6579d81 Convert the stripped mod to the new API. Jimmy Cuadra 2019-07-13 06:10:34 -07:00
  • 30c58ab563 Update m.key.verification.mac to work without ruma-signatures. Jimmy Cuadra 2019-07-13 04:09:18 -07:00
  • d5b38354d0 Convert m.room.member to the new API. Remove dependency on ruma-signatures. Jimmy Cuadra 2019-07-13 04:04:13 -07:00
  • 596fc3c3df Convert m.push_rules to the new API. Jimmy Cuadra 2019-07-08 17:48:23 -07:00
  • 7d1701ccce Implement FromStr for content types. Jimmy Cuadra 2019-07-08 03:55:16 -07:00
  • 8c8f1790f1 Clarify how InvalidInput differs from InvalidEvent. Jimmy Cuadra 2019-07-08 03:55:12 -07:00
  • 0f55729478 Handle both deserialization and validation errors in FromStr impls. Jimmy Cuadra 2019-07-08 03:41:28 -07:00
  • 4e363bc2c5 Convert m.key.verification.start to the new API. Jimmy Cuadra 2019-07-08 03:25:01 -07:00
  • 5c2e0e62a9 Implement Serialize for EncryptedEventContent. Jimmy Cuadra 2019-07-08 02:02:06 -07:00
  • 3e58ad7a8f Convert m.room.message to the new API. Jimmy Cuadra 2019-06-28 13:53:31 -07:00
  • 8b59318629 Sort the unsigned field alphabetically in Serialize impls. Jimmy Cuadra 2019-06-28 13:28:56 -07:00
  • 21351aaff0 Convert m.room.encrypted to the new API. Jimmy Cuadra 2019-06-22 00:50:40 -07:00
  • 0f49c5e7f6 Convert m.room.create to the new API. Jimmy Cuadra 2019-06-22 00:10:03 -07:00
  • 5b505cc501 Convert 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
  • 71646445d5 Sort fields of ServerAclEvent alphabetically. Jimmy Cuadra 2019-06-21 17:13:38 -07:00
  • 406a007678 Add more tests. Jimmy Cuadra 2019-06-21 17:12:23 -07:00
  • cc107106f0 Continue implementation of m.room.power_levels and add tests. Jimmy Cuadra 2019-06-21 16:02:53 -07:00
  • 090a91f78b Add 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
  • 03099b9a8b Add InvalidInput type and convert m.room.name to the new API. Jimmy Cuadra 2019-06-21 04:58:59 -07:00
  • afe44b4dda Convert m.room.server_acl to the new API. Jimmy Cuadra 2019-06-20 23:14:43 -07:00
  • eaddc6dce2 Use str::parse for conversion from JSON. Jimmy Cuadra 2019-06-20 22:41:26 -07:00
  • 4212c9f619 Convert 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
  • 22c15277a7 Convert m.call.*, m.room.message.feedback, and m.room.redaction to the new API. Jimmy Cuadra 2019-06-20 17:37:55 -07:00
  • 20d2482108 Convert 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
  • 3c70dac634 Convert m.fully_read to the new API. Jimmy Cuadra 2019-06-20 03:23:56 -07:00
  • 4be050b19a Convert m.tag and m.typing to the new API. Jimmy Cuadra 2019-06-20 03:19:05 -07:00
  • 1f3e33c77d Convert 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
  • 11493dede4 Bump version to 0.6.0. Jimmy Cuadra 2019-07-19 14:02:53 -07:00
  • 3e492f7f14
    Merge pull request #19 from ruma/update-ruma-api Jimmy Cuadra 2019-07-19 14:00:47 -07:00
  • be79a80467 Update to new ruma-api Jonas Platte 2019-07-19 11:52:49 +02:00
  • 5d0b4dd833 Bump version to 0.9.0. Jimmy Cuadra 2019-07-19 12:30:38 -07:00
  • f3b0000c18
    Merge pull request #19 from ruma/fewer-deps Jimmy Cuadra 2019-07-19 12:29:30 -07:00
  • 169b6cb9f9 Remove futures and hyper dependencies Jonas Platte 2019-07-18 23:22:53 +02:00
  • dce3f62e81 Bump version to 0.5.0. Jimmy Cuadra 2019-07-12 04:19:32 -07:00
  • c2ad08a9f6 Update dependencies. Jimmy Cuadra 2019-07-12 04:18:06 -07:00
  • 798a2387cf Add example for canonical_json. Jimmy Cuadra 2019-07-12 04:10:44 -07:00
  • 31d5c42a75 Remove docs about signatures, maps, and sets. Jimmy Cuadra 2019-07-12 04:04:17 -07:00
  • b867e3230a Remove serde dependency. Jimmy Cuadra 2019-07-12 03:56:09 -07:00
  • daf160324c Add PublicKey{Map,Set} and make the Signature versions private. Jimmy Cuadra 2019-07-12 03:50:49 -07:00
  • 593d0e469b Determine Verifier automatically so verifier types don't need to be public. Jimmy Cuadra 2019-07-12 03:23:49 -07:00
  • 8da921cffa Always use the term "public key" instead of "verify key." Jimmy Cuadra 2019-07-12 03:09:44 -07:00
  • 04004547da Remove references to "server names." Jimmy Cuadra 2019-07-12 03:05:13 -07:00
  • 972388a019 Document error conditions for redact. Jimmy Cuadra 2019-07-12 02:55:49 -07:00
  • d578292471 Rename to_canonical_json to canonical_json. Jimmy Cuadra 2019-07-12 02:53:21 -07:00
  • a8b8e70c2d Check content hash during event verification. Jimmy Cuadra 2019-07-12 02:16:26 -07:00
  • fe90cdabf9 Change verify_json to use the same interface as verify_event. Jimmy Cuadra 2019-07-11 01:08:34 -07:00
  • e64df47d23 Make SignatureMap and SignatureSet type aliases for HashMap. Jimmy Cuadra 2019-07-10 19:55:30 -07:00
  • efbea86fe5 Move the constructor for key pairs out of the trait. Jimmy Cuadra 2019-07-10 03:53:38 -07:00
  • f1d9eba728 Move 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
  • bca31bfbd4 Add test for verifying an event. Jimmy Cuadra 2019-07-10 00:24:03 -07:00
  • c7aca45094 Make all the doc examples runnable. Jimmy Cuadra 2019-07-10 00:17:24 -07:00
  • 490ac1c4d3 Add verify_event function. Jimmy Cuadra 2019-07-09 23:38:51 -07:00
  • b85d0fc22c Reimplement SignatureSet as a map so signatures can be efficiently looked up by key ID. Jimmy Cuadra 2019-07-09 17:01:57 -07:00
  • eaeb1a66c7 Remove an unnecessary layer of JSON conversion. Jimmy Cuadra 2019-07-09 16:33:31 -07:00
  • 8c756141e1 Ensure key ID version contains only valid characters. Jimmy Cuadra 2019-07-09 16:29:45 -07:00
  • 30f830bd5e Be more clear about the Base64 encoding of signatures and hashes. Jimmy Cuadra 2019-07-09 15:33:03 -07:00
  • 8c102d11bb Update doc examples for new APIs. Jimmy Cuadra 2019-07-09 04:20:43 -07:00
  • 14ede0c145 Use unwrap in docs to make examples more succinct. Jimmy Cuadra 2019-07-09 04:06:40 -07:00
  • 152458707c Simplify extraction of JSON object from event content. Jimmy Cuadra 2019-07-09 04:00:21 -07:00
  • 935407c805 Document parameters and return conditions. Jimmy Cuadra 2019-07-09 03:55:20 -07:00
  • 4e7bc994eb Add a test for signing a redacted event. Jimmy Cuadra 2019-07-09 03:39:57 -07:00
  • 0d26b74051 Rework hash_and_sign_event to mutate JSON. Jimmy Cuadra 2019-07-09 03:34:44 -07:00
  • 66f35cd12a Update tests to verify new API. Jimmy Cuadra 2019-07-09 03:01:36 -07:00
  • ad3b4401f0 Rework sign_json to mutate the JSON the signature will be added to. Jimmy Cuadra 2019-07-09 02:50:37 -07:00
  • fb222b8e82 Add entry method to SignatureMap. Jimmy Cuadra 2019-07-09 02:49:43 -07:00
  • 49f3208e7f Add get and get_mut methods to SignatureMap. Jimmy Cuadra 2019-07-09 01:52:10 -07:00
  • d7d098ba35 Clarify what reference hashes are used for. Jimmy Cuadra 2019-07-09 00:13:58 -07:00
  • 47c6de7a1b Add hash_and_sign_event function. Jimmy Cuadra 2019-07-09 00:05:01 -07:00
  • 202b3ed402 Add content_hash and reference_hash functions and move all functions into a module. Jimmy Cuadra 2019-07-08 23:35:09 -07:00
  • 9a56e2b0a6 Add tests for canonical JSON. Jimmy Cuadra 2019-07-08 22:01:15 -07:00
  • 07295b11bb Rename Signatures SignatureMap. Jimmy Cuadra 2019-07-08 21:22:17 -07:00
  • 97ee073e11 Split the library into modules. Jimmy Cuadra 2019-07-08 21:10:50 -07:00
  • 03fcf7281d Use constants from base64. Jimmy Cuadra 2019-07-08 20:45:27 -07:00
  • 302e401a80 Remove unnecessary constructor for Ed25519Verifier. Jimmy Cuadra 2019-07-08 18:53:29 -07:00
  • 6ffd73b312 Make Error::new private to the crate. Jimmy Cuadra 2019-07-08 18:51:15 -07:00
  • c0d10881a2 Implement Clone and PartialEq for all types. Jimmy Cuadra 2019-07-08 18:47:11 -07:00