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 |
|
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
|
e3b453c468
|
Add rustfmt and clippy to CI and address clippy warnings.
|
2019-06-02 19:12:05 -07:00 |
|
Jimmy Cuadra
|
b15f7a1c07
|
Update dependencies.
|
2019-04-08 16:52:20 -07:00 |
|
Jonas Platte
|
163a555a17
|
Update doc tests to Rust 2018, remove unnecessary main declaration from them
|
2019-01-13 22:30:12 +01:00 |
|
Jonas Platte
|
61e1ebb4cb
|
Configure rustfmt for nested imports, re-run 'cargo fmt'
|
2019-01-08 20:01:29 +01:00 |
|
Jimmy Cuadra
|
6ff12a74d2
|
Run rustfmt and add it to CI runs.
|
2018-12-07 17:29:14 -08:00 |
|
Jimmy Cuadra
|
9f478a1d51
|
Use Rust 2018 edition idioms.
|
2018-12-07 17:20:59 -08:00 |
|
Jonas Platte
|
1334fc37e5
|
Remove unused mut
|
2018-11-09 11:28:36 +01:00 |
|
Jonas Platte
|
86135ddeb0
|
Update base64 to latest version
|
2018-11-09 11:20:56 +01:00 |
|
Brian Smith
|
23e0121125
|
Update to *ring* 0.9.4.
'
|
2017-05-08 17:38:03 -10:00 |
|
Jimmy Cuadra
|
fbc1960ab9
|
Replace rustc-serialize with base64. Fixes #2.
|
2017-04-24 00:13:57 -07:00 |
|
Jimmy Cuadra
|
e63b0fbcd5
|
Update ring to 0.7 and serde to 1.0.
|
2017-04-20 22:41:59 -07:00 |
|
Jimmy Cuadra
|
ca1aeace5b
|
Update to serde 0.9, ring 0.6.2, and url 1.4.
|
2017-01-26 00:52:00 -08:00 |
|
Jimmy Cuadra
|
e2d1bc2cf1
|
Verify JSON via a top level function that delegates to a Verifier.
|
2016-12-11 15:54:48 -08:00 |
|
Jimmy Cuadra
|
c4665ade9e
|
Add more tests.
|
2016-12-10 17:27:58 -08:00 |
|
Jimmy Cuadra
|
1c0379b59c
|
Add Signatures type.
|
2016-12-10 11:33:30 -08:00 |
|
Jimmy Cuadra
|
348b6e2941
|
Move signing to a top-level function.
|
2016-12-10 10:47:12 -08:00 |
|
Jimmy Cuadra
|
b080a934fb
|
Switch to *ring* for crypto and flesh out the API.
|
2016-12-10 04:02:22 -08:00 |
|
Jimmy Cuadra
|
e6b7179c28
|
Add SignatureSet.
|
2016-10-09 14:15:58 -07:00 |
|
Jimmy Cuadra
|
68fccbddd6
|
Use a SigningKey to produce a Signature.
|
2016-10-09 08:16:53 -07:00 |
|
Jimmy Cuadra
|
9827fd3cab
|
ruma-signatures
|
2015-12-04 06:16:23 -08:00 |
|