1152 Commits

Author SHA1 Message Date
Jimmy Cuadra
ad3b4401f0 Rework sign_json to mutate the JSON the signature will be added to. 2019-07-09 02:50:37 -07:00
Jimmy Cuadra
fb222b8e82 Add entry method to SignatureMap. 2019-07-09 02:49:43 -07:00
Jimmy Cuadra
49f3208e7f Add get and get_mut methods to SignatureMap. 2019-07-09 01:52:10 -07:00
Jimmy Cuadra
d7d098ba35 Clarify what reference hashes are used for. 2019-07-09 00:13:58 -07:00
Jimmy Cuadra
47c6de7a1b Add hash_and_sign_event function. 2019-07-09 00:05:01 -07:00
Jimmy Cuadra
202b3ed402 Add content_hash and reference_hash functions and move all functions into a module. 2019-07-08 23:35:09 -07:00
Jimmy Cuadra
9a56e2b0a6 Add tests for canonical JSON. 2019-07-08 22:01:15 -07:00
Jimmy Cuadra
07295b11bb Rename Signatures SignatureMap. 2019-07-08 21:22:17 -07:00
Jimmy Cuadra
97ee073e11 Split the library into modules. 2019-07-08 21:10:50 -07:00
Jimmy Cuadra
03fcf7281d Use constants from base64. 2019-07-08 20:45:27 -07:00
Jimmy Cuadra
302e401a80 Remove unnecessary constructor for Ed25519Verifier. 2019-07-08 18:53:29 -07:00
Jimmy Cuadra
6ffd73b312 Make Error::new private to the crate. 2019-07-08 18:51:15 -07:00
Jimmy Cuadra
c0d10881a2 Implement Clone and PartialEq for all types.
See https://github.com/briansmith/ring/issues/859 for background.
2019-07-08 18:47:11 -07:00
Jimmy Cuadra
e7e4d04244 Undo the change of storing FilterDefinition in a box.
On second thought, it doesn't make sense to change this just cause of a
clippy warning. We'll wait and see if it ever causes and real problems
before making the API less consistent just to avoid a potential space
saving issue.
2019-07-08 14:24:07 -07:00
Jimmy Cuadra
b0c1997016 Fix typo in Cargo.toml. 2019-06-24 13:02:54 -07:00
Jimmy Cuadra
e9df06b30b Turn off nightly feature for proc-macro2. 2019-06-17 17:19:31 -07:00
Jimmy Cuadra
5461c20875 Add crates.io categories. [ci skip] 2019-06-16 16:51:11 -07:00
Jimmy Cuadra
9a5858cae8 Add crates.io categories. [ci skip] 2019-06-16 16:50:06 -07:00
Jimmy Cuadra
2eeb90ed55 Add crates.io categories. [ci skip] 2019-06-16 16:46:02 -07:00
Jimmy Cuadra
aa9d546b1b Add crates.io categories. [ci skip] 2019-06-16 16:42:46 -07:00
Jimmy Cuadra
77e5976ba6 Add crates.io categories. [ci skip] 2019-06-16 16:41:59 -07:00
Jimmy Cuadra
a16eb7cfe1 Use js_int types for numbers.
See https://github.com/ruma/ruma-events/issues/27 for rationale.
2019-06-16 16:32:56 -07:00
Jimmy Cuadra
bc7683af96 Bump version to 0.13.1. 2019-06-16 01:30:42 -07:00
Jimmy Cuadra
9506c565e0 Add support for room version 5. 2019-06-16 01:29:54 -07:00
Jimmy Cuadra
d5ce34d301 Address clippy warnings. 2019-06-12 13:16:52 -07:00
Jimmy Cuadra
262b84022c Bump version to 0.5.0. 2019-06-12 13:11:33 -07:00
Jimmy Cuadra
82a20e23da Bump dependencies. 2019-06-12 13:11:06 -07:00
Jimmy Cuadra
557ac4b485 Use the name and description fields to generate better documentation. 2019-06-12 13:06:35 -07:00
Jimmy Cuadra
0b75d2f1c3 Run rustfmt. 2019-06-12 13:03:47 -07:00
Jimmy Cuadra
3b383d78b7 Bump version to 0.8.0. 2019-06-12 12:59:11 -07:00
Jimmy Cuadra
432dbf94c8 Revise the error type to hide lower-level errors. 2019-06-12 12:37:55 -07:00
Jimmy Cuadra
9805750f83 Bump dependencies. 2019-06-12 12:21:39 -07:00
Jimmy Cuadra
6de32b1b9c Bump version to 0.13.0. 2019-06-03 12:14:34 -07:00
Jimmy Cuadra
b37bb53495 Add DeviceId. 2019-06-03 12:13:11 -07:00
Jimmy Cuadra
9011423eea Consistently use localpart instead of opaque_id and use homeserver_host instead of server_name. 2019-06-03 12:11:57 -07:00
Jimmy Cuadra
fb8039ac6d Support event ID formats for all room versions. 2019-06-03 11:52:15 -07:00
Jimmy Cuadra
6d9b3c7bf2 Add RoomVersionId. 2019-06-03 10:21:57 -07:00
Jimmy Cuadra
44de3bcb4d Move each type into its own module. 2019-06-03 09:00:04 -07:00
Jimmy Cuadra
e3b453c468 Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 19:12:05 -07:00
Jimmy Cuadra
1f7ac74adb Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 18:57:28 -07:00
Jimmy Cuadra
4a4c2dd025 Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 18:14:37 -07:00
Jimmy Cuadra
21c2288d51 Fix serialization error due to url not supporting serde 1.x. 2019-06-02 18:00:23 -07:00
Jimmy Cuadra
66be8d1a98 Run clippy on all targets and all features. 2019-06-02 17:36:22 -07:00
Jimmy Cuadra
6a09f1f754 Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 17:35:26 -07:00
Jimmy Cuadra
a52e0da7c1 Add clippy lints and add rustfmt and clippy to CI. 2019-06-02 13:16:54 -07:00
Jimmy Cuadra
2e0376a8a4 Use stable Rust on Travis. 2019-06-02 09:14:55 -07:00
Jimmy Cuadra
2047c980ef Use stable Rust on Travis. 2019-06-02 09:14:15 -07:00
Jimmy Cuadra
95aea3b401 Use stable Rust on Travis. 2019-06-02 09:13:24 -07:00
Jimmy Cuadra
a92e71f873 Use stable Rust on Travis. 2019-06-02 09:12:50 -07:00
Jimmy Cuadra
68c446ca64 Use stable Rust on Travis. 2019-06-02 09:11:56 -07:00