104 Commits

Author SHA1 Message Date
timokoesters
1ca545cba8
Add methods to get version and public key of keypairs 2020-04-25 14:48:15 +02:00
Jonas Platte
c94eecac0c
Switch CI from travis to builds.sr.ht 2020-04-24 21:56:02 +02:00
Riley
c3f8399c26
Update Ed25519KeyPair representation, add key generation 2020-04-19 19:36:05 +02:00
Jonas Platte
ef482071f7
Update README.md 2020-04-10 14:10:08 +02:00
Jonas Platte
9947e94cb2
CI: Disable IRC notifications 2020-04-03 19:25:13 +02:00
Jonas Platte
575001de13
Bump version 2020-03-30 20:13:14 +02:00
timokoesters
6310f97ad2
update dependencies 2020-03-30 16:28:06 +02:00
Jonas Platte
a08fc01c0b
Add #![warn(rust_2018_idioms)], fix warning 2019-11-12 01:26:33 +01:00
Jonas Platte
d3e5190670 Remove #![deny(warnings)], #![warn(clippy::…)] 2019-10-31 22:21:58 +01:00
Jonas Platte
f887310524 Apply clippy suggestion 2019-10-31 22:21:26 +01:00
Jonas Platte
1cd00e05e9 Re-format test 2019-10-31 22:21:16 +01:00
Jonas Platte
972022c175 Add MSRV section to README.md 2019-10-31 22:18:59 +01:00
Jonas Platte
a13f2a7eb9 Test beta and nightly on CI 2019-10-31 22:18:50 +01:00
Jonas Platte
9f143f3383 Update dependencies 2019-10-31 22:10:49 +01:00
Jimmy Cuadra
09aaf69007 Only build PRs and the master branch on CI. 2019-08-03 14:02:53 -07:00
Jimmy Cuadra
cebb40eca0
Merge pull request #7 from ruma/update-deps
Update ring to 0.16.1, untrusted to 0.7.0
2019-07-24 10:15:42 -07:00
Jonas Platte
346eef3081 Update ring to 0.16.1, untrusted to 0.7.0 2019-07-23 22:08:12 +02:00
Jimmy Cuadra
110fd05d1d Run cargo-audit on CI. 2019-07-23 10:00:34 -07:00
Jimmy Cuadra
dce3f62e81 Bump version to 0.5.0. 2019-07-12 04:19:32 -07:00
Jimmy Cuadra
c2ad08a9f6 Update dependencies. 2019-07-12 04:18:06 -07:00
Jimmy Cuadra
798a2387cf Add example for canonical_json. 2019-07-12 04:10:44 -07:00
Jimmy Cuadra
31d5c42a75 Remove docs about signatures, maps, and sets. 2019-07-12 04:04:17 -07:00
Jimmy Cuadra
b867e3230a Remove serde dependency. 2019-07-12 03:56:09 -07:00
Jimmy Cuadra
daf160324c Add PublicKey{Map,Set} and make the Signature versions private. 2019-07-12 03:50:49 -07:00
Jimmy Cuadra
593d0e469b Determine Verifier automatically so verifier types don't need to be public. 2019-07-12 03:23:49 -07:00
Jimmy Cuadra
8da921cffa Always use the term "public key" instead of "verify key." 2019-07-12 03:09:44 -07:00
Jimmy Cuadra
04004547da Remove references to "server names." 2019-07-12 03:05:13 -07:00
Jimmy Cuadra
972388a019 Document error conditions for redact. 2019-07-12 02:55:49 -07:00
Jimmy Cuadra
d578292471 Rename to_canonical_json to canonical_json. 2019-07-12 02:53:21 -07:00
Jimmy Cuadra
a8b8e70c2d Check content hash during event verification. 2019-07-12 02:16:26 -07:00
Jimmy Cuadra
fe90cdabf9 Change verify_json to use the same interface as verify_event. 2019-07-11 01:08:34 -07:00
Jimmy Cuadra
e64df47d23 Make SignatureMap and SignatureSet type aliases for HashMap. 2019-07-10 19:55:30 -07:00
Jimmy Cuadra
efbea86fe5 Move the constructor for key pairs out of the trait. 2019-07-10 03:53:38 -07:00
Jimmy Cuadra
f1d9eba728 Move code examples onto relevant functions/types and rewrite the crate
documentation to be a more general overview.
2019-07-10 01:04:38 -07:00
Jimmy Cuadra
bca31bfbd4 Add test for verifying an event. 2019-07-10 00:24:03 -07:00
Jimmy Cuadra
c7aca45094 Make all the doc examples runnable. 2019-07-10 00:17:24 -07:00
Jimmy Cuadra
490ac1c4d3 Add verify_event function. 2019-07-09 23:38:51 -07:00
Jimmy Cuadra
b85d0fc22c Reimplement SignatureSet as a map so signatures can be efficiently looked up by key ID. 2019-07-09 17:01:57 -07:00
Jimmy Cuadra
eaeb1a66c7 Remove an unnecessary layer of JSON conversion. 2019-07-09 16:33:31 -07:00
Jimmy Cuadra
8c756141e1 Ensure key ID version contains only valid characters. 2019-07-09 16:29:45 -07:00
Jimmy Cuadra
30f830bd5e Be more clear about the Base64 encoding of signatures and hashes. 2019-07-09 15:33:03 -07:00
Jimmy Cuadra
8c102d11bb Update doc examples for new APIs. 2019-07-09 04:20:43 -07:00
Jimmy Cuadra
14ede0c145 Use unwrap in docs to make examples more succinct. 2019-07-09 04:06:40 -07:00
Jimmy Cuadra
152458707c Simplify extraction of JSON object from event content. 2019-07-09 04:00:21 -07:00
Jimmy Cuadra
935407c805 Document parameters and return conditions. 2019-07-09 03:55:20 -07:00
Jimmy Cuadra
4e7bc994eb Add a test for signing a redacted event. 2019-07-09 03:39:57 -07:00
Jimmy Cuadra
0d26b74051 Rework hash_and_sign_event to mutate JSON. 2019-07-09 03:34:44 -07:00
Jimmy Cuadra
66f35cd12a Update tests to verify new API. 2019-07-09 03:01:36 -07:00
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