353f00ad58
Make index panic on malformed lemma.
2018-08-09 17:22:29 +02:00
4f60edafcd
Traverse tree only once for proof generation.
2018-08-09 17:22:29 +02:00
205853656b
Fix Clippy warnings in test code.
...
And use the same Rust nightly version for Clippy and Rustfmt.
2018-08-09 17:22:29 +02:00
5f94ed0a31
Add MerkleTree::gen_nth_proof and Proof::index.
2018-08-09 17:22:29 +02:00
90ec2d4b7d
Start next development iteration 1.9.1-pre.
2018-08-09 17:22:29 +02:00
d7b3adce6f
Release version 1.9.0.
2018-08-09 17:22:29 +02:00
0c3b6a9bec
Update CHANGELOG
2018-08-09 17:22:29 +02:00
36e3dd05ac
Fix proof deserialization.
...
Deserializing into a borrowed `str` slice fails if the deserializer
doesn't own such a slice. E.g. it couldn't be used to deserialize proofs
from a `TcpStream`.
2018-08-09 14:51:22 +02:00
67552b62a2
Start next development iteration 1.8.1-pre.
2018-08-07 08:26:51 +02:00
cc67e31606
Release version 1.8.0.
2018-08-07 08:26:07 +02:00
413187a8fd
Update CHANGELOG
2018-08-07 08:25:25 +02:00
cfe7f21a5b
Bump ring dependency
2018-08-07 08:19:22 +02:00
36347489bb
Formatting
2018-07-23 21:19:49 +02:00
87fa79addd
Add dummy proof.rs file to avoid rustfmt failing
2018-07-23 21:19:49 +02:00
4211dc1bb7
Fix Travis build config
2018-07-23 21:19:49 +02:00
d3b05754cf
Fix clippy warnings in tests
2018-07-19 11:23:51 +01:00
0e8450098c
Fix build
2018-07-19 10:40:15 +01:00
c1bb633a8d
Move Proof::validate_lemma to Lemma::validate
2018-07-19 10:39:15 +01:00
2732321faf
include .cargo into travis cache and trigger cargo update before building
2018-07-19 10:23:33 +01:00
fd50da5c35
purge travis ci cache
2018-07-19 10:23:33 +01:00
62ba4ea8b2
rustfmt
2018-07-19 10:23:33 +01:00
51800be20c
read protoc version pin instead of reading from env vars
2018-07-19 10:23:33 +01:00
b4ee79f184
make protobuf build persistent on travis ci
2018-07-19 10:23:33 +01:00
473ea4001c
pin protoc version
2018-07-19 10:23:33 +01:00
c0b013b2bf
bump protoc-rust
version to ^2.0.2
2018-07-19 10:23:33 +01:00
e1c6c79f91
Update to latest rust-protobuf to fix build
2018-07-19 10:23:33 +01:00
75e2070f38
try to identify the travis build errors
2018-07-19 10:23:33 +01:00
67d69f9865
let travis ci to handle protobuf schema generation in rustfmt target
2018-07-19 10:23:33 +01:00
3bfe2f2df4
check in rustfmt.toml, so that generated protobuf schemata are ignored by rustfmt
2018-07-19 10:23:33 +01:00
f233b5d1bc
revert 830b401 except changes in .gitignore,
...
and generate the schema before running rustfmt
2018-07-19 10:23:33 +01:00
7befdf94a2
fix formatting according to rustfmt
2018-07-19 10:23:33 +01:00
7a1add13a1
Ignore protobuf schema when rustfmt
is invoked
2018-07-19 10:23:33 +01:00
f737c89da5
Let rustfmt
fail
2018-07-19 10:23:33 +01:00
8561d21db2
Assert protoc version while building with cargo
2018-07-19 10:23:33 +01:00
622a8d7256
pin protoc to 3.5.1
2018-07-19 10:23:33 +01:00
2356719da9
allow rustfmt to fail
2018-07-19 10:23:33 +01:00
0a6e54fc11
automatically build protobuf on travis-ci
2018-07-19 10:23:33 +01:00
b14c066db9
Run clippy on features code too
2018-05-16 10:18:52 +02:00
00bd5c8ce5
Add clippy to Travis
...
Since clippy builds against nightly, but also has a tendency to break, we're
pinning a version, which can be periodically updated.
2018-05-16 10:18:52 +02:00
cde4a6941d
Serde tests and minor fix
...
* Got rid of the double reference in the serialize function.
* Added tests for mod algorithm_serde. Had to place them where they are because the module is private. We could reorganize public/ privateness of modules so they could be in the tests module though if preferred.
* Ran rustfmt so Travis will pass.
2018-05-16 10:18:12 +02:00
31e26341c9
Apply Clippy's suggestions
2018-05-15 18:24:32 +02:00
cb390162df
Update Travis config
2018-05-15 18:19:52 +02:00
5e3ed116f1
Rustfmt
2018-05-15 18:17:36 +02:00
c647bf82df
Start next development iteration 1.7.1-pre.
2018-05-15 18:03:51 +02:00
779b8b330d
Bump version to 1.7.0
2018-05-15 18:03:11 +02:00
cc7fccc97c
Add serde support.
...
This adds the `serialization-serde` feature, which implements
serde's `Serialize` and `Deserialize` traits for `Proof` and `Lemma`.
Fixes #30
2018-05-15 18:00:48 +02:00
b20059f773
Update changelog
2018-05-15 13:08:41 +02:00
e5e720d260
Start next development iteration 1.6.1-pre.
2018-05-15 13:05:46 +02:00
f4e50765b4
Release version 1.6.0.
2018-05-15 13:05:25 +02:00
5569d6c6a0
Update to support rust-protobuf v1.6.0
...
* Updated `proto/proof.rs` using the latest stable protoc (3.5.1) and protoc-gen-rust
plugin (1.6.0).
* I had to make a tiny manual modification to `proto/proof.rs`. On line 298 I
added derivation of `Debug` in order to satisfy the lint directive in
`lib.rs`.
* `bytes` protobuf fields are empty if the message doesn't contain the
corresponding element, so since methods are no longer provided to directly
check, we use `is_empty()` on the corresponding struct fields.
2018-05-15 13:05:06 +02:00